mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-23 06:58:33 +08:00
1b3118e1dc
Fix #9463
21 lines
726 B
TypeScript
Executable File
21 lines
726 B
TypeScript
Executable File
import * as React from 'react';
|
|
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 WeekPicker from './WeekPicker';
|
|
import { DatePickerProps, DatePickerDecorator } from './interface';
|
|
|
|
const DatePicker = wrapPicker(createPicker(RcCalendar)) as React.ClassicComponentClass<DatePickerProps>;
|
|
|
|
const MonthPicker = wrapPicker(createPicker(MonthCalendar), 'YYYY-MM');
|
|
|
|
Object.assign(DatePicker, {
|
|
RangePicker: wrapPicker(RangePicker),
|
|
MonthPicker,
|
|
WeekPicker: wrapPicker(WeekPicker, 'gggg-wo'),
|
|
});
|
|
|
|
export default DatePicker as DatePickerDecorator;
|