Skip to content

Empty 空状态 ​

数据为空时的占位提示,支持自定义描述与插槽。

基础用法 ​

vue
<template>
  <KbEmpty description="暂无数据" />
</template>

暂无数据

API ​

Props ​

属性类型默认值说明
descriptionstring'暂无数据'描述文案
imagestring''自定义图片 URL

插槽 ​

名称说明
default自定义占位内容
description自定义描述