fix: modal init state
This commit is contained in:
parent
00c9314580
commit
5788a12d59
|
@ -3,7 +3,7 @@ const { modelValue } = defineModel<{
|
|||
modelValue: boolean
|
||||
}>()
|
||||
|
||||
let init = $ref(modelValue || false)
|
||||
let init = $ref(modelValue)
|
||||
watchOnce(modelValue, () => {
|
||||
init = true
|
||||
})
|
||||
|
|
|
@ -39,7 +39,7 @@ const transform = computed(() => {
|
|||
}
|
||||
})
|
||||
|
||||
let init = $ref(false)
|
||||
let init = $ref(modelValue)
|
||||
watchOnce(modelValue, () => {
|
||||
init = true
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue