|
|
|
---
|
|
|
|
order: 6
|
|
|
|
title:
|
|
|
|
zh-CN: 网格型内嵌卡片
|
|
|
|
en-US: Grid card
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
一种常见的卡片内容区隔模式。
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
Grid style card content.
|
|
|
|
|
|
|
|
```tsx
|
|
|
|
import { Card } from 'antd';
|
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
const gridStyle: React.CSSProperties = {
|
|
|
|
width: '25%',
|
|
|
|
textAlign: 'center',
|
|
|
|
};
|
|
|
|
|
|
|
|
const App: React.FC = () => (
|
|
|
|
<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>
|
|
|
|
);
|
|
|
|
|
|
|
|
export default App;
|
|
|
|
```
|