fix: rangePicker type error #4961

close #4961
pull/4977/head
tangjinzhou 2021-12-03 22:49:43 +08:00
parent 6fad9ead9e
commit eea3fe9015
1 changed files with 2 additions and 2 deletions

View File

@ -156,7 +156,7 @@ function rangePickerProps<DateType>() {
type: Array as unknown as PropType<[DateType, DateType] | [string, string]>,
},
defaultValue: { type: Array as unknown as PropType<[DateType, DateType] | [string, string]> },
value: { type: Array as unknown as PropType<[DateType, DateType]> },
value: { type: Array as unknown as PropType<[DateType, DateType] | [string, string]> },
disabledTime: {
type: Function as PropType<(date: EventValue<DateType>, type: RangeType) => DisabledTimes>,
},
@ -182,7 +182,7 @@ export interface RangePickerProps<DateType> {
dateRender?: RangeDateRender<DateType>;
defaultPickerValue?: [DateType, DateType] | [string, string];
defaultValue?: [DateType, DateType] | [string, string];
value?: [DateType, DateType];
value?: [DateType, DateType] | [string, string];
disabledTime?: (date: EventValue<DateType>, type: RangeType) => DisabledTimes;
disabled?: [boolean, boolean];
format?: string;