From 6e54af776db885ad1a22ec582bdc97d7e1273c6c Mon Sep 17 00:00:00 2001 From: queenwuli <942534046@qq.com> Date: Wed, 13 Jan 2021 17:31:30 +0800 Subject: [PATCH] 系统优化 --- hive-app/components/uni-popup/uni-popup.vue | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/hive-app/components/uni-popup/uni-popup.vue b/hive-app/components/uni-popup/uni-popup.vue index 2d15d5f..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" :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() { @@ -90,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