2017-08-14 21:43:32 +08:00
|
|
|
---
|
|
|
|
order: 3
|
|
|
|
title:
|
|
|
|
zh-CN: 更灵活的内容展示
|
|
|
|
en-US: Customized content
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
可以利用 `Card.Meta` 支持更灵活的内容。
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
You can use `Card.Meta` to support more flexible content.
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
```tsx
|
2017-08-14 21:43:32 +08:00
|
|
|
import { Card } from 'antd';
|
2022-05-23 14:37:16 +08:00
|
|
|
import React from 'react';
|
2018-06-27 15:55:04 +08:00
|
|
|
|
2017-08-14 21:43:32 +08:00
|
|
|
const { Meta } = Card;
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
const App: React.FC = () => (
|
2017-08-14 21:43:32 +08:00
|
|
|
<Card
|
2017-09-27 21:57:18 +08:00
|
|
|
hoverable
|
2017-08-14 21:43:32 +08:00
|
|
|
style={{ width: 240 }}
|
|
|
|
cover={<img alt="example" src="https://os.alipayobjects.com/rmsportal/QBnOOoLaAfKPirc.png" />}
|
|
|
|
>
|
2019-05-07 14:57:32 +08:00
|
|
|
<Meta title="Europe Street beat" description="www.instagram.com" />
|
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
|
|
|
```
|