fix: fix error PropType

This commit is contained in:
zazzaz 2020-12-09 12:00:43 +08:00 committed by hangzou
parent 96e0e89778
commit f5820de55c
5 changed files with 13 additions and 12 deletions

View File

@ -64,13 +64,13 @@ export const getMonthDays = (date: Dayjs) => {
export default defineComponent({
props: {
selectedDay: {
type: Dayjs,
type: Object as PropType<Dayjs>,
},
range: {
type: Array as PropType<Array<Dayjs>>,
},
date: {
type: Dayjs,
type: Object as PropType<Dayjs>,
},
hideHeader: {
type: Boolean,

View File

@ -52,13 +52,13 @@ import dayjs, { Dayjs } from 'dayjs'
export default defineComponent({
props: {
date: {
type: Dayjs,
type: Object as PropType<Dayjs>,
},
minDate: {
type: Dayjs,
type: Object as PropType<Dayjs>,
},
maxDate: {
type: Dayjs,
type: Object as PropType<Dayjs>,
},
parsedValue: {
type: [Object, Array] as PropType<Dayjs | Dayjs[]>,

View File

@ -43,16 +43,16 @@ export default defineComponent({
default: 'month',
},
minDate: {
type: Dayjs,
type: Object as PropType<Dayjs>,
},
maxDate: {
type: Dayjs,
type: Object as PropType<Dayjs>,
},
date: {
type: Dayjs,
type: Object as PropType<Dayjs>,
},
parsedValue: {
type: Dayjs,
type: Object as PropType<Dayjs>,
},
rangeState: {
type: Object,

View File

@ -66,10 +66,10 @@ export default defineComponent({
type: Function as PropType<(_: Date) => void>,
},
parsedValue: {
type: Dayjs,
type: Object as PropType<Dayjs>,
},
date: {
type: Dayjs,
type: Object as PropType<Dayjs>,
},
},

View File

@ -61,6 +61,7 @@ import {
onMounted,
Ref,
watch,
PropType,
} from 'vue'
import { Dayjs } from 'dayjs'
import { RepeatClick } from '@element-plus/directives'
@ -83,7 +84,7 @@ export default defineComponent({
required: true,
},
spinnerDate: {
type: Dayjs,
type: Object as PropType<Dayjs>,
required: true,
},
showSeconds: {