@ucloud-pccl/react-components
Version:
UCloud pccl react components
7 lines (6 loc) • 483 B
TypeScript
import { ReactNode, RefObject } from 'react';
declare const useVisibleList: <E1 extends HTMLElement = HTMLDivElement, E2 extends HTMLElement = HTMLDivElement, E3 extends HTMLElement = HTMLDivElement>(scrollerRef: RefObject<E1>, wrapperRef: RefObject<E2>, heightWrapperRef: RefObject<E3>, children: ReactNode[], { clientHeight, itemHeight }?: {
clientHeight?: number | undefined;
itemHeight?: number | undefined;
}) => (number | ReactNode[])[];
export default useVisibleList;