import React from 'react'; import { Calendar } from 'antd'; import type { CalendarProps } from 'antd'; import type { Dayjs } from 'dayjs'; const App: React.FC = () => { const onPanelChange = (value: Dayjs, mode: CalendarProps['mode']) => { console.log(value.format('YYYY-MM-DD'), mode); }; return ; }; export default App;