2017-08-09 14:34:10 +08:00
|
|
|
---
|
|
|
|
order: 7
|
|
|
|
title:
|
|
|
|
zh-CN: 内部卡片
|
|
|
|
en-US: Inner card
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
可以放在普通卡片内部,展示多层级结构的信息。
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
It can be placed inside the ordinary card to display the information of the multilevel structure.
|
|
|
|
|
|
|
|
````jsx
|
|
|
|
import { Card } from 'antd';
|
|
|
|
|
|
|
|
ReactDOM.render(
|
2017-08-14 09:52:16 +08:00
|
|
|
<Card title="Card title">
|
2017-08-09 14:34:10 +08:00
|
|
|
<p
|
|
|
|
style={{
|
|
|
|
fontSize: 14,
|
|
|
|
color: 'rgba(0, 0, 0, 0.85)',
|
|
|
|
marginBottom: 16,
|
|
|
|
fontWeight: 500,
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
Group title
|
|
|
|
</p>
|
|
|
|
<Card
|
|
|
|
type="inner"
|
|
|
|
title="Inner Card title"
|
|
|
|
extra={<a href="#">More</a>}
|
|
|
|
>
|
|
|
|
Inner Card content
|
|
|
|
</Card>
|
|
|
|
<Card
|
|
|
|
style={{ marginTop: 16 }}
|
|
|
|
type="inner"
|
|
|
|
title="Inner Card title"
|
|
|
|
extra={<a href="#">More</a>}
|
|
|
|
>
|
|
|
|
Inner Card content
|
|
|
|
</Card>
|
2018-06-27 15:55:04 +08:00
|
|
|
</Card>,
|
2018-11-28 15:00:03 +08:00
|
|
|
mountNode
|
|
|
|
);
|
2017-08-09 14:34:10 +08:00
|
|
|
````
|