mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-28 19:18:40 +08:00
20 lines
273 B
Markdown
20 lines
273 B
Markdown
# 基本
|
|
|
|
- order: 0
|
|
|
|
一个通用的日历面板,支持年/月切换。
|
|
|
|
---
|
|
|
|
````jsx
|
|
import { Calendar } from 'antd';
|
|
|
|
function onPanelChange(value, mode) {
|
|
console.log(value, mode);
|
|
}
|
|
|
|
ReactDOM.render(
|
|
<Calendar onPanelChange={onPanelChange} />
|
|
, mountNode);
|
|
````
|