UNPKG

tdesign-react

Version:
20 lines (19 loc) 823 B
import React from 'react'; import { TdListProps } from '../type'; import { type ComponentScrollToElementParams } from '../../common'; export declare const useListVirtualScroll: (scroll: TdListProps["scroll"], listRef: React.MutableRefObject<HTMLElement>, listItems: any[]) => { virtualConfig: { visibleData: any[]; translateY: number; scrollHeight: number; isVirtualScroll: boolean; handleScroll: () => void; handleRowMounted: (rowData: any) => void; scrollToElement: (p: import("../../common").ScrollToElementParams) => void; }; cursorStyle: React.CSSProperties; listStyle: React.CSSProperties; isVirtualScroll: boolean; onInnerVirtualScroll: (e: WheelEvent) => void; scrollToElement: (params: ComponentScrollToElementParams) => void; };