iter(g93): 树形组件支持按标签搜索
This commit is contained in:
+2
-1
@@ -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' }] },
|
||||
|
||||
Reference in New Issue
Block a user