refactor: remove close button and AI button from NodeEditor header

This commit is contained in:
2026-06-16 17:31:08 +08:00
parent 6bd61ae522
commit a40cc8874a
2 changed files with 0 additions and 4 deletions

View File

@@ -138,7 +138,6 @@ onMounted(() => restoreOrLoad())
:scene="store.selectedScene"
:scene-list="editor.sceneList.value"
@delete-scene="delNode"
@close="store.selectedNodeId = null"
/>
</div>

View File

@@ -10,7 +10,6 @@ const props = defineProps<{
const emit = defineEmits<{
deleteScene: [id: string]
close: []
}>()
const store = useEditorStore()
@@ -62,10 +61,8 @@ function onBlur() {
<div class="header-actions">
<span v-if="saved" class="saved-hint">已保存</span>
<span v-if="errorMsg" class="error-hint">JSON 错误: {{ errorMsg }}</span>
<button class="icon-btn" @click="store.showAIPanel = true" title="AI 助手">🤖</button>
<button class="icon-btn" @click="store.nodeEditorCollapsed = true" title="折叠"></button>
<button v-if="scene" class="icon-btn danger" @click="emit('deleteScene', scene.id)" title="删除场景">🗑</button>
<button v-if="scene" class="icon-btn" @click="emit('close')" title="关闭"></button>
</div>
</div>