This commit is contained in:
wanghaoo 2018-10-24 22:47:06 +08:00
parent d016ae6734
commit 4593e2f613
3 changed files with 3 additions and 3 deletions

2
dist/demo.js vendored
View File

@ -10804,7 +10804,7 @@
}
if (nextProps.columns && nextProps.columns !== this.props.columns) {
this.columnManager.reset(nextProps.columns);
if (nextProps.columns.length !== this.props.length && this.refs && this.refs.bodyTable) {
if (nextProps.columns.length !== this.props.columns.length && this.refs && this.refs.bodyTable) {
this.refs.fixedColumnsBodyLeft && (this.refs.fixedColumnsBodyLeft.scrollTop = this.refs.bodyTable.scrollTop);
this.refs.fixedColumnsBodyRight && (this.refs.fixedColumnsBodyRight.scrollTop = this.refs.bodyTable.scrollTop);
}

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -157,7 +157,7 @@ class Table extends Component {
}
if (nextProps.columns && nextProps.columns !== this.props.columns) {
this.columnManager.reset(nextProps.columns);
if(nextProps.columns.length !== this.props.length && this.refs && this.refs.bodyTable){
if(nextProps.columns.length !== this.props.columns.length && this.refs && this.refs.bodyTable){
this.refs.fixedColumnsBodyLeft && ( this.refs.fixedColumnsBodyLeft.scrollTop = this.refs.bodyTable.scrollTop);
this.refs.fixedColumnsBodyRight && ( this.refs.fixedColumnsBodyRight.scrollTop = this.refs.bodyTable.scrollTop);
}