微调
This commit is contained in:
@@ -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 })
|
||||
|
||||
Reference in New Issue
Block a user