File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " rc-tween-one" ,
3
- "version" : " 2.6.6 " ,
3
+ "version" : " 2.6.7 " ,
4
4
"description" : " tween-one anim component for react" ,
5
5
"keywords" : [
6
6
" react" ,
Original file line number Diff line number Diff line change @@ -327,7 +327,6 @@ class TweenOne extends Component {
327
327
moment,
328
328
resetStyle,
329
329
forcedJudg,
330
- children,
331
330
...props
332
331
} = this . props ;
333
332
Object . keys ( props . style || { } ) . forEach ( p => {
@@ -338,7 +337,7 @@ class TweenOne extends Component {
338
337
}
339
338
} ) ;
340
339
// component 为空时调用子级的。。
341
- const { className } = props ;
340
+ const { className, children } = props ;
342
341
if ( ! component && typeof children !== 'string' ) {
343
342
if ( ! children ) {
344
343
return children ;
@@ -356,7 +355,7 @@ class TweenOne extends Component {
356
355
} ,
357
356
...props ,
358
357
...componentProps
359
- } , children ) ;
358
+ } ) ;
360
359
}
361
360
}
362
361
TweenOne . isTweenOne = true ;
You can’t perform that action at this time.
0 commit comments