ant-design/components/calendar/demo/basic.md

20 lines
321 B
Markdown
Raw Normal View History

2015-11-11 00:15:12 +08:00
# 基本
- order: 0
2015-11-13 18:20:22 +08:00
一个通用的日历面板,支持年/月切换。
2015-11-11 00:15:12 +08:00
---
````jsx
import { Calendar } from 'antd';
2015-11-13 20:32:54 +08:00
function onPanelChange(value, mode) {
console.log(value, mode);
2015-11-13 15:11:38 +08:00
}
2015-11-11 00:15:12 +08:00
ReactDOM.render(
2015-11-13 20:32:54 +08:00
<Calendar onPanelChange={onPanelChange} />
2015-11-11 00:15:12 +08:00
, document.getElementById('components-calendar-demo-basic'));
````