深度画布返回保存

This commit is contained in:
lzp
2026-03-30 16:59:13 +08:00
parent 1789792067
commit 8a88e0dd1d
6 changed files with 29 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
<template>
<fullscreen-dialog v-model="dialogVisible" @close="onClose" hide-destroy>
<div class="canvas-box">
<depth-canvas :config="config" @workbench="onWorkbench" />
<depth-canvas ref="depthCanvasRef" :config="config" @workbench="onWorkbench" />
</div>
</fullscreen-dialog>
</template>
@@ -22,6 +22,7 @@
onWorkbench(options) {},
onClose() {}
})
const depthCanvasRef = ref(null)
const open = async (options) => {
config.value = options
@@ -61,8 +62,9 @@
}
// 关闭
const onClose = () => {
dialogVisible.value = false
config.value.onClose?.()
depthCanvasRef.value.onWorkbench()
// dialogVisible.value = false
// config.value.onClose?.()
}
defineExpose({