Skip to content

AtEmpty

沈孟平
最后更新于 2025-11-12 10:24:20

相比 NEmpty,主要增加了 height 属性,若没传递 height,则会自动适应容器高度,并且会居中显示空状态组件。

代码演示

基础示例

自定义图标

API

TIP

AtEmptyProps 继承自 NaiveUI Empty Props

AtEmpty Props

名称类型默认值说明版本
heightstringundefined高度样式
descriptionstring'暂无数据'描述信息

AtEmpty Slots

名称参数说明版本
default()代替 description
icon()自定义图标
extra()扩展的内容

changelog

32d46 - feat(AtEmpty): 添加插槽渲染 `description` on 2024/11/26
dc74c - feat(AtEmpty): add `extra` slot on 2024/11/25
87485 - feat(AtEmpty): add `description` slot on 2024/11/25
7e055 - feat(AtEmpty): add `description` slot on 2024/11/25

贡献者

Last updated: