UNPKG

@nutui/nutui-react

Version:

京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序

17 lines (16 loc) 921 B
import { PositionType } from './types'; declare const initPositinoCache: (reaItemSize: number, length?: number) => PositionType[]; declare const getListTotalSize: (positions: Array<PositionType>, horizontal: true | false) => number; declare const binarySearch: (positionsList: Array<PositionType>, horizontal: true | false, value?: number) => number; declare const getEndIndex: ({ list, startIndex, visibleCount, itemEqual, positions, offSetSize, overscan, sizeKey, }: { list: Array<any>; startIndex: number; visibleCount: number; itemEqual?: boolean; positions: PositionType[]; offSetSize: number; overscan: number; sizeKey?: "width" | "height"; }) => number; declare const updateItemSize: (positions: PositionType[], items: HTMLCollection, sizeKey: "width" | "height", margin?: number) => void; export { initPositinoCache, getListTotalSize, binarySearch, getEndIndex, updateItemSize, };