File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -254,14 +254,14 @@ class QueueAnim extends React.Component {
254
254
} ) ;
255
255
}
256
256
257
- getInitAnimType = ( node , _data ) => {
257
+ getInitAnimType = ( node , velocityConfig ) => {
258
258
/*
259
259
* enterForcedRePlay 为 false 时:
260
260
* 强行结束后,获取当前 dom 里是否有 data 里的 key 值,
261
261
* 如果有,出场开始启动为 dom 里的值
262
262
* 而不是 animTypes 里的初始值,如果是初始值将会跳动。
263
263
*/
264
- const data = Object . assign ( { } , assignChild ( _data ) ) ;
264
+ const data = { ... assignChild ( velocityConfig ) } ;
265
265
const transformsBase = velocity &&
266
266
velocity . prototype . constructor . CSS . Lists . transformsBase || [ ] ;
267
267
const nodeStyle = node . style ;
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ export function assignChild(data) {
91
91
obj [ key ] = [ ] . concat ( data [ key ] ) ;
92
92
return ;
93
93
} else if ( typeof data [ key ] === 'object' ) {
94
- obj [ key ] = Object . assign ( { } , data [ key ] ) ;
94
+ obj [ key ] = { ... data [ key ] } ;
95
95
return ;
96
96
}
97
97
obj [ key ] = data [ key ] ;
You can’t perform that action at this time.
0 commit comments