Skip to content

Commit 689a12c

Browse files
author
huangshuwei
committed
虚拟滚动回调事件 scrolling 参数 scrollStartIndex 改名为 startRowIndex
1 parent 170750f commit 689a12c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/ve-table/src/index.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -934,12 +934,12 @@ export default {
934934

935935
const { scrolling } = virtualScrollOption;
936936
if (isFunction(scrolling)) {
937-
let scrollStartIndex =
937+
let startRowIndex =
938938
visibleStartIndex - visibleAboveCount;
939939

940940
scrolling({
941-
scrollStartIndex:
942-
scrollStartIndex > 0 ? scrollStartIndex : 0,
941+
startRowIndex:
942+
startRowIndex > 0 ? startRowIndex : 0,
943943
visibleStartIndex,
944944
visibleEndIndex,
945945
visibleAboveCount,

0 commit comments

Comments
 (0)