add declaration in DatePicker (#3829)

pull/3638/merge
feng zhi hao 8 years ago committed by 偏右
parent ff803c2762
commit b6fbc266c5

@ -35,11 +35,13 @@ export interface DatePickerProps extends PickerProps, SinglePickerProps {
toggleOpen?: (e: {open: boolean}) => void;
disabledDate?: (current: moment.Moment) => boolean;
onOpenChange?: (status: boolean) => void;
placeholder?: string;
}
const DatePicker = wrapPicker(createPicker(RcCalendar)) as React.ClassicComponentClass<DatePickerProps>;
export interface MonthPickerProps extends PickerProps, SinglePickerProps {
disabledDate?: (current: moment.Moment) => boolean;
placeholder?: string;
}
const MonthPicker = wrapPicker(createPicker(MonthCalendar), 'YYYY-MM');

Loading…
Cancel
Save