/// /** * @author linhd * @date 2021/8/6 11:07 * @description 表格分页参数 */ import { PaginationFlippingArrow, PaginationLayout } from '../Pagination'; import { SelectStatus } from './interface'; /** 表格分页参数 */ export interface TablePaginationProps { /** 内置刷新 */ refreshInside?: boolean; /** 显示已选条数 */ checkCount?: boolean; /** 自适应分页,根据外容器大小,改变分页模式 */ autoPagination?: boolean; /** 分页模式 */ paginationType?: 'simple' | 'complex' | PaginationLayout[]; /** 方向键layout,默认全有 */ flippingArrow?: PaginationFlippingArrow[]; /** 总条数 */ total?: number; /** 当前页 */ page?: number; /** 每页行数 */ rowsPerPage?: number[]; /** 当前选中每页行数 */ currentRowsPerPage?: number; /** 改变页数 */ changePage?: (num?: number) => void; /** 改变每页行数 */ changeRowsPerPage?: (num: number) => void; /** 刷新表格 */ onRefresh?: () => void; /** 全选事件 */ selectAll?: (event: React.ChangeEvent, checked: boolean) => void; /** 选中状态 */ selectStatus?: SelectStatus; /** 选中个数 */ checkNumber?: number; /** 当前页面总数 */ currentPageTotal?: number; /** 重新计算分页换行不换行 */ resizePaginationLine?: string | number; }