UNPKG

@cainiaofe/cn-ui-m

Version:
26 lines (25 loc) 761 B
import type { CnListItemProps, CnListProps } from './types'; export declare function useCnListDataSource(props: CnListProps): { loading: boolean; hasNextPage: boolean; dataSource: CnListItemProps[]; refreshAsync: () => Promise<void>; currentPageRefreshAsync: () => Promise<void>; loadNextPage: () => Promise<void>; fullPageLoading: boolean; totalCount?: undefined; paging?: undefined; } | { loading: boolean; totalCount: number; hasNextPage: boolean; dataSource: any[]; refreshAsync: () => Promise<void>; currentPageRefreshAsync: () => Promise<void>; loadNextPage: () => Promise<void>; fullPageLoading: boolean; paging: { currentPage: number; totalCount: number; }; };