mirror of
https://gitee.com/xiaonuobase/snowy.git
synced 2026-03-22 10:47:16 +08:00
【修复】修复点击蒙层或按esc无法关闭对话框问题
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user