2016-03-31 09:40:55 +08:00
|
|
|
---
|
2017-01-13 17:11:26 +08:00
|
|
|
order: 2
|
2017-09-27 22:32:49 +08:00
|
|
|
title:
|
2016-05-22 11:03:07 +08:00
|
|
|
zh-CN: 卡片模式
|
|
|
|
en-US: Card
|
2016-03-31 09:40:55 +08:00
|
|
|
---
|
2015-11-11 00:15:12 +08:00
|
|
|
|
2016-05-22 11:03:07 +08:00
|
|
|
## zh-CN
|
|
|
|
|
2015-11-13 18:20:22 +08:00
|
|
|
用于嵌套在空间有限的容器中。
|
2015-11-11 00:15:12 +08:00
|
|
|
|
2016-05-22 11:03:07 +08:00
|
|
|
## en-US
|
|
|
|
|
|
|
|
Nested inside a container element for rendering in limited space.
|
|
|
|
|
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 18:20:22 +08:00
|
|
|
}
|
2015-11-11 00:15:12 +08:00
|
|
|
|
2015-11-13 18:20:22 +08:00
|
|
|
ReactDOM.render(
|
2017-09-27 22:32:49 +08:00
|
|
|
<div style={{ width: 300, border: '1px solid #d9d9d9', borderRadius: 4 }}>
|
2015-11-13 20:32:54 +08:00
|
|
|
<Calendar fullscreen={false} onPanelChange={onPanelChange} />
|
2018-06-27 15:55:04 +08:00
|
|
|
</div>,
|
|
|
|
mountNode);
|
2015-11-13 18:20:22 +08:00
|
|
|
````
|