修复跨树节点选择同步界面图

选择节点时同步激活所属设计图
This commit is contained in:
2026-09-18 16:28:49 +08:00
parent 3371337346
commit 08c3b89b67
@@ -91,7 +91,10 @@ export function InputSidebar({ input }: { input: UiEditorInputProjection }) {
// the highlight before it can be painted. Only mutate selection
// state when the target actually differs from the current one.
const sameNode = input.selectedNodeId === nodeId;
if (!sameNode) input.selectNode(nodeId);
if (!sameNode) {
input.selectDesignImage(_treeId);
input.selectNode(nodeId);
}
}}
onToggleNodeVisibility={(nodeId) =>
input.toggleNodePreviewVisibility(nodeId)