mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-02 07:39:36 +08:00
321 B
321 B
基本
- order: 0
一个通用的日历面板,支持年/月切换。
import { Calendar } from 'antd';
function onPanelChange(value, mode) {
console.log(value, mode);
}
ReactDOM.render(
<Calendar onPanelChange={onPanelChange} />
, document.getElementById('components-calendar-demo-basic'));