@nutui/nutui-react-taro
Version:
京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序
19 lines (18 loc) • 724 B
TypeScript
import { default as React, FunctionComponent, ReactNode } from 'react';
import { BasicComponent } from '../../utils/typings';
import { InfiniteLoadingType } from './types';
export interface InfiniteLoadingProps extends BasicComponent {
type: InfiniteLoadingType;
hasMore: boolean;
threshold: number;
target: string;
capture: boolean;
pullRefresh: boolean;
pullingText: ReactNode;
loadingText: ReactNode;
loadMoreText: ReactNode;
onRefresh: () => Promise<void>;
onLoadMore: () => Promise<void>;
onScroll: (param: number) => void;
}
export declare const InfiniteLoading: FunctionComponent<Partial<InfiniteLoadingProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onScroll'>>;