This commit is contained in:
jonyshi 2019-06-26 16:40:46 +08:00
parent 472fcda865
commit 39610f5853
3 changed files with 6 additions and 4 deletions

View File

@ -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();

View File

@ -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; //数据结束位置

View File

@ -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",