File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ export default function transition() {
31
31
created ( ) {
32
32
this . status = '' ;
33
33
this . transitionT = 0 ;
34
+ this . transitionEndStatus = false ;
34
35
} ,
35
36
attached ( ) {
36
37
this . durations = this . getDurations ( ) ;
@@ -82,6 +83,11 @@ export default function transition() {
82
83
} ) ;
83
84
} ,
84
85
leave ( ) {
86
+ if ( this . data . preventScrollThrough && ! this . transitionEndStatus ) {
87
+ this . setData ( {
88
+ realVisible : false ,
89
+ } ) ;
90
+ }
85
91
const { name } = this . data ;
86
92
const [ , duration ] = this . durations ;
87
93
this . status = 'leaving' ;
@@ -112,6 +118,7 @@ export default function transition() {
112
118
if ( this . customDuration ) {
113
119
return ;
114
120
}
121
+ this . transitionEndStatus = true ;
115
122
116
123
clearTimeout ( this . transitionT ) ;
117
124
if ( this . status === 'entering' && this . data . visible ) {
You can’t perform that action at this time.
0 commit comments