hzzt-plus 2.0.6 → 2.0.8

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 (104) hide show
  1. package/dist/index.full.js +74 -67
  2. package/dist/index.full.min.js +10 -10
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +10 -10
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +74 -67
  7. package/dist/locale/en.js +1 -1
  8. package/dist/locale/en.min.js +1 -1
  9. package/dist/locale/en.min.mjs +1 -1
  10. package/dist/locale/en.mjs +1 -1
  11. package/dist/locale/zh-cn.js +1 -1
  12. package/dist/locale/zh-cn.min.js +1 -1
  13. package/dist/locale/zh-cn.min.mjs +1 -1
  14. package/dist/locale/zh-cn.mjs +1 -1
  15. package/es/components/collapse/index.d.ts +6 -0
  16. package/es/components/collapse/index.mjs +2 -2
  17. package/es/components/collapse/src/collapse.mjs +0 -88
  18. package/es/components/collapse/src/collapse.mjs.map +1 -1
  19. package/es/components/collapse/src/collapse.vue.d.ts +6 -0
  20. package/es/components/collapse/src/collapse2.mjs +88 -0
  21. package/es/components/collapse/src/collapse2.mjs.map +1 -1
  22. package/es/components/icon/index.d.ts +438 -3
  23. package/es/components/icon/index.mjs +12 -11
  24. package/es/components/icon/index.mjs.map +1 -1
  25. package/es/components/icon/src/index.mjs +13 -5
  26. package/es/components/icon/src/index.mjs.map +1 -1
  27. package/es/components/icon/src/index.vue.d.ts +6 -0
  28. package/es/components/index.mjs +3 -3
  29. package/es/components/lazy-list/index.mjs +2 -2
  30. package/es/components/lazy-list/src/lazy-list.mjs +80 -22
  31. package/es/components/lazy-list/src/lazy-list.mjs.map +1 -1
  32. package/es/components/lazy-list/src/lazy-list2.mjs +22 -80
  33. package/es/components/lazy-list/src/lazy-list2.mjs.map +1 -1
  34. package/es/components/page-size/index.d.ts +6 -0
  35. package/es/components/page-size/src/index.vue.d.ts +6 -0
  36. package/es/components/pagination/index.d.ts +6 -0
  37. package/es/components/pagination/src/index.vue.d.ts +6 -0
  38. package/es/components/quarter-picker/index.d.ts +6 -0
  39. package/es/components/quarter-picker/src/index.vue.d.ts +6 -0
  40. package/es/components/scroll/src/scroll.vue.d.ts +6 -0
  41. package/es/components/select/src/select.vue.d.ts +6 -0
  42. package/es/components/select-input/index.mjs +2 -2
  43. package/es/components/select-input/src/select-input.mjs +45 -124
  44. package/es/components/select-input/src/select-input.mjs.map +1 -1
  45. package/es/components/select-input/src/select-input2.mjs +124 -45
  46. package/es/components/select-input/src/select-input2.mjs.map +1 -1
  47. package/es/components/select-textarea/src/select-textarea2.mjs +1 -1
  48. package/es/components/tab/index.d.ts +6 -0
  49. package/es/components/tab/src/index.vue.d.ts +6 -0
  50. package/es/components/title/index.mjs +2 -2
  51. package/es/components/title/src/title.mjs +11 -54
  52. package/es/components/title/src/title.mjs.map +1 -1
  53. package/es/components/title/src/title2.mjs +54 -11
  54. package/es/components/title/src/title2.mjs.map +1 -1
  55. package/es/index.mjs +3 -3
  56. package/es/version.d.ts +1 -1
  57. package/es/version.mjs +1 -1
  58. package/es/version.mjs.map +1 -1
  59. package/lib/components/collapse/index.d.ts +6 -0
  60. package/lib/components/collapse/index.js +2 -2
  61. package/lib/components/collapse/src/collapse.js +0 -91
  62. package/lib/components/collapse/src/collapse.js.map +1 -1
  63. package/lib/components/collapse/src/collapse.vue.d.ts +6 -0
  64. package/lib/components/collapse/src/collapse2.js +91 -0
  65. package/lib/components/collapse/src/collapse2.js.map +1 -1
  66. package/lib/components/icon/index.d.ts +438 -3
  67. package/lib/components/icon/index.js +14 -13
  68. package/lib/components/icon/index.js.map +1 -1
  69. package/lib/components/icon/src/index.js +12 -4
  70. package/lib/components/icon/src/index.js.map +1 -1
  71. package/lib/components/icon/src/index.vue.d.ts +6 -0
  72. package/lib/components/index.js +3 -3
  73. package/lib/components/lazy-list/index.js +2 -2
  74. package/lib/components/lazy-list/src/lazy-list.js +80 -23
  75. package/lib/components/lazy-list/src/lazy-list.js.map +1 -1
  76. package/lib/components/lazy-list/src/lazy-list2.js +23 -80
  77. package/lib/components/lazy-list/src/lazy-list2.js.map +1 -1
  78. package/lib/components/page-size/index.d.ts +6 -0
  79. package/lib/components/page-size/src/index.vue.d.ts +6 -0
  80. package/lib/components/pagination/index.d.ts +6 -0
  81. package/lib/components/pagination/src/index.vue.d.ts +6 -0
  82. package/lib/components/quarter-picker/index.d.ts +6 -0
  83. package/lib/components/quarter-picker/src/index.vue.d.ts +6 -0
  84. package/lib/components/scroll/src/scroll.vue.d.ts +6 -0
  85. package/lib/components/select/src/select.vue.d.ts +6 -0
  86. package/lib/components/select-input/index.js +2 -2
  87. package/lib/components/select-input/src/select-input.js +46 -124
  88. package/lib/components/select-input/src/select-input.js.map +1 -1
  89. package/lib/components/select-input/src/select-input2.js +124 -46
  90. package/lib/components/select-input/src/select-input2.js.map +1 -1
  91. package/lib/components/select-textarea/src/select-textarea2.js +1 -1
  92. package/lib/components/tab/index.d.ts +6 -0
  93. package/lib/components/tab/src/index.vue.d.ts +6 -0
  94. package/lib/components/title/index.js +2 -2
  95. package/lib/components/title/src/title.js +11 -54
  96. package/lib/components/title/src/title.js.map +1 -1
  97. package/lib/components/title/src/title2.js +54 -11
  98. package/lib/components/title/src/title2.js.map +1 -1
  99. package/lib/index.js +3 -3
  100. package/lib/version.d.ts +1 -1
  101. package/lib/version.js +1 -1
  102. package/lib/version.js.map +1 -1
  103. package/package.json +1 -1
  104. package/web-types.json +1 -1
@@ -1,2 +1,90 @@
1
+ import { defineComponent, ref, watch, openBlock, createElementBlock, createElementVNode, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createVNode, unref, withDirectives, vShow } from 'vue';
2
+ import '../../../hooks/index.mjs';
3
+ import HzztIcon from '../../icon/src/index.mjs';
4
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
5
+ import { useLocale } from '../../../hooks/use-locale/index.mjs';
1
6
 
7
+ const _hoisted_1 = { class: "hzzt-collapse flex column" };
8
+ const _hoisted_2 = { class: "hzzt-collapse__top" };
9
+ const _hoisted_3 = { class: "hzzt-collapse__title" };
10
+ const _hoisted_4 = {
11
+ key: 0,
12
+ class: "hzzt-collapse__line"
13
+ };
14
+ const _hoisted_5 = { class: "hzzt-collapse__content flex-1" };
15
+ const __default__ = defineComponent({
16
+ name: "HzztCollapse"
17
+ });
18
+ const _sfc_main = /* @__PURE__ */ defineComponent({
19
+ ...__default__,
20
+ props: {
21
+ defaultActive: {
22
+ type: Boolean,
23
+ default: true
24
+ },
25
+ title: {
26
+ type: String,
27
+ default: ""
28
+ },
29
+ showLine: {
30
+ type: Boolean,
31
+ default: true
32
+ },
33
+ modelValue: {
34
+ type: Boolean,
35
+ default: true
36
+ }
37
+ },
38
+ emits: ["update:modelValue"],
39
+ setup(__props, { emit }) {
40
+ const props = __props;
41
+ const { t } = useLocale();
42
+ const expand = ref(props.modelValue);
43
+ if (!props.defaultActive) {
44
+ emit("update:modelValue", false);
45
+ expand.value = false;
46
+ }
47
+ watch(() => props.modelValue, (v) => {
48
+ expand.value = v;
49
+ });
50
+ function toggle() {
51
+ expand.value = !expand.value;
52
+ emit("update:modelValue", expand.value);
53
+ }
54
+ return (_ctx, _cache) => {
55
+ return openBlock(), createElementBlock("div", _hoisted_1, [
56
+ createElementVNode("div", _hoisted_2, [
57
+ createElementVNode("div", _hoisted_3, [
58
+ renderSlot(_ctx.$slots, "title", {}, () => [
59
+ createTextVNode(toDisplayString(__props.title), 1)
60
+ ])
61
+ ]),
62
+ __props.showLine ? (openBlock(), createElementBlock("div", _hoisted_4)) : createCommentVNode("v-if", true),
63
+ renderSlot(_ctx.$slots, "toggle-btn", {}, () => [
64
+ createElementVNode("div", {
65
+ class: "hzzt-collapse__btn",
66
+ onClick: toggle
67
+ }, [
68
+ createVNode(HzztIcon, {
69
+ name: !expand.value ? "hzzt-plus-square-outline" : "hzzt-minus-square-outline",
70
+ class: "hzzt-collapse__icon",
71
+ size: "14"
72
+ }, null, 8, ["name"]),
73
+ createElementVNode("span", null, toDisplayString(expand.value ? unref(t)("hzzt.collapse.retract") : unref(t)("hzzt.collapse.expand")), 1)
74
+ ])
75
+ ])
76
+ ]),
77
+ withDirectives(createElementVNode("div", _hoisted_5, [
78
+ renderSlot(_ctx.$slots, "default")
79
+ ], 512), [
80
+ [vShow, expand.value]
81
+ ]),
82
+ renderSlot(_ctx.$slots, "active", { active: expand.value })
83
+ ]);
84
+ };
85
+ }
86
+ });
87
+ var Collapse = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "collapse.vue"]]);
88
+
89
+ export { Collapse as default };
2
90
  //# sourceMappingURL=collapse2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"collapse2.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"collapse2.mjs","sources":["../../../../../../packages/components/collapse/src/collapse.vue"],"sourcesContent":["<template>\n <div class=\"hzzt-collapse flex column\">\n <div class=\"hzzt-collapse__top\">\n <div class=\"hzzt-collapse__title\">\n <slot name=\"title\">\n {{ title }}\n </slot>\n </div>\n <div v-if=\"showLine\" class=\"hzzt-collapse__line\" />\n <slot name=\"toggle-btn\">\n <div class=\"hzzt-collapse__btn\" @click=\"toggle\">\n <hzzt-icon :name=\"!expand ? 'hzzt-plus-square-outline' : 'hzzt-minus-square-outline'\"\n class=\"hzzt-collapse__icon\" size=\"14\" />\n <span>{{ expand ? t('hzzt.collapse.retract') : t('hzzt.collapse.expand') }}</span>\n </div>\n </slot>\n </div>\n <div v-show=\"expand\" class=\"hzzt-collapse__content flex-1\">\n <slot />\n </div>\n\n <slot :active=\"expand\" name=\"active\" />\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import {useLocale} from '@hzzt-plus/hooks'\n import HzztIcon from '@hzzt-plus/components/icon/src/index.vue'\n import {ref, watch} from 'vue'\n\n defineOptions({\n name: 'HzztCollapse',\n })\n const {t} = useLocale()\n const props = defineProps({\n defaultActive: {\n type: Boolean,\n default: true,\n },\n title: {\n type: String,\n default: '',\n },\n showLine: {\n type: Boolean,\n default: true,\n },\n modelValue: {\n type: Boolean,\n default: true,\n },\n })\n const emit = defineEmits(['update:modelValue'])\n\n const expand = ref(props.modelValue)\n\n if (!props.defaultActive) {\n emit('update:modelValue', false);\n expand.value = false;\n }\n\n watch(() => props.modelValue, (v) => {\n expand.value = v;\n })\n\n function toggle() {\n expand.value = !expand.value;\n emit('update:modelValue', expand.value);\n }\n\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;mCA8BgB,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAM,MAAA,EAAC,CAAC,EAAA,GAAI,SAAU,EAAA,CAAA;AAqBtB,IAAM,MAAA,MAAA,GAAS,GAAI,CAAA,KAAA,CAAM,UAAU,CAAA,CAAA;AAEnC,IAAI,IAAA,CAAC,MAAM,aAAe,EAAA;AACxB,MAAA,IAAA,CAAK,qBAAqB,KAAK,CAAA,CAAA;AAC/B,MAAA,MAAA,CAAO,KAAQ,GAAA,KAAA,CAAA;AAAA,KACjB;AAEA,IAAA,KAAA,CAAM,MAAM,KAAA,CAAM,UAAY,EAAA,CAAC,CAAM,KAAA;AACnC,MAAA,MAAA,CAAO,KAAQ,GAAA,CAAA,CAAA;AAAA,KAChB,CAAA,CAAA;AAED,IAAA,SAAS,MAAS,GAAA;AAChB,MAAO,MAAA,CAAA,KAAA,GAAQ,CAAC,MAAO,CAAA,KAAA,CAAA;AACvB,MAAK,IAAA,CAAA,mBAAA,EAAqB,OAAO,KAAK,CAAA,CAAA;AAAA,KACxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,5 +1,440 @@
1
- import type { App } from '@vue/runtime-core';
2
- export declare const HzztIcon: {
3
- install(app: App): void;
1
+ export declare const HzztIcon: import("hzzt-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
2
+ name: {
3
+ type: StringConstructor;
4
+ required: true;
5
+ };
6
+ type: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ size: (NumberConstructor | StringConstructor)[];
11
+ color: StringConstructor;
12
+ }, {
13
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
14
+ name: {
15
+ type: StringConstructor;
16
+ required: true;
17
+ };
18
+ type: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ size: (NumberConstructor | StringConstructor)[];
23
+ color: StringConstructor;
24
+ }>> & {
25
+ [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
26
+ }>>;
27
+ attrs: {
28
+ [x: string]: unknown;
29
+ };
30
+ componentName: import("vue").ComputedRef<string>;
31
+ ElIcon: import("element-plus/es/utils").SFCWithInstall<{
32
+ new (...args: any[]): {
33
+ $: import("vue").ComponentInternalInstance;
34
+ $data: {};
35
+ $props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{
36
+ readonly size: {
37
+ 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>>;
38
+ readonly required: false;
39
+ readonly validator: ((val: unknown) => boolean) | undefined;
40
+ __epPropKey: true;
41
+ };
42
+ readonly color: {
43
+ readonly type: import("vue").PropType<string>;
44
+ readonly required: false;
45
+ readonly validator: ((val: unknown) => boolean) | undefined;
46
+ __epPropKey: true;
47
+ };
48
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
49
+ $attrs: {
50
+ [x: string]: unknown;
51
+ };
52
+ $refs: {
53
+ [x: string]: unknown;
54
+ };
55
+ $slots: Readonly<{
56
+ [name: string]: import("vue").Slot | undefined;
57
+ }>;
58
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
59
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
60
+ $emit: (event: string, ...args: any[]) => void;
61
+ $el: any;
62
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
63
+ readonly size: {
64
+ 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>>;
65
+ readonly required: false;
66
+ readonly validator: ((val: unknown) => boolean) | undefined;
67
+ __epPropKey: true;
68
+ };
69
+ readonly color: {
70
+ readonly type: import("vue").PropType<string>;
71
+ readonly required: false;
72
+ readonly validator: ((val: unknown) => boolean) | undefined;
73
+ __epPropKey: true;
74
+ };
75
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & {
76
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
77
+ created?: ((() => void) | (() => void)[]) | undefined;
78
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
79
+ mounted?: ((() => void) | (() => void)[]) | undefined;
80
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
81
+ updated?: ((() => void) | (() => void)[]) | undefined;
82
+ activated?: ((() => void) | (() => void)[]) | undefined;
83
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
84
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
85
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
86
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
87
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
88
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
89
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
90
+ 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;
91
+ };
92
+ $forceUpdate: () => void;
93
+ $nextTick: typeof import("vue").nextTick;
94
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
95
+ } & Readonly<import("vue").ExtractPropTypes<{
96
+ readonly size: {
97
+ 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>>;
98
+ readonly required: false;
99
+ readonly validator: ((val: unknown) => boolean) | undefined;
100
+ __epPropKey: true;
101
+ };
102
+ readonly color: {
103
+ readonly type: import("vue").PropType<string>;
104
+ readonly required: false;
105
+ readonly validator: ((val: unknown) => boolean) | undefined;
106
+ __epPropKey: true;
107
+ };
108
+ }>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
109
+ __isFragment?: undefined;
110
+ __isTeleport?: undefined;
111
+ __isSuspense?: undefined;
112
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
113
+ readonly size: {
114
+ 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>>;
115
+ readonly required: false;
116
+ readonly validator: ((val: unknown) => boolean) | undefined;
117
+ __epPropKey: true;
118
+ };
119
+ readonly color: {
120
+ readonly type: import("vue").PropType<string>;
121
+ readonly required: false;
122
+ readonly validator: ((val: unknown) => boolean) | undefined;
123
+ __epPropKey: true;
124
+ };
125
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
126
+ $slots: {
127
+ default?(_: {}): any;
128
+ };
129
+ })>;
130
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
131
+ name: {
132
+ type: StringConstructor;
133
+ required: true;
134
+ };
135
+ type: {
136
+ type: StringConstructor;
137
+ default: string;
138
+ };
139
+ size: (NumberConstructor | StringConstructor)[];
140
+ color: StringConstructor;
141
+ }>>, {
142
+ type: string;
143
+ }>> & {
144
+ HzztPlusSquareOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
145
+ HzztMinusSquareOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
146
+ AddLocation: any;
147
+ Aim: any;
148
+ AlarmClock: any;
149
+ Apple: any;
150
+ ArrowDownBold: any;
151
+ ArrowDown: any;
152
+ ArrowLeftBold: any;
153
+ ArrowLeft: any;
154
+ ArrowRightBold: any;
155
+ ArrowRight: any;
156
+ ArrowUpBold: any;
157
+ ArrowUp: any;
158
+ Avatar: any;
159
+ Back: any;
160
+ Baseball: any;
161
+ Basketball: any;
162
+ BellFilled: any;
163
+ Bell: any;
164
+ Bicycle: any;
165
+ BottomLeft: any;
166
+ BottomRight: any;
167
+ Bottom: any;
168
+ Bowl: any;
169
+ Box: any;
170
+ Briefcase: any;
171
+ BrushFilled: any;
172
+ Brush: any;
173
+ Burger: any;
174
+ Calendar: any;
175
+ CameraFilled: any;
176
+ Camera: any;
177
+ CaretBottom: any;
178
+ CaretLeft: any;
179
+ CaretRight: any;
180
+ CaretTop: any;
181
+ Cellphone: any;
182
+ ChatDotRound: any;
183
+ ChatDotSquare: any;
184
+ ChatLineRound: any;
185
+ ChatLineSquare: any;
186
+ ChatRound: any;
187
+ ChatSquare: any;
188
+ Check: any;
189
+ Checked: any;
190
+ Cherry: any;
191
+ Chicken: any;
192
+ ChromeFilled: any;
193
+ CircleCheckFilled: any;
194
+ CircleCheck: any;
195
+ CircleCloseFilled: any;
196
+ CircleClose: any;
197
+ CirclePlusFilled: any;
198
+ CirclePlus: any;
199
+ Clock: any;
200
+ CloseBold: any;
201
+ Close: any;
202
+ Cloudy: any;
203
+ CoffeeCup: any;
204
+ Coffee: any;
205
+ Coin: any;
206
+ ColdDrink: any;
207
+ CollectionTag: any;
208
+ Collection: any;
209
+ Comment: any;
210
+ Compass: any;
211
+ Connection: any;
212
+ Coordinate: any;
213
+ CopyDocument: any;
214
+ Cpu: any;
215
+ CreditCard: any;
216
+ Crop: any;
217
+ DArrowLeft: any;
218
+ DArrowRight: any;
219
+ DCaret: any;
220
+ DataAnalysis: any;
221
+ DataBoard: any;
222
+ DataLine: any;
223
+ DeleteFilled: any;
224
+ DeleteLocation: any;
225
+ Delete: any;
226
+ Dessert: any;
227
+ Discount: any;
228
+ DishDot: any;
229
+ Dish: any;
230
+ DocumentAdd: any;
231
+ DocumentChecked: any;
232
+ DocumentCopy: any;
233
+ DocumentDelete: any;
234
+ DocumentRemove: any;
235
+ Document: any;
236
+ Download: any;
237
+ Drizzling: any;
238
+ EditPen: any;
239
+ Edit: any;
240
+ ElemeFilled: any;
241
+ Eleme: any;
242
+ ElementPlus: any;
243
+ Expand: any;
244
+ Failed: any;
245
+ Female: any;
246
+ Files: any;
247
+ Film: any;
248
+ Filter: any;
249
+ Finished: any;
250
+ FirstAidKit: any;
251
+ Flag: any;
252
+ Fold: any;
253
+ FolderAdd: any;
254
+ FolderChecked: any;
255
+ FolderDelete: any;
256
+ FolderOpened: any;
257
+ FolderRemove: any;
258
+ Folder: any;
259
+ Food: any;
260
+ Football: any;
261
+ ForkSpoon: any;
262
+ Fries: any;
263
+ FullScreen: any;
264
+ GobletFull: any;
265
+ GobletSquareFull: any;
266
+ GobletSquare: any;
267
+ Goblet: any;
268
+ GoldMedal: any;
269
+ GoodsFilled: any;
270
+ Goods: any;
271
+ Grape: any;
272
+ Grid: any;
273
+ Guide: any;
274
+ Handbag: any;
275
+ Headset: any;
276
+ HelpFilled: any;
277
+ Help: any;
278
+ Hide: any;
279
+ Histogram: any;
280
+ HomeFilled: any;
281
+ HotWater: any;
282
+ House: any;
283
+ IceCreamRound: any;
284
+ IceCreamSquare: any;
285
+ IceCream: any;
286
+ IceDrink: any;
287
+ IceTea: any;
288
+ InfoFilled: any;
289
+ Iphone: any;
290
+ Key: any;
291
+ KnifeFork: any;
292
+ Lightning: any;
293
+ Link: any;
294
+ List: any;
295
+ Loading: any;
296
+ LocationFilled: any;
297
+ LocationInformation: any;
298
+ Location: any;
299
+ Lock: any;
300
+ Lollipop: any;
301
+ MagicStick: any;
302
+ Magnet: any;
303
+ Male: any;
304
+ Management: any;
305
+ MapLocation: any;
306
+ Medal: any;
307
+ Memo: any;
308
+ Menu: any;
309
+ MessageBox: any;
310
+ Message: any;
311
+ Mic: any;
312
+ Microphone: any;
313
+ MilkTea: any;
314
+ Minus: any;
315
+ Money: any;
316
+ Monitor: any;
317
+ MoonNight: any;
318
+ Moon: any;
319
+ MoreFilled: any;
320
+ More: any;
321
+ MostlyCloudy: any;
322
+ Mouse: any;
323
+ Mug: any;
324
+ MuteNotification: any;
325
+ Mute: any;
326
+ NoSmoking: any;
327
+ Notebook: any;
328
+ Notification: any;
329
+ Odometer: any;
330
+ OfficeBuilding: any;
331
+ Open: any;
332
+ Operation: any;
333
+ Opportunity: any;
334
+ Orange: any;
335
+ Paperclip: any;
336
+ PartlyCloudy: any;
337
+ Pear: any;
338
+ PhoneFilled: any;
339
+ Phone: any;
340
+ PictureFilled: any;
341
+ PictureRounded: any;
342
+ Picture: any;
343
+ PieChart: any;
344
+ Place: any;
345
+ Platform: any;
346
+ Plus: any;
347
+ Pointer: any;
348
+ Position: any;
349
+ Postcard: any;
350
+ Pouring: any;
351
+ Present: any;
352
+ PriceTag: any;
353
+ Printer: any;
354
+ Promotion: any;
355
+ QuartzWatch: any;
356
+ QuestionFilled: any;
357
+ Rank: any;
358
+ ReadingLamp: any;
359
+ Reading: any;
360
+ RefreshLeft: any;
361
+ RefreshRight: any;
362
+ Refresh: any;
363
+ Refrigerator: any;
364
+ RemoveFilled: any;
365
+ Remove: any;
366
+ Right: any;
367
+ ScaleToOriginal: any;
368
+ School: any;
369
+ Scissor: any;
370
+ Search: any;
371
+ Select: any;
372
+ Sell: any;
373
+ SemiSelect: any;
374
+ Service: any;
375
+ SetUp: any;
376
+ Setting: any;
377
+ Share: any;
378
+ Ship: any;
379
+ Shop: any;
380
+ ShoppingBag: any;
381
+ ShoppingCartFull: any;
382
+ ShoppingCart: any;
383
+ ShoppingTrolley: any;
384
+ Smoking: any;
385
+ Soccer: any;
386
+ SoldOut: any;
387
+ SortDown: any;
388
+ SortUp: any;
389
+ Sort: any;
390
+ Stamp: any;
391
+ StarFilled: any;
392
+ Star: any;
393
+ Stopwatch: any;
394
+ SuccessFilled: any;
395
+ Sugar: any;
396
+ SuitcaseLine: any;
397
+ Suitcase: any;
398
+ Sunny: any;
399
+ Sunrise: any;
400
+ Sunset: any;
401
+ SwitchButton: any;
402
+ SwitchFilled: any;
403
+ Switch: any;
404
+ TakeawayBox: any;
405
+ Ticket: any;
406
+ Tickets: any;
407
+ Timer: any;
408
+ ToiletPaper: any;
409
+ Tools: any;
410
+ TopLeft: any;
411
+ TopRight: any;
412
+ Top: any;
413
+ TrendCharts: any;
414
+ TrophyBase: any;
415
+ Trophy: any;
416
+ TurnOff: any;
417
+ Umbrella: any;
418
+ Unlock: any;
419
+ UploadFilled: any;
420
+ Upload: any;
421
+ UserFilled: any;
422
+ User: any;
423
+ Van: any;
424
+ VideoCameraFilled: any;
425
+ VideoCamera: any;
426
+ VideoPause: any;
427
+ VideoPlay: any;
428
+ View: any;
429
+ WalletFilled: any;
430
+ Wallet: any;
431
+ WarnTriangleFilled: any;
432
+ WarningFilled: any;
433
+ Warning: any;
434
+ Watch: any;
435
+ Watermelon: any;
436
+ WindPower: any;
437
+ ZoomIn: any;
438
+ ZoomOut: any;
4
439
  };
5
440
  export default HzztIcon;
@@ -1,21 +1,22 @@
1
1
  import * as Icons from '@element-plus/icons-vue';
2
2
  import * as index from './src/components/index.mjs';
3
3
  import HzztIcon$1 from './src/index.mjs';
4
+ import '../../utils/index.mjs';
5
+ import { withInstall } from '../../utils/vue/install.mjs';
4
6
 
5
- const HzztIcon = {
6
- install(app) {
7
- app.component("HzztIcon", HzztIcon$1);
8
- for (const key in Icons) {
9
- app.component(tarnsElIconName(key), Icons[key]);
10
- }
11
- for (const key in index) {
12
- app.component(tarnsElIconName(key), Icons[key]);
13
- }
14
- }
15
- };
16
7
  function tarnsElIconName(name) {
17
8
  return `hzzt-el${name.replace(/[A-Z]/g, (match) => `-${match.toLocaleLowerCase()}`)}`;
18
9
  }
10
+ for (const key in Icons) {
11
+ Icons[key].name = tarnsElIconName(key);
12
+ }
13
+ for (const key in index) {
14
+ index[key].name = tarnsElIconName(key);
15
+ }
16
+ const HzztIcon = withInstall(HzztIcon$1, {
17
+ ...Icons,
18
+ ...index
19
+ });
19
20
 
20
21
  export { HzztIcon, HzztIcon as default };
21
22
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../packages/components/icon/index.ts"],"sourcesContent":["import * as Icons from '@element-plus/icons-vue'\nimport * as HzztIcons from './src/components/index'\nimport Icon from './src/index.vue'\nimport type {App} from '@vue/runtime-core'\n\nexport const HzztIcon = {\n install(app: App) {\n app.component('HzztIcon', Icon)\n for (const key in Icons) {\n app.component(tarnsElIconName(key), Icons[key])\n }\n for (const key in HzztIcons) {\n app.component(tarnsElIconName(key), Icons[key])\n }\n },\n}\n\nexport default HzztIcon\n\nfunction tarnsElIconName(name) {\n return `hzzt-el${name.replace(\n /[A-Z]/g,\n (match) => `-${match.toLocaleLowerCase()}`\n )}`\n}\n"],"names":["Icon","HzztIcons"],"mappings":";;;;AAGY,MAAC,QAAQ,GAAG;AACxB,EAAE,OAAO,CAAC,GAAG,EAAE;AACf,IAAI,GAAG,CAAC,SAAS,CAAC,UAAU,EAAEA,UAAI,CAAC,CAAC;AACpC,IAAI,KAAK,MAAM,GAAG,IAAI,KAAK,EAAE;AAC7B,MAAM,GAAG,CAAC,SAAS,CAAC,eAAe,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;AACtD,KAAK;AACL,IAAI,KAAK,MAAM,GAAG,IAAIC,KAAS,EAAE;AACjC,MAAM,GAAG,CAAC,SAAS,CAAC,eAAe,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;AACtD,KAAK;AACL,GAAG;AACH,EAAE;AAEF,SAAS,eAAe,CAAC,IAAI,EAAE;AAC/B,EAAE,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,KAAK,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACxF;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../packages/components/icon/index.ts"],"sourcesContent":["import * as Icons from '@element-plus/icons-vue'\nimport * as HzztIcons from './src/components/index'\nimport Icon from './src/index.vue'\nimport {withInstall} from \"@hzzt-plus/utils\";\n\nfunction tarnsElIconName(name: string) {\n return `hzzt-el${name.replace(\n /[A-Z]/g,\n (match: string) => `-${match.toLocaleLowerCase()}`\n )}`\n}\n\nfor (const key in Icons) {\n Icons[key].name = tarnsElIconName(key);\n}\nfor (const key in HzztIcons) {\n HzztIcons[key].name = tarnsElIconName(key);\n}\n\n\nexport const HzztIcon = withInstall(Icon, {\n ...Icons,\n ...HzztIcons,\n})\n\nexport default HzztIcon\n"],"names":["HzztIcons","Icon"],"mappings":";;;;;;AAIA,SAAS,eAAe,CAAC,IAAI,EAAE;AAC/B,EAAE,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,KAAK,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACxF,CAAC;AACD,KAAK,MAAM,GAAG,IAAI,KAAK,EAAE;AACzB,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC;AACzC,CAAC;AACD,KAAK,MAAM,GAAG,IAAIA,KAAS,EAAE;AAC7B,EAAEA,KAAS,CAAC,GAAG,CAAC,CAAC,IAAI,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC;AAC7C,CAAC;AACW,MAAC,QAAQ,GAAG,WAAW,CAACC,UAAI,EAAE;AAC1C,EAAE,GAAG,KAAK;AACV,EAAE,GAAGD,KAAS;AACd,CAAC;;;;"}
@@ -1,9 +1,12 @@
1
- import { defineComponent, useAttrs, computed, openBlock, createBlock, unref, normalizeProps, guardReactiveProps, withCtx, resolveDynamicComponent } from 'vue';
1
+ import { defineComponent, useAttrs, computed, openBlock, createBlock, unref, mergeProps, withCtx, resolveDynamicComponent } from 'vue';
2
2
  import { ElIcon } from 'element-plus';
3
3
  import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
4
4
 
5
+ const __default__ = defineComponent({
6
+ name: "HzztIcon"
7
+ });
5
8
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
- __name: "index",
9
+ ...__default__,
7
10
  props: {
8
11
  name: {
9
12
  type: String,
@@ -12,19 +15,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
12
15
  type: {
13
16
  type: String,
14
17
  default: "el"
15
- }
18
+ },
19
+ size: [String, Number],
20
+ color: String
16
21
  },
17
22
  setup(__props) {
18
23
  const props = __props;
19
24
  const attrs = useAttrs();
20
25
  const componentName = computed(() => `hzzt-${props.type}-${props.name}`);
21
26
  return (_ctx, _cache) => {
22
- return openBlock(), createBlock(unref(ElIcon), normalizeProps(guardReactiveProps(unref(attrs))), {
27
+ return openBlock(), createBlock(unref(ElIcon), mergeProps(unref(attrs), {
28
+ size: __props.size,
29
+ color: __props.color
30
+ }), {
23
31
  default: withCtx(() => [
24
32
  (openBlock(), createBlock(resolveDynamicComponent(unref(componentName))))
25
33
  ]),
26
34
  _: 1
27
- }, 16);
35
+ }, 16, ["size", "color"]);
28
36
  };
29
37
  }
30
38
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../../packages/components/icon/src/index.vue"],"sourcesContent":["<template>\n <ElIcon v-bind=\"attrs\">\n <component :is=\"componentName\" />\n </ElIcon>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs } from 'vue'\nimport { ElIcon } from 'element-plus'\n\nconst props = defineProps({\n name: {\n type: String,\n required: true,\n },\n type: {\n type: String,\n default: 'el',\n },\n})\n\nconst attrs = useAttrs()\n\nconst componentName = computed(() => `hzzt-${props.type}-${props.name}`)\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAqBA,IAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AAEvB,IAAM,MAAA,aAAA,GAAgB,SAAS,MAAM,CAAA,KAAA,EAAQ,MAAM,IAAI,CAAA,CAAA,EAAI,KAAM,CAAA,IAAI,CAAE,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../../packages/components/icon/src/index.vue"],"sourcesContent":["<template>\n <ElIcon v-bind=\"attrs\" :size=\"size\" :color=\"color\">\n <component :is=\"componentName\" />\n </ElIcon>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs } from 'vue'\nimport { ElIcon } from 'element-plus'\n\ndefineOptions({\n name: 'HzztIcon',\n})\n\nconst props = defineProps({\n name: {\n type: String,\n required: true,\n },\n type: {\n type: String,\n default: 'el',\n },\n size: [String, Number],\n color: String,\n})\n\nconst attrs = useAttrs()\n\nconst componentName = computed(() => `hzzt-${props.type}-${props.name}`)\n</script>\n"],"names":[],"mappings":";;;;mCAUc,CAAA;AAAA,EACZ,IAAM,EAAA,UAAA;AACR,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;AAeA,IAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AAEvB,IAAM,MAAA,aAAA,GAAgB,SAAS,MAAM,CAAA,KAAA,EAAQ,MAAM,IAAI,CAAA,CAAA,EAAI,KAAM,CAAA,IAAI,CAAE,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;"}
@@ -7,6 +7,8 @@ declare const _default: import("vue").DefineComponent<{
7
7
  type: StringConstructor;
8
8
  default: string;
9
9
  };
10
+ size: (NumberConstructor | StringConstructor)[];
11
+ color: StringConstructor;
10
12
  }, {
11
13
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
12
14
  name: {
@@ -17,6 +19,8 @@ declare const _default: import("vue").DefineComponent<{
17
19
  type: StringConstructor;
18
20
  default: string;
19
21
  };
22
+ size: (NumberConstructor | StringConstructor)[];
23
+ color: StringConstructor;
20
24
  }>> & {
21
25
  [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
22
26
  }>>;
@@ -132,6 +136,8 @@ declare const _default: import("vue").DefineComponent<{
132
136
  type: StringConstructor;
133
137
  default: string;
134
138
  };
139
+ size: (NumberConstructor | StringConstructor)[];
140
+ color: StringConstructor;
135
141
  }>>, {
136
142
  type: string;
137
143
  }>;