hzzt-plus 0.0.2 → 0.0.4
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/index.css +1 -1
- package/dist/index.full.js +13679 -406
- package/dist/index.full.min.js +25 -17
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +26 -18
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +13660 -397
- package/dist/locale/en.js +11 -0
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.js.map +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.min.mjs.map +1 -1
- package/dist/locale/en.mjs +11 -0
- package/dist/locale/zh-cn.js +11 -0
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.js.map +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.min.mjs.map +1 -1
- package/dist/locale/zh-cn.mjs +11 -0
- package/es/component.mjs +11 -1
- package/es/component.mjs.map +1 -1
- package/es/components/collapse/index.d.ts +1 -3
- package/es/components/collapse/index.mjs +2 -1
- package/es/components/collapse/index.mjs.map +1 -1
- package/es/components/collapse/src/collapse.d.ts +2 -0
- package/es/components/collapse/src/{index.mjs → collapse.mjs} +3 -4
- package/es/components/collapse/src/collapse.mjs.map +1 -0
- package/es/components/collapse/src/{index.vue.d.ts → collapse.vue.d.ts} +0 -3
- package/es/components/collapse/src/collapse2.mjs +2 -0
- package/es/components/collapse/src/collapse2.mjs.map +1 -0
- package/es/components/config-provider/src/config-provider.mjs.map +1 -1
- package/es/components/config-provider/src/hooks/use-global-config.mjs.map +1 -1
- package/es/components/confirm-password/index.d.ts +556 -0
- package/es/components/confirm-password/index.mjs +8 -0
- package/es/components/confirm-password/index.mjs.map +1 -0
- package/es/components/confirm-password/src/confirm-password.mjs +72 -0
- package/es/components/confirm-password/src/confirm-password.mjs.map +1 -0
- package/es/components/confirm-password/src/confirm-password.vue.d.ts +556 -0
- package/es/components/confirm-password/style/css.d.ts +2 -0
- package/es/components/confirm-password/style/css.mjs +3 -0
- package/es/components/confirm-password/style/css.mjs.map +1 -0
- package/es/components/confirm-password/style/index.d.ts +2 -0
- package/es/components/confirm-password/style/index.mjs +3 -0
- package/es/components/confirm-password/style/index.mjs.map +1 -0
- package/es/components/dropdown/index.mjs.map +1 -1
- package/es/components/dropdown/src/index.mjs +18 -12
- package/es/components/dropdown/src/index.mjs.map +1 -1
- package/es/components/icon/index.d.ts +5 -0
- package/es/components/icon/index.mjs +17 -0
- package/es/components/icon/index.mjs.map +1 -0
- package/es/components/icon/src/index.mjs +34 -0
- package/es/components/icon/src/index.mjs.map +1 -0
- package/es/components/icon/src/index.vue.d.ts +138 -0
- package/es/components/icon/style/css.d.ts +2 -0
- package/es/components/icon/style/css.mjs +3 -0
- package/es/components/icon/style/css.mjs.map +1 -0
- package/es/components/icon/style/index.d.ts +2 -0
- package/es/components/icon/style/index.mjs +3 -0
- package/es/components/icon/style/index.mjs.map +1 -0
- package/es/components/index.d.ts +5 -0
- package/es/components/index.mjs +5 -0
- package/es/components/index.mjs.map +1 -1
- package/es/components/page-size/index.d.ts +3570 -0
- package/es/components/page-size/index.mjs +8 -0
- package/es/components/page-size/index.mjs.map +1 -0
- package/es/components/page-size/src/index.mjs +157 -0
- package/es/components/page-size/src/index.mjs.map +1 -0
- package/es/components/page-size/src/index.vue.d.ts +3570 -0
- package/es/components/page-size/style/css.d.ts +2 -0
- package/es/components/page-size/style/css.mjs +3 -0
- package/es/components/page-size/style/css.mjs.map +1 -0
- package/es/components/page-size/style/index.d.ts +2 -0
- package/es/components/page-size/style/index.mjs +3 -0
- package/es/components/page-size/style/index.mjs.map +1 -0
- package/es/components/pagination/index.d.ts +180 -0
- package/es/components/pagination/index.mjs +8 -0
- package/es/components/pagination/index.mjs.map +1 -0
- package/es/components/pagination/src/index.mjs +68 -0
- package/es/components/pagination/src/index.mjs.map +1 -0
- package/es/components/pagination/src/index.vue.d.ts +180 -0
- package/es/components/pagination/style/css.d.ts +2 -0
- package/es/components/pagination/style/css.mjs +3 -0
- package/es/components/pagination/style/css.mjs.map +1 -0
- package/es/components/pagination/style/index.d.ts +2 -0
- package/es/components/pagination/style/index.mjs +3 -0
- package/es/components/pagination/style/index.mjs.map +1 -0
- package/es/components/tab/index.mjs.map +1 -1
- package/es/components/tab/src/index.mjs +3 -3
- package/es/components/tab/src/index.mjs.map +1 -1
- package/es/components/title/index.mjs +1 -1
- package/es/components/title/index.mjs.map +1 -1
- package/es/components/title/src/{index.mjs → title.mjs} +2 -2
- package/es/components/title/src/title.mjs.map +1 -0
- package/es/components/tooltip/index.d.ts +1601 -0
- package/es/components/tooltip/index.mjs +8 -0
- package/es/components/tooltip/index.mjs.map +1 -0
- package/es/components/tooltip/src/instance.d.ts +2 -0
- package/es/components/tooltip/src/instance.mjs +2 -0
- package/es/components/tooltip/src/instance.mjs.map +1 -0
- package/es/components/tooltip/src/tooltip.mjs +49 -0
- package/es/components/tooltip/src/tooltip.mjs.map +1 -0
- package/es/components/tooltip/src/tooltip.vue.d.ts +1600 -0
- package/es/components/tooltip/style/css.d.ts +2 -0
- package/es/components/tooltip/style/css.mjs +3 -0
- package/es/components/tooltip/style/css.mjs.map +1 -0
- package/es/components/tooltip/style/index.d.ts +2 -0
- package/es/components/tooltip/style/index.mjs +3 -0
- package/es/components/tooltip/style/index.mjs.map +1 -0
- package/es/directives/blur/index.mjs.map +1 -1
- package/es/directives/download/index.mjs.map +1 -1
- package/es/directives/drag/index.d.ts +3 -0
- package/es/directives/drag/index.mjs +81 -0
- package/es/directives/drag/index.mjs.map +1 -0
- package/es/directives/height/index.mjs +3 -3
- package/es/directives/height/index.mjs.map +1 -1
- package/es/directives/highlight/index.d.ts +1 -1
- package/es/directives/highlight/index.mjs +5 -1
- package/es/directives/highlight/index.mjs.map +1 -1
- package/es/directives/index.d.ts +1 -0
- package/es/directives/index.mjs +1 -0
- package/es/directives/index.mjs.map +1 -1
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/index.mjs +1 -0
- package/es/hooks/index.mjs.map +1 -1
- package/es/hooks/use-namespace/index.d.ts +23 -0
- package/es/hooks/use-namespace/index.mjs +77 -0
- package/es/hooks/use-namespace/index.mjs.map +1 -0
- package/es/index.mjs +7 -0
- package/es/index.mjs.map +1 -1
- package/es/locale/lang/en.d.ts +11 -0
- package/es/locale/lang/en.mjs +11 -0
- package/es/locale/lang/en.mjs.map +1 -1
- package/es/locale/lang/zh-cn.d.ts +11 -0
- package/es/locale/lang/zh-cn.mjs +11 -0
- package/es/locale/lang/zh-cn.mjs.map +1 -1
- package/es/plugin.mjs.map +1 -1
- package/global.d.ts +5 -0
- package/lib/component.js +11 -1
- package/lib/component.js.map +1 -1
- package/lib/components/collapse/index.d.ts +1 -3
- package/lib/components/collapse/index.js +3 -2
- package/lib/components/collapse/index.js.map +1 -1
- package/lib/components/collapse/src/collapse.d.ts +2 -0
- package/lib/components/collapse/src/{index.js → collapse.js} +2 -3
- package/lib/components/collapse/src/collapse.js.map +1 -0
- package/lib/components/collapse/src/{index.vue.d.ts → collapse.vue.d.ts} +0 -3
- package/lib/components/collapse/src/collapse2.js +3 -0
- package/lib/components/collapse/src/collapse2.js.map +1 -0
- package/lib/components/config-provider/src/config-provider.js.map +1 -1
- package/lib/components/config-provider/src/hooks/use-global-config.js.map +1 -1
- package/lib/components/confirm-password/index.d.ts +556 -0
- package/lib/components/confirm-password/index.js +13 -0
- package/lib/components/confirm-password/index.js.map +1 -0
- package/lib/components/confirm-password/src/confirm-password.js +76 -0
- package/lib/components/confirm-password/src/confirm-password.js.map +1 -0
- package/lib/components/confirm-password/src/confirm-password.vue.d.ts +556 -0
- package/lib/components/confirm-password/style/css.d.ts +2 -0
- package/lib/components/confirm-password/style/css.js +6 -0
- package/lib/components/confirm-password/style/css.js.map +1 -0
- package/lib/components/confirm-password/style/index.d.ts +2 -0
- package/lib/components/confirm-password/style/index.js +6 -0
- package/lib/components/confirm-password/style/index.js.map +1 -0
- package/lib/components/dropdown/index.js.map +1 -1
- package/lib/components/dropdown/src/index.js +18 -12
- package/lib/components/dropdown/src/index.js.map +1 -1
- package/lib/components/icon/index.d.ts +5 -0
- package/lib/components/icon/index.js +42 -0
- package/lib/components/icon/index.js.map +1 -0
- package/lib/components/icon/src/index.js +38 -0
- package/lib/components/icon/src/index.js.map +1 -0
- package/lib/components/icon/src/index.vue.d.ts +138 -0
- package/lib/components/icon/style/css.d.ts +2 -0
- package/lib/components/icon/style/css.js +6 -0
- package/lib/components/icon/style/css.js.map +1 -0
- package/lib/components/icon/style/index.d.ts +2 -0
- package/lib/components/icon/style/index.js +6 -0
- package/lib/components/icon/style/index.js.map +1 -0
- package/lib/components/index.d.ts +5 -0
- package/lib/components/index.js +10 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/page-size/index.d.ts +3570 -0
- package/lib/components/page-size/index.js +13 -0
- package/lib/components/page-size/index.js.map +1 -0
- package/lib/components/page-size/src/index.js +161 -0
- package/lib/components/page-size/src/index.js.map +1 -0
- package/lib/components/page-size/src/index.vue.d.ts +3570 -0
- package/lib/components/page-size/style/css.d.ts +2 -0
- package/lib/components/page-size/style/css.js +6 -0
- package/lib/components/page-size/style/css.js.map +1 -0
- package/lib/components/page-size/style/index.d.ts +2 -0
- package/lib/components/page-size/style/index.js +6 -0
- package/lib/components/page-size/style/index.js.map +1 -0
- package/lib/components/pagination/index.d.ts +180 -0
- package/lib/components/pagination/index.js +13 -0
- package/lib/components/pagination/index.js.map +1 -0
- package/lib/components/pagination/src/index.js +72 -0
- package/lib/components/pagination/src/index.js.map +1 -0
- package/lib/components/pagination/src/index.vue.d.ts +180 -0
- package/lib/components/pagination/style/css.d.ts +2 -0
- package/lib/components/pagination/style/css.js +6 -0
- package/lib/components/pagination/style/css.js.map +1 -0
- package/lib/components/pagination/style/index.d.ts +2 -0
- package/lib/components/pagination/style/index.js +6 -0
- package/lib/components/pagination/style/index.js.map +1 -0
- package/lib/components/tab/index.js.map +1 -1
- package/lib/components/tab/src/index.js +3 -3
- package/lib/components/tab/src/index.js.map +1 -1
- package/lib/components/title/index.js +2 -2
- package/lib/components/title/index.js.map +1 -1
- package/lib/components/title/src/{index.js → title.js} +2 -2
- package/lib/components/title/src/title.js.map +1 -0
- package/lib/components/tooltip/index.d.ts +1601 -0
- package/lib/components/tooltip/index.js +13 -0
- package/lib/components/tooltip/index.js.map +1 -0
- package/lib/components/tooltip/src/instance.d.ts +2 -0
- package/lib/components/tooltip/src/instance.js +3 -0
- package/lib/components/tooltip/src/instance.js.map +1 -0
- package/lib/components/tooltip/src/tooltip.js +53 -0
- package/lib/components/tooltip/src/tooltip.js.map +1 -0
- package/lib/components/tooltip/src/tooltip.vue.d.ts +1600 -0
- package/lib/components/tooltip/style/css.d.ts +2 -0
- package/lib/components/tooltip/style/css.js +6 -0
- package/lib/components/tooltip/style/css.js.map +1 -0
- package/lib/components/tooltip/style/index.d.ts +2 -0
- package/lib/components/tooltip/style/index.js +6 -0
- package/lib/components/tooltip/style/index.js.map +1 -0
- package/lib/directives/blur/index.js.map +1 -1
- package/lib/directives/download/index.js.map +1 -1
- package/lib/directives/drag/index.d.ts +3 -0
- package/lib/directives/drag/index.js +85 -0
- package/lib/directives/drag/index.js.map +1 -0
- package/lib/directives/height/index.js +3 -3
- package/lib/directives/height/index.js.map +1 -1
- package/lib/directives/highlight/index.d.ts +1 -1
- package/lib/directives/highlight/index.js +5 -1
- package/lib/directives/highlight/index.js.map +1 -1
- package/lib/directives/index.d.ts +1 -0
- package/lib/directives/index.js +2 -0
- package/lib/directives/index.js.map +1 -1
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/index.js +5 -0
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/use-namespace/index.d.ts +23 -0
- package/lib/hooks/use-namespace/index.js +84 -0
- package/lib/hooks/use-namespace/index.js.map +1 -0
- package/lib/index.js +36 -19
- package/lib/index.js.map +1 -1
- package/lib/locale/lang/en.d.ts +11 -0
- package/lib/locale/lang/en.js +11 -0
- package/lib/locale/lang/en.js.map +1 -1
- package/lib/locale/lang/zh-cn.d.ts +11 -0
- package/lib/locale/lang/zh-cn.js +11 -0
- package/lib/locale/lang/zh-cn.js.map +1 -1
- package/lib/plugin.js.map +1 -1
- package/lib/utils/vue/icon.js +14 -14
- package/lib/utils/vue/icon.js.map +1 -1
- package/package.json +1 -1
- package/theme/base.css +1 -1
- package/theme/hzzt-confirm-password.css +0 -0
- package/theme/hzzt-icon.css +0 -0
- package/theme/hzzt-page-size.css +1 -0
- package/theme/hzzt-pagination.css +1 -0
- package/theme/hzzt-tooltip.css +0 -0
- package/theme/index.css +1 -1
- package/theme/src/base.scss +4 -3
- package/theme/src/common/display.scss +1 -1
- package/theme/src/common/font.scss +6 -0
- package/theme/src/common/index.scss +48 -0
- package/theme/src/confirm-password.scss +0 -0
- package/theme/src/icon.scss +0 -0
- package/theme/src/index.scss +6 -0
- package/theme/src/page-size.scss +86 -0
- package/theme/src/pagination.scss +17 -0
- package/theme/src/tooltip.scss +0 -0
- package/es/components/collapse/src/index.mjs.map +0 -1
- package/es/components/title/src/index.mjs.map +0 -1
- package/lib/components/collapse/src/index.js.map +0 -1
- package/lib/components/title/src/index.js.map +0 -1
- /package/es/components/title/src/{index.vue.d.ts → title.vue.d.ts} +0 -0
- /package/lib/components/title/src/{index.vue.d.ts → title.vue.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
export declare const HzztPagination: import("hzzt-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
2
|
+
pagination: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
default: () => {
|
|
5
|
+
total: number;
|
|
6
|
+
current_page: number;
|
|
7
|
+
total_pages: number;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
}, {
|
|
11
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
12
|
+
pagination: {
|
|
13
|
+
type: ObjectConstructor;
|
|
14
|
+
default: () => {
|
|
15
|
+
total: number;
|
|
16
|
+
current_page: number;
|
|
17
|
+
total_pages: number;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
}>> & {
|
|
21
|
+
onPrev?: ((...args: any[]) => any) | undefined;
|
|
22
|
+
onNext?: ((...args: any[]) => any) | undefined;
|
|
23
|
+
}>>;
|
|
24
|
+
emit: (event: "prev" | "next", ...args: any[]) => void;
|
|
25
|
+
t: import("../..").Translator;
|
|
26
|
+
prePage: () => false | undefined;
|
|
27
|
+
nextPage: () => false | undefined;
|
|
28
|
+
HzztIcon: import("vue").DefineComponent<{
|
|
29
|
+
name: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
type: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
}, {
|
|
38
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
39
|
+
name: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
type: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
}>> & {
|
|
48
|
+
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
49
|
+
}>>;
|
|
50
|
+
attrs: {
|
|
51
|
+
[x: string]: unknown;
|
|
52
|
+
};
|
|
53
|
+
componentName: import("vue").ComputedRef<string>;
|
|
54
|
+
ElIcon: import("element-plus/es/utils").SFCWithInstall<{
|
|
55
|
+
new (...args: any[]): {
|
|
56
|
+
$: import("vue").ComponentInternalInstance;
|
|
57
|
+
$data: {};
|
|
58
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
59
|
+
readonly size: {
|
|
60
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
|
|
61
|
+
readonly required: false;
|
|
62
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
63
|
+
__epPropKey: true;
|
|
64
|
+
};
|
|
65
|
+
readonly color: {
|
|
66
|
+
readonly type: import("vue").PropType<string>;
|
|
67
|
+
readonly required: false;
|
|
68
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
69
|
+
__epPropKey: true;
|
|
70
|
+
};
|
|
71
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
72
|
+
$attrs: {
|
|
73
|
+
[x: string]: unknown;
|
|
74
|
+
};
|
|
75
|
+
$refs: {
|
|
76
|
+
[x: string]: unknown;
|
|
77
|
+
};
|
|
78
|
+
$slots: Readonly<{
|
|
79
|
+
[name: string]: import("vue").Slot | undefined;
|
|
80
|
+
}>;
|
|
81
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
82
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
83
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
84
|
+
$el: any;
|
|
85
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
86
|
+
readonly size: {
|
|
87
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
|
|
88
|
+
readonly required: false;
|
|
89
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
90
|
+
__epPropKey: true;
|
|
91
|
+
};
|
|
92
|
+
readonly color: {
|
|
93
|
+
readonly type: import("vue").PropType<string>;
|
|
94
|
+
readonly required: false;
|
|
95
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
96
|
+
__epPropKey: true;
|
|
97
|
+
};
|
|
98
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & {
|
|
99
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
100
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
101
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
102
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
103
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
104
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
105
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
106
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
107
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
108
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
109
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
110
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
111
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
112
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
113
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
114
|
+
};
|
|
115
|
+
$forceUpdate: () => void;
|
|
116
|
+
$nextTick: typeof import("vue").nextTick;
|
|
117
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
118
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
|
119
|
+
readonly size: {
|
|
120
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
|
|
121
|
+
readonly required: false;
|
|
122
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
123
|
+
__epPropKey: true;
|
|
124
|
+
};
|
|
125
|
+
readonly color: {
|
|
126
|
+
readonly type: import("vue").PropType<string>;
|
|
127
|
+
readonly required: false;
|
|
128
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
129
|
+
__epPropKey: true;
|
|
130
|
+
};
|
|
131
|
+
}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
132
|
+
__isFragment?: undefined;
|
|
133
|
+
__isTeleport?: undefined;
|
|
134
|
+
__isSuspense?: undefined;
|
|
135
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
136
|
+
readonly size: {
|
|
137
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
|
|
138
|
+
readonly required: false;
|
|
139
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
140
|
+
__epPropKey: true;
|
|
141
|
+
};
|
|
142
|
+
readonly color: {
|
|
143
|
+
readonly type: import("vue").PropType<string>;
|
|
144
|
+
readonly required: false;
|
|
145
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
146
|
+
__epPropKey: true;
|
|
147
|
+
};
|
|
148
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
149
|
+
$slots: {
|
|
150
|
+
default?(_: {}): any;
|
|
151
|
+
};
|
|
152
|
+
})>;
|
|
153
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
154
|
+
name: {
|
|
155
|
+
type: StringConstructor;
|
|
156
|
+
required: true;
|
|
157
|
+
};
|
|
158
|
+
type: {
|
|
159
|
+
type: StringConstructor;
|
|
160
|
+
default: string;
|
|
161
|
+
};
|
|
162
|
+
}>>, {
|
|
163
|
+
type: string;
|
|
164
|
+
}>;
|
|
165
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("prev" | "next")[], "prev" | "next", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
166
|
+
pagination: {
|
|
167
|
+
type: ObjectConstructor;
|
|
168
|
+
default: () => {
|
|
169
|
+
total: number;
|
|
170
|
+
current_page: number;
|
|
171
|
+
total_pages: number;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
}>> & {
|
|
175
|
+
onPrev?: ((...args: any[]) => any) | undefined;
|
|
176
|
+
onNext?: ((...args: any[]) => any) | undefined;
|
|
177
|
+
}, {
|
|
178
|
+
pagination: Record<string, any>;
|
|
179
|
+
}>> & Record<string, any>;
|
|
180
|
+
export default HzztPagination;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
require('../../utils/index.js');
|
|
6
|
+
var index = require('./src/index.js');
|
|
7
|
+
var install = require('../../utils/vue/install.js');
|
|
8
|
+
|
|
9
|
+
const HzztPagination = install.withInstall(index["default"]);
|
|
10
|
+
|
|
11
|
+
exports.HzztPagination = HzztPagination;
|
|
12
|
+
exports["default"] = HzztPagination;
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../packages/components/pagination/index.ts"],"sourcesContent":["import { withInstall } from '@hzzt-plus/utils'\n\nimport Pagination from './src/index.vue'\n\nexport const HzztPagination = withInstall(Pagination)\nexport default HzztPagination\n"],"names":["withInstall","Pagination"],"mappings":";;;;;;;;AAEY,MAAC,cAAc,GAAGA,mBAAW,CAACC,gBAAU;;;;;"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var index$1 = require('../../icon/src/index.js');
|
|
7
|
+
require('../../../hooks/index.js');
|
|
8
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
9
|
+
var index = require('../../../hooks/use-locale/index.js');
|
|
10
|
+
|
|
11
|
+
const _hoisted_1 = { class: "flex justify-content-between hzzt-pagination" };
|
|
12
|
+
const _hoisted_2 = { class: "flex align-items-center font-12 hzzt-pagination-total" };
|
|
13
|
+
const _hoisted_3 = { class: "flex align-items-center hzzt-pagination-page font-14" };
|
|
14
|
+
const _hoisted_4 = { class: "flex" };
|
|
15
|
+
const __default__ = vue.defineComponent({
|
|
16
|
+
name: "HzztPagination"
|
|
17
|
+
});
|
|
18
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
19
|
+
...__default__,
|
|
20
|
+
props: {
|
|
21
|
+
pagination: {
|
|
22
|
+
type: Object,
|
|
23
|
+
default: () => ({
|
|
24
|
+
total: 0,
|
|
25
|
+
current_page: 1,
|
|
26
|
+
total_pages: 1
|
|
27
|
+
})
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
emits: ["prev", "next"],
|
|
31
|
+
setup(__props, { emit }) {
|
|
32
|
+
const props = __props;
|
|
33
|
+
const { t } = index.useLocale();
|
|
34
|
+
function prePage() {
|
|
35
|
+
if (props.pagination.current_page > 1) {
|
|
36
|
+
emit("prev", props.pagination.current_page - 1);
|
|
37
|
+
} else {
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
function nextPage() {
|
|
42
|
+
if (props.pagination.current_page < props.pagination.total_pages) {
|
|
43
|
+
emit("next", props.pagination.current_page + 1);
|
|
44
|
+
} else {
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return (_ctx, _cache) => {
|
|
49
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
50
|
+
vue.createElementVNode("p", _hoisted_2, vue.toDisplayString(vue.unref(t)("hzzt.pagination.total")) + vue.toDisplayString(__props.pagination.total) + vue.toDisplayString(vue.unref(t)("hzzt.pagination.strip")), 1),
|
|
51
|
+
vue.createElementVNode("div", _hoisted_3, [
|
|
52
|
+
vue.renderSlot(_ctx.$slots, "right"),
|
|
53
|
+
vue.createVNode(index$1["default"], {
|
|
54
|
+
class: vue.normalizeClass(["hzzt-pagination-arrow", { active: __props.pagination.current_page > 1 }]),
|
|
55
|
+
name: "arrow-left",
|
|
56
|
+
onClick: prePage
|
|
57
|
+
}, null, 8, ["class"]),
|
|
58
|
+
vue.createElementVNode("p", _hoisted_4, vue.toDisplayString(__props.pagination.current_page) + "/" + vue.toDisplayString(__props.pagination.total_pages), 1),
|
|
59
|
+
vue.createVNode(index$1["default"], {
|
|
60
|
+
class: vue.normalizeClass(["hzzt-pagination-arrow", { active: __props.pagination.current_page < __props.pagination.total_pages }]),
|
|
61
|
+
name: "arrow-right",
|
|
62
|
+
onClick: nextPage
|
|
63
|
+
}, null, 8, ["class"])
|
|
64
|
+
])
|
|
65
|
+
]);
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
var Pagination = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "index.vue"]]);
|
|
70
|
+
|
|
71
|
+
exports["default"] = Pagination;
|
|
72
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../packages/components/pagination/src/index.vue"],"sourcesContent":["<template>\n <div class=\"flex justify-content-between hzzt-pagination\">\n <p class=\"flex align-items-center font-12 hzzt-pagination-total\">\n {{ t('hzzt.pagination.total') }}{{ pagination.total\n }}{{ t('hzzt.pagination.strip') }}\n </p>\n <div class=\"flex align-items-center hzzt-pagination-page font-14\">\n <slot name=\"right\" />\n <hzzt-icon\n class=\"hzzt-pagination-arrow\"\n :class=\"{ active: pagination.current_page > 1 }\"\n name=\"arrow-left\"\n @click=\"prePage\"\n />\n <p class=\"flex\">\n {{ pagination.current_page }}/{{ pagination.total_pages }}\n </p>\n <hzzt-icon\n class=\"hzzt-pagination-arrow\"\n :class=\"{ active: pagination.current_page < pagination.total_pages }\"\n name=\"arrow-right\"\n @click=\"nextPage\"\n />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport HzztIcon from '@hzzt-plus/components/icon/src/index.vue'\nimport { useLocale } from '@hzzt-plus/hooks'\n\ndefineOptions({\n name: 'HzztPagination',\n})\n\nconst props = defineProps({\n pagination: {\n type: Object,\n default: () => ({\n total: 0,\n current_page: 1,\n total_pages: 1,\n }),\n },\n})\n\nconst emit = defineEmits(['prev', 'next'])\nconst { t } = useLocale()\n\nfunction prePage() {\n if (props.pagination.current_page > 1) {\n emit('prev', props.pagination.current_page - 1)\n } else {\n return false\n }\n}\n\nfunction nextPage() {\n if (props.pagination.current_page < props.pagination.total_pages) {\n emit('next', props.pagination.current_page + 1)\n } else {\n return false\n }\n}\n</script>\n"],"names":["useLocale"],"mappings":";;;;;;;;;;;;;;uCA+Bc,CAAA;AAAA,EACZ,IAAM,EAAA,gBAAA;AACR,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;;AAcA,IAAM,MAAA,EAAE,CAAE,EAAA,GAAIA,eAAU,EAAA,CAAA;AAExB,IAAA,SAAS,OAAU,GAAA;AACjB,MAAI,IAAA,KAAA,CAAM,UAAW,CAAA,YAAA,GAAe,CAAG,EAAA;AACrC,QAAA,IAAA,CAAK,MAAQ,EAAA,KAAA,CAAM,UAAW,CAAA,YAAA,GAAe,CAAC,CAAA,CAAA;AAAA,OACzC,MAAA;AACL,QAAO,OAAA,KAAA,CAAA;AAAA,OACT;AAAA,KACF;AAEA,IAAA,SAAS,QAAW,GAAA;AAClB,MAAA,IAAI,KAAM,CAAA,UAAA,CAAW,YAAe,GAAA,KAAA,CAAM,WAAW,WAAa,EAAA;AAChE,QAAA,IAAA,CAAK,MAAQ,EAAA,KAAA,CAAM,UAAW,CAAA,YAAA,GAAe,CAAC,CAAA,CAAA;AAAA,OACzC,MAAA;AACL,QAAO,OAAA,KAAA,CAAA;AAAA,OACT;AAAA,KACF;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
pagination: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
default: () => {
|
|
5
|
+
total: number;
|
|
6
|
+
current_page: number;
|
|
7
|
+
total_pages: number;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
}, {
|
|
11
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
12
|
+
pagination: {
|
|
13
|
+
type: ObjectConstructor;
|
|
14
|
+
default: () => {
|
|
15
|
+
total: number;
|
|
16
|
+
current_page: number;
|
|
17
|
+
total_pages: number;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
}>> & {
|
|
21
|
+
onPrev?: ((...args: any[]) => any) | undefined;
|
|
22
|
+
onNext?: ((...args: any[]) => any) | undefined;
|
|
23
|
+
}>>;
|
|
24
|
+
emit: (event: "prev" | "next", ...args: any[]) => void;
|
|
25
|
+
t: import("hzzt-plus/es/hooks").Translator;
|
|
26
|
+
prePage: () => false | undefined;
|
|
27
|
+
nextPage: () => false | undefined;
|
|
28
|
+
HzztIcon: import("vue").DefineComponent<{
|
|
29
|
+
name: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
type: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
}, {
|
|
38
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
39
|
+
name: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
type: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
}>> & {
|
|
48
|
+
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
49
|
+
}>>;
|
|
50
|
+
attrs: {
|
|
51
|
+
[x: string]: unknown;
|
|
52
|
+
};
|
|
53
|
+
componentName: import("vue").ComputedRef<string>;
|
|
54
|
+
ElIcon: import("element-plus/es/utils").SFCWithInstall<{
|
|
55
|
+
new (...args: any[]): {
|
|
56
|
+
$: import("vue").ComponentInternalInstance;
|
|
57
|
+
$data: {};
|
|
58
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
59
|
+
readonly size: {
|
|
60
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
|
|
61
|
+
readonly required: false;
|
|
62
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
63
|
+
__epPropKey: true;
|
|
64
|
+
};
|
|
65
|
+
readonly color: {
|
|
66
|
+
readonly type: import("vue").PropType<string>;
|
|
67
|
+
readonly required: false;
|
|
68
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
69
|
+
__epPropKey: true;
|
|
70
|
+
};
|
|
71
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
72
|
+
$attrs: {
|
|
73
|
+
[x: string]: unknown;
|
|
74
|
+
};
|
|
75
|
+
$refs: {
|
|
76
|
+
[x: string]: unknown;
|
|
77
|
+
};
|
|
78
|
+
$slots: Readonly<{
|
|
79
|
+
[name: string]: import("vue").Slot | undefined;
|
|
80
|
+
}>;
|
|
81
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
82
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
83
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
84
|
+
$el: any;
|
|
85
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
86
|
+
readonly size: {
|
|
87
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
|
|
88
|
+
readonly required: false;
|
|
89
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
90
|
+
__epPropKey: true;
|
|
91
|
+
};
|
|
92
|
+
readonly color: {
|
|
93
|
+
readonly type: import("vue").PropType<string>;
|
|
94
|
+
readonly required: false;
|
|
95
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
96
|
+
__epPropKey: true;
|
|
97
|
+
};
|
|
98
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & {
|
|
99
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
100
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
101
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
102
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
103
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
104
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
105
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
106
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
107
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
108
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
109
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
110
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
111
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
112
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
113
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
114
|
+
};
|
|
115
|
+
$forceUpdate: () => void;
|
|
116
|
+
$nextTick: typeof import("vue").nextTick;
|
|
117
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
118
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
|
119
|
+
readonly size: {
|
|
120
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
|
|
121
|
+
readonly required: false;
|
|
122
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
123
|
+
__epPropKey: true;
|
|
124
|
+
};
|
|
125
|
+
readonly color: {
|
|
126
|
+
readonly type: import("vue").PropType<string>;
|
|
127
|
+
readonly required: false;
|
|
128
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
129
|
+
__epPropKey: true;
|
|
130
|
+
};
|
|
131
|
+
}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
132
|
+
__isFragment?: undefined;
|
|
133
|
+
__isTeleport?: undefined;
|
|
134
|
+
__isSuspense?: undefined;
|
|
135
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
136
|
+
readonly size: {
|
|
137
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
|
|
138
|
+
readonly required: false;
|
|
139
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
140
|
+
__epPropKey: true;
|
|
141
|
+
};
|
|
142
|
+
readonly color: {
|
|
143
|
+
readonly type: import("vue").PropType<string>;
|
|
144
|
+
readonly required: false;
|
|
145
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
146
|
+
__epPropKey: true;
|
|
147
|
+
};
|
|
148
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
149
|
+
$slots: {
|
|
150
|
+
default?(_: {}): any;
|
|
151
|
+
};
|
|
152
|
+
})>;
|
|
153
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
154
|
+
name: {
|
|
155
|
+
type: StringConstructor;
|
|
156
|
+
required: true;
|
|
157
|
+
};
|
|
158
|
+
type: {
|
|
159
|
+
type: StringConstructor;
|
|
160
|
+
default: string;
|
|
161
|
+
};
|
|
162
|
+
}>>, {
|
|
163
|
+
type: string;
|
|
164
|
+
}>;
|
|
165
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("prev" | "next")[], "prev" | "next", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
166
|
+
pagination: {
|
|
167
|
+
type: ObjectConstructor;
|
|
168
|
+
default: () => {
|
|
169
|
+
total: number;
|
|
170
|
+
current_page: number;
|
|
171
|
+
total_pages: number;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
}>> & {
|
|
175
|
+
onPrev?: ((...args: any[]) => any) | undefined;
|
|
176
|
+
onNext?: ((...args: any[]) => any) | undefined;
|
|
177
|
+
}, {
|
|
178
|
+
pagination: Record<string, any>;
|
|
179
|
+
}>;
|
|
180
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../packages/components/tab/index.ts"],"sourcesContent":["import { withInstall } from '@hzzt-plus/utils'\n\nimport Tab from './src/index.vue'
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../packages/components/tab/index.ts"],"sourcesContent":["import { withInstall } from '@hzzt-plus/utils'\n\nimport Tab from './src/index.vue'\n\nexport const HzztTab = withInstall(Tab)\nexport default HzztTab\n"],"names":["withInstall","Tab"],"mappings":";;;;;;;;AAEY,MAAC,OAAO,GAAGA,mBAAW,CAACC,gBAAG;;;;;"}
|
|
@@ -35,7 +35,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
35
35
|
const customTabList = vue.computed(() => props.tabList.map((value) => {
|
|
36
36
|
const tab = value;
|
|
37
37
|
return {
|
|
38
|
-
key: tab.name
|
|
38
|
+
key: `${tab.name}-${tab.number}`,
|
|
39
39
|
...tab,
|
|
40
40
|
number: Number(tab.number || 0),
|
|
41
41
|
hide: tab.hide
|
|
@@ -54,8 +54,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
54
54
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(customTabList), (tab) => {
|
|
55
55
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
56
56
|
key: tab.key,
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
class: "hzzt-tab-pane",
|
|
58
|
+
onClick: ($event) => tabClick(tab, $event)
|
|
59
59
|
}, [
|
|
60
60
|
vue.createElementVNode("div", _hoisted_5, [
|
|
61
61
|
vue.createElementVNode("p", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../packages/components/tab/src/index.vue"],"sourcesContent":["<template>\n <div class=\"hzzt-tab flex align-items-center justify-content-between wrap\">\n <div class=\"flex align-items-center\">\n <div class=\"flex\">\n <div :key=\"tab.key\"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../packages/components/tab/src/index.vue"],"sourcesContent":["<template>\n <div class=\"hzzt-tab flex align-items-center justify-content-between wrap\">\n <div class=\"flex align-items-center\">\n <div class=\"flex\">\n <div\n v-for=\"tab in customTabList\"\n :key=\"tab.key\"\n class=\"hzzt-tab-pane\"\n @click=\"tabClick(tab, $event)\"\n >\n <div class=\"hzzt-tab-badge\">\n <p\n :class=\"{ active: modelValue === tab.name }\"\n class=\"hzzt-tab-badge-text\"\n >\n {{ tab.label }}\n </p>\n <p\n v-if=\"tab.number && tab.number !== 0\"\n class=\"hzzt-tab-badge-count\"\n >\n {{ tab.number > 999 ? '999+' : tab.number }}\n </p>\n </div>\n </div>\n </div>\n <slot name=\"filter\" />\n <slot name=\"extra\" />\n </div>\n <div class=\"flex wrap\">\n <slot name=\"right\" />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\n\ndefineOptions({\n name: 'HzztTab',\n})\n\ndeclare type Tab = {\n name: string\n label: string\n number: number\n hide: boolean\n}\n\nconst props = defineProps({\n tabList: {\n type: Array,\n default: () => [],\n },\n modelValue: {\n type: [Number, String, Array],\n },\n})\n\nconst emit = defineEmits(['update:modelValue', 'tab-click'])\n\nconst customTabList = computed(() =>\n props.tabList\n .map((value) => {\n const tab = value as Tab\n return {\n key: `${tab.name}-${tab.number}` as string,\n ...tab,\n number: Number(tab.number || 0),\n hide: tab.hide,\n }\n })\n .filter((tab) => !tab.hide)\n)\n\nfunction tabClick(tab, event) {\n if (tab.name === props.modelValue) return\n emit('update:modelValue', tab.name)\n emit('tab-click', tab, event)\n}\n</script>\n"],"names":["computed","_openBlock","_createElementBlock"],"mappings":";;;;;;;;;;;;;;;;;uCAsCc,CAAA;AAAA,EACZ,IAAM,EAAA,SAAA;AACR,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;AAqBA,IAAA,MAAM,aAAgB,GAAAA,YAAA,CAAA,MAAA,KAAA,CAAA,OAAA,CAAA,GAAA,CAAA,CAAA,KAAA,KAAA;AAAA,MAAS,MAC7B,GAAA,GAAM,KACH,CAAA;AACC,MAAA,OAAA;AACA,QAAO,GAAA,EAAA,CAAA,EAAA,GAAA,CAAA,IAAA,CAAA,CAAA,EAAA,GAAA,CAAA,MAAA,CAAA,CAAA;AAAA,QAAA;AACyB,QAAA,MAC3B,EAAA,MAAA,CAAA,GAAA,CAAA,MAAA,IAAA,CAAA,CAAA;AAAA,QAAA,IACK,EAAA,GAAA,CAAA,IAAA;AAAsB,OAAA,CAAA;AACpB,KACZ,CAAA,CAAA,MAAA,CAAA,CAAA,GAAA,KAAA,CAAA,GAAA,CAAA,IAAA,CAAA,CAAA,CAAA;AAAA,IAAA,SAED,QAAgB,CAAA,GAAA,OAAS,EAAA;AAAA,MAC9B,IAAA,GAAA,CAAA,IAAA,KAAA,KAAA,CAAA,UAAA;AAEA,QAAS,OAAA;AACP,MAAI,IAAA,CAAA,mBAAmB,EAAA,GAAA,CAAA,IAAA,CAAA,CAAA;AAAY,MAAA,IAAA,CAAA,WAAA,EAAA,GAAA,EAAA,KAAA,CAAA,CAAA;AACnC,KAAK;AACL,IAAK,OAAA,CAAA,IAAA,EAAA,MAAa,KAAK;AAAK,MAC9B,OAAAC,aAAA,EAAA,EAAAC,sBAAA,CAAA,KAAA,EAAA,UAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
require('../../utils/index.js');
|
|
6
|
-
var
|
|
6
|
+
var title = require('./src/title.js');
|
|
7
7
|
var install = require('../../utils/vue/install.js');
|
|
8
8
|
|
|
9
|
-
const HzztTitle = install.withInstall(
|
|
9
|
+
const HzztTitle = install.withInstall(title["default"]);
|
|
10
10
|
|
|
11
11
|
exports.HzztTitle = HzztTitle;
|
|
12
12
|
exports["default"] = HzztTitle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../packages/components/title/index.ts"],"sourcesContent":["import { withInstall } from '@hzzt-plus/utils'\n\nimport Title from './src/
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../packages/components/title/index.ts"],"sourcesContent":["import { withInstall } from '@hzzt-plus/utils'\n\nimport Title from './src/title.vue'\n\nexport const HzztTitle = withInstall(Title)\nexport default HzztTitle\n"],"names":["withInstall","Title"],"mappings":";;;;;;;;AAEY,MAAC,SAAS,GAAGA,mBAAW,CAACC,gBAAK;;;;;"}
|
|
@@ -46,7 +46,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
|
-
var Title = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "
|
|
49
|
+
var Title = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "title.vue"]]);
|
|
50
50
|
|
|
51
51
|
exports["default"] = Title;
|
|
52
|
-
//# sourceMappingURL=
|
|
52
|
+
//# sourceMappingURL=title.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"title.js","sources":["../../../../../../packages/components/title/src/title.vue"],"sourcesContent":["<template>\n <div v-if=\"showLabel\" class=\"hzzt-title flex align-items-center\">\n <span v-if=\"sideline\" class=\"decorative-line\" />\n <slot name=\"before\" />\n <label class=\"label-name\">\n <slot>{{ label }}</slot>\n </label>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, useSlots } from 'vue'\n\ndefineOptions({\n name: 'HzztTitle',\n})\n\nconst props = defineProps({\n label: String,\n sideline: {\n type: Boolean,\n default: true,\n },\n})\n\nconst slots = useSlots()\n\nconst showLabel = computed(\n () => props.label || slots?.default?.()?.[0]?.children\n)\n</script>\n"],"names":["useSlots","computed"],"mappings":";;;;;;;;;;;;;;;;uCAac,CAAA;AAAA,EACZ,IAAM,EAAA,WAAA;AACR,CAAA,CAAA,CAAA;;;;;;;;;;;;AAUA,IAAA,MAAM,QAAQA,YAAS,EAAA,CAAA;AAEvB,IAAA,MAAM,SAAY,GAAAC,YAAA,CAAA,MAAA;AAAA,MAChB,MAAM,EAAM,EAAA,EAAA,EAAA,CAAA;AAAkC,MAChD,OAAA,KAAA,CAAA,KAAA,KAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,KAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,KAAA,CAAA,OAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,IAAA,CAAA,KAAA,CAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,CAAA,CAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,QAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;"}
|