File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ class QueueAnim extends React.Component {
155
155
nextChildren
156
156
) ;
157
157
158
- const childrenShow = this . state . childrenShow ;
158
+ const childrenShow = ! newChildren . length ? { } : this . state . childrenShow ;
159
159
// 在出场没结束时,childrenShow 里的值将不会清除。再触发进场时, childrenShow 里的值是保留着的, 设置了 enterForcedRePlay 将重新播放进场。
160
160
this . keysToLeave . forEach ( key => {
161
161
// 将所有在出场里的停止掉。避免间隔性出现
@@ -343,6 +343,7 @@ class QueueAnim extends React.Component {
343
343
const duration = transformArguments ( this . props . duration , key , i ) [ 1 ] ;
344
344
const order = this . props . leaveReverse ? ( this . keysToLeave . length - i - 1 ) : i ;
345
345
velocity ( node , 'stop' ) ;
346
+ node . style . visibility = 'visible' ;
346
347
const data = this . getInitAnimType ( node , this . getVelocityLeaveConfig ( key , i ) ) ;
347
348
velocity ( node , data , {
348
349
delay : interval * order + delay ,
You can’t perform that action at this time.
0 commit comments