zjh-web-ui 1.0.10

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 (175) hide show
  1. package/README.md +1 -0
  2. package/config/resolver.js +21 -0
  3. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  4. package/dist/components/AMapConfig.js +23 -0
  5. package/dist/components/HuiAMapMassMarkers/HuiAMapMassMarkers.vue.js +82 -0
  6. package/dist/components/HuiAMapMassMarkers/HuiAMapMassMarkers.vue2.js +4 -0
  7. package/dist/components/HuiAMapMassMarkers/index.js +7 -0
  8. package/dist/components/HuiAMapSearchAddress/HuiAMapSearchAddress.vue.js +7 -0
  9. package/dist/components/HuiAMapSearchAddress/HuiAMapSearchAddress.vue2.js +190 -0
  10. package/dist/components/HuiAMapSearchAddress/index.js +7 -0
  11. package/dist/components/HuiAMapSearchAddressDialog/HuiAMapSearchAddressDialog.vue.js +83 -0
  12. package/dist/components/HuiAMapSearchAddressDialog/HuiAMapSearchAddressDialog.vue2.js +4 -0
  13. package/dist/components/HuiAMapSearchAddressDialog/index.js +7 -0
  14. package/dist/components/HuiAMapSelectAddress/HuiAMapSelectAddress.vue.js +7 -0
  15. package/dist/components/HuiAMapSelectAddress/HuiAMapSelectAddress.vue2.js +178 -0
  16. package/dist/components/HuiAMapSelectAddress/index.js +7 -0
  17. package/dist/components/HuiAMapSelectAddressDialog/HuiAMapSelectAddressDialog.vue.js +83 -0
  18. package/dist/components/HuiAMapSelectAddressDialog/HuiAMapSelectAddressDialog.vue2.js +4 -0
  19. package/dist/components/HuiAMapSelectAddressDialog/index.js +7 -0
  20. package/dist/components/HuiCountDownButton/HuiCountDownButton.vue.js +63 -0
  21. package/dist/components/HuiCountDownButton/HuiCountDownButton.vue2.js +4 -0
  22. package/dist/components/HuiCountDownButton/index.js +7 -0
  23. package/dist/components/HuiDataView/HuiDataView.vue.js +7 -0
  24. package/dist/components/HuiDataView/HuiDataView.vue2.js +84 -0
  25. package/dist/components/HuiDataView/index.js +7 -0
  26. package/dist/components/HuiGridForm/HuiGridForm.vue.js +7 -0
  27. package/dist/components/HuiGridForm/HuiGridForm.vue2.js +223 -0
  28. package/dist/components/HuiGridForm/HuiGridFormHooks.js +21 -0
  29. package/dist/components/HuiGridForm/index.js +7 -0
  30. package/dist/components/HuiLineEditDialog/HuiLineEditDialog.vue.js +7 -0
  31. package/dist/components/HuiLineEditDialog/HuiLineEditDialog.vue2.js +167 -0
  32. package/dist/components/HuiLineEditDialog/index.js +7 -0
  33. package/dist/components/HuiLineEditPopover/HuiLineEditPopover.vue.js +7 -0
  34. package/dist/components/HuiLineEditPopover/HuiLineEditPopover.vue2.js +128 -0
  35. package/dist/components/HuiLineEditPopover/index.js +7 -0
  36. package/dist/components/HuiPreviewRichTextDialog/HuiPreviewRichTextDialog.vue.js +65 -0
  37. package/dist/components/HuiPreviewRichTextDialog/HuiPreviewRichTextDialog.vue2.js +4 -0
  38. package/dist/components/HuiPreviewRichTextDialog/index.js +7 -0
  39. package/dist/components/HuiRegionTreeDialog/HuiRegionTreeDialog.vue.js +118 -0
  40. package/dist/components/HuiRegionTreeDialog/HuiRegionTreeDialog.vue2.js +4 -0
  41. package/dist/components/HuiRegionTreeDialog/index.js +7 -0
  42. package/dist/components/HuiRegionTreeSelect/HuiRegionTreeSelect.vue.js +7 -0
  43. package/dist/components/HuiRegionTreeSelect/HuiRegionTreeSelect.vue2.js +59 -0
  44. package/dist/components/HuiRegionTreeSelect/index.js +7 -0
  45. package/dist/components/HuiSelectLoadStatus/HuiSelectLoadStatus.vue.js +44 -0
  46. package/dist/components/HuiSelectLoadStatus/HuiSelectLoadStatus.vue2.js +4 -0
  47. package/dist/components/HuiSelectLoadStatus/index.js +7 -0
  48. package/dist/components/HuiShowUrlDialog/HuiShowUrlDialog.vue.js +50 -0
  49. package/dist/components/HuiShowUrlDialog/HuiShowUrlDialog.vue2.js +4 -0
  50. package/dist/components/HuiShowUrlDialog/index.js +7 -0
  51. package/dist/components/HuiStringArrayInputDialog/HuiStringArrayInputDialog.vue.js +118 -0
  52. package/dist/components/HuiStringArrayInputDialog/HuiStringArrayInputDialog.vue2.js +4 -0
  53. package/dist/components/HuiStringArrayInputDialog/index.js +7 -0
  54. package/dist/components/HuiTags/HuiTags.vue.js +7 -0
  55. package/dist/components/HuiTags/HuiTags.vue2.js +28 -0
  56. package/dist/components/HuiTags/index.js +7 -0
  57. package/dist/components/HuiTagsMore/HuiTagsMore.vue.js +188 -0
  58. package/dist/components/HuiTagsMore/HuiTagsMore.vue2.js +4 -0
  59. package/dist/components/HuiTagsMore/index.js +7 -0
  60. package/dist/components/HuiTinymce/HuiTinymce.vue.js +37 -0
  61. package/dist/components/HuiTinymce/HuiTinymce.vue3.js +5 -0
  62. package/dist/components/HuiTinymce/HuiTinymceLinkHooks.js +99 -0
  63. package/dist/components/HuiTinymce/HuiTinymceSettingHooks.js +104 -0
  64. package/dist/components/HuiTinymce/index.js +8 -0
  65. package/dist/components/HuiTinymceDialog/HuiTinymceDialog.vue.js +96 -0
  66. package/dist/components/HuiTinymceDialog/HuiTinymceDialog.vue2.js +4 -0
  67. package/dist/components/HuiTinymceDialog/index.js +7 -0
  68. package/dist/components/HuiTip/HuiTip.vue.js +52 -0
  69. package/dist/components/HuiTip/HuiTip.vue2.js +4 -0
  70. package/dist/components/HuiTip/index.js +7 -0
  71. package/dist/components-install-list.js +47 -0
  72. package/dist/delegate.js +13 -0
  73. package/dist/directives/install-loadmore.js +7 -0
  74. package/dist/directives/select-loadmore.js +25 -0
  75. package/dist/hooks/useHuiDialog/useHuiDialog.js +20 -0
  76. package/dist/hooks/useHuiFormDialog/formDialogPropsDef.js +6 -0
  77. package/dist/hooks/useHuiFormDialog/useHuiFormDialog.js +109 -0
  78. package/dist/index.js +62 -0
  79. package/dist/install-helper/install.js +21 -0
  80. package/dist/style.css +1 -0
  81. package/dist/utils/hui-rules.js +142 -0
  82. package/dist/utils/hui-tool/index.js +7 -0
  83. package/dist/utils/hui-tool/message-box/index.js +33 -0
  84. package/dist/utils/hui-tool/message-box/message-box.vue.js +112 -0
  85. package/dist/utils/hui-tool/message-box/message-box.vue3.js +5 -0
  86. package/dist/utils/hui-tool/msg-tool.js +39 -0
  87. package/global.d.ts +40 -0
  88. package/package.json +44 -0
  89. package/src/css/common-font.scss +104 -0
  90. package/src/css/index.scss +1 -0
  91. package/types/components/AMapConfig.d.ts +2 -0
  92. package/types/components/HuiAMapMassMarkers/HuiAMapMassMarkers.vue.d.ts +105 -0
  93. package/types/components/HuiAMapMassMarkers/index.d.ts +107 -0
  94. package/types/components/HuiAMapMassMarkers/type.d.ts +58 -0
  95. package/types/components/HuiAMapSearchAddress/HuiAMapSearchAddress.vue.d.ts +76 -0
  96. package/types/components/HuiAMapSearchAddress/index.d.ts +77 -0
  97. package/types/components/HuiAMapSearchAddress/type.d.ts +19 -0
  98. package/types/components/HuiAMapSearchAddressDialog/HuiAMapSearchAddressDialog.vue.d.ts +38 -0
  99. package/types/components/HuiAMapSearchAddressDialog/index.d.ts +71 -0
  100. package/types/components/HuiAMapSearchAddressDialog/type.d.ts +17 -0
  101. package/types/components/HuiAMapSelectAddress/HuiAMapSelectAddress.vue.d.ts +76 -0
  102. package/types/components/HuiAMapSelectAddress/index.d.ts +77 -0
  103. package/types/components/HuiAMapSelectAddress/type.d.ts +19 -0
  104. package/types/components/HuiAMapSelectAddressDialog/HuiAMapSelectAddressDialog.vue.d.ts +38 -0
  105. package/types/components/HuiAMapSelectAddressDialog/index.d.ts +71 -0
  106. package/types/components/HuiAMapSelectAddressDialog/type.d.ts +17 -0
  107. package/types/components/HuiCountDownButton/HuiCountDownButton.vue.d.ts +44 -0
  108. package/types/components/HuiCountDownButton/index.d.ts +76 -0
  109. package/types/components/HuiCountDownButton/type.d.ts +20 -0
  110. package/types/components/HuiDataView/HuiDataView.vue.d.ts +60 -0
  111. package/types/components/HuiDataView/index.d.ts +109 -0
  112. package/types/components/HuiDataView/type.d.ts +49 -0
  113. package/types/components/HuiGridForm/HuiGridForm.vue.d.ts +77 -0
  114. package/types/components/HuiGridForm/HuiGridFormHooks.d.ts +4 -0
  115. package/types/components/HuiGridForm/index.d.ts +175 -0
  116. package/types/components/HuiGridForm/type.d.ts +67 -0
  117. package/types/components/HuiLineEditDialog/HuiLineEditDialog.vue.d.ts +75 -0
  118. package/types/components/HuiLineEditDialog/index.d.ts +173 -0
  119. package/types/components/HuiLineEditDialog/type.d.ts +86 -0
  120. package/types/components/HuiLineEditPopover/HuiLineEditPopover.vue.d.ts +74 -0
  121. package/types/components/HuiLineEditPopover/index.d.ts +133 -0
  122. package/types/components/HuiLineEditPopover/type.d.ts +23 -0
  123. package/types/components/HuiPreviewRichTextDialog/HuiPreviewRichTextDialog.vue.d.ts +31 -0
  124. package/types/components/HuiPreviewRichTextDialog/index.d.ts +22 -0
  125. package/types/components/HuiPreviewRichTextDialog/type.d.ts +4 -0
  126. package/types/components/HuiRegionTreeDialog/HuiRegionTreeDialog.vue.d.ts +53 -0
  127. package/types/components/HuiRegionTreeDialog/index.d.ts +68 -0
  128. package/types/components/HuiRegionTreeDialog/type.d.ts +24 -0
  129. package/types/components/HuiRegionTreeSelect/HuiRegionTreeSelect.vue.d.ts +25 -0
  130. package/types/components/HuiRegionTreeSelect/index.d.ts +29 -0
  131. package/types/components/HuiRegionTreeSelect/type.d.ts +6 -0
  132. package/types/components/HuiSelectLoadStatus/HuiSelectLoadStatus.vue.d.ts +14 -0
  133. package/types/components/HuiSelectLoadStatus/index.d.ts +33 -0
  134. package/types/components/HuiSelectLoadStatus/type.d.ts +11 -0
  135. package/types/components/HuiShowUrlDialog/HuiShowUrlDialog.vue.d.ts +37 -0
  136. package/types/components/HuiShowUrlDialog/index.d.ts +40 -0
  137. package/types/components/HuiShowUrlDialog/type.d.ts +11 -0
  138. package/types/components/HuiStringArrayInputDialog/HuiStringArrayInputDialog.vue.d.ts +44 -0
  139. package/types/components/HuiStringArrayInputDialog/index.d.ts +67 -0
  140. package/types/components/HuiStringArrayInputDialog/type.d.ts +33 -0
  141. package/types/components/HuiTags/HuiTags.vue.d.ts +37 -0
  142. package/types/components/HuiTags/index.d.ts +36 -0
  143. package/types/components/HuiTagsMore/HuiTagsMore.vue.d.ts +93 -0
  144. package/types/components/HuiTagsMore/index.d.ts +92 -0
  145. package/types/components/HuiTinymce/HuiTinymce.vue.d.ts +62 -0
  146. package/types/components/HuiTinymce/HuiTinymceLinkHooks.d.ts +3 -0
  147. package/types/components/HuiTinymce/HuiTinymceSettingHooks.d.ts +3 -0
  148. package/types/components/HuiTinymce/index.d.ts +66 -0
  149. package/types/components/HuiTinymce/type.d.ts +51 -0
  150. package/types/components/HuiTinymceDialog/HuiTinymceDialog.vue.d.ts +53 -0
  151. package/types/components/HuiTinymceDialog/index.d.ts +78 -0
  152. package/types/components/HuiTinymceDialog/type.d.ts +12 -0
  153. package/types/components/HuiTip/HuiTip.vue.d.ts +22 -0
  154. package/types/components/HuiTip/index.d.ts +99 -0
  155. package/types/components/HuiTip/type.d.ts +14 -0
  156. package/types/components-install-list.d.ts +3328 -0
  157. package/types/components.d.ts +21 -0
  158. package/types/delegate.d.ts +41 -0
  159. package/types/directives/index.d.ts +4 -0
  160. package/types/directives/install-loadmore.d.ts +7 -0
  161. package/types/directives/select-loadmore.d.ts +7 -0
  162. package/types/hooks/index.d.ts +3 -0
  163. package/types/hooks/useHuiDialog/useHuiDialog.d.ts +18 -0
  164. package/types/hooks/useHuiFormDialog/formDialogPropsDef.d.ts +3 -0
  165. package/types/hooks/useHuiFormDialog/type.d.ts +90 -0
  166. package/types/hooks/useHuiFormDialog/useHuiFormDialog.d.ts +32 -0
  167. package/types/index.d.ts +13 -0
  168. package/types/install-helper/install.d.ts +18 -0
  169. package/types/install-helper/typescript.d.ts +14 -0
  170. package/types/utils/hui-rules.d.ts +80 -0
  171. package/types/utils/hui-tool/index.d.ts +8 -0
  172. package/types/utils/hui-tool/message-box/index.d.ts +18 -0
  173. package/types/utils/hui-tool/message-box/message-box.vue.d.ts +36 -0
  174. package/types/utils/hui-tool/msg-tool.d.ts +26 -0
  175. package/types/utils/index.d.ts +2 -0
@@ -0,0 +1,142 @@
1
+ import { testUtils as n } from "@hua5/hua5-utils";
2
+ const f = {
3
+ /**
4
+ * 校验必传
5
+ * @param {string} tips 错误提示
6
+ */
7
+ required: (t = "此项为必填项") => ({
8
+ validator: (u, e, r) => {
9
+ if (n.isEmpty(e))
10
+ return r(new Error(t));
11
+ r();
12
+ },
13
+ trigger: "blur"
14
+ }),
15
+ /**
16
+ * 是否url
17
+ * @param {string} tips 错误提示
18
+ */
19
+ urlRule: (t = "请输入正确的链接") => ({
20
+ validator: (u, e, r) => {
21
+ if (n.isNotEmpty(e) && !n.isUrl(e))
22
+ return r(new Error(t));
23
+ r();
24
+ },
25
+ trigger: "blur"
26
+ }),
27
+ /**
28
+ * 是否版本号
29
+ * @param {string} tips 错误提示
30
+ */
31
+ versionRule: (t = "请输入正确的版本号") => ({
32
+ validator: (u, e, r) => {
33
+ if (n.isNotEmpty(e) && !n.isVersion(e))
34
+ return r(new Error(t));
35
+ r();
36
+ },
37
+ trigger: "blur"
38
+ }),
39
+ /**
40
+ * 是否json
41
+ * @param {string} tips 错误提示
42
+ */
43
+ jsonRule: (t = "请输入一个正确的JsonObject") => ({
44
+ validator: (u, e, r) => {
45
+ if (n.isNotEmpty(e) && !n.isJsonString(e))
46
+ return r(new Error(t));
47
+ r();
48
+ },
49
+ trigger: "blur"
50
+ }),
51
+ /**
52
+ * 验证整数
53
+ * @param {boolean} isCanZero 是否能输0
54
+ * @param {boolean} isCanNegative 是否能输负数
55
+ */
56
+ intNumRule: (t = !0, u = !0) => ({
57
+ validator: (e, r, i) => {
58
+ if (n.isNotEmpty(r)) {
59
+ const o = Number(r);
60
+ if (!Number.isInteger(o))
61
+ return i(new Error("输入的值必须是整数"));
62
+ if (!t && o === 0)
63
+ return i(new Error("输入的值不能为 0"));
64
+ if (!u && o < 0)
65
+ return i(new Error("输入的值不能为负数"));
66
+ }
67
+ i();
68
+ },
69
+ trigger: "blur"
70
+ }),
71
+ /**
72
+ * 验证小数
73
+ * @param {number} digit 小数位数
74
+ * @param {boolean} isCanZero 是否能输0
75
+ * @param {boolean} isCanNegative 是否能输负数
76
+ */
77
+ digitNumRule: (t = 2, u = !0, e = !0) => ({
78
+ validator: (r, i, o) => {
79
+ var s, g, m;
80
+ if (n.isNotEmpty(i)) {
81
+ const E = Number(i);
82
+ if (isNaN(E))
83
+ return o(new Error("输入的值必须是数字"));
84
+ if (((m = (g = (s = i == null ? void 0 : i.toString()) == null ? void 0 : s.split(".")) == null ? void 0 : g[1]) == null ? void 0 : m.length) > t)
85
+ return o(new Error(`输入的值最多只能有 ${t} 位小数`));
86
+ if (!u && E === 0)
87
+ return o(new Error("输入的值不能为 0"));
88
+ if (!e && E < 0)
89
+ return o(new Error("输入的值不能为负数"));
90
+ }
91
+ o();
92
+ },
93
+ trigger: "blur"
94
+ }),
95
+ /**
96
+ * 验证码验证
97
+ * @param {string} tips 错误提示
98
+ * @param {number} codeLength 验证码长度
99
+ */
100
+ codeRule: (t = "请输入正确的验证码", u = 6) => ({
101
+ validator: (e, r, i) => {
102
+ if (n.isNotEmpty(r) && !n.isCode(r, u))
103
+ return i(new Error(t));
104
+ i();
105
+ },
106
+ trigger: "blur"
107
+ }),
108
+ /**
109
+ * 电话号码验证
110
+ * @param {string} tips 错误提示
111
+ */
112
+ phoneNumRule: (t = "请输入正确的电话号码") => ({
113
+ validator: (u, e, r) => {
114
+ if (n.isNotEmpty(e) && !n.isMobile(e))
115
+ return r(new Error(t));
116
+ r();
117
+ },
118
+ trigger: "blur"
119
+ }),
120
+ /**
121
+ * 验证数字范围
122
+ * @param {number | string} min 最小值
123
+ * @param {number | string} max 最大值
124
+ * @param {string} tips 错误提示
125
+ */
126
+ numRangeRule: (t, u, e = `输入的值必须在 ${t} 到 ${u} 之间`) => ({
127
+ validator: (r, i, o) => {
128
+ if (n.isNotEmpty(i)) {
129
+ const s = Number(i);
130
+ if (isNaN(s))
131
+ return o(new Error("请输入数字"));
132
+ if (s < Number(t) || s > Number(u))
133
+ return o(new Error(e));
134
+ }
135
+ o();
136
+ },
137
+ trigger: "blur"
138
+ })
139
+ };
140
+ export {
141
+ f as HuiRules
142
+ };
@@ -0,0 +1,7 @@
1
+ import { msgTool as o } from "./msg-tool.js";
2
+ const r = {
3
+ ...o
4
+ };
5
+ export {
6
+ r as HuiTool
7
+ };
@@ -0,0 +1,33 @@
1
+ import { h as f, render as e } from "vue";
2
+ import p from "./message-box.vue.js";
3
+ /* empty css */
4
+ import { to as u } from "@hua5/hua5-utils";
5
+ const x = (o, n = {}) => {
6
+ const { iconType: t = "info", type: r = "info", cancelText: m, confirmText: s, width: i, className: a, tip: l } = n;
7
+ return new Promise((c) => {
8
+ const d = f(p, {
9
+ title: o,
10
+ tip: l,
11
+ iconType: t,
12
+ type: r,
13
+ cancelText: m,
14
+ confirmText: s,
15
+ width: i,
16
+ className: a,
17
+ cancelHandler: () => {
18
+ c(!1);
19
+ },
20
+ confirmHandler: () => {
21
+ c(!0);
22
+ },
23
+ closeBox: () => {
24
+ c(!1), e(null, document.body);
25
+ }
26
+ });
27
+ e(d, document.body);
28
+ });
29
+ }, w = (o, n) => u(x(o, n));
30
+ export {
31
+ x as hua5MsgBox,
32
+ w as msgBox
33
+ };
@@ -0,0 +1,112 @@
1
+ import { defineComponent as b, computed as f, ref as H, onMounted as w, openBlock as o, createElementBlock as l, createVNode as d, unref as s, withCtx as a, createElementVNode as n, createTextVNode as y, toDisplayString as c, normalizeClass as x } from "vue";
2
+ import { ElDialog as L, ElButton as C } from "element-plus";
3
+ import { testUtils as B } from "@hua5/hua5-utils";
4
+ const V = { class: "hua5-message-box" }, N = { class: "flex-y text-left" }, E = ["innerHTML"], M = {
5
+ key: 1,
6
+ class: "text-16 font-bold text-normal ml-11 break-all"
7
+ }, F = ["innerHTML"], z = {
8
+ key: 3,
9
+ class: "text-12 m-t-5 text-secondary ml-11 break-all"
10
+ }, D = { class: "dialog-footer" }, $ = /* @__PURE__ */ b({
11
+ __name: "message-box",
12
+ props: {
13
+ iconType: { default: "info" },
14
+ type: { default: "info" },
15
+ title: {},
16
+ tip: {},
17
+ cancelText: { default: "取消" },
18
+ confirmText: { default: "确定" },
19
+ width: { default: 320 },
20
+ className: {},
21
+ closeBox: { type: Function },
22
+ confirmHandler: { type: Function },
23
+ cancelHandler: { type: Function }
24
+ },
25
+ setup(t) {
26
+ const p = f(() => ({
27
+ info: "text-disabled",
28
+ warning: "text-warning",
29
+ success: "text-success",
30
+ danger: "text-danger"
31
+ })[t.type]), h = f(() => ({
32
+ info: "i-com-gantanhao",
33
+ success: "i-com-gou1",
34
+ question: "i-com-wenhao"
35
+ })[t.iconType]), i = H(!1), g = () => {
36
+ i.value = !0;
37
+ };
38
+ w(() => {
39
+ g();
40
+ });
41
+ const v = () => {
42
+ t.cancelHandler && t.cancelHandler(), m();
43
+ }, T = () => {
44
+ t.confirmHandler && t.confirmHandler(), t.closeBox();
45
+ }, m = () => {
46
+ i.value = !1, t.closeBox && t.closeBox();
47
+ };
48
+ function u(e) {
49
+ return e = e.trim(), /^<([a-z1-6]+)([^<]+)*(?:>(.*)<\/\1>|\s+\/>)$/i.test(e);
50
+ }
51
+ return (e, r) => (o(), l("div", V, [
52
+ d(s(L), {
53
+ modelValue: i.value,
54
+ "onUpdate:modelValue": r[0] || (r[0] = (k) => i.value = k),
55
+ width: e.width,
56
+ "align-center": "",
57
+ onClosed: m
58
+ }, {
59
+ footer: a(() => [
60
+ n("div", D, [
61
+ d(s(C), {
62
+ class: "!text-primary !border !border-1 !border-primary",
63
+ onClick: v
64
+ }, {
65
+ default: a(() => [
66
+ y(c(e.cancelText), 1)
67
+ ]),
68
+ _: 1
69
+ }),
70
+ d(s(C), {
71
+ type: "primary",
72
+ class: "w-100px",
73
+ onClick: T
74
+ }, {
75
+ default: a(() => [
76
+ y(c(e.confirmText), 1)
77
+ ]),
78
+ _: 1
79
+ })
80
+ ])
81
+ ]),
82
+ default: a(() => [
83
+ n("div", {
84
+ class: x(["flex flex-center h-110 text-center", [e.className]])
85
+ }, [
86
+ n("div", null, [
87
+ n("i", {
88
+ class: x([p.value, h.value, "icon-com !text-27"])
89
+ }, null, 2)
90
+ ]),
91
+ n("div", N, [
92
+ u(e.title) ? (o(), l("div", {
93
+ key: 0,
94
+ class: "ml-11",
95
+ innerHTML: e.title
96
+ }, null, 8, E)) : (o(), l("div", M, c(e.title), 1)),
97
+ s(B).isNotEmpty(e.tip) && u(e.tip) ? (o(), l("div", {
98
+ key: 2,
99
+ class: "m-t-5 ml-11 break-all",
100
+ innerHTML: e.tip
101
+ }, null, 8, F)) : (o(), l("div", z, c(e.tip), 1))
102
+ ])
103
+ ], 2)
104
+ ]),
105
+ _: 1
106
+ }, 8, ["modelValue", "width"])
107
+ ]));
108
+ }
109
+ });
110
+ export {
111
+ $ as default
112
+ };
@@ -0,0 +1,5 @@
1
+ import o from "./message-box.vue.js";
2
+ /* empty css */
3
+ export {
4
+ o as default
5
+ };
@@ -0,0 +1,39 @@
1
+ import { ElMessage as r } from "element-plus";
2
+ import { msgBox as o } from "./message-box/index.js";
3
+ const t = {
4
+ /**
5
+ * 成功消息提示
6
+ * @param msg
7
+ */
8
+ ok: (s) => {
9
+ r({
10
+ message: s,
11
+ type: "success"
12
+ });
13
+ },
14
+ /**
15
+ * 成功消息提示
16
+ * @param msg
17
+ */
18
+ err: (s) => {
19
+ r({
20
+ message: s,
21
+ type: "error"
22
+ });
23
+ },
24
+ /**
25
+ * 二次确定弹窗
26
+ */
27
+ msgBox: o,
28
+ /**
29
+ * 图标为钩的二次确定弹窗
30
+ */
31
+ msgBoxSuccess: (s, e = {}) => o(s, { iconType: "success", ...e }),
32
+ /**
33
+ * 图标为问号的二次确定弹窗
34
+ */
35
+ msgBoxQues: (s, e = {}) => o(s, { iconType: "question", ...e })
36
+ };
37
+ export {
38
+ t as msgTool
39
+ };
package/global.d.ts ADDED
@@ -0,0 +1,40 @@
1
+ // GlobalComponents for Volar
2
+ // 指定了模块名为 'vue',表示对 Vue.js 模块进行扩展。
3
+ declare module 'vue' {
4
+ /**
5
+ * 声明全局组件,便于 volar 识别
6
+ * 用于声明 Vue.js 中的全局组件,以便 Volar 插件可以正确识别这些组件并提供相应的智能提示和类型检查
7
+ */
8
+ export interface GlobalComponents {
9
+ HuiLineEditDialog: typeof import("@hua5/hua5-web-ui")["HuiLineEditDialog"]
10
+ HuiPreviewRichTextDialog: typeof import("@hua5/hua5-web-ui")["HuiPreviewRichTextDialog"]
11
+ HuiShowUrlDialog: typeof import("@hua5/hua5-web-ui")["HuiShowUrlDialog"]
12
+ HuiStringArrayInputDialog: typeof import("@hua5/hua5-web-ui")["HuiStringArrayInputDialog"]
13
+ HuiCountDownButton: typeof import("@hua5/hua5-web-ui")["HuiCountDownButton"]
14
+ HuiRegionTreeDialog: typeof import("@hua5/hua5-web-ui")["HuiRegionTreeDialog"]
15
+ HuiTinymceDialog: typeof import("@hua5/hua5-web-ui")["HuiTinymceDialog"]
16
+ HuiTinymce: typeof import("@hua5/hua5-web-ui")["HuiTinymce"]
17
+ HuiSelectLoadStatus: typeof import("@hua5/hua5-web-ui")["HuiSelectLoadStatus"]
18
+ HuiLineEditPopover: typeof import("@hua5/hua5-web-ui")["HuiLineEditPopover"]
19
+ HuiAMapSelectAddress:typeof import("@hua5/hua5-web-ui")["HuiAMapSelectAddress"]
20
+ HuiAMapSelectAddressDialog:typeof import("@hua5/hua5-web-ui")["HuiAMapSelectAddressDialog"]
21
+ HuiAMapSearchAddress:typeof import("@hua5/hua5-web-ui")["HuiAMapSearchAddress"]
22
+ HuiAMapSearchAddressDialog:typeof import("@hua5/hua5-web-ui")["HuiAMapSearchAddressDialog"]
23
+ HuiGridForm:typeof import("@hua5/hua5-web-ui")["HuiGridForm"]
24
+ HuiDataView:typeof import("@hua5/hua5-web-ui")["HuiDataView"]
25
+ HuiRegionTreeSelect:typeof import("@hua5/hua5-web-ui")["HuiRegionTreeSelect"]
26
+ HuiAMapMassMarkers:typeof import("@hua5/hua5-web-ui")["HuiAMapMassMarkers"]
27
+ HuiTags:typeof import("@hua5/hua5-web-ui")["HuiTags"]
28
+ HuiTagsMore:typeof import("@hua5/hua5-web-ui")["HuiTagsMore"]
29
+ HuiTip:typeof import("@hua5/hua5-web-ui")["HuiTip"]
30
+ }
31
+
32
+ /**
33
+ * 已添加到原型上的
34
+ */
35
+ interface ComponentCustomProperties {
36
+
37
+ }
38
+ }
39
+
40
+ export {}
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "zjh-web-ui",
3
+ "version": "1.0.10",
4
+ "description": "",
5
+ "type": "module",
6
+ "keywords": [],
7
+ "license": "ISC",
8
+ "author": "hua5",
9
+ "files": [
10
+ "dist",
11
+ "types",
12
+ "config",
13
+ "global.d.ts",
14
+ "src/css"
15
+ ],
16
+ "main": "dist/index.js",
17
+ "types": "types/index.d.ts",
18
+ "exports": {
19
+ ".": {
20
+ "types": "./dist/index.d.ts",
21
+ "import": "./dist/index.js"
22
+ },
23
+ "./style": "./dist/style.css",
24
+ "./config/*": "./config/*",
25
+ "./global": {
26
+ "types": "./global.d.ts"
27
+ }
28
+ },
29
+ "scripts": {
30
+ "build": "vite build",
31
+ "test": "echo \"Error: no test specified\" && exit 1",
32
+ "publish:ui": "pnpm ./deploy/deploy.sh"
33
+ },
34
+ "peerDependencies": {
35
+ "@element-plus/icons-vue": "^2.3.1",
36
+ "zjh-utils": "^1.0.18",
37
+ "zjh-web-lib": "^1.0.15",
38
+ "@tinymce/tinymce-vue": "^5",
39
+ "@unocss/preset-rem-to-px": "^0.59.0",
40
+ "element-plus": "^2.3.9",
41
+ "unocss": "^0.58.7",
42
+ "vue": "^3.5.12"
43
+ }
44
+ }
@@ -0,0 +1,104 @@
1
+ @font-face {
2
+ font-family: "icon-com"; /* Project id 4624061 */
3
+ src:
4
+ url('https://hua5-group.oss-cn-hangzhou.aliyuncs.com/resource_admin/iconfont/admin-common/iconfont.woff2') format('woff2'),
5
+ url('https://hua5-group.oss-cn-hangzhou.aliyuncs.com/resource_admin/iconfont/admin-common/iconfont.woff') format('woff'),
6
+ url('https://hua5-group.oss-cn-hangzhou.aliyuncs.com/resource_admin/iconfont/admin-common/iconfont.ttf') format('truetype');
7
+ }
8
+
9
+ .icon-com {
10
+ font-family: "icon-com" !important;
11
+ font-size: 16px;
12
+ font-style: normal;
13
+ -webkit-font-smoothing: antialiased;
14
+ -moz-osx-font-smoothing: grayscale;
15
+ }
16
+
17
+ .i-com-wenhao-plain:before {
18
+ content: "\e65a";
19
+ }
20
+
21
+ .i-com-jiantou-xia-shixin:before {
22
+ content: "\e654";
23
+ }
24
+
25
+ .i-com-lajitong:before {
26
+ content: "\e663";
27
+ }
28
+
29
+ .i-com-jiantou-shang-shixin:before {
30
+ content: "\e6f2";
31
+ }
32
+
33
+ .i-com-gou:before {
34
+ content: "\e650";
35
+ }
36
+
37
+ .i-com-fuzhi:before {
38
+ content: "\e64d";
39
+ }
40
+
41
+ .i-com-huanyuan:before {
42
+ content: "\e611";
43
+ }
44
+
45
+ .i-com-jiantou-xia-yuan:before {
46
+ content: "\e656";
47
+ }
48
+
49
+ .i-com-gantanhao:before {
50
+ content: "\e6f1";
51
+ }
52
+
53
+ .i-com-wenhao:before {
54
+ content: "\e66e";
55
+ }
56
+
57
+ .i-com-gou1:before {
58
+ content: "\e607";
59
+ }
60
+
61
+ .i-com-shipin:before {
62
+ content: "\e669";
63
+ }
64
+
65
+ .i-com-tupian:before {
66
+ content: "\e66b";
67
+ }
68
+
69
+ .i-com-jiantou-you:before {
70
+ content: "\e658";
71
+ }
72
+
73
+ .i-com-jiantou-zuo:before {
74
+ content: "\e65b";
75
+ }
76
+
77
+ .i-com-cha:before {
78
+ content: "\e649";
79
+ }
80
+
81
+ .i-com-jiahao:before {
82
+ content: "\e652";
83
+ }
84
+
85
+ .i-com-jiantou-xia-sanjiao:before {
86
+ content: "\e657";
87
+ }
88
+
89
+ .i-com-loudou:before {
90
+ content: "\e65f";
91
+ }
92
+
93
+ .i-com-lie:before {
94
+ content: "\e660";
95
+ }
96
+
97
+ .i-com-sousuo:before {
98
+ content: "\e664";
99
+ }
100
+
101
+ .i-com-shuaxin:before {
102
+ content: "\e668";
103
+ }
104
+
@@ -0,0 +1 @@
1
+ @import "./common-font.scss";
@@ -0,0 +1,2 @@
1
+ export declare const addAMap: () => Promise<unknown>;
2
+ export declare const removeAMap: (str?: string) => void;
@@ -0,0 +1,105 @@
1
+ import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { IPointItem, IPointTextStyle } from './type.ts';
3
+ /** 定义一个外部函数来处理点击事件 */
4
+ declare function handleLabelMarkerClick(event: any, point: any): void;
5
+ declare const _default: DefineComponent<ExtractPropTypes<{
6
+ modelValue: PropType<any>;
7
+ iconPath: {
8
+ type: PropType<string>;
9
+ default: string;
10
+ };
11
+ value: {
12
+ type: PropType<IPointItem>;
13
+ };
14
+ width: {
15
+ type: PropType<string>;
16
+ default: string;
17
+ };
18
+ height: {
19
+ type: PropType<string>;
20
+ default: string;
21
+ };
22
+ showLabel: {
23
+ type: PropType<boolean>;
24
+ default: boolean;
25
+ };
26
+ direction: {
27
+ type: PropType<"top" | "right" | "bottom" | "left" | "center">;
28
+ default: string;
29
+ };
30
+ textStyle: {
31
+ type: PropType<IPointTextStyle>;
32
+ default: () => {
33
+ fontSize: number;
34
+ fillColor: any;
35
+ backgroundColor: any;
36
+ borderRadius: number;
37
+ };
38
+ };
39
+ iconSize: {
40
+ type: PropType<[number, number]>;
41
+ default: () => number[];
42
+ };
43
+ mapCenter: {
44
+ type: PropType<[number, number]>;
45
+ default: () => number[];
46
+ };
47
+ }>, {
48
+ handleLabelMarkerClick: typeof handleLabelMarkerClick;
49
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
50
+ pointClick: (...args: any[]) => void;
51
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
52
+ modelValue: PropType<any>;
53
+ iconPath: {
54
+ type: PropType<string>;
55
+ default: string;
56
+ };
57
+ value: {
58
+ type: PropType<IPointItem>;
59
+ };
60
+ width: {
61
+ type: PropType<string>;
62
+ default: string;
63
+ };
64
+ height: {
65
+ type: PropType<string>;
66
+ default: string;
67
+ };
68
+ showLabel: {
69
+ type: PropType<boolean>;
70
+ default: boolean;
71
+ };
72
+ direction: {
73
+ type: PropType<"top" | "right" | "bottom" | "left" | "center">;
74
+ default: string;
75
+ };
76
+ textStyle: {
77
+ type: PropType<IPointTextStyle>;
78
+ default: () => {
79
+ fontSize: number;
80
+ fillColor: any;
81
+ backgroundColor: any;
82
+ borderRadius: number;
83
+ };
84
+ };
85
+ iconSize: {
86
+ type: PropType<[number, number]>;
87
+ default: () => number[];
88
+ };
89
+ mapCenter: {
90
+ type: PropType<[number, number]>;
91
+ default: () => number[];
92
+ };
93
+ }>> & Readonly<{
94
+ onPointClick?: (...args: any[]) => any;
95
+ }>, {
96
+ iconPath: string;
97
+ width: string;
98
+ height: string;
99
+ showLabel: boolean;
100
+ direction: "top" | "right" | "bottom" | "left" | "center";
101
+ textStyle: IPointTextStyle;
102
+ iconSize: [number, number];
103
+ mapCenter: [number, number];
104
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
105
+ export default _default;