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 }