hzzt-plus 2.0.5 → 2.0.7

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