Skip to content

Commit

Permalink
fix(table): 修复Table和Tree中虚拟列表类型命名冲突问题 (#3053)
Browse files Browse the repository at this point in the history
  • Loading branch information
zyprepare authored Nov 20, 2024
1 parent a3ef6ac commit 0390441
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/ui/table/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,20 +305,20 @@ export interface TableRowRequiredProps {

export type TableRowRecord = Record<string, any>

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
}

0 comments on commit 0390441

Please sign in to comment.