From 03904414e37b284382f26706af3347aec3c71ce1 Mon Sep 17 00:00:00 2001 From: zhouyun Date: Wed, 20 Nov 2024 17:18:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(table):=20=E4=BF=AE=E5=A4=8DTable=E5=92=8CT?= =?UTF-8?q?ree=E4=B8=AD=E8=99=9A=E6=8B=9F=E5=88=97=E8=A1=A8=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=91=BD=E5=90=8D=E5=86=B2=E7=AA=81=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20(#3053)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/ui/table/src/types.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/ui/table/src/types.ts b/packages/ui/table/src/types.ts index 0585662e2..b344b9d26 100644 --- a/packages/ui/table/src/types.ts +++ b/packages/ui/table/src/types.ts @@ -305,20 +305,20 @@ export interface TableRowRequiredProps { export type TableRowRecord = Record -export type ScrollAlign = 'top' | 'bottom' | 'auto' +export type TableVirtualScrollAlign = 'top' | 'bottom' | 'auto' -export type ScrollConfig = +export type TableVirtualScrollConfig = | { index: number - align?: ScrollAlign + align?: TableVirtualScrollAlign offset?: number } | { key: React.Key - align?: ScrollAlign + align?: TableVirtualScrollAlign offset?: number } export interface TableHelper { - scrollTo?: (arg: number | ScrollConfig) => void + scrollTo?: (arg: number | TableVirtualScrollConfig) => void }