组件/Empty 空状态
自 1.0.0BETA

Empty 空状态

统一的空状态组件。

该页面由 AI 迁移生成,请谨慎使用

内容已迁移完成,但仍建议结合源码和人工评审结果使用。

Empty 空状态

统一的空状态组件。

基础用法

Empty

示例即将加载...
<template>
  <TxEmpty title="No results" description="Try changing filters." />
</template>

带操作

Empty (action)

示例即将加载...
<template>
  <TxEmpty title="No items" description="Create your first item.">
    <template #action>
      <TxButton>New</TxButton>
    </template>
  </TxEmpty>
</template>

API

Props

属性名类型默认值说明
titlestring'Nothing here'标题
descriptionstring''描述
iconClassstring'i-carbon-incomplete'图标 class
compactbooleanfalse紧凑模式