You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
502 B
27 lines
502 B
6 years ago
|
---
|
||
|
category: Components
|
||
|
subtitle: 空状态
|
||
|
type: 数据展示
|
||
|
title: Empty
|
||
|
cols: 1
|
||
|
---
|
||
|
|
||
|
空状态时的展示占位图。
|
||
|
|
||
|
## 何时使用
|
||
|
|
||
|
当目前没有数据时,用于显式的用户提示。
|
||
|
|
||
|
## API
|
||
|
|
||
|
```jsx
|
||
|
<Empty>
|
||
|
<Button>创建</Button>
|
||
|
</Empty>
|
||
|
```
|
||
|
|
||
|
| 参数 | 说明 | 类型 | 默认值 |
|
||
|
| --- | --- | --- | --- |
|
||
|
| description | 自定义描述内容 | string \| ReactNode | - |
|
||
|
| image | 设置显示图片,为 string 时表示自定义图片地址 | string \| ReactNode | false |
|