vue-admin-core
Version:
A Component Library for Vue 3
19 lines (18 loc) • 594 B
TypeScript
import { ElSelect, ElTable } from "element-plus";
import type { Ref } from "vue";
export declare const usePagination: (props: any, { attrs }: {
attrs: any;
}, { currentPage }: {
select: Ref<InstanceType<typeof ElSelect> | undefined>;
table: Ref<InstanceType<typeof ElTable> | undefined>;
key: Ref<string>;
filter: (query: string) => void;
currentPage: Ref<number>;
}) => {
currentPage: Ref<number>;
small: boolean;
pageCount: import("vue").ComputedRef<number>;
layout: string;
hideOnSinglePage: boolean;
onCurrentChange: (value: any) => void;
};