2018-12-26 16:01:00 +08:00
|
|
|
---
|
|
|
|
order: 2
|
|
|
|
title:
|
|
|
|
zh-CN: 自定义
|
|
|
|
en-US: Customize
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
2019-03-18 12:01:38 +08:00
|
|
|
自定义图片链接、图片大小、描述、附属内容。
|
2018-12-26 16:01:00 +08:00
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
2019-03-18 12:01:38 +08:00
|
|
|
Customize image source, image size, description and extra content.
|
2018-12-26 16:01:00 +08:00
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
```tsx
|
2022-05-23 14:37:16 +08:00
|
|
|
import { Button, Empty } from 'antd';
|
2022-05-19 09:46:26 +08:00
|
|
|
import React from 'react';
|
2018-12-26 16:01:00 +08:00
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
const App: React.FC = () => (
|
2018-12-26 16:01:00 +08:00
|
|
|
<Empty
|
2020-01-09 15:28:52 +08:00
|
|
|
image="https://gw.alipayobjects.com/zos/antfincdn/ZHrcdLPrvN/empty.svg"
|
2019-03-20 17:45:35 +08:00
|
|
|
imageStyle={{
|
2019-04-03 18:59:02 +08:00
|
|
|
height: 60,
|
2019-03-20 17:45:35 +08:00
|
|
|
}}
|
2018-12-26 16:01:00 +08:00
|
|
|
description={
|
|
|
|
<span>
|
|
|
|
Customize <a href="#API">Description</a>
|
|
|
|
</span>
|
|
|
|
}
|
|
|
|
>
|
2019-01-29 12:21:03 +08:00
|
|
|
<Button type="primary">Create Now</Button>
|
2022-04-03 23:27:45 +08:00
|
|
|
</Empty>
|
2018-12-26 16:01:00 +08:00
|
|
|
);
|
2022-05-19 09:46:26 +08:00
|
|
|
|
|
|
|
export default App;
|
2018-12-26 16:01:00 +08:00
|
|
|
```
|