fix: currentIndex 为-1 比较判断

This commit is contained in:
izbz wh 2020-11-20 15:15:44 +08:00
parent 205b89d00f
commit 8d87472b4e
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ export default function bigData(Table) {
}
}
//如果传currentIndex会判断该条数据是否在可视区域如果没有的话则重新计算startIndex和endIndex
if(currentIndex!==-1 && currentIndex !== this.currentIndex){
if(currentIndex != -1 && currentIndex !== this.currentIndex){
_this.setStartAndEndIndex(currentIndex,dataLen);
}
}