import React from 'react'; import './styles/index.less'; interface ISLProps { /** * @description 容器id * @default scrollableDiv */ containerId?: string; /** * @description 列表项的唯一标识字段 * @default id */ itemKey?: string; /** * @description 容器高度(超过此高度将滚动) */ containerHeight: number | string; /** * @description 列表请求的初始参数 */ initialParams?: any; /** * @description 列表请求方法 * @param params 请求参数 * @returns Promise<{ data: { total: number; records: any[] } }> */ loadMore: (params?: T) => Promise<{ data: { total: number; records: any[]; }; }>; /** * @description 列表项的渲染方法 * @param item 列表项数据 * @returns React.ReactNode */ renderItem: (item: P, index: number) => React.ReactNode; grid?: object; className?: string; /** * @description 滚动阈值,默认为 100px * @default 100px */ scrollThreshold?: string | number; /** * @description 滚动高度达到此参数值才出现 BackTop * @default 200 */ visibilityHeight?: number; /** * @description 是否显示 BackTop * @default false */ showBackTop?: boolean; /** * @description 列表底部提示 */ endMessage?: React.ReactNode; /** * @description 列表项点击事件 */ onItemClick?: (_item: P, _index: number) => void; } export type InfiniteScrollListProps = ISLProps; declare const _default: React.MemoExoticComponent<((props: ISLProps) => import("react/jsx-runtime").JSX.Element)>; export default _default;