【修复】修复点击蒙层或按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"
:width="modalWidth"
:wrap-class-name="wrapClassName + fullscreenClass"
@cancel="handleCancel"
>
<template #closeIcon>
<template v-if="fullscreen">
@ -16,7 +17,7 @@
</a-tooltip>
</template>
<a-tooltip title="关闭" placement="bottom">
<close-outlined @click="handleCancel" />
<close-outlined />
</a-tooltip>
</template>
@ -155,9 +156,6 @@
changeWidth(width) {
this.modalWidth = width
},
getPopupContainer(trigger) {
return trigger?.parentElement ?? document.body
},
handleFullScreen(e) {
e?.stopPropagation()
e?.preventDefault()