From 45fb4b11ad51bb38306765b11a6747402e382cee Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Sat, 20 Feb 2021 17:37:33 +0800
Subject: [PATCH] fix

---
 hive-app/components/uni-popup/uni-popup.vue |   21 +++++++++++++++------
 1 files changed, 15 insertions(+), 6 deletions(-)

diff --git a/hive-app/components/uni-popup/uni-popup.vue b/hive-app/components/uni-popup/uni-popup.vue
index ae40d03..7309a36 100644
--- a/hive-app/components/uni-popup/uni-popup.vue
+++ b/hive-app/components/uni-popup/uni-popup.vue
@@ -1,6 +1,6 @@
 <template>
 	<view v-if="showPopup" class="uni-popup" :class="[popupstyle]" @touchmove.stop.prevent="clear">
-		<uni-transition v-if="maskShow" class="uni-mask--hook" :mode-class="['fade']" :styles="maskClass" :duration="duration" :show="showTrans"
+		<uni-transition v-if="maskShow" :mode-class="['fade']" :styles="isShowMask?maskClass:maskClassHide" :duration="duration" :show="showTrans"
 		 @click="onTap" />
 		<uni-transition :mode-class="ani" :styles="transClass" :duration="duration" :show="showTrans" @click="onTap">
 			<view class="uni-popup__wrapper-box" @click.stop="clear">
@@ -50,6 +50,10 @@
 			maskClick: {
 				type: Boolean,
 				default: true
+			},
+			isShowMask: {
+				type: Boolean,
+				default: true
 			}
 		},
 		provide() {
@@ -72,11 +76,8 @@
 			 * 监听遮罩是否可点击
 			 * @param {Object} val
 			 */
-			maskClick: {
-				handler: function(val) {
-					this.mkclick = val
-				},
-				immediate: true
+			maskClick(val) {
+				this.mkclick = val
 			}
 		},
 		data() {
@@ -93,6 +94,14 @@
 					'right': 0,
 					'backgroundColor': 'rgba(0, 0, 0, 0.4)'
 				},
+				maskClassHide: {
+					'position': 'fixed',
+					'bottom': 0,
+					'top': 0,
+					'left': 0,
+					'right': 0,
+					'backgroundColor': 'rgba(0, 0, 0, 0)'
+				},
 				transClass: {
 					'position': 'fixed',
 					'left': 0,

--
Gitblit v1.9.1