mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 09:21:22 +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} />;
|
|
}
|
|
}
|