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,167 @@
1
+ import { defineComponent as x, ref as y, reactive as A, computed as p, openBlock as s, createBlock as d, unref as a, isRef as W, withCtx as i, createElementVNode as q, createVNode as m, createTextVNode as w, mergeProps as g, createCommentVNode as B, createElementBlock as $, Fragment as j, renderList as G, nextTick as J } from "vue";
2
+ import { ElDialog as K, ElButton as S, ElForm as Q, ElFormItem as X, ElInput as Y, ElSelect as Z, ElOption as _, ElMessage as D } from "element-plus";
3
+ import { useHuiDialog as ee } from "../../hooks/useHuiDialog/useHuiDialog.js";
4
+ import { HuiTool as le } from "../../utils/hui-tool/index.js";
5
+ import "@hua5/hua5-utils";
6
+ const ie = /* @__PURE__ */ x({
7
+ name: "HuiLineEditDialog",
8
+ __name: "HuiLineEditDialog",
9
+ props: {
10
+ title: { default: "请输入内容" },
11
+ type: { default: "input" },
12
+ label: { default: "内容" },
13
+ prop: {},
14
+ placeholder: {},
15
+ labelWidth: { default: "94" },
16
+ rules: {},
17
+ selectDic: { default: () => [] },
18
+ isSelectMuti: { type: Boolean, default: !1 },
19
+ isNeedDoubleConfirm: { type: Boolean, default: !1 },
20
+ doubleConfirmTips: { default: "确定要执行该操作吗?" },
21
+ attr: { default: () => ({}) },
22
+ formAttr: { default: () => ({}) },
23
+ permission: { default: () => ({}) }
24
+ },
25
+ emits: ["onValueChange", "onSubmit"],
26
+ setup(H, { expose: R, emit: T }) {
27
+ const e = H, f = T, { show: c, open: N, close: n, payload: v, confirmLoading: P } = ee(), b = y(), h = y(), r = y(null), u = A({
28
+ inputData: null
29
+ }), C = p(() => e.type === "input" || e.type === "textarea"), F = p(() => e.type === "select"), V = p(() => e.placeholder || `请输入${e.label}`), I = p(() => ({ inputData: e.rules })), k = () => {
30
+ f("onValueChange", u, r.value);
31
+ }, L = async () => {
32
+ M() && b.value.validate(async (l) => {
33
+ if (l)
34
+ if (r.value[e.prop] = u.inputData, e.isNeedDoubleConfirm) {
35
+ const [, t] = await le.msgBox(e.doubleConfirmTips);
36
+ t ? (f("onSubmit", r.value, e.prop), n()) : D({
37
+ type: "info",
38
+ message: "操作已取消"
39
+ });
40
+ } else
41
+ f("onSubmit", r.value, e.prop), n();
42
+ else
43
+ return D.error("验证未通过"), !1;
44
+ });
45
+ };
46
+ function M() {
47
+ const { code: o, tip: l, checkRight: t } = e.permission;
48
+ if (t)
49
+ return t();
50
+ if (!o) return !0;
51
+ const E = window.huiDelegate.getBtnPermission()[o] ?? !1;
52
+ return E || D.error(l || "暂无权限,请联系管理员!"), E;
53
+ }
54
+ const z = () => {
55
+ if (!v) {
56
+ n();
57
+ return;
58
+ }
59
+ r.value = v.value, u.inputData = r.value[e.prop] >= 0 || r.value[e.prop] ? r.value[e.prop] : "", J(() => {
60
+ C.value && h.value.focus();
61
+ });
62
+ }, O = () => {
63
+ b.value.resetFields(), r.value = null, u.inputData = "", v.value = {};
64
+ }, U = () => {
65
+ n();
66
+ };
67
+ return R({
68
+ open: N,
69
+ close: n
70
+ }), (o, l) => (s(), d(a(K), {
71
+ modelValue: a(c),
72
+ "onUpdate:modelValue": l[2] || (l[2] = (t) => W(c) ? c.value = t : null),
73
+ title: o.title,
74
+ width: "450px",
75
+ top: "35vh",
76
+ "modal-append-to-body": !1,
77
+ "append-to-body": "",
78
+ onOpen: z,
79
+ onClose: O
80
+ }, {
81
+ footer: i(() => [
82
+ q("div", null, [
83
+ m(a(S), {
84
+ size: "large",
85
+ class: "!c-primary !border !border-1 !border-[theme(colors.primary)] !px-16 !text-14",
86
+ onClick: U
87
+ }, {
88
+ default: i(() => l[3] || (l[3] = [
89
+ w("取 消")
90
+ ])),
91
+ _: 1
92
+ }),
93
+ m(a(S), {
94
+ size: "large",
95
+ type: "primary",
96
+ loading: a(P),
97
+ class: "w-120 !ml-20",
98
+ onClick: L
99
+ }, {
100
+ default: i(() => l[4] || (l[4] = [
101
+ w("确 定")
102
+ ])),
103
+ _: 1
104
+ }, 8, ["loading"])
105
+ ])
106
+ ]),
107
+ default: i(() => [
108
+ m(a(Q), g({
109
+ ref_key: "formRef",
110
+ ref: b,
111
+ model: u,
112
+ rules: I.value
113
+ }, o.formAttr, {
114
+ "require-asterisk-position": "right",
115
+ class: "mt-20",
116
+ "label-width": o.labelWidth
117
+ }), {
118
+ default: i(() => [
119
+ m(a(X), {
120
+ label: o.label,
121
+ prop: "inputData"
122
+ }, {
123
+ default: i(() => [
124
+ C.value ? (s(), d(a(Y), g({ key: 0 }, o.attr, {
125
+ ref_key: "inputRef",
126
+ ref: h,
127
+ modelValue: u.inputData,
128
+ "onUpdate:modelValue": l[0] || (l[0] = (t) => u.inputData = t),
129
+ modelModifiers: { trim: !0 },
130
+ type: o.type,
131
+ placeholder: V.value,
132
+ clearable: "",
133
+ autosize: "",
134
+ onInput: k,
135
+ onFocus: k
136
+ }), null, 16, ["modelValue", "type", "placeholder"])) : B("", !0),
137
+ F.value ? (s(), d(a(Z), g({ key: 1 }, o.attr, {
138
+ modelValue: u.inputData,
139
+ "onUpdate:modelValue": l[1] || (l[1] = (t) => u.inputData = t),
140
+ class: "w-100%",
141
+ filterable: "",
142
+ multiple: o.isSelectMuti,
143
+ placeholder: V.value
144
+ }), {
145
+ default: i(() => [
146
+ (s(!0), $(j, null, G(o.selectDic, (t) => (s(), d(a(_), {
147
+ key: t.value,
148
+ label: t.label,
149
+ value: t.value
150
+ }, null, 8, ["label", "value"]))), 128))
151
+ ]),
152
+ _: 1
153
+ }, 16, ["modelValue", "multiple", "placeholder"])) : B("", !0)
154
+ ]),
155
+ _: 1
156
+ }, 8, ["label"])
157
+ ]),
158
+ _: 1
159
+ }, 16, ["model", "rules", "label-width"])
160
+ ]),
161
+ _: 1
162
+ }, 8, ["modelValue", "title"]));
163
+ }
164
+ });
165
+ export {
166
+ ie as default
167
+ };
@@ -0,0 +1,7 @@
1
+ import { withInstall as i } from "../../install-helper/install.js";
2
+ import o from "./HuiLineEditDialog.vue.js";
3
+ const l = i(o);
4
+ export {
5
+ l as HuiLineEditDialog,
6
+ l as default
7
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./HuiLineEditPopover.vue2.js";
2
+ /* empty css */
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d3d4441b"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,128 @@
1
+ import { defineComponent as V, mergeModels as k, useModel as B, reactive as M, ref as p, computed as R, onMounted as T, onBeforeUnmount as z, openBlock as E, createBlock as F, unref as l, withCtx as n, createElementVNode as f, normalizeClass as K, renderSlot as L, createTextVNode as N, toDisplayString as P, createVNode as s, createElementBlock as S, withKeys as U, withModifiers as H, createCommentVNode as I, nextTick as $, toValue as j } from "vue";
2
+ import { ElPopover as q, ElForm as A, ElFormItem as G, ElInput as J, ElButton as b } from "element-plus";
3
+ const O = {
4
+ key: 0,
5
+ class: "flex"
6
+ }, X = /* @__PURE__ */ V({
7
+ name: "HuiLineEditPopover",
8
+ __name: "HuiLineEditPopover",
9
+ props: /* @__PURE__ */ k({
10
+ field: {},
11
+ width: { default: 206 },
12
+ baseClass: { default: "text-primary px-4" },
13
+ disabled: { type: Boolean, default: !1 },
14
+ rules: {}
15
+ }, {
16
+ row: {},
17
+ rowModifiers: {}
18
+ }),
19
+ emits: /* @__PURE__ */ k(["confirm"], ["update:row"]),
20
+ setup(m, { emit: g }) {
21
+ const u = m, a = B(m, "row"), x = g, i = M({ inputData: null }), r = p(!1), c = p(null), v = p(null), C = R(() => ({ inputData: u.rules }));
22
+ T(() => {
23
+ window.addEventListener("keyup", y);
24
+ });
25
+ function h() {
26
+ i.inputData = a.value[u.field], setTimeout(() => {
27
+ var e;
28
+ (e = c.value) == null || e.focus();
29
+ }, 10);
30
+ }
31
+ async function D(e) {
32
+ var t, o;
33
+ await $(), (t = e.currentTarget) != null && t.select() && ((o = e.currentTarget) == null || o.select());
34
+ }
35
+ function w() {
36
+ var e;
37
+ (e = v.value) == null || e.validate((t) => {
38
+ t && (a.value[u.field] = i.inputData, x("confirm", j(a)), d());
39
+ });
40
+ }
41
+ function d() {
42
+ r.value = !1;
43
+ }
44
+ function y(e) {
45
+ (e.keyCode == 27 || e.code == "Escape") && (d(), e.stopPropagation());
46
+ }
47
+ return z(() => {
48
+ window.removeEventListener("keyup", y);
49
+ }), (e, t) => (E(), F(l(q), {
50
+ visible: r.value,
51
+ "onUpdate:visible": t[3] || (t[3] = (o) => r.value = o),
52
+ placement: "top",
53
+ width: e.width,
54
+ trigger: "click",
55
+ disabled: e.disabled,
56
+ "popper-style": "height:76px;",
57
+ onShow: h
58
+ }, {
59
+ reference: n(() => [
60
+ f("span", {
61
+ class: K([e.baseClass, e.disabled ? "cursor-not-allowed" : "cursor-pointer"])
62
+ }, [
63
+ L(e.$slots, "default", {}, () => [
64
+ N(P(a.value[e.field]), 1)
65
+ ], !0)
66
+ ], 2)
67
+ ]),
68
+ default: n(() => [
69
+ s(l(A), {
70
+ ref_key: "formRef",
71
+ ref: v,
72
+ model: i,
73
+ rules: C.value
74
+ }, {
75
+ default: n(() => [
76
+ r.value ? (E(), S("div", O, [
77
+ s(l(G), { prop: "inputData" }, {
78
+ default: n(() => [
79
+ s(l(J), {
80
+ ref_key: "inputRef",
81
+ ref: c,
82
+ modelValue: i.inputData,
83
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => i.inputData = o),
84
+ class: "!m-2 p-0",
85
+ size: "small",
86
+ onKeyup: U(H(w, ["prevent"]), ["enter"]),
87
+ onFocus: t[1] || (t[1] = (o) => D(o))
88
+ }, null, 8, ["modelValue", "onKeyup"])
89
+ ]),
90
+ _: 1
91
+ }),
92
+ s(l(b), {
93
+ class: "!m-2 !w-32 !h-28 !text-18 !p-4 flex-shrink-0",
94
+ type: "primary",
95
+ onClick: w
96
+ }, {
97
+ default: n(() => t[4] || (t[4] = [
98
+ f("i", {
99
+ class: "icon-com i-com-gou",
100
+ style: { "font-size": "12px" }
101
+ }, null, -1)
102
+ ])),
103
+ _: 1
104
+ }),
105
+ s(l(b), {
106
+ class: "!m-2 !w-32 !h-28 !text-18 !p-4 flex-shrink-0",
107
+ onClick: t[2] || (t[2] = (o) => d())
108
+ }, {
109
+ default: n(() => t[5] || (t[5] = [
110
+ f("i", {
111
+ class: "icon-com i-com-cha",
112
+ style: { "font-size": "12px" }
113
+ }, null, -1)
114
+ ])),
115
+ _: 1
116
+ })
117
+ ])) : I("", !0)
118
+ ]),
119
+ _: 1
120
+ }, 8, ["model", "rules"])
121
+ ]),
122
+ _: 3
123
+ }, 8, ["visible", "width", "disabled"]));
124
+ }
125
+ });
126
+ export {
127
+ X as default
128
+ };
@@ -0,0 +1,7 @@
1
+ import { withInstall as o } from "../../install-helper/install.js";
2
+ import i from "./HuiLineEditPopover.vue.js";
3
+ const e = o(i);
4
+ export {
5
+ e as HuiLineEditPopover,
6
+ e as default
7
+ };
@@ -0,0 +1,65 @@
1
+ import { defineComponent as v, ref as b, openBlock as h, createBlock as x, unref as i, isRef as y, withCtx as r, createVNode as V, createTextVNode as _, createElementVNode as w, toValue as a } from "vue";
2
+ import { ElDialog as C, ElButton as g } from "element-plus";
3
+ import { useHuiDialog as H } from "../../hooks/useHuiDialog/useHuiDialog.js";
4
+ import { testUtils as T } from "@hua5/hua5-utils";
5
+ /* empty css */
6
+ const D = ["innerHTML"], M = /* @__PURE__ */ v({
7
+ name: "HuiPreviewRichTextDialog",
8
+ __name: "HuiPreviewRichTextDialog",
9
+ props: {
10
+ title: { default: "内容预览" }
11
+ },
12
+ setup(E, { expose: p }) {
13
+ const { show: o, payload: t, open: u, close: l } = H(), n = b("");
14
+ function d() {
15
+ if (T.isEmpty(a(t))) {
16
+ l();
17
+ return;
18
+ }
19
+ n.value = a(t).content;
20
+ }
21
+ function s() {
22
+ n.value = "", t.value = {};
23
+ }
24
+ const f = () => {
25
+ l();
26
+ };
27
+ return p({
28
+ open: u,
29
+ close: l
30
+ }), (m, e) => (h(), x(i(C), {
31
+ modelValue: i(o),
32
+ "onUpdate:modelValue": e[0] || (e[0] = (c) => y(o) ? o.value = c : null),
33
+ title: m.title,
34
+ width: "80%",
35
+ top: "5vh",
36
+ "modal-append-to-body": "",
37
+ "append-to-body": "",
38
+ onOpen: d,
39
+ onClose: s
40
+ }, {
41
+ footer: r(() => [
42
+ V(i(g), {
43
+ type: "primary",
44
+ size: "large",
45
+ onClick: f
46
+ }, {
47
+ default: r(() => e[1] || (e[1] = [
48
+ _("关 闭")
49
+ ])),
50
+ _: 1
51
+ })
52
+ ]),
53
+ default: r(() => [
54
+ w("div", {
55
+ class: "rd-5 px-10 b b-solid b-ddd overflow-y-auto h-80vh",
56
+ innerHTML: n.value
57
+ }, null, 8, D)
58
+ ]),
59
+ _: 1
60
+ }, 8, ["modelValue", "title"]));
61
+ }
62
+ });
63
+ export {
64
+ M as default
65
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./HuiPreviewRichTextDialog.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,7 @@
1
+ import { withInstall as i } from "../../install-helper/install.js";
2
+ import t from "./HuiPreviewRichTextDialog.vue.js";
3
+ const a = i(t);
4
+ export {
5
+ a as HuiPreviewRichTextDialog,
6
+ a as default
7
+ };
@@ -0,0 +1,118 @@
1
+ import { defineComponent as q, ref as h, onMounted as F, watch as G, openBlock as J, createBlock as P, unref as t, isRef as Q, withCtx as r, createElementVNode as _, createVNode as d, createTextVNode as B, nextTick as W, toValue as k } from "vue";
2
+ import { ElDialog as X, ElButton as D, ElInput as Y, ElTree as Z } from "element-plus";
3
+ import { useHuiDialog as $ } from "../../hooks/useHuiDialog/useHuiDialog.js";
4
+ import "@hua5/hua5-utils";
5
+ /* empty css */
6
+ const ee = { class: "h-70vh overflow-y-scroll" }, le = { class: "mt-20" }, ie = /* @__PURE__ */ q({
7
+ name: "HuiRegionTreeDialog",
8
+ __name: "HuiRegionTreeDialog",
9
+ props: {
10
+ accordion: { type: Boolean, default: !1 },
11
+ nodeKey: { default: "id" },
12
+ treeLabelKey: { default: "title" },
13
+ isConfirmClose: { type: Boolean, default: !0 },
14
+ showCheckbox: { type: Boolean, default: !0 }
15
+ },
16
+ emits: ["onSubmit"],
17
+ setup(E, { expose: N, emit: H }) {
18
+ const { id: S, show: u, open: z, close: f, payload: i, confirmLoading: c } = $(), a = E, O = H, p = h(""), m = h([]), y = h(null);
19
+ F(async () => {
20
+ m.value = await window.huiDelegate.getRegionTree();
21
+ }), G(p, (o) => {
22
+ var l;
23
+ (l = y.value) == null || l.filter(o);
24
+ });
25
+ function U() {
26
+ const o = (l) => {
27
+ k(l).forEach((e) => {
28
+ var n, s;
29
+ e.hasChildren ? o(e.children) : e.disabled = (s = (n = k(i)) == null ? void 0 : n.disabledRegions) == null ? void 0 : s.includes(e.id);
30
+ });
31
+ };
32
+ W(() => {
33
+ o(m);
34
+ });
35
+ }
36
+ function A() {
37
+ i.value = {}, c.value = !1;
38
+ }
39
+ function I() {
40
+ c.value = !0;
41
+ const o = y.value.getCheckedKeys(!0) || [];
42
+ O("onSubmit", { id: k(S), regionList: o }), a.isConfirmClose && f();
43
+ }
44
+ function M(o, l, e) {
45
+ var v, w, x, K, V, R, T, L;
46
+ if (!o) return !0;
47
+ const n = (v = l == null ? void 0 : l[a.treeLabelKey]) == null ? void 0 : v.includes(o), s = (K = (x = (w = e == null ? void 0 : e.parent) == null ? void 0 : w.data) == null ? void 0 : x[a.treeLabelKey]) == null ? void 0 : K.includes(o), j = (L = (T = (R = (V = e == null ? void 0 : e.parent) == null ? void 0 : V.parent) == null ? void 0 : R.data) == null ? void 0 : T[a.treeLabelKey]) == null ? void 0 : L.includes(o);
48
+ let b = !1, g = !1, C = !1;
49
+ return e.level === 1 ? b = n : e.level === 2 ? g = n || s : e.level === 3 && (C = n || s || j), b || g || C;
50
+ }
51
+ return N({
52
+ open: z,
53
+ close: f
54
+ }), (o, l) => (J(), P(t(X), {
55
+ modelValue: t(u),
56
+ "onUpdate:modelValue": l[1] || (l[1] = (e) => Q(u) ? u.value = e : null),
57
+ title: "地区选择",
58
+ width: "500px",
59
+ top: "5vh",
60
+ "modal-append-to-body": !1,
61
+ "append-to-body": "",
62
+ "destroy-on-close": "",
63
+ onOpen: U,
64
+ onClose: A
65
+ }, {
66
+ footer: r(() => [
67
+ _("div", le, [
68
+ d(t(D), {
69
+ size: "large",
70
+ onClick: t(f)
71
+ }, {
72
+ default: r(() => l[2] || (l[2] = [
73
+ B("取 消")
74
+ ])),
75
+ _: 1
76
+ }, 8, ["onClick"]),
77
+ d(t(D), {
78
+ type: "primary",
79
+ size: "large",
80
+ class: "w-100",
81
+ loading: t(c),
82
+ onClick: I
83
+ }, {
84
+ default: r(() => l[3] || (l[3] = [
85
+ B("提 交")
86
+ ])),
87
+ _: 1
88
+ }, 8, ["loading"])
89
+ ])
90
+ ]),
91
+ default: r(() => [
92
+ d(t(Y), {
93
+ modelValue: p.value,
94
+ "onUpdate:modelValue": l[0] || (l[0] = (e) => p.value = e),
95
+ placeholder: "输入关键字进行过滤",
96
+ class: "my-10"
97
+ }, null, 8, ["modelValue"]),
98
+ _("div", ee, [
99
+ d(t(Z), {
100
+ ref_key: "treeRef",
101
+ ref: y,
102
+ data: m.value,
103
+ "show-checkbox": o.showCheckbox,
104
+ "node-key": o.nodeKey,
105
+ props: { label: a.treeLabelKey },
106
+ "default-checked-keys": t(i).defaultCheckedKeys,
107
+ "default-expanded-keys": t(i).defaultCheckedKeys,
108
+ "filter-node-method": M
109
+ }, null, 8, ["data", "show-checkbox", "node-key", "props", "default-checked-keys", "default-expanded-keys"])
110
+ ])
111
+ ]),
112
+ _: 1
113
+ }, 8, ["modelValue"]));
114
+ }
115
+ });
116
+ export {
117
+ ie as default
118
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./HuiRegionTreeDialog.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,7 @@
1
+ import { withInstall as o } from "../../install-helper/install.js";
2
+ import i from "./HuiRegionTreeDialog.vue.js";
3
+ const a = o(i);
4
+ export {
5
+ a as HuiRegionTreeDialog,
6
+ a as default
7
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./HuiRegionTreeSelect.vue2.js";
2
+ /* empty css */
3
+ import e from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-5abec867"]]);
5
+ export {
6
+ p as default
7
+ };
@@ -0,0 +1,59 @@
1
+ import { defineComponent as m, mergeModels as g, useModel as f, ref as p, onMounted as h, nextTick as R, computed as b, watch as v, openBlock as T, createBlock as V, unref as D, withCtx as w, createElementVNode as x, toDisplayString as M } from "vue";
2
+ import { ElTreeSelect as C } from "element-plus";
3
+ import { getRegionNameByCodeWithTree as N } from "zjh-web-lib";
4
+ const B = /* @__PURE__ */ m({
5
+ name: "HuiRegionTreeSelect",
6
+ __name: "HuiRegionTreeSelect",
7
+ props: /* @__PURE__ */ g({
8
+ treeData: {},
9
+ disabledRegions: { default: () => [] }
10
+ }, {
11
+ modelValue: {},
12
+ modelModifiers: {}
13
+ }),
14
+ emits: ["update:modelValue"],
15
+ setup(r, { expose: s }) {
16
+ const a = r, n = f(r, "modelValue"), i = p([]);
17
+ h(async () => {
18
+ i.value = await window.huiDelegate.getRegionTree(), R(() => {
19
+ a.disabledRegions.length > 0 && o.value.length > 0 && d(o.value);
20
+ });
21
+ });
22
+ const o = b(() => a.treeData || i.value);
23
+ function u(l) {
24
+ return N(l, i.value);
25
+ }
26
+ v(() => a.disabledRegions, () => {
27
+ a.disabledRegions.length > 0 && o.value.length > 0 && d(o.value);
28
+ }, {
29
+ deep: !0,
30
+ immediate: !0
31
+ });
32
+ function d(l) {
33
+ l.forEach((e) => {
34
+ var t;
35
+ e.hasChildren ? d(e.children) : e.disabled = (t = a.disabledRegions) == null ? void 0 : t.includes(e.id);
36
+ });
37
+ }
38
+ const c = (l, e) => e.fullName.includes(l);
39
+ return s({
40
+ selectedRegions: n
41
+ }), (l, e) => (T(), V(D(C), {
42
+ modelValue: n.value,
43
+ "onUpdate:modelValue": e[0] || (e[0] = (t) => n.value = t),
44
+ class: "hua5n-tree-select",
45
+ data: o.value,
46
+ "filter-node-method": c,
47
+ filterable: "",
48
+ teleported: !1
49
+ }, {
50
+ label: w(({ value: t }) => [
51
+ x("span", null, M(u(t)), 1)
52
+ ]),
53
+ _: 1
54
+ }, 8, ["modelValue", "data"]));
55
+ }
56
+ });
57
+ export {
58
+ B as default
59
+ };
@@ -0,0 +1,7 @@
1
+ import { withInstall as e } from "../../install-helper/install.js";
2
+ import o from "./HuiRegionTreeSelect.vue.js";
3
+ const r = e(o);
4
+ export {
5
+ r as HuiRegionTreeSelect,
6
+ r as default
7
+ };
@@ -0,0 +1,44 @@
1
+ import { defineComponent as d, openBlock as n, createBlock as c, unref as t, withCtx as a, withDirectives as i, createElementVNode as o, createVNode as r, vShow as s, createElementBlock as m, createCommentVNode as u } from "vue";
2
+ import { ElOption as p, ElIcon as f } from "element-plus";
3
+ import { Loading as g } from "@element-plus/icons-vue";
4
+ const h = { class: "flex flex-center" }, v = { key: 0 }, E = /* @__PURE__ */ d({
5
+ name: "HuiSelectLoadStatus",
6
+ __name: "HuiSelectLoadStatus",
7
+ props: {
8
+ loading: { type: Boolean },
9
+ length: {},
10
+ leave: {}
11
+ },
12
+ setup(_) {
13
+ return (e, l) => (n(), c(t(p), {
14
+ disabled: "",
15
+ value: "",
16
+ class: "flex flex-center !h-25"
17
+ }, {
18
+ default: a(() => [
19
+ i(o("div", h, [
20
+ r(t(f), {
21
+ class: "mr-10 is-loading",
22
+ size: "14"
23
+ }, {
24
+ default: a(() => [
25
+ r(t(g))
26
+ ]),
27
+ _: 1
28
+ }),
29
+ l[0] || (l[0] = o("span", null, "正在加载更多...", -1))
30
+ ], 512), [
31
+ [s, e.loading]
32
+ ]),
33
+ i(o("div", null, "无匹配数据", 512), [
34
+ [s, e.length <= 0 && !e.loading]
35
+ ]),
36
+ e.length > 0 && e.leave <= 0 ? (n(), m("div", v, "没有更多了")) : u("", !0)
37
+ ]),
38
+ _: 1
39
+ }));
40
+ }
41
+ });
42
+ export {
43
+ E as default
44
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./HuiSelectLoadStatus.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,7 @@
1
+ import { withInstall as t } from "../../install-helper/install.js";
2
+ import o from "./HuiSelectLoadStatus.vue.js";
3
+ const m = t(o);
4
+ export {
5
+ m as HuiSelectLoadStatus,
6
+ m as default
7
+ };