mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-16 09:39:10 +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
38 lines
734 B
Markdown
38 lines
734 B
Markdown
---
|
|
order: 6
|
|
title:
|
|
zh-CN: 网格型内嵌卡片
|
|
en-US: Grid card
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
一种常见的卡片内容区隔模式。
|
|
|
|
## en-US
|
|
|
|
Grid style card content.
|
|
|
|
```jsx
|
|
import { Card } from 'antd';
|
|
|
|
const gridStyle = {
|
|
width: '25%',
|
|
textAlign: 'center',
|
|
};
|
|
|
|
export default () => (
|
|
<Card title="Card Title">
|
|
<Card.Grid style={gridStyle}>Content</Card.Grid>
|
|
<Card.Grid hoverable={false} style={gridStyle}>
|
|
Content
|
|
</Card.Grid>
|
|
<Card.Grid style={gridStyle}>Content</Card.Grid>
|
|
<Card.Grid style={gridStyle}>Content</Card.Grid>
|
|
<Card.Grid style={gridStyle}>Content</Card.Grid>
|
|
<Card.Grid style={gridStyle}>Content</Card.Grid>
|
|
<Card.Grid style={gridStyle}>Content</Card.Grid>
|
|
</Card>
|
|
);
|
|
```
|