2016-03-31 09:40:55 +08:00
|
|
|
---
|
|
|
|
order: 0
|
2016-05-26 17:46:55 +08:00
|
|
|
title:
|
|
|
|
zh-CN: 典型卡片
|
|
|
|
en-US: Basic card
|
2016-03-31 09:40:55 +08:00
|
|
|
---
|
2016-02-19 19:35:49 +08:00
|
|
|
|
2016-05-26 17:46:55 +08:00
|
|
|
## zh-CN
|
|
|
|
|
2016-02-19 19:35:49 +08:00
|
|
|
包含标题、内容、操作区域。
|
|
|
|
|
2016-05-26 17:46:55 +08:00
|
|
|
## en-US
|
|
|
|
|
|
|
|
A basic card containing a title, content and an extra corner content.
|
|
|
|
|
2017-02-13 10:55:53 +08:00
|
|
|
````jsx
|
2016-02-19 19:35:49 +08:00
|
|
|
import { Card } from 'antd';
|
|
|
|
|
2016-02-20 16:40:18 +08:00
|
|
|
ReactDOM.render(
|
2018-09-01 12:50:52 +08:00
|
|
|
<Card
|
|
|
|
title="Card title"
|
|
|
|
extra={<a href="#">More</a>}
|
|
|
|
style={{ width: 300 }}
|
|
|
|
>
|
2016-05-26 17:46:55 +08:00
|
|
|
<p>Card content</p>
|
|
|
|
<p>Card content</p>
|
|
|
|
<p>Card content</p>
|
2018-06-27 15:55:04 +08:00
|
|
|
</Card>,
|
2018-11-28 15:00:03 +08:00
|
|
|
mountNode
|
|
|
|
);
|
2016-02-19 19:35:49 +08:00
|
|
|
````
|
2017-09-22 18:33:29 +08:00
|
|
|
|
|
|
|
<style>
|
|
|
|
.code-box-demo p {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
</style>
|