mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 17:31:25 +08:00
f1c38bf9e0
* feat: update demo * feat: update demo * feat: update demo * feat: update demo * feat: optimize code * feat: optimize code * feat: optimize code * feat: optimize code * feat: optimize code * feat: optimize code * feat: optimize code
15 lines
384 B
TypeScript
15 lines
384 B
TypeScript
import React from 'react';
|
|
import type { Dayjs } from 'dayjs';
|
|
import { Calendar } from 'antd';
|
|
import type { CalendarProps } from 'antd';
|
|
|
|
const App: React.FC = () => {
|
|
const onPanelChange = (value: Dayjs, mode: CalendarProps<Dayjs>['mode']) => {
|
|
console.log(value.format('YYYY-MM-DD'), mode);
|
|
};
|
|
|
|
return <Calendar onPanelChange={onPanelChange} />;
|
|
};
|
|
|
|
export default App;
|