mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-02 07:39:36 +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
52 lines
888 B
Markdown
52 lines
888 B
Markdown
---
|
|
order: 4
|
|
title:
|
|
zh-CN: 栅格卡片
|
|
en-US: Card in column
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
在系统概览页面常常和栅格进行配合。
|
|
|
|
## en-US
|
|
|
|
Cards usually cooperate with grid column layout in overview page.
|
|
|
|
```jsx
|
|
import { Card, Col, Row } from 'antd';
|
|
|
|
export default () => (
|
|
<div className="site-card-wrapper">
|
|
<Row gutter={16}>
|
|
<Col span={8}>
|
|
<Card title="Card title" bordered={false}>
|
|
Card content
|
|
</Card>
|
|
</Col>
|
|
<Col span={8}>
|
|
<Card title="Card title" bordered={false}>
|
|
Card content
|
|
</Card>
|
|
</Col>
|
|
<Col span={8}>
|
|
<Card title="Card title" bordered={false}>
|
|
Card content
|
|
</Card>
|
|
</Col>
|
|
</Row>
|
|
</div>
|
|
);
|
|
```
|
|
|
|
<style>
|
|
.site-card-wrapper {
|
|
padding: 30px;
|
|
background: #ececec;
|
|
}
|
|
|
|
[data-theme="dark"] .site-card-wrapper {
|
|
background: #303030;
|
|
}
|
|
</style>
|