feat: publish via dialog
This commit is contained in:
parent
cd2a06e969
commit
83c0fafbec
9 changed files with 42 additions and 6 deletions
|
@ -2,6 +2,11 @@
|
|||
const { modelValue } = defineModel<{
|
||||
modelValue: boolean
|
||||
}>()
|
||||
|
||||
let init = $ref(false)
|
||||
watchOnce(modelValue, () => {
|
||||
init = true
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
@ -23,7 +28,7 @@ const { modelValue } = defineModel<{
|
|||
"
|
||||
:class="modelValue ? 'opacity-100' : 'opacity-0'"
|
||||
>
|
||||
<slot />
|
||||
<slot v-if="init" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue