mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-24 11:05:17 +08:00
fix: fix error PropType
This commit is contained in:
parent
96e0e89778
commit
f5820de55c
@ -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,
|
||||
|
@ -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[]>,
|
||||
|
@ -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,
|
||||
|
@ -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>,
|
||||
},
|
||||
},
|
||||
|
||||
|
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user