fix(1、hover行时,动态出现hover菜单内容滚动屏幕位置bug2、滚动加载数据长度变化时endIndex计算优化):

This commit is contained in:
wanghaoo 2019-02-20 09:36:26 +08:00
parent 887f43fd47
commit 6a0087da20
2 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,7 @@ function bigData(Table) {
if (nextProps.data !== props.data) {
_this.computeCachedRowParentIndex(nextProps.data);
if (nextProps.data.length > 0) {
_this.endIndex = _this.currentIndex - this.loadBuffer + _this.loadCount; //数据结束位置
_this.endIndex = _this.currentIndex - nextProps.loadBuffer + _this.loadCount; //数据结束位置
}
}
//如果传currentIndex会判断该条数据是否在可视区域如果没有的话则重新计算startIndex和endIndex

View File

@ -1,6 +1,6 @@
{
"name": "bee-table",
"version": "1.6.40-beta.2",
"version": "1.6.40",
"description": "Table ui component for react",
"keywords": [
"react",