mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-16 01:29:11 +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);
|
|
````
|