mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-23 23:18:36 +08:00
17 lines
455 B
TypeScript
17 lines
455 B
TypeScript
import React from 'react';
|
|
import CalendarLocale from 'rc-calendar/lib/locale/zh_CN';
|
|
import RcCalendar from 'rc-calendar';
|
|
import warning from 'warning';
|
|
|
|
export default class Calendar extends React.Component<any, any> {
|
|
static defaultProps = {
|
|
locale: CalendarLocale,
|
|
prefixCls: 'ant-calendar',
|
|
};
|
|
|
|
render() {
|
|
warning(false, 'DatePicker.Calendar is deprecated, use Calendar instead.');
|
|
return <RcCalendar {...this.props} />;
|
|
}
|
|
}
|