From 7a40728d5d7645fa3016553c080aea7c564e5066 Mon Sep 17 00:00:00 2001 From: yuhe <1641284022@qq.com> Date: Mon, 9 Sep 2024 14:53:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(popup):=E4=BF=AE=E5=A4=8Duni-popup=E5=9C=A8?= =?UTF-8?q?android=E4=B8=8A=E7=9A=84=E9=87=8D=E5=A4=8D=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E5=BC=B9=E5=87=BA=E4=BD=8D=E7=BD=AE=E4=B8=8D=E6=AD=A3=E7=A1=AE?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/uni-popup/uni-popup.vue | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/uni_modules/uni-popup/components/uni-popup/uni-popup.vue b/uni_modules/uni-popup/components/uni-popup/uni-popup.vue index 8349e994..f0b99e31 100644 --- a/uni_modules/uni-popup/components/uni-popup/uni-popup.vue +++ b/uni_modules/uni-popup/components/uni-popup/uni-popup.vue @@ -350,6 +350,7 @@ this.showPopup = true this.showTrans = true this.$nextTick(() => { + this.showPoptrans() if (this.messageChild && this.type === 'message') { this.messageChild.timerClose() } @@ -372,8 +373,7 @@ } // TODO 兼容 type 属性 ,后续会废弃 if (type) return - this.showPopup = true - this.showTrans = true + this.showPoptrans() }, /** * 中间弹出样式处理 @@ -403,8 +403,7 @@ } // TODO 兼容 type 属性 ,后续会废弃 if (type) return - this.showPopup = true - this.showTrans = true + this.showPoptrans() }, left(type) { this.popupstyle = 'left' @@ -423,8 +422,7 @@ } // TODO 兼容 type 属性 ,后续会废弃 if (type) return - this.showPopup = true - this.showTrans = true + this.showPoptrans() }, right(type) { this.popupstyle = 'right' @@ -443,8 +441,13 @@ } // TODO 兼容 type 属性 ,后续会废弃 if (type) return - this.showPopup = true - this.showTrans = true + this.showPoptrans() + }, + showPoptrans(){ + this.$nextTick(()=>{ + this.showPopup = true + this.showTrans = true + }) } } }