mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 03:44:48 +00:00
chore: bump vue@3.0.6 and fix Date prop type (#8215)
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
Reference in New Issue
Block a user