UNPKG

761 BTypeScriptView Raw
1import type { CompareProps } from '@rc-component/context/lib/Immutable';
2import * as React from 'react';
3import type { Reference } from '../interface';
4import Table, { type TableProps } from '../Table';
5export interface VirtualTableProps<RecordType> extends Omit<TableProps<RecordType>, 'scroll'> {
6 scroll: {
7 x?: number;
8 y: number;
9 };
10 listItemHeight?: number;
11}
12export type ForwardGenericVirtualTable = (<RecordType>(props: TableProps<RecordType> & React.RefAttributes<Reference>) => React.ReactElement) & {
13 displayName?: string;
14};
15export declare function genVirtualTable(shouldTriggerRender?: CompareProps<typeof Table>): ForwardGenericVirtualTable;
16declare const _default: ForwardGenericVirtualTable;
17export default _default;
18
\No newline at end of file