fix: bigData 更改数据源表格数据空白
This commit is contained in:
parent
0a36b7aa7f
commit
5cbd047e6e
|
@ -162,6 +162,10 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
line-height: 1.33;
|
line-height: 1.33;
|
||||||
overflow: hidden; }
|
overflow: hidden; }
|
||||||
|
.u-table.copy .u-table-thead th {
|
||||||
|
-webkit-user-select: unset;
|
||||||
|
-ms-user-select: unset;
|
||||||
|
user-select: unset; }
|
||||||
.u-table-body {
|
.u-table-body {
|
||||||
position: relative; }
|
position: relative; }
|
||||||
.u-table-body .u-table-row-expand-columns-in-body .expand-icon-con {
|
.u-table-body .u-table-row-expand-columns-in-body .expand-icon-con {
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -73,10 +73,13 @@ export default function bigData(Table) {
|
||||||
_this.cachedRowParentIndex = [];
|
_this.cachedRowParentIndex = [];
|
||||||
_this.computeCachedRowParentIndex(newData);
|
_this.computeCachedRowParentIndex(newData);
|
||||||
// fix:切换数据源,startIndex、endIndex错误
|
// fix:切换数据源,startIndex、endIndex错误
|
||||||
|
if(_this.scrollTop <= 0) { // 增加scrollTop 判断,ncc场景下滚动条不在最上层, 会出现空白,因为重置了currentIndex没有重置滚动条
|
||||||
_this.currentIndex = 0;
|
_this.currentIndex = 0;
|
||||||
_this.startIndex = _this.currentIndex; //数据开始位置
|
_this.startIndex = _this.currentIndex; //数据开始位置
|
||||||
_this.endIndex = _this.currentIndex + _this.loadCount;
|
_this.endIndex = _this.currentIndex + _this.loadCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
_this.treeData = [];
|
_this.treeData = [];
|
||||||
_this.flatTreeData = [];
|
_this.flatTreeData = [];
|
||||||
if(newData.length>0){
|
if(newData.length>0){
|
||||||
|
|
Loading…
Reference in New Issue