File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 24
24
return vnodes . map ( elt => elt . elm ) . indexOf ( element )
25
25
}
26
26
27
- function computeIndexes ( slots , children ) {
27
+ function computeIndexes ( slots , children , isTransition ) {
28
28
if ( ! slots ) {
29
29
return [ ]
30
30
}
31
31
32
32
const elmFromNodes = slots . map ( elt => elt . elm ) ;
33
- return [ ...children ] . map ( elt => elmFromNodes . indexOf ( elt ) )
33
+ const rawIndexes = [ ...children ] . map ( elt => elmFromNodes . indexOf ( elt ) )
34
+ return isTransition ? rawIndexes . filter ( ind => ind !== - 1 ) : rawIndexes
34
35
}
35
36
36
37
function emit ( evtName , evtData ) {
169
170
170
171
computeIndexes ( ) {
171
172
this . $nextTick ( ( ) => {
172
- this . visibleIndexes = computeIndexes ( this . getChildrenNodes ( ) , this . rootContainer . children )
173
+ this . visibleIndexes = computeIndexes ( this . getChildrenNodes ( ) , this . rootContainer . children , this . transitionMode )
173
174
} )
174
175
} ,
175
176
You can’t perform that action at this time.
0 commit comments