diff --git a/build/Table.js b/build/Table.js index 4b1c5c7..743b813 100644 --- a/build/Table.js +++ b/build/Table.js @@ -324,9 +324,9 @@ var Table = function (_Component) { _utils.EventUtil.addHandler(this.contentTable, 'focus', this.onFocus); setTimeout(this.resetScrollX, 300); //含有纵向滚动条 - if (this.props.scroll.y) { - this.scrollbarWidth = (0, _utils.measureScrollbar)(); - } + // if(this.props.scroll.y){ + this.scrollbarWidth = (0, _utils.measureScrollbar)(); + // } //后续也放在recevice里面 if (!this.props.originWidth) { this.computeTableWidth(); diff --git a/build/lib/bigData.js b/build/lib/bigData.js index c0c1b24..005ed41 100644 --- a/build/lib/bigData.js +++ b/build/lib/bigData.js @@ -84,6 +84,8 @@ function bigData(Table) { _this.endIndex = _this.currentIndex + _this.loadCount; //数据结束位置 } if (nextProps.data !== props.data) { + _this.cachedRowHeight = []; //缓存每行的高度 + _this.cachedRowParentIndex = []; _this.computeCachedRowParentIndex(nextProps.data); if (nextProps.data.length > 0) { _this.endIndex = _this.currentIndex - nextProps.loadBuffer + _this.loadCount; //数据结束位置 diff --git a/package.json b/package.json index 6cc9cc5..19cbf63 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bee-table", - "version": "2.1.4-alpha.1", + "version": "2.1.4-alpha.2", "description": "Table ui component for react", "keywords": [ "react",