From 39610f5853229dbc0f39e48c31ee6d421e734677 Mon Sep 17 00:00:00 2001 From: jonyshi Date: Wed, 26 Jun 2019 16:40:46 +0800 Subject: [PATCH] build --- build/Table.js | 6 +++--- build/lib/bigData.js | 2 ++ package.json | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) 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",