fix:数据动态改变,表体显示空白的问题
This commit is contained in:
parent
a94583aca1
commit
8b256169cc
|
@ -84,8 +84,9 @@ function bigData(Table) {
|
|||
_this.endIndex = _this.currentIndex + _this.loadCount; //数据结束位置
|
||||
}
|
||||
if (nextProps.data !== props.data) {
|
||||
_this.cachedRowHeight = []; //缓存每行的高度
|
||||
_this.cachedRowParentIndex = [];
|
||||
//wh fix: 滚动加载场景中,数据动态改变下占位计算错误的问题(26 Jun)
|
||||
// _this.cachedRowHeight = []; //缓存每行的高度
|
||||
// _this.cachedRowParentIndex = [];
|
||||
_this.computeCachedRowParentIndex(nextProps.data);
|
||||
if (nextProps.data.length > 0) {
|
||||
_this.endIndex = _this.currentIndex - nextProps.loadBuffer + _this.loadCount; //数据结束位置
|
||||
|
|
|
@ -34314,7 +34314,7 @@
|
|||
this.domWidthDiff = this.contentDomWidth - this.contentWidth;
|
||||
}
|
||||
|
||||
if (this.computeWidth <= this.contentWidth) {
|
||||
if (this.computeWidth < this.contentWidth) {
|
||||
var contentWidthDiff = this.scrollbarWidth ? this.contentWidth - this.computeWidth - this.scrollbarWidth : this.contentWidth - this.computeWidth;
|
||||
//bordered的表格需要减去边框的差值1
|
||||
if (this.props.bordered) {
|
||||
|
@ -34949,7 +34949,7 @@
|
|||
if (fixed) {
|
||||
if (this.domWidthDiff > 0) {
|
||||
headStyle.overflow = 'hidden';
|
||||
innerBodyStyle.overflowX = 'scroll'; //兼容expand场景、子表格含有固定列的场景
|
||||
innerBodyStyle.overflowX = 'auto'; //兼容expand场景、子表格含有固定列的场景
|
||||
} else {
|
||||
bodyStyle.marginBottom = '-' + scrollbarWidth + 'px';
|
||||
}
|
||||
|
@ -297123,8 +297123,9 @@
|
|||
_this.endIndex = _this.currentIndex + _this.loadCount; //数据结束位置
|
||||
}
|
||||
if (nextProps.data !== props.data) {
|
||||
_this.cachedRowHeight = []; //缓存每行的高度
|
||||
_this.cachedRowParentIndex = [];
|
||||
//wh fix: 滚动加载场景中,数据动态改变下占位计算错误的问题(26 Jun)
|
||||
// _this.cachedRowHeight = []; //缓存每行的高度
|
||||
// _this.cachedRowParentIndex = [];
|
||||
_this.computeCachedRowParentIndex(nextProps.data);
|
||||
if (nextProps.data.length > 0) {
|
||||
_this.endIndex = _this.currentIndex - nextProps.loadBuffer + _this.loadCount; //数据结束位置
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -61,8 +61,9 @@ export default function bigData(Table) {
|
|||
|
||||
}
|
||||
if (nextProps.data !== props.data) {
|
||||
_this.cachedRowHeight = []; //缓存每行的高度
|
||||
_this.cachedRowParentIndex = [];
|
||||
//wh fix: 滚动加载场景中,数据动态改变下占位计算错误的问题(26 Jun)
|
||||
// _this.cachedRowHeight = []; //缓存每行的高度
|
||||
// _this.cachedRowParentIndex = [];
|
||||
_this.computeCachedRowParentIndex(nextProps.data);
|
||||
if(nextProps.data.length>0){
|
||||
_this.endIndex = _this.currentIndex - nextProps.loadBuffer + _this.loadCount; //数据结束位置
|
||||
|
|
Loading…
Reference in New Issue