diff --git a/components/modal/ModalContainer.vue b/components/modal/ModalContainer.vue
index f8e72c28..b0e0176a 100644
--- a/components/modal/ModalContainer.vue
+++ b/components/modal/ModalContainer.vue
@@ -1,4 +1,5 @@
@@ -36,9 +46,16 @@ useEventListener('keydown', (e: KeyboardEvent) => {
-
+
-
+
(), {
keepAlive: false,
})
-const emits = defineEmits<{
+const emit = defineEmits<{
/** v-model dialog visibility */
(event: 'update:modelValue', value: boolean): void
+ (event: 'close',): void
}>()
-const visible = useVModel(props, 'modelValue', emits, { passive: true })
+const visible = useVModel(props, 'modelValue', emit, { passive: true })
const deactivated = useDeactivated()
const route = useRoute()
@@ -75,6 +76,7 @@ defineExpose({
/** close the dialog */
function close() {
visible.value = false
+ emit('close')
}
function clickMask() {
diff --git a/components/publish/PublishWidget.vue b/components/publish/PublishWidget.vue
index 23e0c77d..e97601a9 100644
--- a/components/publish/PublishWidget.vue
+++ b/components/publish/PublishWidget.vue
@@ -1,5 +1,5 @@