hzzt-plus 0.0.2-dev-01 → 0.0.2-dev-03

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.
Files changed (82) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.full.js +123 -55
  3. package/dist/index.full.min.js +7 -7
  4. package/dist/index.full.min.js.map +1 -1
  5. package/dist/index.full.min.mjs +8 -8
  6. package/dist/index.full.min.mjs.map +1 -1
  7. package/dist/index.full.mjs +124 -57
  8. package/dist/locale/en.js +4 -0
  9. package/dist/locale/en.min.js +1 -1
  10. package/dist/locale/en.min.js.map +1 -1
  11. package/dist/locale/en.min.mjs +1 -1
  12. package/dist/locale/en.min.mjs.map +1 -1
  13. package/dist/locale/en.mjs +4 -0
  14. package/dist/locale/zh-cn.js +4 -0
  15. package/dist/locale/zh-cn.min.js +1 -1
  16. package/dist/locale/zh-cn.min.js.map +1 -1
  17. package/dist/locale/zh-cn.min.mjs +1 -1
  18. package/dist/locale/zh-cn.min.mjs.map +1 -1
  19. package/dist/locale/zh-cn.mjs +4 -0
  20. package/es/component.mjs +3 -1
  21. package/es/component.mjs.map +1 -1
  22. package/es/components/icon/index.mjs +2 -2
  23. package/es/components/icon/index.mjs.map +1 -1
  24. package/es/components/icon/src/index.mjs +2 -2
  25. package/es/components/index.d.ts +1 -0
  26. package/es/components/index.mjs +1 -0
  27. package/es/components/index.mjs.map +1 -1
  28. package/es/components/pagination/index.d.ts +144 -0
  29. package/es/components/pagination/index.mjs +8 -0
  30. package/es/components/pagination/index.mjs.map +1 -0
  31. package/es/components/pagination/src/index.mjs +68 -0
  32. package/es/components/pagination/src/index.mjs.map +1 -0
  33. package/es/components/pagination/src/index.vue.d.ts +144 -0
  34. package/es/components/pagination/style/css.d.ts +2 -0
  35. package/es/components/pagination/style/css.mjs +3 -0
  36. package/es/components/pagination/style/css.mjs.map +1 -0
  37. package/es/components/pagination/style/index.d.ts +2 -0
  38. package/es/components/pagination/style/index.mjs +3 -0
  39. package/es/components/pagination/style/index.mjs.map +1 -0
  40. package/es/index.mjs +1 -0
  41. package/es/index.mjs.map +1 -1
  42. package/es/locale/lang/en.d.ts +4 -0
  43. package/es/locale/lang/en.mjs +4 -0
  44. package/es/locale/lang/en.mjs.map +1 -1
  45. package/es/locale/lang/zh-cn.d.ts +4 -0
  46. package/es/locale/lang/zh-cn.mjs +4 -0
  47. package/es/locale/lang/zh-cn.mjs.map +1 -1
  48. package/global.d.ts +1 -0
  49. package/lib/component.js +3 -1
  50. package/lib/component.js.map +1 -1
  51. package/lib/components/icon/src/index.js +2 -2
  52. package/lib/components/index.d.ts +1 -0
  53. package/lib/components/index.js +2 -0
  54. package/lib/components/index.js.map +1 -1
  55. package/lib/components/pagination/index.d.ts +144 -0
  56. package/lib/components/pagination/index.js +13 -0
  57. package/lib/components/pagination/index.js.map +1 -0
  58. package/lib/components/pagination/src/index.js +72 -0
  59. package/lib/components/pagination/src/index.js.map +1 -0
  60. package/lib/components/pagination/src/index.vue.d.ts +144 -0
  61. package/lib/components/pagination/style/css.d.ts +2 -0
  62. package/lib/components/pagination/style/css.js +6 -0
  63. package/lib/components/pagination/style/css.js.map +1 -0
  64. package/lib/components/pagination/style/index.d.ts +2 -0
  65. package/lib/components/pagination/style/index.js +6 -0
  66. package/lib/components/pagination/style/index.js.map +1 -0
  67. package/lib/index.js +21 -19
  68. package/lib/index.js.map +1 -1
  69. package/lib/locale/lang/en.d.ts +4 -0
  70. package/lib/locale/lang/en.js +4 -0
  71. package/lib/locale/lang/en.js.map +1 -1
  72. package/lib/locale/lang/zh-cn.d.ts +4 -0
  73. package/lib/locale/lang/zh-cn.js +4 -0
  74. package/lib/locale/lang/zh-cn.js.map +1 -1
  75. package/package.json +1 -1
  76. package/theme/base.css +1 -1
  77. package/theme/hzzt-pagination.css +1 -0
  78. package/theme/index.css +1 -1
  79. package/theme/src/base.scss +4 -3
  80. package/theme/src/common/index.scss +48 -0
  81. package/theme/src/index.scss +2 -0
  82. package/theme/src/pagination.scss +17 -0
@@ -0,0 +1,144 @@
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<import("vue").DefineComponent<{
55
+ readonly size: {
56
+ 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>>;
57
+ readonly required: false;
58
+ readonly validator: ((val: unknown) => boolean) | undefined;
59
+ __epPropKey: true;
60
+ };
61
+ readonly color: {
62
+ readonly type: import("vue").PropType<string>;
63
+ readonly required: false;
64
+ readonly validator: ((val: unknown) => boolean) | undefined;
65
+ __epPropKey: true;
66
+ };
67
+ }, {
68
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
69
+ readonly size: {
70
+ 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>>;
71
+ readonly required: false;
72
+ readonly validator: ((val: unknown) => boolean) | undefined;
73
+ __epPropKey: true;
74
+ };
75
+ readonly color: {
76
+ readonly type: import("vue").PropType<string>;
77
+ readonly required: false;
78
+ readonly validator: ((val: unknown) => boolean) | undefined;
79
+ __epPropKey: true;
80
+ };
81
+ }>> & {
82
+ [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
83
+ }>>;
84
+ ns: {
85
+ namespace: import("vue").ComputedRef<string>;
86
+ b: (blockSuffix?: string | undefined) => string;
87
+ e: (element?: string | undefined) => string;
88
+ m: (modifier?: string | undefined) => string;
89
+ be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
90
+ em: (element?: string | undefined, modifier?: string | undefined) => string;
91
+ bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
92
+ bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
93
+ is: {
94
+ (name: string, state: boolean | undefined): string;
95
+ (name: string): string;
96
+ };
97
+ cssVar: (object: Record<string, string>) => Record<string, string>;
98
+ cssVarName: (name: string) => string;
99
+ cssVarBlock: (object: Record<string, string>) => Record<string, string>;
100
+ cssVarBlockName: (name: string) => string;
101
+ };
102
+ style: import("vue").ComputedRef<import("vue").CSSProperties>;
103
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
104
+ readonly size: {
105
+ 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>>;
106
+ readonly required: false;
107
+ readonly validator: ((val: unknown) => boolean) | undefined;
108
+ __epPropKey: true;
109
+ };
110
+ readonly color: {
111
+ readonly type: import("vue").PropType<string>;
112
+ readonly required: false;
113
+ readonly validator: ((val: unknown) => boolean) | undefined;
114
+ __epPropKey: true;
115
+ };
116
+ }>>, {}>> & Record<string, any>;
117
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
118
+ name: {
119
+ type: StringConstructor;
120
+ required: true;
121
+ };
122
+ type: {
123
+ type: StringConstructor;
124
+ default: string;
125
+ };
126
+ }>>, {
127
+ type: string;
128
+ }>;
129
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("prev" | "next")[], "prev" | "next", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
130
+ pagination: {
131
+ type: ObjectConstructor;
132
+ default: () => {
133
+ total: number;
134
+ current_page: number;
135
+ total_pages: number;
136
+ };
137
+ };
138
+ }>> & {
139
+ onPrev?: ((...args: any[]) => any) | undefined;
140
+ onNext?: ((...args: any[]) => any) | undefined;
141
+ }, {
142
+ pagination: Record<string, any>;
143
+ }>> & Record<string, any>;
144
+ export default HzztPagination;
@@ -0,0 +1,8 @@
1
+ import '../../utils/index.mjs';
2
+ import Pagination from './src/index.mjs';
3
+ import { withInstall } from '../../utils/vue/install.mjs';
4
+
5
+ const HzztPagination = withInstall(Pagination);
6
+
7
+ export { HzztPagination, HzztPagination as default };
8
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","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":[],"mappings":";;;;AAEY,MAAC,cAAc,GAAG,WAAW,CAAC,UAAU;;;;"}
@@ -0,0 +1,68 @@
1
+ import { defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, unref, renderSlot, createVNode, normalizeClass } from 'vue';
2
+ import HzztIcon from '../../icon/src/index.mjs';
3
+ import '../../../hooks/index.mjs';
4
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
5
+ import { useLocale } from '../../../hooks/use-locale/index.mjs';
6
+
7
+ const _hoisted_1 = { class: "flex justify-content-between hzzt-pagination" };
8
+ const _hoisted_2 = { class: "flex align-items-center font-12 hzzt-pagination-total" };
9
+ const _hoisted_3 = { class: "flex align-items-center hzzt-pagination-page font-14" };
10
+ const _hoisted_4 = { class: "flex" };
11
+ const __default__ = defineComponent({
12
+ name: "HzztPagination"
13
+ });
14
+ const _sfc_main = /* @__PURE__ */ defineComponent({
15
+ ...__default__,
16
+ props: {
17
+ pagination: {
18
+ type: Object,
19
+ default: () => ({
20
+ total: 0,
21
+ current_page: 1,
22
+ total_pages: 1
23
+ })
24
+ }
25
+ },
26
+ emits: ["prev", "next"],
27
+ setup(__props, { emit }) {
28
+ const props = __props;
29
+ const { t } = useLocale();
30
+ function prePage() {
31
+ if (props.pagination.current_page > 1) {
32
+ emit("prev", props.pagination.current_page - 1);
33
+ } else {
34
+ return false;
35
+ }
36
+ }
37
+ function nextPage() {
38
+ if (props.pagination.current_page < props.pagination.total_pages) {
39
+ emit("next", props.pagination.current_page + 1);
40
+ } else {
41
+ return false;
42
+ }
43
+ }
44
+ return (_ctx, _cache) => {
45
+ return openBlock(), createElementBlock("div", _hoisted_1, [
46
+ createElementVNode("p", _hoisted_2, toDisplayString(unref(t)("hzzt.pagination.total")) + toDisplayString(__props.pagination.total) + toDisplayString(unref(t)("hzzt.pagination.strip")), 1),
47
+ createElementVNode("div", _hoisted_3, [
48
+ renderSlot(_ctx.$slots, "right"),
49
+ createVNode(HzztIcon, {
50
+ class: normalizeClass(["hzzt-pagination-arrow", { active: __props.pagination.current_page > 1 }]),
51
+ name: "arrow-left",
52
+ onClick: prePage
53
+ }, null, 8, ["class"]),
54
+ createElementVNode("p", _hoisted_4, toDisplayString(__props.pagination.current_page) + "/" + toDisplayString(__props.pagination.total_pages), 1),
55
+ createVNode(HzztIcon, {
56
+ class: normalizeClass(["hzzt-pagination-arrow", { active: __props.pagination.current_page < __props.pagination.total_pages }]),
57
+ name: "arrow-right",
58
+ onClick: nextPage
59
+ }, null, 8, ["class"])
60
+ ])
61
+ ]);
62
+ };
63
+ }
64
+ });
65
+ var Pagination = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "index.vue"]]);
66
+
67
+ export { Pagination as default };
68
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","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 }}{{ 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 class=\"hzzt-pagination-arrow\" :class=\"{ active: pagination.current_page > 1 }\" name=\"arrow-left\"\n @click=\"prePage\" />\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>\n\n import HzztIcon from '@hzzt-plus/components/icon/src/index.vue'\n import {useLocale} from '@hzzt-plus/hooks'\n\n defineOptions({\n name: 'HzztPagination',\n });\n\n const props = defineProps({\n pagination: {\n type: Object,\n default: () => ({\n total: 0,\n current_page: 1,\n total_pages: 1,\n }),\n },\n });\n\n const emit = defineEmits(['prev', 'next']);\n const {t} = useLocale();\n\n function prePage() {\n if (props.pagination.current_page > 1) {\n emit('prev', props.pagination.current_page - 1);\n } else {\n return false;\n }\n }\n\n function 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":[],"mappings":";;;;;;;;;;mCA2BgB,CAAA;AAAA,EACZ,IAAM,EAAA,gBAAA;AACR,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;;AAcA,IAAM,MAAA,EAAC,MAAK,SAAU,EAAA,CAAA;AAEtB,IAAmB,SAAA,OAAA,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,IAAoB,SAAA,QAAA,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,144 @@
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<import("vue").DefineComponent<{
55
+ readonly size: {
56
+ 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>>;
57
+ readonly required: false;
58
+ readonly validator: ((val: unknown) => boolean) | undefined;
59
+ __epPropKey: true;
60
+ };
61
+ readonly color: {
62
+ readonly type: import("vue").PropType<string>;
63
+ readonly required: false;
64
+ readonly validator: ((val: unknown) => boolean) | undefined;
65
+ __epPropKey: true;
66
+ };
67
+ }, {
68
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
69
+ readonly size: {
70
+ 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>>;
71
+ readonly required: false;
72
+ readonly validator: ((val: unknown) => boolean) | undefined;
73
+ __epPropKey: true;
74
+ };
75
+ readonly color: {
76
+ readonly type: import("vue").PropType<string>;
77
+ readonly required: false;
78
+ readonly validator: ((val: unknown) => boolean) | undefined;
79
+ __epPropKey: true;
80
+ };
81
+ }>> & {
82
+ [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
83
+ }>>;
84
+ ns: {
85
+ namespace: import("vue").ComputedRef<string>;
86
+ b: (blockSuffix?: string | undefined) => string;
87
+ e: (element?: string | undefined) => string;
88
+ m: (modifier?: string | undefined) => string;
89
+ be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
90
+ em: (element?: string | undefined, modifier?: string | undefined) => string;
91
+ bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
92
+ bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
93
+ is: {
94
+ (name: string, state: boolean | undefined): string;
95
+ (name: string): string;
96
+ };
97
+ cssVar: (object: Record<string, string>) => Record<string, string>;
98
+ cssVarName: (name: string) => string;
99
+ cssVarBlock: (object: Record<string, string>) => Record<string, string>;
100
+ cssVarBlockName: (name: string) => string;
101
+ };
102
+ style: import("vue").ComputedRef<import("vue").CSSProperties>;
103
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
104
+ readonly size: {
105
+ 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>>;
106
+ readonly required: false;
107
+ readonly validator: ((val: unknown) => boolean) | undefined;
108
+ __epPropKey: true;
109
+ };
110
+ readonly color: {
111
+ readonly type: import("vue").PropType<string>;
112
+ readonly required: false;
113
+ readonly validator: ((val: unknown) => boolean) | undefined;
114
+ __epPropKey: true;
115
+ };
116
+ }>>, {}>> & Record<string, any>;
117
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
118
+ name: {
119
+ type: StringConstructor;
120
+ required: true;
121
+ };
122
+ type: {
123
+ type: StringConstructor;
124
+ default: string;
125
+ };
126
+ }>>, {
127
+ type: string;
128
+ }>;
129
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("prev" | "next")[], "prev" | "next", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
130
+ pagination: {
131
+ type: ObjectConstructor;
132
+ default: () => {
133
+ total: number;
134
+ current_page: number;
135
+ total_pages: number;
136
+ };
137
+ };
138
+ }>> & {
139
+ onPrev?: ((...args: any[]) => any) | undefined;
140
+ onNext?: ((...args: any[]) => any) | undefined;
141
+ }, {
142
+ pagination: Record<string, any>;
143
+ }>;
144
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import 'hzzt-plus/es/components/base/style/css';
2
+ import 'hzzt-plus/theme/hzzt-pagination.css';
@@ -0,0 +1,3 @@
1
+ import '../../base/style/css.mjs';
2
+ import 'hzzt-plus/theme/hzzt-pagination.css';
3
+ //# sourceMappingURL=css.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"css.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ import 'hzzt-plus/es/components/base/style';
2
+ import 'hzzt-plus/theme/src/pagination.scss';
@@ -0,0 +1,3 @@
1
+ import '../../base/style/index.mjs';
2
+ import 'hzzt-plus/theme/src/pagination.scss';
3
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
package/es/index.mjs CHANGED
@@ -14,6 +14,7 @@ export { provideGlobalConfig, useGlobalConfig } from './components/config-provid
14
14
  export { HzztConfigProvider } from './components/config-provider/index.mjs';
15
15
  export { HzztTab } from './components/tab/index.mjs';
16
16
  export { HzztIcon } from './components/icon/index.mjs';
17
+ export { HzztPagination } from './components/pagination/index.mjs';
17
18
  export { INSTALLED_KEY } from './constants/key.mjs';
18
19
  export { componentSizeMap, componentSizes } from './constants/size.mjs';
19
20
  export { WEEK_DAYS, datePickTypes } from './constants/date.mjs';
package/es/index.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../packages/hzzt-plus/index.ts"],"sourcesContent":["import installer from './defaults'\nexport * from '@hzzt-plus/components'\nexport * from '@hzzt-plus/constants'\nexport * from '@hzzt-plus/directives'\nexport * from '@hzzt-plus/hooks'\nexport * from './make-installer'\n\nexport const install = installer.install\nexport const version = installer.version\nexport default installer;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAMY,MAAC,OAAO,GAAG,SAAS,CAAC,QAAQ;AAC7B,MAAC,OAAO,GAAG,SAAS,CAAC;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../packages/hzzt-plus/index.ts"],"sourcesContent":["import installer from './defaults'\nexport * from '@hzzt-plus/components'\nexport * from '@hzzt-plus/constants'\nexport * from '@hzzt-plus/directives'\nexport * from '@hzzt-plus/hooks'\nexport * from './make-installer'\n\nexport const install = installer.install\nexport const version = installer.version\nexport default installer;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAMY,MAAC,OAAO,GAAG,SAAS,CAAC,QAAQ;AAC7B,MAAC,OAAO,GAAG,SAAS,CAAC;;;;"}
@@ -5,6 +5,10 @@ declare const _default: {
5
5
  expand: string;
6
6
  retract: string;
7
7
  };
8
+ pagination: {
9
+ total: string;
10
+ strip: string;
11
+ };
8
12
  };
9
13
  };
10
14
  export default _default;
@@ -4,6 +4,10 @@ var English = {
4
4
  collapse: {
5
5
  expand: "expand",
6
6
  retract: "retract"
7
+ },
8
+ pagination: {
9
+ total: "total",
10
+ strip: "strip"
7
11
  }
8
12
  }
9
13
  };
@@ -1 +1 @@
1
- {"version":3,"file":"en.mjs","sources":["../../../../../packages/locale/lang/en.ts"],"sourcesContent":["export default {\n name: 'en',\n hzzt: {\n collapse: {\n expand: 'expand',\n retract: 'retract',\n }\n },\n}\n"],"names":[],"mappings":"AAAA,cAAe;AACf,EAAE,IAAI,EAAE,IAAI;AACZ,EAAE,IAAI,EAAE;AACR,IAAI,QAAQ,EAAE;AACd,MAAM,MAAM,EAAE,QAAQ;AACtB,MAAM,OAAO,EAAE,SAAS;AACxB,KAAK;AACL,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"en.mjs","sources":["../../../../../packages/locale/lang/en.ts"],"sourcesContent":["export default {\n name: 'en',\n hzzt: {\n collapse: {\n expand: 'expand',\n retract: 'retract',\n },\n pagination: {\n total: 'total',\n strip: 'strip',\n }\n },\n}\n"],"names":[],"mappings":"AAAA,cAAe;AACf,EAAE,IAAI,EAAE,IAAI;AACZ,EAAE,IAAI,EAAE;AACR,IAAI,QAAQ,EAAE;AACd,MAAM,MAAM,EAAE,QAAQ;AACtB,MAAM,OAAO,EAAE,SAAS;AACxB,KAAK;AACL,IAAI,UAAU,EAAE;AAChB,MAAM,KAAK,EAAE,OAAO;AACpB,MAAM,KAAK,EAAE,OAAO;AACpB,KAAK;AACL,GAAG;AACH,CAAC;;;;"}
@@ -5,6 +5,10 @@ declare const _default: {
5
5
  expand: string;
6
6
  retract: string;
7
7
  };
8
+ pagination: {
9
+ total: string;
10
+ strip: string;
11
+ };
8
12
  };
9
13
  };
10
14
  export default _default;
@@ -4,6 +4,10 @@ var zhCn = {
4
4
  collapse: {
5
5
  expand: "\u5C55\u5F00",
6
6
  retract: "\u6536\u8D77"
7
+ },
8
+ pagination: {
9
+ total: "\u5171",
10
+ strip: "\u6761"
7
11
  }
8
12
  }
9
13
  };
@@ -1 +1 @@
1
- {"version":3,"file":"zh-cn.mjs","sources":["../../../../../packages/locale/lang/zh-cn.ts"],"sourcesContent":["export default {\n name: 'zh-cn',\n hzzt: {\n collapse: {\n expand: '展开',\n retract: '收起',\n }\n },\n}\n"],"names":[],"mappings":"AAAA,WAAe;AACf,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,IAAI,EAAE;AACR,IAAI,QAAQ,EAAE;AACd,MAAM,MAAM,EAAE,cAAc;AAC5B,MAAM,OAAO,EAAE,cAAc;AAC7B,KAAK;AACL,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"zh-cn.mjs","sources":["../../../../../packages/locale/lang/zh-cn.ts"],"sourcesContent":["export default {\n name: 'zh-cn',\n hzzt: {\n collapse: {\n expand: '展开',\n retract: '收起',\n },\n pagination: {\n total: '共',\n strip: '条',\n }\n },\n}\n"],"names":[],"mappings":"AAAA,WAAe;AACf,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,IAAI,EAAE;AACR,IAAI,QAAQ,EAAE;AACd,MAAM,MAAM,EAAE,cAAc;AAC5B,MAAM,OAAO,EAAE,cAAc;AAC7B,KAAK;AACL,IAAI,UAAU,EAAE;AAChB,MAAM,KAAK,EAAE,QAAQ;AACrB,MAAM,KAAK,EAAE,QAAQ;AACrB,KAAK;AACL,GAAG;AACH,CAAC;;;;"}
package/global.d.ts CHANGED
@@ -7,6 +7,7 @@ declare module 'vue' {
7
7
  HzztConfigProvider: typeof import('hzzt-plus')['HzztConfigProvider']
8
8
  HzztTab: typeof import('hzzt-plus')['HzztTab']
9
9
  HzztIcon: typeof import('hzzt-plus')['HzztIcon']
10
+ HzztPagination: typeof import('hzzt-plus')['HzztPagination']
10
11
  }
11
12
  }
12
13
 
package/lib/component.js CHANGED
@@ -8,6 +8,7 @@ var index$3 = require('./components/collapse/index.js');
8
8
  var index = require('./components/config-provider/index.js');
9
9
  var index$4 = require('./components/tab/index.js');
10
10
  var index$5 = require('./components/icon/index.js');
11
+ var index$6 = require('./components/pagination/index.js');
11
12
 
12
13
  var Components = [
13
14
  index.HzztConfigProvider,
@@ -15,7 +16,8 @@ var Components = [
15
16
  index$2.HzztDropdown,
16
17
  index$3.HzztCollapse,
17
18
  index$4.HzztTab,
18
- index$5.HzztIcon
19
+ index$5.HzztIcon,
20
+ index$6.HzztPagination
19
21
  ];
20
22
 
21
23
  exports["default"] = Components;
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sources":["../../../packages/hzzt-plus/component.ts"],"sourcesContent":["import {HzztTitle} from '@hzzt-plus/components/title'\nimport {HzztDropdown} from '@hzzt-plus/components/dropdown'\nimport {HzztCollapse} from '@hzzt-plus/components/collapse'\nimport {HzztConfigProvider} from '@hzzt-plus/components/config-provider'\nimport {HzztTab} from '@hzzt-plus/components/tab'\nimport {HzztIcon} from '@hzzt-plus/components/icon'\n\nimport type {Plugin} from 'vue'\n\nexport default [\n HzztConfigProvider,\n HzztTitle,\n HzztDropdown,\n HzztCollapse,\n HzztTab,\n HzztIcon,\n] as Plugin[]\n"],"names":["HzztConfigProvider","HzztTitle","HzztDropdown","HzztCollapse","HzztTab","HzztIcon"],"mappings":";;;;;;;;;;;AAMA,iBAAe;AACf,EAAEA,wBAAkB;AACpB,EAAEC,iBAAS;AACX,EAAEC,oBAAY;AACd,EAAEC,oBAAY;AACd,EAAEC,eAAO;AACT,EAAEC,gBAAQ;AACV,CAAC;;;;"}
1
+ {"version":3,"file":"component.js","sources":["../../../packages/hzzt-plus/component.ts"],"sourcesContent":["import {HzztTitle} from '@hzzt-plus/components/title'\nimport {HzztDropdown} from '@hzzt-plus/components/dropdown'\nimport {HzztCollapse} from '@hzzt-plus/components/collapse'\nimport {HzztConfigProvider} from '@hzzt-plus/components/config-provider'\nimport {HzztTab} from '@hzzt-plus/components/tab'\nimport {HzztIcon} from '@hzzt-plus/components/icon'\nimport {HzztPagination} from '@hzzt-plus/components/pagination'\n\nimport type {Plugin} from 'vue'\n\nexport default [\n HzztConfigProvider,\n HzztTitle,\n HzztDropdown,\n HzztCollapse,\n HzztTab,\n HzztIcon,\n HzztPagination,\n] as Plugin[]\n"],"names":["HzztConfigProvider","HzztTitle","HzztDropdown","HzztCollapse","HzztTab","HzztIcon","HzztPagination"],"mappings":";;;;;;;;;;;;AAOA,iBAAe;AACf,EAAEA,wBAAkB;AACpB,EAAEC,iBAAS;AACX,EAAEC,oBAAY;AACd,EAAEC,oBAAY;AACd,EAAEC,eAAO;AACT,EAAEC,gBAAQ;AACV,EAAEC,sBAAc;AAChB,CAAC;;;;"}
@@ -32,7 +32,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
32
32
  };
33
33
  }
34
34
  });
35
- var Icon = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "index.vue"]]);
35
+ var HzztIcon = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "index.vue"]]);
36
36
 
37
- exports["default"] = Icon;
37
+ exports["default"] = HzztIcon;
38
38
  //# sourceMappingURL=index.js.map
@@ -4,3 +4,4 @@ export * from './collapse';
4
4
  export * from './config-provider';
5
5
  export * from './tab';
6
6
  export * from './icon';
7
+ export * from './pagination';
@@ -8,6 +8,7 @@ var index$2 = require('./collapse/index.js');
8
8
  var index$3 = require('./config-provider/index.js');
9
9
  var index$4 = require('./tab/index.js');
10
10
  var index$5 = require('./icon/index.js');
11
+ var index$6 = require('./pagination/index.js');
11
12
  var configProviderProps = require('./config-provider/src/config-provider-props.js');
12
13
  var constants = require('./config-provider/src/constants.js');
13
14
  var useGlobalConfig = require('./config-provider/src/hooks/use-global-config.js');
@@ -20,6 +21,7 @@ exports.HzztCollapse = index$2.HzztCollapse;
20
21
  exports.HzztConfigProvider = index$3.HzztConfigProvider;
21
22
  exports.HzztTab = index$4.HzztTab;
22
23
  exports.HzztIcon = index$5.HzztIcon;
24
+ exports.HzztPagination = index$6.HzztPagination;
23
25
  exports.configProviderProps = configProviderProps.configProviderProps;
24
26
  exports.configProviderContextKey = constants.configProviderContextKey;
25
27
  exports.provideGlobalConfig = useGlobalConfig.provideGlobalConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}