diff --git a/packages/grid/src/core/utils/field.ts b/packages/grid/src/core/utils/field.ts index 6d74c752..b64fd756 100644 --- a/packages/grid/src/core/utils/field.ts +++ b/packages/grid/src/core/utils/field.ts @@ -24,7 +24,7 @@ export function getDefaultFieldValue(field: AITableField) { return []; } if (isNumberFiled(field)) { - return 0; + return null; } return ''; } diff --git a/src/app/utils/utils.ts b/src/app/utils/utils.ts index 27da9dc1..5b5fcc73 100644 --- a/src/app/utils/utils.ts +++ b/src/app/utils/utils.ts @@ -44,7 +44,7 @@ export function getDefaultValue() { 'column-20': ['66b31d0c8097a908f74bcd8a'], 'column-21': ['66b31d0c8097a908f74bcd8a'], 'column-22': ['66b31d0c8097a908f74bcd8a'], - 'column-3': 1, + 'column-3': 0, 'column-4': { timestamp: 1734636127 }, 'column-5': ['member_01'], 'column-6': 10, @@ -443,7 +443,7 @@ export function getCanvasDefaultValue() { 'column-111': ['piece_1'], 'column-112': ['tag_1'], 'column-20': ['66b31d0c8097a908f74bcd8a'], - 'column-3': 1, + 'column-3': 0, 'column-4': { timestamp: 1734636127 }, 'column-5': ['member_01'], 'column-6': 10,