计算宽度重置宽度差值、lastShowIndex

This commit is contained in:
wanghaoo 2018-09-30 16:04:52 +08:00
parent a1ccde76cc
commit cd9eb1e09c
3 changed files with 3 additions and 3 deletions

2
dist/demo.js vendored
View File

@ -10823,7 +10823,7 @@
this.setState({ contentWidthDiff: contentWidthDiff, lastShowIndex: lastShowIndex });
} else {
this.contentWidth = this.computeWidth;
this.setState({ contentWidth: this.contentWidth }); //重新渲染,为了显示滚动条
this.setState({ contentWidthDiff: 0, lastShowIndex: lastShowIndex }); //重新渲染,为了显示滚动条
}
};

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -200,7 +200,7 @@ class Table extends Component {
this.setState({contentWidthDiff,lastShowIndex});
}else{
this.contentWidth = this.computeWidth;
this.setState({contentWidth:this.contentWidth});//重新渲染,为了显示滚动条
this.setState({contentWidthDiff:0,lastShowIndex});//重新渲染,为了显示滚动条
}
}