feat: define prop and emit types DatepickerWithRange
This commit is contained in:
parent
a56331d39d
commit
daeefeb487
@ -114,13 +114,19 @@ import BaseButton from '@/components/base/BaseButton.vue'
|
|||||||
import DatemathHelp from '@/components/date/DatemathHelp.vue'
|
import DatemathHelp from '@/components/date/DatemathHelp.vue'
|
||||||
import {getFlatpickrLanguage} from '@/helpers/flatpickrLanguage'
|
import {getFlatpickrLanguage} from '@/helpers/flatpickrLanguage'
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps<{
|
||||||
modelValue: {
|
modelValue: {
|
||||||
required: false,
|
dateFrom: Date | string,
|
||||||
|
dateTo: Date | string,
|
||||||
},
|
},
|
||||||
})
|
}>()
|
||||||
|
|
||||||
const emit = defineEmits(['update:modelValue'])
|
const emit = defineEmits<{
|
||||||
|
'update:modelValue': [value: {
|
||||||
|
dateFrom: Date | string,
|
||||||
|
dateTo: Date | string
|
||||||
|
}]
|
||||||
|
}>()
|
||||||
|
|
||||||
const {t} = useI18n({useScope: 'global'})
|
const {t} = useI18n({useScope: 'global'})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user