You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
708 B
35 lines
708 B
9 years ago
|
---
|
||
9 years ago
|
order: 4
|
||
9 years ago
|
title:
|
||
|
zh-CN: 栅格卡片
|
||
7 years ago
|
en-US: Card in column
|
||
9 years ago
|
---
|
||
9 years ago
|
|
||
9 years ago
|
## zh-CN
|
||
|
|
||
9 years ago
|
在系统概览页面常常和栅格进行配合。
|
||
|
|
||
9 years ago
|
## en-US
|
||
|
|
||
7 years ago
|
Cards usually cooperate with grid column layout in overview page.
|
||
9 years ago
|
|
||
8 years ago
|
````jsx
|
||
9 years ago
|
import { Card, Col, Row } from 'antd';
|
||
|
|
||
|
ReactDOM.render(
|
||
9 years ago
|
<div style={{ background: '#ECECEC', padding: '30px' }}>
|
||
8 years ago
|
<Row gutter={16}>
|
||
|
<Col span={8}>
|
||
9 years ago
|
<Card title="Card title" bordered={false}>Card content</Card>
|
||
9 years ago
|
</Col>
|
||
8 years ago
|
<Col span={8}>
|
||
9 years ago
|
<Card title="Card title" bordered={false}>Card content</Card>
|
||
9 years ago
|
</Col>
|
||
8 years ago
|
<Col span={8}>
|
||
9 years ago
|
<Card title="Card title" bordered={false}>Card content</Card>
|
||
9 years ago
|
</Col>
|
||
|
</Row>
|
||
|
</div>
|
||
9 years ago
|
, mountNode);
|
||
|
````
|