修复跨树节点选择同步界面图
选择节点时同步激活所属设计图
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user