Skip to content

Commit

Permalink
fix 微信小程序uni-popup center动画出现文字向上闪动bug
Browse files Browse the repository at this point in the history
  • Loading branch information
18148764734 committed Feb 20, 2024
1 parent a8aa223 commit 876e82b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions uni_modules/uni-popup/changelog.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
8 changes: 7 additions & 1 deletion uni_modules/uni-popup/components/uni-popup/uni-popup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion uni_modules/uni-popup/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "uni-popup",
"displayName": "uni-popup 弹出层",
"version": "1.8.7",
"version": "1.8.8",
"description": " Popup 组件,提供常用的弹层",
"keywords": [
"uni-ui",
Expand Down

0 comments on commit 876e82b

Please sign in to comment.