mirror of https://gitee.com/xiaonuobase/snowy
【修复】修复点击蒙层或按esc无法关闭对话框问题
parent
8011b37e93
commit
3414428c5e
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue