chore: bump vue@3.0.6 and fix Date prop type (#8215)

This commit is contained in:
neverland
2021-02-25 10:35:03 +08:00
committed by GitHub
parent c054164ba6
commit 70a598cf5a
6 changed files with 126 additions and 234 deletions

View File

@@ -31,18 +31,18 @@ const [createComponent] = createNamespace('date-picker');
export default createComponent({
props: {
...sharedProps,
modelValue: Date as PropType<Date>,
modelValue: Date,
type: {
type: String as PropType<DatetimePickerType>,
default: 'datetime',
},
minDate: {
type: Date as PropType<Date>,
type: Date,
default: () => new Date(currentYear - 10, 0, 1),
validator: isDate,
},
maxDate: {
type: Date as PropType<Date>,
type: Date,
default: () => new Date(currentYear + 10, 11, 31),
validator: isDate,
},