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

27 lines
375 B
Markdown
Raw Normal View History

2016-03-31 09:40:55 +08:00
---
order: 0
title:
zh-CN: 基本
en-US: Basic
2016-03-31 09:40:55 +08:00
---
2015-11-11 00:15:12 +08:00
## zh-CN
2015-11-13 18:20:22 +08:00
一个通用的日历面板,支持年/月切换。
2015-11-11 00:15:12 +08:00
## en-US
A basic calendar component with Year/Month switch.
2017-02-13 10:55:53 +08:00
````jsx
2015-11-11 00:15:12 +08:00
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(
2018-06-27 15:55:04 +08:00
<Calendar onPanelChange={onPanelChange} />,
mountNode);
2015-11-11 00:15:12 +08:00
````