Skip to content

Commit ad98a3b

Browse files
committed
fix antd home no show
1 parent 7d14182 commit ad98a3b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rc-tween-one",
3-
"version": "2.6.6",
3+
"version": "2.6.7",
44
"description": "tween-one anim component for react",
55
"keywords": [
66
"react",

src/TweenOne.jsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,6 @@ class TweenOne extends Component {
327327
moment,
328328
resetStyle,
329329
forcedJudg,
330-
children,
331330
...props
332331
} = this.props;
333332
Object.keys(props.style || {}).forEach(p => {
@@ -338,7 +337,7 @@ class TweenOne extends Component {
338337
}
339338
});
340339
// component 为空时调用子级的。。
341-
const { className } = props;
340+
const { className, children } = props;
342341
if (!component && typeof children !== 'string') {
343342
if (!children) {
344343
return children;
@@ -356,7 +355,7 @@ class TweenOne extends Component {
356355
},
357356
...props,
358357
...componentProps
359-
}, children);
358+
});
360359
}
361360
}
362361
TweenOne.isTweenOne = true;

0 commit comments

Comments
 (0)