ep-craft 0.1.30 → 0.1.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/pagination/index.d.ts +4 -2
- package/dist/components/pagination/index.js +9 -3
- package/dist/components/pagination/src/components/jumper.d.ts +13 -0
- package/dist/components/pagination/src/components/jumper.js +16 -0
- package/dist/components/pagination/src/components/jumper.vue.d.ts +16 -0
- package/dist/components/pagination/src/components/jumper.vue.js +58 -0
- package/dist/components/pagination/src/components/jumper2.vue.js +4 -0
- package/dist/components/pagination/src/components/next.d.ts +22 -0
- package/dist/components/pagination/src/components/next.js +26 -0
- package/dist/components/pagination/src/components/next.vue.d.ts +42 -0
- package/dist/components/pagination/src/components/next.vue.js +44 -0
- package/dist/components/pagination/src/components/next2.vue.js +4 -0
- package/dist/components/pagination/src/components/pager.d.ts +16 -0
- package/dist/components/pagination/src/components/pager.js +24 -0
- package/dist/components/pagination/src/components/pager.vue.d.ts +30 -0
- package/dist/components/pagination/src/components/pager.vue.js +148 -0
- package/dist/components/pagination/src/components/pager2.vue.js +4 -0
- package/dist/components/pagination/src/components/prev.d.ts +24 -0
- package/dist/components/pagination/src/components/prev.js +25 -0
- package/dist/components/pagination/src/components/prev.vue.d.ts +39 -0
- package/dist/components/pagination/src/components/prev.vue.js +44 -0
- package/dist/components/pagination/src/components/prev2.vue.js +4 -0
- package/dist/components/pagination/src/components/sizes.d.ts +35 -0
- package/dist/components/pagination/src/components/sizes.js +34 -0
- package/dist/components/pagination/src/components/sizes.vue.d.ts +68 -0
- package/dist/components/pagination/src/components/sizes.vue.js +73 -0
- package/dist/components/pagination/src/components/sizes2.vue.js +4 -0
- package/dist/components/pagination/src/components/total.d.ts +8 -0
- package/dist/components/pagination/src/components/total.js +15 -0
- package/dist/components/pagination/src/components/total.vue.d.ts +8 -0
- package/dist/components/pagination/src/components/total.vue.js +33 -0
- package/dist/components/pagination/src/components/total2.vue.js +4 -0
- package/dist/components/pagination/src/constants.d.ts +9 -0
- package/dist/components/pagination/src/constants.js +4 -0
- package/dist/components/pagination/src/pagination.d.ts +147 -0
- package/dist/components/pagination/src/pagination.js +314 -0
- package/dist/components/pagination/src/usePagination.d.ts +1 -0
- package/dist/components/pagination/src/usePagination.js +6 -0
- package/dist/components/select/index.d.ts +2098 -0
- package/dist/components/select/index.js +10 -7
- package/dist/index.css +1 -1
- package/dist/vendored-components.d.ts +1 -1
- package/dist/vendored-components.js +1 -0
- package/package.json +1 -1
- package/theme-chalk/src/float-label.scss +51 -26
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { CSSProperties, ExtractPropTypes, ExtractPublicPropTypes } from 'vue';
|
|
2
|
+
import type Sizes from './sizes.vue';
|
|
3
|
+
export declare const paginationSizesProps: {
|
|
4
|
+
readonly pageSize: {
|
|
5
|
+
readonly type: import("vue").PropType<number>;
|
|
6
|
+
readonly required: true;
|
|
7
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
8
|
+
__epPropKey: true;
|
|
9
|
+
};
|
|
10
|
+
readonly pageSizes: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => number[]) | (() => number[]) | (((new (...args: any[]) => number[]) | (() => number[])) | null)[], unknown, unknown, () => [10, 20, 30, 40, 50, 100], boolean>;
|
|
11
|
+
readonly popperClass: {
|
|
12
|
+
readonly type: import("vue").PropType<string>;
|
|
13
|
+
readonly required: false;
|
|
14
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
15
|
+
__epPropKey: true;
|
|
16
|
+
};
|
|
17
|
+
readonly popperStyle: {
|
|
18
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => string | CSSProperties) | (() => string | CSSProperties) | (((new (...args: any[]) => string | CSSProperties) | (() => string | CSSProperties)) | null)[], unknown, unknown>>;
|
|
19
|
+
readonly required: false;
|
|
20
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
21
|
+
__epPropKey: true;
|
|
22
|
+
};
|
|
23
|
+
readonly disabled: BooleanConstructor;
|
|
24
|
+
readonly teleported: BooleanConstructor;
|
|
25
|
+
readonly size: {
|
|
26
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
|
27
|
+
readonly required: false;
|
|
28
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
29
|
+
__epPropKey: true;
|
|
30
|
+
};
|
|
31
|
+
readonly appendSizeTo: StringConstructor;
|
|
32
|
+
};
|
|
33
|
+
export type PaginationSizesProps = ExtractPropTypes<typeof paginationSizesProps>;
|
|
34
|
+
export type PaginationSizesPropsPublic = ExtractPublicPropTypes<typeof paginationSizesProps>;
|
|
35
|
+
export type SizesInstance = InstanceType<typeof Sizes> & unknown;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import "@vue/shared";
|
|
2
|
+
import "lodash-unified";
|
|
3
|
+
import "@vueuse/core";
|
|
4
|
+
import { mutable as p } from "../../../../utils/typescript.js";
|
|
5
|
+
import { componentSizes as r } from "../../../../constants/size.js";
|
|
6
|
+
import "@element-plus/icons-vue";
|
|
7
|
+
import { buildProps as t, definePropType as e } from "../../../../utils/vue/props/runtime.js";
|
|
8
|
+
import "vue";
|
|
9
|
+
const d = t({
|
|
10
|
+
pageSize: {
|
|
11
|
+
type: Number,
|
|
12
|
+
required: !0
|
|
13
|
+
},
|
|
14
|
+
pageSizes: {
|
|
15
|
+
type: e(Array),
|
|
16
|
+
default: () => p([10, 20, 30, 40, 50, 100])
|
|
17
|
+
},
|
|
18
|
+
popperClass: {
|
|
19
|
+
type: String
|
|
20
|
+
},
|
|
21
|
+
popperStyle: {
|
|
22
|
+
type: e([String, Object])
|
|
23
|
+
},
|
|
24
|
+
disabled: Boolean,
|
|
25
|
+
teleported: Boolean,
|
|
26
|
+
size: {
|
|
27
|
+
type: String,
|
|
28
|
+
values: r
|
|
29
|
+
},
|
|
30
|
+
appendSizeTo: String
|
|
31
|
+
});
|
|
32
|
+
export {
|
|
33
|
+
d as paginationSizesProps
|
|
34
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
readonly pageSize: {
|
|
3
|
+
readonly type: import("vue").PropType<number>;
|
|
4
|
+
readonly required: true;
|
|
5
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
6
|
+
__epPropKey: true;
|
|
7
|
+
};
|
|
8
|
+
readonly pageSizes: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => number[]) | (() => number[]) | (((new (...args: any[]) => number[]) | (() => number[])) | null)[], unknown, unknown, () => [10, 20, 30, 40, 50, 100], boolean>;
|
|
9
|
+
readonly popperClass: {
|
|
10
|
+
readonly type: import("vue").PropType<string>;
|
|
11
|
+
readonly required: false;
|
|
12
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
13
|
+
__epPropKey: true;
|
|
14
|
+
};
|
|
15
|
+
readonly popperStyle: {
|
|
16
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => string | import("vue").CSSProperties) | (() => string | import("vue").CSSProperties) | (((new (...args: any[]) => string | import("vue").CSSProperties) | (() => string | import("vue").CSSProperties)) | null)[], unknown, unknown>>;
|
|
17
|
+
readonly required: false;
|
|
18
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
19
|
+
__epPropKey: true;
|
|
20
|
+
};
|
|
21
|
+
readonly disabled: BooleanConstructor;
|
|
22
|
+
readonly teleported: BooleanConstructor;
|
|
23
|
+
readonly size: {
|
|
24
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
|
25
|
+
readonly required: false;
|
|
26
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
27
|
+
__epPropKey: true;
|
|
28
|
+
};
|
|
29
|
+
readonly appendSizeTo: StringConstructor;
|
|
30
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
|
+
"page-size-change": (...args: any[]) => void;
|
|
32
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
33
|
+
readonly pageSize: {
|
|
34
|
+
readonly type: import("vue").PropType<number>;
|
|
35
|
+
readonly required: true;
|
|
36
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
37
|
+
__epPropKey: true;
|
|
38
|
+
};
|
|
39
|
+
readonly pageSizes: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => number[]) | (() => number[]) | (((new (...args: any[]) => number[]) | (() => number[])) | null)[], unknown, unknown, () => [10, 20, 30, 40, 50, 100], boolean>;
|
|
40
|
+
readonly popperClass: {
|
|
41
|
+
readonly type: import("vue").PropType<string>;
|
|
42
|
+
readonly required: false;
|
|
43
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
44
|
+
__epPropKey: true;
|
|
45
|
+
};
|
|
46
|
+
readonly popperStyle: {
|
|
47
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => string | import("vue").CSSProperties) | (() => string | import("vue").CSSProperties) | (((new (...args: any[]) => string | import("vue").CSSProperties) | (() => string | import("vue").CSSProperties)) | null)[], unknown, unknown>>;
|
|
48
|
+
readonly required: false;
|
|
49
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
50
|
+
__epPropKey: true;
|
|
51
|
+
};
|
|
52
|
+
readonly disabled: BooleanConstructor;
|
|
53
|
+
readonly teleported: BooleanConstructor;
|
|
54
|
+
readonly size: {
|
|
55
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
|
56
|
+
readonly required: false;
|
|
57
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
58
|
+
__epPropKey: true;
|
|
59
|
+
};
|
|
60
|
+
readonly appendSizeTo: StringConstructor;
|
|
61
|
+
}>> & Readonly<{
|
|
62
|
+
"onPage-size-change"?: ((...args: any[]) => any) | undefined;
|
|
63
|
+
}>, {
|
|
64
|
+
readonly disabled: boolean;
|
|
65
|
+
readonly teleported: boolean;
|
|
66
|
+
readonly pageSizes: number[];
|
|
67
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
68
|
+
export default _default;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { defineComponent as S, ref as h, watch as n, computed as v, openBlock as s, createElementBlock as l, normalizeClass as C, unref as t, createVNode as b, withCtx as y, Fragment as E, renderList as P, createBlock as k } from "vue";
|
|
2
|
+
import { isEqual as B } from "lodash-unified";
|
|
3
|
+
import { ElSelect as N } from "../../../select/index.js";
|
|
4
|
+
import { useNamespace as L } from "../../../../hooks/use-namespace/index.js";
|
|
5
|
+
import { isArray as q } from "@vue/shared";
|
|
6
|
+
import "@vueuse/core";
|
|
7
|
+
import "@element-plus/icons-vue";
|
|
8
|
+
import { useLocale as A } from "../../../../hooks/use-locale/index.js";
|
|
9
|
+
import "../../../../hooks/use-size/index.js";
|
|
10
|
+
import "@popperjs/core";
|
|
11
|
+
import "../../../../hooks/use-z-index/index.js";
|
|
12
|
+
import "../../../../hooks/use-delayed-toggle/index.js";
|
|
13
|
+
import "../../../../hooks/use-aria/index.js";
|
|
14
|
+
import "../../../../hooks/use-model-toggle/index.js";
|
|
15
|
+
import "../../../../hooks/use-empty-values/index.js";
|
|
16
|
+
import { usePagination as F } from "../usePagination.js";
|
|
17
|
+
import { paginationSizesProps as O } from "./sizes.js";
|
|
18
|
+
import { EpOption as T } from "../../../option/index.js";
|
|
19
|
+
const V = /* @__PURE__ */ S({
|
|
20
|
+
name: "ElPaginationSizes",
|
|
21
|
+
__name: "sizes",
|
|
22
|
+
props: O,
|
|
23
|
+
emits: ["page-size-change"],
|
|
24
|
+
setup(m, { emit: u }) {
|
|
25
|
+
const p = m, c = u, { t: d } = A(), g = L("pagination"), r = F(), i = h(p.pageSize);
|
|
26
|
+
n(
|
|
27
|
+
() => p.pageSizes,
|
|
28
|
+
(e, o) => {
|
|
29
|
+
if (!B(e, o) && q(e)) {
|
|
30
|
+
const a = e.includes(p.pageSize) ? p.pageSize : p.pageSizes[0];
|
|
31
|
+
c("page-size-change", a);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
), n(
|
|
35
|
+
() => p.pageSize,
|
|
36
|
+
(e) => {
|
|
37
|
+
i.value = e;
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
const z = v(() => p.pageSizes);
|
|
41
|
+
function f(e) {
|
|
42
|
+
var o;
|
|
43
|
+
e !== i.value && (i.value = e, (o = r.handleSizeChange) == null || o.call(r, Number(e)));
|
|
44
|
+
}
|
|
45
|
+
return (e, o) => (s(), l("span", {
|
|
46
|
+
class: C(t(g).e("sizes"))
|
|
47
|
+
}, [
|
|
48
|
+
b(t(N), {
|
|
49
|
+
"model-value": i.value,
|
|
50
|
+
disabled: e.disabled,
|
|
51
|
+
"popper-class": e.popperClass,
|
|
52
|
+
"popper-style": e.popperStyle,
|
|
53
|
+
size: e.size,
|
|
54
|
+
teleported: e.teleported,
|
|
55
|
+
"validate-event": !1,
|
|
56
|
+
"append-to": e.appendSizeTo,
|
|
57
|
+
onChange: f
|
|
58
|
+
}, {
|
|
59
|
+
default: y(() => [
|
|
60
|
+
(s(!0), l(E, null, P(z.value, (a) => (s(), k(t(T), {
|
|
61
|
+
key: a,
|
|
62
|
+
value: a,
|
|
63
|
+
label: a + t(d)("el.pagination.pagesize")
|
|
64
|
+
}, null, 8, ["value", "label"]))), 128))
|
|
65
|
+
]),
|
|
66
|
+
_: 1
|
|
67
|
+
}, 8, ["model-value", "disabled", "popper-class", "popper-style", "size", "teleported", "append-to"])
|
|
68
|
+
], 2));
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
export {
|
|
72
|
+
V as default
|
|
73
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type Total from './total.vue';
|
|
2
|
+
import type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue';
|
|
3
|
+
export declare const paginationTotalProps: {
|
|
4
|
+
readonly total: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1000, boolean>;
|
|
5
|
+
};
|
|
6
|
+
export type PaginationTotalProps = ExtractPropTypes<typeof paginationTotalProps>;
|
|
7
|
+
export type PaginationTotalPropsPublic = ExtractPublicPropTypes<typeof paginationTotalProps>;
|
|
8
|
+
export type TotalInstance = InstanceType<typeof Total> & unknown;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "@vue/shared";
|
|
2
|
+
import "lodash-unified";
|
|
3
|
+
import "@vueuse/core";
|
|
4
|
+
import "@element-plus/icons-vue";
|
|
5
|
+
import { buildProps as o } from "../../../../utils/vue/props/runtime.js";
|
|
6
|
+
import "vue";
|
|
7
|
+
const e = o({
|
|
8
|
+
total: {
|
|
9
|
+
type: Number,
|
|
10
|
+
default: 1e3
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
export {
|
|
14
|
+
e as paginationTotalProps
|
|
15
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
readonly total: import("../../../../utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1000, boolean>;
|
|
3
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
4
|
+
readonly total: import("../../../../utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1000, boolean>;
|
|
5
|
+
}>> & Readonly<{}>, {
|
|
6
|
+
readonly total: number;
|
|
7
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { defineComponent as p, openBlock as e, createElementBlock as n, unref as o, normalizeClass as m, toDisplayString as s } from "vue";
|
|
2
|
+
import { useNamespace as l } from "../../../../hooks/use-namespace/index.js";
|
|
3
|
+
import "@vue/shared";
|
|
4
|
+
import "lodash-unified";
|
|
5
|
+
import "@vueuse/core";
|
|
6
|
+
import "@element-plus/icons-vue";
|
|
7
|
+
import { useLocale as c } from "../../../../hooks/use-locale/index.js";
|
|
8
|
+
import "../../../../hooks/use-size/index.js";
|
|
9
|
+
import "@popperjs/core";
|
|
10
|
+
import "../../../../hooks/use-z-index/index.js";
|
|
11
|
+
import "../../../../hooks/use-delayed-toggle/index.js";
|
|
12
|
+
import "../../../../hooks/use-aria/index.js";
|
|
13
|
+
import "../../../../hooks/use-model-toggle/index.js";
|
|
14
|
+
import "../../../../hooks/use-empty-values/index.js";
|
|
15
|
+
import { usePagination as d } from "../usePagination.js";
|
|
16
|
+
import { paginationTotalProps as f } from "./total.js";
|
|
17
|
+
const _ = ["disabled"], q = /* @__PURE__ */ p({
|
|
18
|
+
name: "ElPaginationTotal",
|
|
19
|
+
__name: "total",
|
|
20
|
+
props: f,
|
|
21
|
+
setup(u) {
|
|
22
|
+
const { t } = c(), a = l("pagination"), { disabled: i } = d();
|
|
23
|
+
return (r, g) => (e(), n("span", {
|
|
24
|
+
class: m(o(a).e("total")),
|
|
25
|
+
disabled: o(i)
|
|
26
|
+
}, s(o(t)("el.pagination.total", {
|
|
27
|
+
total: r.total
|
|
28
|
+
})), 11, _));
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export {
|
|
32
|
+
q as default
|
|
33
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ComputedRef, InjectionKey, WritableComputedRef } from 'vue';
|
|
2
|
+
export interface ElPaginationContext {
|
|
3
|
+
currentPage?: WritableComputedRef<number>;
|
|
4
|
+
pageCount?: ComputedRef<number>;
|
|
5
|
+
disabled?: ComputedRef<boolean>;
|
|
6
|
+
changeEvent?: (val: number) => void;
|
|
7
|
+
handleSizeChange?: (val: number) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const elPaginationKey: InjectionKey<ElPaginationContext>;
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import type { CSSProperties, ExtractPropTypes, ExtractPublicPropTypes, VNode } from 'vue';
|
|
2
|
+
export declare const paginationProps: {
|
|
3
|
+
readonly pageSize: NumberConstructor;
|
|
4
|
+
readonly defaultPageSize: NumberConstructor;
|
|
5
|
+
readonly total: NumberConstructor;
|
|
6
|
+
readonly pageCount: NumberConstructor;
|
|
7
|
+
readonly pagerCount: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 7, boolean>;
|
|
8
|
+
readonly currentPage: NumberConstructor;
|
|
9
|
+
readonly defaultCurrentPage: NumberConstructor;
|
|
10
|
+
readonly layout: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
11
|
+
readonly pageSizes: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => number[]) | (() => number[]) | (((new (...args: any[]) => number[]) | (() => number[])) | null)[], unknown, unknown, () => [10, 20, 30, 40, 50, 100], boolean>;
|
|
12
|
+
readonly popperClass: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
13
|
+
readonly popperStyle: {
|
|
14
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => string | CSSProperties) | (() => string | CSSProperties) | (((new (...args: any[]) => string | CSSProperties) | (() => string | CSSProperties)) | null)[], unknown, unknown>>;
|
|
15
|
+
readonly required: false;
|
|
16
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
17
|
+
__epPropKey: true;
|
|
18
|
+
};
|
|
19
|
+
readonly prevText: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
20
|
+
readonly prevIcon: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown, () => import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, boolean>;
|
|
21
|
+
readonly nextText: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
22
|
+
readonly nextIcon: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown, () => import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, boolean>;
|
|
23
|
+
readonly teleported: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
24
|
+
readonly small: BooleanConstructor;
|
|
25
|
+
readonly size: {
|
|
26
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
|
27
|
+
readonly required: false;
|
|
28
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
29
|
+
__epPropKey: true;
|
|
30
|
+
};
|
|
31
|
+
readonly background: BooleanConstructor;
|
|
32
|
+
readonly disabled: BooleanConstructor;
|
|
33
|
+
readonly hideOnSinglePage: BooleanConstructor;
|
|
34
|
+
readonly appendSizeTo: StringConstructor;
|
|
35
|
+
};
|
|
36
|
+
export type PaginationProps = ExtractPropTypes<typeof paginationProps>;
|
|
37
|
+
export type PaginationPropsPublic = ExtractPublicPropTypes<typeof paginationProps>;
|
|
38
|
+
export declare const paginationEmits: {
|
|
39
|
+
'update:current-page': (val: number) => boolean;
|
|
40
|
+
'update:page-size': (val: number) => boolean;
|
|
41
|
+
'size-change': (val: number) => boolean;
|
|
42
|
+
change: (currentPage: number, pageSize: number) => boolean;
|
|
43
|
+
'current-change': (val: number) => boolean;
|
|
44
|
+
'prev-click': (val: number) => boolean;
|
|
45
|
+
'next-click': (val: number) => boolean;
|
|
46
|
+
};
|
|
47
|
+
export type PaginationEmits = typeof paginationEmits;
|
|
48
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
49
|
+
readonly pageSize: NumberConstructor;
|
|
50
|
+
readonly defaultPageSize: NumberConstructor;
|
|
51
|
+
readonly total: NumberConstructor;
|
|
52
|
+
readonly pageCount: NumberConstructor;
|
|
53
|
+
readonly pagerCount: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 7, boolean>;
|
|
54
|
+
readonly currentPage: NumberConstructor;
|
|
55
|
+
readonly defaultCurrentPage: NumberConstructor;
|
|
56
|
+
readonly layout: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
57
|
+
readonly pageSizes: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => number[]) | (() => number[]) | (((new (...args: any[]) => number[]) | (() => number[])) | null)[], unknown, unknown, () => [10, 20, 30, 40, 50, 100], boolean>;
|
|
58
|
+
readonly popperClass: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
59
|
+
readonly popperStyle: {
|
|
60
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => string | CSSProperties) | (() => string | CSSProperties) | (((new (...args: any[]) => string | CSSProperties) | (() => string | CSSProperties)) | null)[], unknown, unknown>>;
|
|
61
|
+
readonly required: false;
|
|
62
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
63
|
+
__epPropKey: true;
|
|
64
|
+
};
|
|
65
|
+
readonly prevText: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
66
|
+
readonly prevIcon: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown, () => import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, boolean>;
|
|
67
|
+
readonly nextText: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
68
|
+
readonly nextIcon: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown, () => import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, boolean>;
|
|
69
|
+
readonly teleported: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
70
|
+
readonly small: BooleanConstructor;
|
|
71
|
+
readonly size: {
|
|
72
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
|
73
|
+
readonly required: false;
|
|
74
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
75
|
+
__epPropKey: true;
|
|
76
|
+
};
|
|
77
|
+
readonly background: BooleanConstructor;
|
|
78
|
+
readonly disabled: BooleanConstructor;
|
|
79
|
+
readonly hideOnSinglePage: BooleanConstructor;
|
|
80
|
+
readonly appendSizeTo: StringConstructor;
|
|
81
|
+
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
82
|
+
[key: string]: any;
|
|
83
|
+
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
84
|
+
'update:current-page': (val: number) => boolean;
|
|
85
|
+
'update:page-size': (val: number) => boolean;
|
|
86
|
+
'size-change': (val: number) => boolean;
|
|
87
|
+
change: (currentPage: number, pageSize: number) => boolean;
|
|
88
|
+
'current-change': (val: number) => boolean;
|
|
89
|
+
'prev-click': (val: number) => boolean;
|
|
90
|
+
'next-click': (val: number) => boolean;
|
|
91
|
+
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
92
|
+
readonly pageSize: NumberConstructor;
|
|
93
|
+
readonly defaultPageSize: NumberConstructor;
|
|
94
|
+
readonly total: NumberConstructor;
|
|
95
|
+
readonly pageCount: NumberConstructor;
|
|
96
|
+
readonly pagerCount: import("@element-plus/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 7, boolean>;
|
|
97
|
+
readonly currentPage: NumberConstructor;
|
|
98
|
+
readonly defaultCurrentPage: NumberConstructor;
|
|
99
|
+
readonly layout: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
100
|
+
readonly pageSizes: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => number[]) | (() => number[]) | (((new (...args: any[]) => number[]) | (() => number[])) | null)[], unknown, unknown, () => [10, 20, 30, 40, 50, 100], boolean>;
|
|
101
|
+
readonly popperClass: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
102
|
+
readonly popperStyle: {
|
|
103
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => string | CSSProperties) | (() => string | CSSProperties) | (((new (...args: any[]) => string | CSSProperties) | (() => string | CSSProperties)) | null)[], unknown, unknown>>;
|
|
104
|
+
readonly required: false;
|
|
105
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
106
|
+
__epPropKey: true;
|
|
107
|
+
};
|
|
108
|
+
readonly prevText: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
109
|
+
readonly prevIcon: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown, () => import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, boolean>;
|
|
110
|
+
readonly nextText: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
111
|
+
readonly nextIcon: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown, () => import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, boolean>;
|
|
112
|
+
readonly teleported: import("@element-plus/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
113
|
+
readonly small: BooleanConstructor;
|
|
114
|
+
readonly size: {
|
|
115
|
+
readonly type: import("vue").PropType<import("@element-plus/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
|
116
|
+
readonly required: false;
|
|
117
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
118
|
+
__epPropKey: true;
|
|
119
|
+
};
|
|
120
|
+
readonly background: BooleanConstructor;
|
|
121
|
+
readonly disabled: BooleanConstructor;
|
|
122
|
+
readonly hideOnSinglePage: BooleanConstructor;
|
|
123
|
+
readonly appendSizeTo: StringConstructor;
|
|
124
|
+
}>> & Readonly<{
|
|
125
|
+
onChange?: ((currentPage: number, pageSize: number) => any) | undefined;
|
|
126
|
+
"onUpdate:current-page"?: ((val: number) => any) | undefined;
|
|
127
|
+
"onUpdate:page-size"?: ((val: number) => any) | undefined;
|
|
128
|
+
"onSize-change"?: ((val: number) => any) | undefined;
|
|
129
|
+
"onCurrent-change"?: ((val: number) => any) | undefined;
|
|
130
|
+
"onPrev-click"?: ((val: number) => any) | undefined;
|
|
131
|
+
"onNext-click"?: ((val: number) => any) | undefined;
|
|
132
|
+
}>, {
|
|
133
|
+
readonly small: boolean;
|
|
134
|
+
readonly layout: string;
|
|
135
|
+
readonly background: boolean;
|
|
136
|
+
readonly disabled: boolean;
|
|
137
|
+
readonly teleported: import("@element-plus/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
138
|
+
readonly popperClass: string;
|
|
139
|
+
readonly prevText: string;
|
|
140
|
+
readonly prevIcon: import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown>;
|
|
141
|
+
readonly nextText: string;
|
|
142
|
+
readonly nextIcon: import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown>;
|
|
143
|
+
readonly pageSizes: number[];
|
|
144
|
+
readonly pagerCount: number;
|
|
145
|
+
readonly hideOnSinglePage: boolean;
|
|
146
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
147
|
+
export default _default;
|