Browse Source

Fix: "disabledTime" property type in date-picker

disabledTime property should not be required in DatePicker component.
pull/20156/head
Khaled 5 years ago
committed by 偏右
parent
commit
2f7998cc0c
  1. 2
      components/date-picker/interface.tsx

2
components/date-picker/interface.tsx

@ -46,7 +46,7 @@ export interface DatePickerProps extends PickerProps, SinglePickerProps {
showTime?: TimePickerProps | boolean;
showToday?: boolean;
open?: boolean;
disabledTime: (
disabledTime?: (
current?: moment.Moment | null,
) => {
disabledHours?: () => number[];

Loading…
Cancel
Save