diff --git a/apps/ai-game-creator-shell/src/view/ui-editor/components/UiTreePanel.tsx b/apps/ai-game-creator-shell/src/view/ui-editor/components/UiTreePanel.tsx index 0936dbf28..6bba111ce 100644 --- a/apps/ai-game-creator-shell/src/view/ui-editor/components/UiTreePanel.tsx +++ b/apps/ai-game-creator-shell/src/view/ui-editor/components/UiTreePanel.tsx @@ -103,6 +103,7 @@ function TreeRow({ const data = node.data; const nodeLabel = data.metadata.name || '未命名节点'; const isVisible = isNodeVisible(data.id); + const componentCount = data.component ? 1 : 0; return (