Browse Source

chore(nc-gui): correct prop types

pull/3931/head
braks 2 years ago
parent
commit
3631aa1b7e
  1. 2
      packages/nc-gui/components/cell/Decimal.vue
  2. 2
      packages/nc-gui/components/cell/Float.vue
  3. 2
      packages/nc-gui/components/cell/Integer.vue
  4. 2
      packages/nc-gui/components/cell/Percent.vue
  5. 2
      packages/nc-gui/components/cell/TextArea.vue

2
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 {

2
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 {

2
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 {

2
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<Props>()

2
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'])

Loading…
Cancel
Save