mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-02 15:59:38 +08:00
6776bb8916
* docs: update demo * chore: add script * test: fix demo test * docs: convert demos * chore: move script * test: remove react-dom import * chore: update deps * docs: update riddle js * test: fix image test * docs: fix riddle demo
35 lines
644 B
Markdown
35 lines
644 B
Markdown
---
|
|
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';
|
|
|
|
export default () => (
|
|
<Card title="Card title">
|
|
<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>
|
|
</Card>
|
|
);
|
|
```
|