index.d.ts 761 B

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