# Empty 空状态
空状态时的占位提示。
# 基础用法
Copy
# 其他 Icon
Copy
# 自定义图片
通过设置 image 属性传入图片 URL。
Copy
# 图片尺寸
通过设置 image-size 属性来控制图片大小。
Copy
# 底部内容
使用默认插槽可在底部插入内容。
Copy
# Empty Attributes
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---|---|---|---|---|
| image | 图片地址 | string | — | — |
| image-size | 图片大小(宽度) | number | — | — |
| icon | 其他图标 | string | empty / 404 / collect-empty / connect-failed / list-empty / load-failed / message-empty / search-empty | empty |
| description | 文本描述 | string | — | — |
# Empty Slots
| Name | 说明 |
|---|---|
| default | 自定义底部内容 |
| image | 自定义图片 |
| description | 自定义描述文字 |