2016-03-31 09:40:55 +08:00
|
|
|
---
|
2016-04-10 15:38:52 +08:00
|
|
|
order: 4
|
2016-05-26 17:46:55 +08:00
|
|
|
title:
|
|
|
|
zh-CN: 栅格卡片
|
2017-07-07 13:36:54 +08:00
|
|
|
en-US: Card in column
|
2016-03-31 09:40:55 +08:00
|
|
|
---
|
2016-02-20 16:40:18 +08:00
|
|
|
|
2016-05-26 17:46:55 +08:00
|
|
|
## zh-CN
|
|
|
|
|
2016-02-20 16:40:18 +08:00
|
|
|
在系统概览页面常常和栅格进行配合。
|
|
|
|
|
2016-05-26 17:46:55 +08:00
|
|
|
## en-US
|
|
|
|
|
2017-07-07 13:36:54 +08:00
|
|
|
Cards usually cooperate with grid column layout in overview page.
|
2016-05-26 17:46:55 +08:00
|
|
|
|
2019-05-07 14:57:32 +08:00
|
|
|
```jsx
|
2016-02-20 16:40:18 +08:00
|
|
|
import { Card, Col, Row } from 'antd';
|
|
|
|
|
|
|
|
ReactDOM.render(
|
2019-12-23 20:07:56 +08:00
|
|
|
<div className="site-card-wrapper">
|
2017-06-15 15:34:47 +08:00
|
|
|
<Row gutter={16}>
|
|
|
|
<Col span={8}>
|
2019-05-07 14:57:32 +08:00
|
|
|
<Card title="Card title" bordered={false}>
|
|
|
|
Card content
|
|
|
|
</Card>
|
2016-04-10 15:38:52 +08:00
|
|
|
</Col>
|
2017-06-15 15:34:47 +08:00
|
|
|
<Col span={8}>
|
2019-05-07 14:57:32 +08:00
|
|
|
<Card title="Card title" bordered={false}>
|
|
|
|
Card content
|
|
|
|
</Card>
|
2016-04-10 15:38:52 +08:00
|
|
|
</Col>
|
2017-06-15 15:34:47 +08:00
|
|
|
<Col span={8}>
|
2019-05-07 14:57:32 +08:00
|
|
|
<Card title="Card title" bordered={false}>
|
|
|
|
Card content
|
|
|
|
</Card>
|
2016-04-10 15:38:52 +08:00
|
|
|
</Col>
|
|
|
|
</Row>
|
2018-06-27 15:55:04 +08:00
|
|
|
</div>,
|
2019-05-07 14:57:32 +08:00
|
|
|
mountNode,
|
2018-11-28 15:00:03 +08:00
|
|
|
);
|
2019-05-07 14:57:32 +08:00
|
|
|
```
|
2019-12-23 20:07:56 +08:00
|
|
|
|
2020-06-05 20:11:25 +08:00
|
|
|
<style>
|
2019-12-23 20:07:56 +08:00
|
|
|
.site-card-wrapper {
|
|
|
|
padding: 30px;
|
2020-06-05 20:11:25 +08:00
|
|
|
background: #ececec;
|
2019-12-23 20:07:56 +08:00
|
|
|
}
|
|
|
|
|
2020-06-05 20:11:25 +08:00
|
|
|
[data-theme="dark"] .site-card-wrapper {
|
|
|
|
background: #303030;
|
|
|
|
}
|
2019-12-23 20:07:56 +08:00
|
|
|
</style>
|