mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 19:50:05 +08:00
16 lines
548 B
TypeScript
16 lines
548 B
TypeScript
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;
|