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.
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
```tsx
|
2017-08-09 14:34:10 +08:00
|
|
|
import { Card } from 'antd';
|
2022-05-21 22:14:15 +08:00
|
|
|
import React from 'react';
|
2017-08-09 14:34:10 +08:00
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
const App: React.FC = () => (
|
2017-08-14 09:52:16 +08:00
|
|
|
<Card title="Card title">
|
2019-05-07 14:57:32 +08:00
|
|
|
<Card type="inner" title="Inner Card title" extra={<a href="#">More</a>}>
|
2017-08-09 14:34:10 +08:00
|
|
|
Inner Card content
|
|
|
|
</Card>
|
|
|
|
<Card
|
|
|
|
style={{ marginTop: 16 }}
|
|
|
|
type="inner"
|
|
|
|
title="Inner Card title"
|
|
|
|
extra={<a href="#">More</a>}
|
|
|
|
>
|
|
|
|
Inner Card content
|
|
|
|
</Card>
|
2022-04-03 23:27:45 +08:00
|
|
|
</Card>
|
2018-11-28 15:00:03 +08:00
|
|
|
);
|
2022-05-19 09:46:26 +08:00
|
|
|
|
|
|
|
export default App;
|
2019-05-07 14:57:32 +08:00
|
|
|
```
|