UNPKG

@uiw/react-native

Version:
33 lines (32 loc) 1.03 kB
import React from 'react'; export declare type size = 'small' | 'default' | 'large'; export interface PaginationProps { /** 尺寸 */ size?: size; /** 当前页 */ current?: number; /** 当前页的颜色 */ currentColor?: string; /** 自定义当前页与总页数元素 */ renderPages?: (current: number, totalPage: number) => React.ReactNode; /** 点击当前页触发 */ onCurrent?: (current: number, totalPage?: number) => unknown; /** 数据总量 */ total: number; /** 每页数据量 */ pageSize?: number; /** 是否以 icon 形式展示按钮 */ icon?: boolean; /** 点击页码按钮时触发 */ onPageChange?: (type: 'prev' | 'next', current: number) => void; /** 边框颜色 */ borderColor?: string; /** 按钮中的颜色 */ color?: string; /** 页码跳转 */ jumpBtn?: boolean; /** 简洁版本 */ simple?: boolean; } declare const Pagination: (props: PaginationProps) => JSX.Element; export default Pagination;