Skip to content

Commit

Permalink
fix: currentIndex 为-1 比较判断
Browse files Browse the repository at this point in the history
  • Loading branch information
whizbz11 committed Nov 20, 2020
1 parent 205b89d commit 8d87472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/bigData.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 8d87472

Please sign in to comment.