This commit is contained in:
wfz
2025-12-21 21:26:20 +08:00
parent c6077ff2ad
commit 3c38f1bee9
13 changed files with 933 additions and 201 deletions

View File

@@ -2,6 +2,7 @@
import { defineAsyncComponent, markRaw, computed, watch } from 'vue'
import { useDesignStore } from '../../stores/designStore'
import { useVueFileStore } from '../../stores/vueFileStore'
import InteractiveWrapper from './InteractiveWrapper.vue'
import config from './index.json'
const designStore = useDesignStore()
@@ -72,9 +73,9 @@ watch(() => vueFileStore.selectedFilePath, (newPath) => {
</span>
</div>
<div class="center-body">
<!-- 动态渲染选中的Vue页面 -->
<!-- 动态渲染选中的Vue页面使用InteractiveWrapper注入交互事件 -->
<div v-if="selectedPageComponent" class="page-preview">
<component :is="selectedPageComponent" />
<InteractiveWrapper :component="selectedPageComponent" />
</div>
<!-- 原有的设计组件实例列表 -->