Skip to content

Commit

Permalink
fix: #JCJS-4815 表格没有数据滚动滚动条后,grid页头的隐藏无法操作
Browse files Browse the repository at this point in the history
  • Loading branch information
whizbz11 committed Oct 21, 2020
1 parent 90f2de3 commit 43266f2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,10 @@ class Table extends Component {
this.bodyTable.scrollTop = this.scrollTop;
this.scrollTop = -1;
}
if (prevProps.data.length === 0 || this.props.data.length === 0 ) {
this.resetScrollX();
}
// 当表格没有数据时,重置滚动条位置,造成grid里面的表头列无法操作
// if (prevProps.data.length === 0 || this.props.data.length === 0 ) {
// this.resetScrollX();
// }

// 是否传入 scroll中的y属性,如果传入判断是否是整数,如果是则进行比较 。bodyTable 的clientHeight进行判断
this.isShowScrollY();
Expand Down

0 comments on commit 43266f2

Please sign in to comment.