iter(g32): tree 补 ↑↓/Home/End 行间导航

This commit is contained in:
HIsheR
2026-10-26 11:43:15 +08:00
parent e203c9ed5d
commit 097f79fa1e
5 changed files with 26 additions and 5 deletions
+8
View File
@@ -612,6 +612,14 @@
"acceptance": "tree({ nodes, expanded, selected, defaultExpandAll, onSelect }) 递归渲染 + 箭头展开收起 + 点选 + Enter/→/← 键盘 + 禁用不响应;组件数 40→41 三处计数同步;npm run check 全绿",
"status": "done",
"notes": "自补:组件补充;selected/expanded 信号均可外部受控"
},
{
"id": "g32",
"title": "tree 补 ↑↓/Home/End 行间导航",
"motivation": "tree 只支持 Enter/→/←,无法用键盘在节点间移动焦点,键盘用户仍得靠鼠标找行",
"acceptance": "↑↓ 在当前可见节点间移动、Home/End 到首末行,只改焦点不改选中,收起分支的子节点不参与遍历;npm run check 全绿",
"status": "open",
"notes": "自补:既有组件可用性细节"
}
]
}