@opensig/opendesign
Version:
<p align="center"><img src="../docs/public/opendesign-logo-light.png"/></p> <h1 align="center">opendesign</h1> <p align="center">一个 Vue 3 组件库</p> <p align="center"><b>皮肤可定制,使用 TypeScript</b></p>
90 lines (89 loc) • 2 kB
TypeScript
import { ExtractPropTypes, PropType } from 'vue';
import { RoundT } from '../_utils/types';
export declare const PaginationVariantTypes: readonly ["solid", "outline"];
export type PaginationVariantT = (typeof PaginationVariantTypes)[number];
export declare const PaginationLayoutTypes: readonly ["total", "pagesize", "pager", "jumper"];
export type PaginationLayoutT = Array<(typeof PaginationLayoutTypes)[number]>;
export declare const paginationProps: {
/**
* 布局:PaginationVariantT
*/
layout: {
type: PropType<PaginationLayoutT>;
default: string[];
};
/**
* 按钮类型:PaginationVariantT
*/
variant: {
type: PropType<PaginationVariantT>;
default: string;
};
/**
* 圆角值 RoundT
*/
round: {
type: PropType<RoundT>;
};
/**
* 支持选择的每页数据条数
*/
pageSizes: {
type: PropType<number[]>;
default: () => number[];
};
/**
* 每页数据条数 v-model
*/
pageSize: {
type: NumberConstructor;
default: number;
};
/**
* 数据总条数
*/
total: {
type: NumberConstructor;
default: number;
};
/**
* 当前页码 v-model
*/
page: {
type: NumberConstructor;
default: number;
};
/**
* 显示页面数 > 3
*/
showPageCount: {
type: NumberConstructor;
default: number;
};
/**
* 页码被隐藏时,hover显示所有页码
*/
showMore: {
type: BooleanConstructor;
default: boolean;
};
/**
* 显示总数据量
*/
showTotal: {
type: BooleanConstructor;
};
/**
* 显示输入跳转
*/
showJumper: {
type: BooleanConstructor;
};
/**
* 简洁模式
*/
simple: {
type: BooleanConstructor;
};
};
export type PaginationPropsT = ExtractPropTypes<typeof paginationProps>;