This commit is contained in:
lzp
2026-03-17 09:56:58 +08:00
parent 04be0b5930
commit fbab5f4e8d
5 changed files with 25 additions and 11 deletions

View File

@@ -11,10 +11,20 @@
import depthCanvas from './depth-canvas.vue'
import { ref } from 'vue'
const dialogVisible = ref(false)
const config = ref({})
const config = ref({
width: 750,
height: 600,
})
const open = (options) => {
dialogVisible.value = true
config.value = options || {}
// config.value = options || {}
const defaultConfig = {
canvasWidth: 750,
canvasHeight: 600,
canvasViewWidth: 750,
canvasViewHeight: 600,
}
config.value = { ...defaultConfig, ...options || {} }
}
const close = () => {
dialogVisible.value = false