iter(g119): 空状态支持自定义图标

This commit is contained in:
HIsheR
2026-10-26 14:12:36 +08:00
parent c67b167f44
commit 176504b6c4
7 changed files with 30 additions and 7 deletions
+1 -1
View File
@@ -577,7 +577,7 @@ const content = h(
button({ label: '切换数据态', onClick: () => noResult(!noResult()) }),
),
() => (noResult()
? empty({ title: '暂无匹配结果', description: '试试放宽筛选条件,或清空关键词重新搜索。', action: button({ label: '重置筛选', variant: 'ghost', onClick: () => noResult(false) }) })
? empty({ title: '暂无匹配结果', description: '试试放宽筛选条件,或清空关键词重新搜索。', icon: '🔍', action: button({ label: '重置筛选', variant: 'ghost', onClick: () => noResult(false) }) })
: card({ title: '搜索结果' }, h('p', null, '这里展示命中的数据列表。'))),
),
section(