mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-05 17:59:57 +08:00
16 lines
548 B
JavaScript
16 lines
548 B
JavaScript
import RcCalendar from 'rc-calendar';
|
|
import MonthCalendar from 'rc-calendar/lib/MonthCalendar';
|
|
import createPicker from './createPicker';
|
|
import wrapPicker from './wrapPicker';
|
|
import RangePicker from './RangePicker';
|
|
import Calendar from './Calendar';
|
|
|
|
const DatePicker = wrapPicker(createPicker(RcCalendar));
|
|
const MonthPicker = wrapPicker(createPicker(MonthCalendar), 'yyyy-MM');
|
|
|
|
DatePicker.Calendar = Calendar;
|
|
DatePicker.RangePicker = wrapPicker(RangePicker, 'yyyy-MM-dd');
|
|
DatePicker.MonthPicker = MonthPicker;
|
|
|
|
export default DatePicker;
|