fix RangePickerProps onOk type

This commit is contained in:
iugo 2018-12-17 11:39:47 +08:00 committed by GitHub
parent 219500ee7a
commit 5681d6381a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: moment.Moment[]) => void;
showTime?: TimePickerProps | boolean;
ranges?: {
[range: string]: RangePickerPresetRange;