fix(1、hover行时,动态出现hover菜单内容滚动屏幕位置bug2、滚动加载数据长度变化时endIndex计算优化):
This commit is contained in:
parent
887f43fd47
commit
6a0087da20
|
@ -85,7 +85,7 @@ function bigData(Table) {
|
||||||
if (nextProps.data !== props.data) {
|
if (nextProps.data !== props.data) {
|
||||||
_this.computeCachedRowParentIndex(nextProps.data);
|
_this.computeCachedRowParentIndex(nextProps.data);
|
||||||
if (nextProps.data.length > 0) {
|
if (nextProps.data.length > 0) {
|
||||||
_this.endIndex = _this.currentIndex - this.loadBuffer + _this.loadCount; //数据结束位置
|
_this.endIndex = _this.currentIndex - nextProps.loadBuffer + _this.loadCount; //数据结束位置
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//如果传currentIndex,会判断该条数据是否在可视区域,如果没有的话,则重新计算startIndex和endIndex
|
//如果传currentIndex,会判断该条数据是否在可视区域,如果没有的话,则重新计算startIndex和endIndex
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "bee-table",
|
"name": "bee-table",
|
||||||
"version": "1.6.40-beta.2",
|
"version": "1.6.40",
|
||||||
"description": "Table ui component for react",
|
"description": "Table ui component for react",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"react",
|
"react",
|
||||||
|
|
Loading…
Reference in New Issue