iter(g93): 树形组件支持按标签搜索

This commit is contained in:
HIsheR
2026-10-26 13:12:28 +08:00
parent 1b106168a7
commit 90bba1c0b6
8 changed files with 83 additions and 9 deletions
+2 -1
View File
@@ -691,11 +691,12 @@ const content = h(
section(
'sec-tree',
'树形',
'tree:递归节点,箭头展开/收起、点标签选中;键盘 Enter 选中、→ 展开、← 收起、↑↓/Home/End 行间移动,整棵树只占一个 Tab 停点(roving tabindex),禁用节点不响应。',
'tree:递归节点,箭头展开/收起、点标签选中;键盘 Enter 选中、→ 展开、← 收起、↑↓/Home/End 行间移动,整棵树只占一个 Tab 停点(roving tabindex);顶部搜索按标签过滤并保留命中父链。',
h(
'div',
{ class: 'row' },
tree({
searchable: true,
nodes: [
{ key: 'src', label: 'src', children: [
{ key: 'core', label: 'core', children: [{ key: 'frame', label: 'frame' }, { key: 'table', label: 'table-core' }] },