diff --git a/packages/nc-gui/components/cell/Decimal.vue b/packages/nc-gui/components/cell/Decimal.vue index 9ba13183c1..9581665304 100644 --- a/packages/nc-gui/components/cell/Decimal.vue +++ b/packages/nc-gui/components/cell/Decimal.vue @@ -3,7 +3,7 @@ import type { VNodeRef } from '@vue/runtime-core' import { EditModeInj, inject, useVModel } from '#imports' interface Props { - modelValue: number | null | string | undefined + modelValue?: number | null | string } interface Emits { diff --git a/packages/nc-gui/components/cell/Float.vue b/packages/nc-gui/components/cell/Float.vue index 20d55cdb30..111f7beb72 100644 --- a/packages/nc-gui/components/cell/Float.vue +++ b/packages/nc-gui/components/cell/Float.vue @@ -3,7 +3,7 @@ import type { VNodeRef } from '@vue/runtime-core' import { EditModeInj, inject, useVModel } from '#imports' interface Props { - modelValue: number | null | undefined + modelValue?: number | null } interface Emits { diff --git a/packages/nc-gui/components/cell/Integer.vue b/packages/nc-gui/components/cell/Integer.vue index e29f8e0903..63c15a5546 100644 --- a/packages/nc-gui/components/cell/Integer.vue +++ b/packages/nc-gui/components/cell/Integer.vue @@ -3,7 +3,7 @@ import type { VNodeRef } from '@vue/runtime-core' import { EditModeInj, inject, useVModel } from '#imports' interface Props { - modelValue?: number + modelValue?: number | null } interface Emits { diff --git a/packages/nc-gui/components/cell/Percent.vue b/packages/nc-gui/components/cell/Percent.vue index d9fe77c127..2af77d9095 100644 --- a/packages/nc-gui/components/cell/Percent.vue +++ b/packages/nc-gui/components/cell/Percent.vue @@ -2,7 +2,7 @@ import { EditModeInj, inject, useVModel } from '#imports' interface Props { - modelValue: number | string | null | undefined + modelValue?: number | string | null } const props = defineProps() diff --git a/packages/nc-gui/components/cell/TextArea.vue b/packages/nc-gui/components/cell/TextArea.vue index ba76067e5e..db3b054bcf 100644 --- a/packages/nc-gui/components/cell/TextArea.vue +++ b/packages/nc-gui/components/cell/TextArea.vue @@ -3,7 +3,7 @@ import type { VNodeRef } from '@vue/runtime-core' import { EditModeInj, inject, useVModel } from '#imports' const props = defineProps<{ - modelValue?: string + modelValue?: string | null }>() const emits = defineEmits(['update:modelValue'])