@antv/s2-react
Version:
use S2 with react
10 lines (9 loc) • 450 B
TypeScript
import { type Pagination, type SpreadSheet } from '@antv/s2';
import type { SheetComponentOptions } from '../components';
/**
* s2-react 内部不消费, 提供给外部的自行实现的分页便捷组合使用
*/
export declare const usePagination: (s2: SpreadSheet, options: SheetComponentOptions) => Pagination & {
onShowSizeChange: (current: number, pageSize: number) => void;
onChange: (current: number, pageSize: number) => void;
};