From 876e82bebd4340c59ab597194636f9cd172a0449 Mon Sep 17 00:00:00 2001 From: HRK <119110706+18148764734@users.noreply.github.com> Date: Tue, 20 Feb 2024 15:04:21 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=BE=AE=E4=BF=A1=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8Funi-popup=20center=E5=8A=A8=E7=94=BB=E5=87=BA=E7=8E=B0?= =?UTF-8?q?=E6=96=87=E5=AD=97=E5=90=91=E4=B8=8A=E9=97=AA=E5=8A=A8bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uni-popup/changelog.md | 2 ++ uni_modules/uni-popup/components/uni-popup/uni-popup.vue | 8 +++++++- uni_modules/uni-popup/package.json | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/uni_modules/uni-popup/changelog.md b/uni_modules/uni-popup/changelog.md index b65a65ab..b4bfd61f 100644 --- a/uni_modules/uni-popup/changelog.md +++ b/uni_modules/uni-popup/changelog.md @@ -1,3 +1,5 @@ +## 1.8.8(2024-02-20) +- 修复 uni-popup 在微信小程序下出现文字向上闪动的bug ## 1.8.7(2024-02-02) - 新增 uni-popup-dialog 新增属性focus:input模式下,是否自动自动聚焦 ## 1.8.6(2024-01-30) 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 4fae089f..5d9e9d2a 100644 --- a/uni_modules/uni-popup/components/uni-popup/uni-popup.vue +++ b/uni_modules/uni-popup/components/uni-popup/uni-popup.vue @@ -359,7 +359,13 @@ */ center(type) { this.popupstyle = 'center' - this.ani = ['zoom-out', 'fade'] + //微信小程序下,组合动画会出现文字向上闪动问题,再此做特殊处理 + // #ifdef MP-WEIXIN + this.ani = ['fade'] + // #endif + // #ifndef MP-WEIXIN + this.ani = ['zoom-out', 'fade'] + // #endif this.transClass = { position: 'fixed', /* #ifndef APP-NVUE */ diff --git a/uni_modules/uni-popup/package.json b/uni_modules/uni-popup/package.json index dadc0387..6427510e 100644 --- a/uni_modules/uni-popup/package.json +++ b/uni_modules/uni-popup/package.json @@ -1,7 +1,7 @@ { "id": "uni-popup", "displayName": "uni-popup 弹出层", - "version": "1.8.7", + "version": "1.8.8", "description": " Popup 组件,提供常用的弹层", "keywords": [ "uni-ui",