Skip to content
数据展示

NnEmpty 空状态

空数据说明与操作区。

示例

API

Props

名称类型默认值说明
descriptionstring'暂无数据'空状态说明。
simplebooleanfalse使用紧凑布局并隐藏内建插图;自定义 image 插槽不受影响,提供后仍会显示。

Slots

名称作用域参数说明
image替换内建插图;外层标记为 aria-hidden,仅用于装饰性内容。
description替换说明。
default可选操作区;只有提供插槽时才渲染。

Released under the MIT License.