Skip to content

Commit a460d0b

Browse files
committed
fix: 修复 H5平台中间弹出后,点击内容,再点击遮罩无法关闭的Bug
1 parent fa653af commit a460d0b

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

uni_modules/uni-popup/changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## 1.4.4(2021-06-18)
2+
- 修复 H5平台中间弹出后,点击内容,再点击遮罩无法关闭的Bug
13
## 1.4.3(2021-06-08)
24
- 修复 错误的 watch 字段
35
- 修复 safeArea 属性不生效的问题

uni_modules/uni-popup/components/uni-popup/uni-popup.vue

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
<template>
22
<view v-if="showPopup" class="uni-popup" :class="[popupstyle, isDesktop ? 'fixforpc-z-index' : '']" @touchmove.stop.prevent="clear">
33
<view @touchstart="touchstart" >
4-
<uni-transition key="1" v-if="maskShow" name="mask" mode-class="fade" :styles="maskClass" :duration="duration" :show="showTrans" @click="onTap" />
4+
<uni-transition key="1" v-if="maskShow" name="mask" mode-class="fade" :styles="maskClass" :duration="duration" :show="showTrans" @click="onTap" />
5+
<uni-transition key="2" :mode-class="ani" name="content" :styles="transClass" :duration="duration" :show="showTrans" @click="onTap">
6+
<view class="uni-popup__wrapper" :style="{ backgroundColor: bg }" :class="[popupstyle]" @click="clear"><slot /></view>
7+
</uni-transition>
58
</view>
6-
7-
<uni-transition key="2" :mode-class="ani" name="content" :styles="transClass" :duration="duration" :show="showTrans" @touchstart="touchstart" @click="onTap">
8-
<view class="uni-popup__wrapper" :style="{ backgroundColor: bg }" :class="[popupstyle]" @click="clear"><slot /></view>
9-
</uni-transition>
109
<!-- #ifdef H5 -->
1110
<keypress v-if="maskShow" @esc="onTap" />
1211
<!-- #endif -->

uni_modules/uni-popup/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "uni-popup",
33
"displayName": "uni-popup 弹出层",
4-
"version": "1.4.3",
4+
"version": "1.4.4",
55
"description": " Popup 组件,提供常用的弹层",
66
"keywords": [
77
"uni-ui",

0 commit comments

Comments
 (0)