fix(sidebar): 修复搜索筛选树分组折叠在 scope-only 过滤下空操作
* 🐛 fix(sidebar): 修复搜索筛选树的分组折叠与重复点击切换 - 在保留搜索子树时应用临时折叠状态,避免空分组重新展开 - 仅在搜索筛选期间记录节点折叠操作 - 允许分组标签双击后的连续点击正常切换展开状态 - 补充侧边栏搜索及节点点击行为测试 * fix(sidebar): collapseAllTreeNodes 按 scope-only 过滤填充 searchCollapsedIds --------- Co-authored-by: t8y2 <t8y2@users.noreply.github.com> Co-authored-by: skyler <1156263951@qq.com>
This commit is contained in:
7 files changed
+66
-8
No files matched your search
@@ -43,7 +43,8 @@ export function treeNodeRowAction(type: TreeNodeType, canExpand: boolean, activa
|
||||
return "none";
|
||||
}
|
||||
|
||||
export function shouldRunTreeNodeRowAction(action: TreeNodeRowAction, clickDetail: number): boolean {
|
||||
export function shouldRunTreeNodeRowAction(action: TreeNodeRowAction, clickDetail: number, allowRepeatedToggle = false): boolean {
|
||||
if (action === "toggle" && allowRepeatedToggle) return true;
|
||||
// Double-clicks emit a second click before dblclick; leave that event to the
|
||||
// double-click handler so expandable database rows do not toggle first.
|
||||
return action !== "none" && clickDetail <= 1;
|
||||
|
||||
Reference in new issue
Block a user