@extclp/vexip-ui
Version:
A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good
21 lines (20 loc) • 569 B
TypeScript
import { ComponentPublicInstance } from 'vue';
export type PaginationPlugin = 'total' | 'jump' | 'size';
export interface PaginationExposed extends ComponentPublicInstance {
changeActive: (active: number, focus?: boolean) => void;
handlePrev: () => void;
handleNext: () => void;
}
export interface PaginationSlots {
prev?: (params: {
disabled: boolean;
}) => any;
next?: (params: {
disabled: boolean;
}) => any;
item?: (params: {
page: number;
disabled: boolean;
active: boolean;
}) => any;
}