2017-07-07 13:36:54 +08:00
|
|
|
---
|
|
|
|
order: 6
|
|
|
|
title:
|
|
|
|
zh-CN: 网格型内嵌卡片
|
|
|
|
en-US: Grid card
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
2017-08-08 21:22:09 +08:00
|
|
|
一种常见的卡片内容区隔模式。
|
2017-07-07 13:36:54 +08:00
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
Grid style card content.
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
```tsx
|
2017-07-07 13:36:54 +08:00
|
|
|
import { Card } from 'antd';
|
2022-05-21 22:14:15 +08:00
|
|
|
import React from 'react';
|
2017-07-07 13:36:54 +08:00
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
const gridStyle: React.CSSProperties = {
|
2017-07-07 13:36:54 +08:00
|
|
|
width: '25%',
|
|
|
|
textAlign: 'center',
|
|
|
|
};
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
const App: React.FC = () => (
|
2017-08-14 09:52:16 +08:00
|
|
|
<Card title="Card Title">
|
2017-08-08 21:21:49 +08:00
|
|
|
<Card.Grid style={gridStyle}>Content</Card.Grid>
|
2019-08-25 16:00:47 +08:00
|
|
|
<Card.Grid hoverable={false} style={gridStyle}>
|
|
|
|
Content
|
|
|
|
</Card.Grid>
|
2017-08-08 21:21:49 +08:00
|
|
|
<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>
|
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
|
|
|
```
|