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 + }) } } }