fix: currentIndex 为-1 比较判断
This commit is contained in:
parent
205b89d00f
commit
8d87472b4e
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue