Signed-off-by: Pranav C <pranavxc@gmail.com>
@ -3,7 +3,7 @@ import { computed, inject, ref, useVModel } from '#imports'
import { ColumnInj, EditModeInj } from '~/context'
interface Props {
modelValue: number
modelValue: number | null
}
const props = defineProps<Props>()
@ -2,14 +2,13 @@
import dayjs from 'dayjs'
import { ColumnInj, ReadonlyInj } from '~/context'
modelValue: string | null
const { modelValue } = defineProps<Props>()
const emit = defineEmits(['update:modelValue'])
modelValue: string
const columnMeta = inject(ColumnInj, null)
const readOnlyMode = inject(ReadonlyInj, false)
@ -2,14 +2,14 @@
import { ReadonlyInj } from '~/context'
const { isMysql } = useProject()
@ -4,7 +4,7 @@ import { ColumnInj } from '~/context'
import { convertDurationToSeconds, convertMS2Duration, durationOptions } from '~/utils'
modelValue: number | string
modelValue: number | string | null
@ -3,7 +3,7 @@ import { inject, ref, useVModel } from '#imports'
import { EditModeInj } from '~/context'
interface Emits {
@ -4,7 +4,7 @@ import { computed, inject } from '#imports'
modelValue: string | Record<string, any>
modelValue: string | Record<string, any> | null
isForm: boolean
@ -3,7 +3,7 @@ import { computed, inject } from '#imports'
import { getPercentStep, isValidPercent, renderPercent } from '@/utils/percentUtils'
@ -8,7 +8,7 @@ import MdiThumbUpIcon from '~icons/mdi/thumb-up'
import MdiFlagIcon from '~icons/mdi/flag'
modelValue?: number
modelValue?: number | null
readOnly?: boolean
@ -4,7 +4,7 @@ import { ColumnInj, EditModeInj } from '~/context'
import { isValidURL } from '~/utils'
const { modelValue: value } = defineProps<Props>()
let isYearInvalid = $ref(false)