|
@ -1,4 +1,5 @@ |
|
|
import * as React from 'react'; |
|
|
import * as React from 'react'; |
|
|
|
|
|
import assign from 'object-assign'; |
|
|
import RcCalendar from 'rc-calendar'; |
|
|
import RcCalendar from 'rc-calendar'; |
|
|
import MonthCalendar from 'rc-calendar/lib/MonthCalendar'; |
|
|
import MonthCalendar from 'rc-calendar/lib/MonthCalendar'; |
|
|
import createPicker from './createPicker'; |
|
|
import createPicker from './createPicker'; |
|
@ -38,9 +39,11 @@ export interface RangePickerProps extends PickerProps { |
|
|
onChange?: (dates: [Date, Date], dateStrings: [String, String]) => void; |
|
|
onChange?: (dates: [Date, Date], dateStrings: [String, String]) => void; |
|
|
showTime?: TimePickerProps; |
|
|
showTime?: TimePickerProps; |
|
|
} |
|
|
} |
|
|
DatePicker.RangePicker = wrapPicker(RangePicker) as React.ClassicComponentClass<RangePickerProps>; |
|
|
|
|
|
|
|
|
|
|
|
DatePicker.Calendar = Calendar; |
|
|
assign(DatePicker, { |
|
|
DatePicker.MonthPicker = MonthPicker; |
|
|
RangePicker: wrapPicker(RangePicker) as React.ClassicComponentClass<RangePickerProps>, |
|
|
|
|
|
Calendar, |
|
|
|
|
|
MonthPicker, |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
export default DatePicker; |
|
|
export default DatePicker; |
|
|