组件/SearchEmpty 搜索空态
自 1.0.0BETA

SearchEmpty 搜索空态

用于搜索无结果时的状态提示。

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

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

SearchEmpty 搜索空态

TxSearchEmptyTxEmptyState 的快捷封装,自动设置 variant="search-empty",用于搜索无结果时的状态提示。

基础用法

SearchEmpty

示例即将加载...
<template>
  <TxSearchEmpty description="Try another keyword or filter." />
</template>

API

TxSearchEmpty 继承 TxEmptyState 的全部 Props(除 variant)、Slots 和 Events,详见 EmptyState

交互契约

  • TxSearchEmpty 始终向 TxEmptyState 透传 variant="search-empty"
  • 组件不额外改写 titledescriptionsurface 或 action 配置;显式 props 会原样透传。
  • icontitledescriptionactions 插槽会原样转发给 TxEmptyState