This commit is contained in:
sjl
2025-10-16 15:05:44 +08:00
parent 13c5baa74f
commit c04be0264a
3 changed files with 53 additions and 25 deletions

View File

@@ -47,6 +47,7 @@
:devIdList="devIdList"
:pqStandardDevList="pqStandardDevList"
:planIdKey="planIdKey"
@quitClicked="quitClicked"
></CompareTestPopup>
</template>
@@ -82,6 +83,14 @@ const { edges, setViewport } = useVueFlow({
}
})
const emit = defineEmits<{
(e: 'childEvent'): void // 添加转发事件
}>()
// 处理子组件事件并转发给爷爷组件
const quitClicked = () => {
emit('childEvent')
}
// 初始化时锁定画布位置
const onPaneReady = () => {
setViewport({ x: 0, y: 0, zoom: 1 })