Appearance
AtEmpty
沈孟平
最后更新于 2025-11-12 10:24:20
相比 NEmpty,主要增加了 height 属性,若没传递 height,则会自动适应容器高度,并且会居中显示空状态组件。
代码演示
基础示例
自定义图标
API
TIP
AtEmptyProps 继承自 NaiveUI Empty Props
AtEmpty Props
| 名称 | 类型 | 默认值 | 说明 | 版本 |
|---|---|---|---|---|
| height | string | undefined | 高度样式 | |
| description | string | '暂无数据' | 描述信息 |
AtEmpty Slots
| 名称 | 参数 | 说明 | 版本 |
|---|---|---|---|
| default | () | 代替 description | |
| icon | () | 自定义图标 | |
| extra | () | 扩展的内容 |