import type { Dayjs } from 'dayjs'; import React from 'react'; import { Calendar, theme } from 'antd'; import type { CalendarProps } from 'antd'; const onPanelChange = (value: Dayjs, mode: CalendarProps['mode']) => { console.log(value.format('YYYY-MM-DD'), mode); }; const App: React.FC = () => { const { token } = theme.useToken(); const wrapperStyle: React.CSSProperties = { width: 300, border: `1px solid ${token.colorBorderSecondary}`, borderRadius: token.borderRadiusLG, }; return (
); }; export default App;