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