@uiw/react-native
Version:
UIW for React Native
20 lines (19 loc) • 593 B
TypeScript
export declare type size = 'small' | 'default' | 'large';
export interface PaginationProps {
/** 尺寸 */
size?: size;
/** 当前页 */
current?: number;
/** 当前页的颜色 */
currentColor?: string;
/** 数据总量 */
total: number;
/** 每页数据量 */
pageSize?: number;
/** 是否以 icon 形式展示按钮 */
icon?: boolean;
/** 点击页码按钮时触发 */
onPageChange?: (type: 'prev' | 'next', current: number) => void;
}
declare const Pagination: (props: PaginationProps) => JSX.Element;
export default Pagination;