Skip to content

Commit cda01f4

Browse files
committed
修复 SmartRefreshControl 的 enableRefresh属性无效问题
Signed-off-by: 2534290808 <2534290808@qq.com>
1 parent a9bb3d1 commit cda01f4

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

.idea/workspace.xml

Lines changed: 3 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SmartRefreshControl.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,9 @@ class SmartRefreshControl extends Component {
4646
return null;
4747
}
4848
render() {
49-
const nativeProps = Object.assign({},...this.props);
50-
Object.assign(nativeProps, {
49+
const nativeProps ={...this.props,...{
5150
onSmartRefresh:this._onSmartRefresh,
52-
});
51+
}}
5352
return (
5453
<SmartRefreshLayout
5554
ref="refreshLayout"

0 commit comments

Comments
 (0)