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 | 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