From d80c2a81de1e3270b888135f1d5f5a7ba012d0fb Mon Sep 17 00:00:00 2001 From: zhouyun1 Date: Mon, 9 Sep 2024 21:15:24 +0800 Subject: [PATCH] =?UTF-8?q?chore(table):=20=E4=BF=AE=E5=A4=8DonVisibleChan?= =?UTF-8?q?ge=E7=B1=BB=E5=9E=8B=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/ui/table/src/context.ts | 2 +- packages/ui/table/src/use-table.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ui/table/src/context.ts b/packages/ui/table/src/context.ts index 72935785f..d71311156 100644 --- a/packages/ui/table/src/context.ts +++ b/packages/ui/table/src/context.ts @@ -20,7 +20,7 @@ const TableContext = createContext< onVisibleChange?: ( visibleList: any[], fullList: any[], - virtualInfo: { + virtualInfo?: { start: number end: number scrollTop: number diff --git a/packages/ui/table/src/use-table.ts b/packages/ui/table/src/use-table.ts index b299f5904..40cf1295b 100644 --- a/packages/ui/table/src/use-table.ts +++ b/packages/ui/table/src/use-table.ts @@ -782,7 +782,7 @@ export interface UseTableProps { onVisibleChange?: ( visibleList: any[], fullList: any[], - virtualInfo: { + virtualInfo?: { start: number end: number scrollTop: number