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