fix: #JCJS-4815 表格没有数据滚动滚动条后,grid页头的隐藏无法操作

This commit is contained in:
izbz wh 2020-10-21 10:15:47 +08:00
parent 90f2de3bbb
commit 43266f2f0b
1 changed files with 4 additions and 3 deletions

View File

@ -265,9 +265,10 @@ class Table extends Component {
this.bodyTable.scrollTop = this.scrollTop; this.bodyTable.scrollTop = this.scrollTop;
this.scrollTop = -1; this.scrollTop = -1;
} }
if (prevProps.data.length === 0 || this.props.data.length === 0 ) { // 当表格没有数据时重置滚动条位置造成grid里面的表头列无法操作
this.resetScrollX(); // if (prevProps.data.length === 0 || this.props.data.length === 0 ) {
} // this.resetScrollX();
// }
// 是否传入 scroll中的y属性如果传入判断是否是整数如果是则进行比较 。bodyTable 的clientHeight进行判断 // 是否传入 scroll中的y属性如果传入判断是否是整数如果是则进行比较 。bodyTable 的clientHeight进行判断
this.isShowScrollY(); this.isShowScrollY();