2016-09-09 13:55:21 +08:00
|
|
|
import React from 'react';
|
2016-03-30 09:41:18 +08:00
|
|
|
import CalendarLocale from 'rc-calendar/lib/locale/zh_CN';
|
|
|
|
import RcCalendar from 'rc-calendar';
|
2017-02-23 16:04:27 +08:00
|
|
|
import warning from 'warning';
|
2016-03-30 09:41:18 +08:00
|
|
|
|
2016-08-19 17:11:06 +08:00
|
|
|
export default class Calendar extends React.Component<any, any> {
|
2016-03-30 09:41:18 +08:00
|
|
|
static defaultProps = {
|
|
|
|
locale: CalendarLocale,
|
|
|
|
prefixCls: 'ant-calendar',
|
2016-07-13 11:14:24 +08:00
|
|
|
};
|
2016-03-30 09:41:18 +08:00
|
|
|
|
|
|
|
render() {
|
2017-02-23 16:04:27 +08:00
|
|
|
warning(false, 'DatePicker.Calendar is deprecated, use Calendar instead.');
|
2016-03-30 09:41:18 +08:00
|
|
|
return <RcCalendar {...this.props} />;
|
|
|
|
}
|
|
|
|
}
|