Skip to content

Commit

Permalink
feat(date-picker): RangePicker allowEmpty
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangjing committed Aug 14, 2023
1 parent e7b6824 commit 8253c3b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions components/DatePicker/interface.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -504,14 +504,12 @@ export interface BaseRangePickerProps {
*/
clearRangeOnReselect?: boolean;
}
type RequiredAllOrNone<T, K extends keyof T> = Omit<T, K> &
(Required<Pick<T, K>> | Partial<Record<K, never>>);

export type RangePickerProps = BaseRangePickerProps &
Omit<
PickerProps,
'onChange' | 'onSelect' | 'onOk' | 'defaultPickerValue' | 'pickerValue' | 'onPickerValueChange'
> &
RequiredAllOrNone<BaseRangePickerProps, 'allowEmpty' | 'referenceInterval'>;
>;

export interface ShortcutsProps {
prefixCls?: string;
Expand Down

0 comments on commit 8253c3b

Please sign in to comment.