【修复】修复点击蒙层或按esc无法关闭对话框问题

pull/175/head
lingsoul 2023-10-19 16:04:27 +08:00 committed by 小诺
parent 8011b37e93
commit 3414428c5e
1 changed files with 2 additions and 4 deletions

View File

@ -5,6 +5,7 @@
v-bind="$props" v-bind="$props"
:width="modalWidth" :width="modalWidth"
:wrap-class-name="wrapClassName + fullscreenClass" :wrap-class-name="wrapClassName + fullscreenClass"
@cancel="handleCancel"
> >
<template #closeIcon> <template #closeIcon>
<template v-if="fullscreen"> <template v-if="fullscreen">
@ -16,7 +17,7 @@
</a-tooltip> </a-tooltip>
</template> </template>
<a-tooltip title="关闭" placement="bottom"> <a-tooltip title="关闭" placement="bottom">
<close-outlined @click="handleCancel" /> <close-outlined />
</a-tooltip> </a-tooltip>
</template> </template>
@ -155,9 +156,6 @@
changeWidth(width) { changeWidth(width) {
this.modalWidth = width this.modalWidth = width
}, },
getPopupContainer(trigger) {
return trigger?.parentElement ?? document.body
},
handleFullScreen(e) { handleFullScreen(e) {
e?.stopPropagation() e?.stopPropagation()
e?.preventDefault() e?.preventDefault()