Skip to content

Commit eea3fe9

Browse files
committed
fix: rangePicker type error #4961
close #4961
1 parent 6fad9ea commit eea3fe9

File tree

1 file changed

+2
-2
lines changed
  • components/date-picker/generatePicker

1 file changed

+2
-2
lines changed

components/date-picker/generatePicker/props.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ function rangePickerProps<DateType>() {
156156
type: Array as unknown as PropType<[DateType, DateType] | [string, string]>,
157157
},
158158
defaultValue: { type: Array as unknown as PropType<[DateType, DateType] | [string, string]> },
159-
value: { type: Array as unknown as PropType<[DateType, DateType]> },
159+
value: { type: Array as unknown as PropType<[DateType, DateType] | [string, string]> },
160160
disabledTime: {
161161
type: Function as PropType<(date: EventValue<DateType>, type: RangeType) => DisabledTimes>,
162162
},
@@ -182,7 +182,7 @@ export interface RangePickerProps<DateType> {
182182
dateRender?: RangeDateRender<DateType>;
183183
defaultPickerValue?: [DateType, DateType] | [string, string];
184184
defaultValue?: [DateType, DateType] | [string, string];
185-
value?: [DateType, DateType];
185+
value?: [DateType, DateType] | [string, string];
186186
disabledTime?: (date: EventValue<DateType>, type: RangeType) => DisabledTimes;
187187
disabled?: [boolean, boolean];
188188
format?: string;

0 commit comments

Comments
 (0)