UNPKG

@jingoz/react-virtual-list

Version:

19 lines (18 loc) 616 B
export type TVirtualListChildren = (index: number) => React.ReactNode; export * from './AutoSizer'; export * from './FixedHeight'; export interface IVirtualListSharedProps { className?: string; style?: React.CSSProperties; total?: number; viewHeight?: number; padding?: number; children?: TVirtualListChildren; } export interface IVirtualListHandler { scrollToViaIndex: (index: number) => void; scrollToViaScrollTop: (scrollTop: number) => void; } export declare const DEFAULT_VIEW_HEIGHT = 300; export declare const DEFAULT_ROW_HEIGHT = 40; export declare const DEFAULT_PADDING = 3;