# Empty 空状态 ### 介绍 空状态时的占位提示 ### 安装 ```javascript import { createApp } from 'vue'; // vue import { Empty } from '@nutui/nutui'; // taro import { Empty } from '@nutui/nutui-taro'; const app = createApp(); app.use(Empty); ``` ### 基础用法 ```html ``` ### 图片类型,内置 3 个 ```html ``` ### 自定义图片 ```html ``` ### 底部内容 ```html
重试
``` ## API ### Props | 参数 | 说明 | 类型 | 默认值 | |--------------|----------------------------------|--------|------------------| | image | 图片类型,可选值为 error network search,支持传入图片 URL | String | empty | | image-size | 图片大小,Number 类型单位为 px | Number \| String | - | | description | 图片下方的描述文字 | String | 无内容 | ### Slots | 事件名 | 说明 | |--------|----------------| | default | 自定义底部内容 | | image | 自定义图片 | | description | 自定义描述文字 |