update test

This commit is contained in:
iamkun 2022-03-30 15:07:46 +08:00
parent c48a3228ad
commit 4705be920a

View File

@ -15,6 +15,7 @@ Customize Calendar header content.
```jsx
import { Calendar, Select, Radio, Col, Row, Typography } from 'antd';
import 'dayjs/locale/zh-cn';
function onPanelChange(value, mode) {
console.log(value, mode);
@ -29,11 +30,11 @@ ReactDOM.render(
const end = 12;
const monthOptions = [];
const current = value.clone();
let current = value.clone();
const localeData = value.localeData();
const months = [];
for (let i = 0; i < 12; i++) {
current.month(i);
current = current.month(i);
months.push(localeData.monthsShort(current));
}