2016-03-21 21:16:38 +08:00
|
|
|
import RcCalendar from 'rc-calendar';
|
2015-10-20 16:47:55 +08:00
|
|
|
import MonthCalendar from 'rc-calendar/lib/MonthCalendar';
|
2016-03-30 09:50:44 +08:00
|
|
|
import createPicker from './createPicker';
|
2016-03-30 10:52:15 +08:00
|
|
|
import wrapPicker from './wrapPicker';
|
2016-03-21 21:16:38 +08:00
|
|
|
import RangePicker from './RangePicker';
|
2016-03-30 09:41:18 +08:00
|
|
|
import Calendar from './Calendar';
|
2015-08-25 17:27:38 +08:00
|
|
|
|
2016-03-30 10:52:15 +08:00
|
|
|
const DatePicker = wrapPicker(createPicker(RcCalendar));
|
|
|
|
const MonthPicker = wrapPicker(createPicker(MonthCalendar), 'yyyy-MM');
|
2015-08-24 14:30:08 +08:00
|
|
|
|
2016-03-21 21:16:38 +08:00
|
|
|
DatePicker.Calendar = Calendar;
|
2016-03-30 10:52:15 +08:00
|
|
|
DatePicker.RangePicker = wrapPicker(RangePicker, 'yyyy-MM-dd');
|
2016-03-21 21:16:38 +08:00
|
|
|
DatePicker.MonthPicker = MonthPicker;
|
2015-08-24 14:30:08 +08:00
|
|
|
|
2016-03-21 21:16:38 +08:00
|
|
|
export default DatePicker;
|