File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,11 @@ if (__mpx_mode__ === 'ios' || __mpx_mode__ === 'android') {
4545 } ,
4646 'cube-popup_transition' : ( animationOptions ) => {
4747 if ( ! this . isVisible ) {
48- setTimeout ( ( ) => {
49- this . display = false ;
48+ clearTimeout ( this . dispalyTimer ) ;
49+ this . dispalyTimer = setTimeout ( ( ) => {
50+ if ( ! this . isVisible ) {
51+ this . display = false ;
52+ }
5053 // fix 玄学,不加 100ms ,drn 动画会非常卡
5154 } , animationOptions . duration + 100 ) ;
5255 }
Original file line number Diff line number Diff line change 11{
22 "name" : " @mpxjs/mpx-cube-ui" ,
3- "version" : " 1.3.14-beta.3 " ,
3+ "version" : " 1.3.14-beta.4 " ,
44 "description" : " mpx components library" ,
55 "author" :
" xiaolei <[email protected] >" ,
66 "publishConfig" : {
Original file line number Diff line number Diff line change @@ -51,8 +51,11 @@ if (__mpx_mode__ === 'ios' || __mpx_mode__ === 'android') {
5151 } ,
5252 'cube-popup_transition' : ( animationOptions ) => {
5353 if ( ! this . isVisible ) {
54- setTimeout ( ( ) => {
55- this . display = false
54+ clearTimeout ( this . dispalyTimer )
55+ this . dispalyTimer = setTimeout ( ( ) => {
56+ if ( ! this . isVisible ) {
57+ this . display = false
58+ }
5659 // fix 玄学,不加 100ms ,drn 动画会非常卡
5760 } , animationOptions . duration + 100 )
5861 }
You can’t perform that action at this time.
0 commit comments