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