typing fix

This commit is contained in:
kuitos 2019-01-31 13:06:43 +08:00 committed by 偏右
parent 52846791b5
commit fc56fe9ce5

View File

@ -44,7 +44,7 @@ export interface DatePickerProps extends PickerProps, SinglePickerProps {
disabledSeconds?: () => number[];
};
onOpenChange?: (status: boolean) => void;
onOk?: (selectedTime: RangePickerValue) => void;
onOk?: (selectedTime: moment.Moment) => void;
placeholder?: string;
}
@ -67,7 +67,7 @@ export interface RangePickerProps extends PickerProps {
defaultPickerValue?: RangePickerValue;
onChange?: (dates: RangePickerValue, dateStrings: [string, string]) => void;
onCalendarChange?: (dates: RangePickerValue, dateStrings: [string, string]) => void;
onOk?: (selectedTime: moment.Moment[]) => void;
onOk?: (selectedTime: RangePickerPresetRange) => void;
showTime?: TimePickerProps | boolean;
ranges?: {
[range: string]: RangePickerPresetRange;