fix(components): [time-picker] improve typings (#4810)

This commit is contained in:
Carter Li 2021-12-30 19:03:34 +08:00 committed by GitHub
parent d28d0701d7
commit 7ea5c85138
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,7 +64,9 @@ export const timePickerDefaultProps = {
default: () => ({}),
},
modelValue: {
type: [Date, Array, String] as PropType<string | Date | (number | Date)[]>,
type: [Date, Array, String, Number] as PropType<
number | string | Date | (number | string | Date)[]
>,
default: '',
},
rangeSeparator: {