@web-utils/component 2.70.0 → 3.0.1

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 (189) hide show
  1. package/address-input/index.mjs +16 -14
  2. package/awesome-button/index.mjs +30 -29
  3. package/card/index.mjs +42 -40
  4. package/carousel/index.mjs +27 -25
  5. package/chat/index.mjs +70 -59
  6. package/chunk-file-uploader/index.mjs +594 -35
  7. package/chunk-file-uploader/style.css +1 -1
  8. package/chunks/CountUp.f1a19f35.mjs +124 -0
  9. package/chunks/CountUp.vue_vue_type_template_lang.1f68c96e.mjs +8 -0
  10. package/chunks/EasyPopup.vue_vue_type_style_index_0_lang.89350bda.mjs +32 -0
  11. package/chunks/EditableTree.vue_vue_type_style_index_0_lang.5dba9f89.mjs +356 -0
  12. package/chunks/ElementDialog.d8f3105c.mjs +211 -0
  13. package/chunks/ElementDialog.vue_vue_type_style_index_0_lang.57cb8e07.mjs +95 -0
  14. package/chunks/EmptyView.e2430422.mjs +51 -0
  15. package/chunks/EmptyView.vue_vue_type_style_index_0_lang.ffa84770.mjs +23 -0
  16. package/chunks/FlowNode.vue_vue_type_template_lang.662bdcfa.mjs +37 -0
  17. package/chunks/FormInput.vue_vue_type_template_lang.3cb79386.mjs +65 -0
  18. package/chunks/FormItem.2920ac0c.mjs +45 -0
  19. package/chunks/FormItem.vue_vue_type_style_index_0_lang.970bd712.mjs +258 -0
  20. package/chunks/FormItemGroup.41daddb6.mjs +64 -0
  21. package/chunks/FormItemGroup.vue_vue_type_style_index_0_lang.b588a8ea.mjs +155 -0
  22. package/chunks/FyCurd.8acd2983.mjs +548 -0
  23. package/chunks/FyCurd.vue_vue_type_style_index_0_lang.4fbd4b30.mjs +2945 -0
  24. package/chunks/FyDate.vue_vue_type_style_index_0_lang.429c03e3.mjs +47 -0
  25. package/chunks/FyDynamic.vue_vue_type_style_index_0_lang.304417ce.mjs +151 -0
  26. package/chunks/FyEmpty.vue_vue_type_style_index_0_lang.fc8bd24c.mjs +22 -0
  27. package/chunks/FyForm.0294e494.mjs +439 -0
  28. package/chunks/FyForm.vue_vue_type_style_index_0_lang.6e64daee.mjs +737 -0
  29. package/chunks/FyInput.vue_vue_type_template_lang.d2c56811.mjs +93 -0
  30. package/chunks/FyInputColor.vue_vue_type_template_lang.6eca0ddd.mjs +56 -0
  31. package/chunks/FyInputIcon.vue_vue_type_style_index_0_lang.11a6a221.mjs +158 -0
  32. package/chunks/FyRate.vue_vue_type_style_index_0_lang.82174185.mjs +39 -0
  33. package/chunks/FySelect.vue_vue_type_style_index_0_lang.5f0f3244.mjs +102 -0
  34. package/chunks/FyTabs.vue_vue_type_template_lang.66af5ac9.mjs +41 -0
  35. package/chunks/HighlightJS.vue_vue_type_style_index_0_lang.fefeaa3b.mjs +15 -0
  36. package/chunks/IconTemp.42c48e1f.mjs +32 -0
  37. package/chunks/IconTemp.vue_vue_type_style_index_0_lang.a0777b31.mjs +23 -0
  38. package/chunks/InputNumber.vue_vue_type_style_index_0_lang.18046bd3.mjs +172 -0
  39. package/chunks/LoadingView.vue_vue_type_style_index_0_lang.4c3fff2a.mjs +23 -0
  40. package/chunks/NavBar.vue_vue_type_style_index_0_lang.e21b57f3.mjs +21 -0
  41. package/chunks/Page.81f4b8d9.mjs +32 -0
  42. package/chunks/Page.vue_vue_type_style_index_0_lang.cb4f9bf2.mjs +13 -0
  43. package/chunks/PageHeader.vue_vue_type_style_index_0_lang.3bcca5aa.mjs +26 -0
  44. package/chunks/PageSkeleton.vue_vue_type_style_index_0_lang.8621381f.mjs +88 -0
  45. package/chunks/PageableTable.333cbdc1.mjs +335 -0
  46. package/chunks/PageableTable.vue_vue_type_style_index_0_lang.fd89fb43.mjs +148 -0
  47. package/chunks/ResizeObserver.60f728f0.mjs +54 -0
  48. package/chunks/ResizeObserver.vue_vue_type_style_index_0_lang.7079029c.mjs +13 -0
  49. package/chunks/TableColumn.8503272e.mjs +106 -0
  50. package/chunks/Toolbar.5c539dbb.mjs +24 -0
  51. package/chunks/Toolbar.vue_vue_type_style_index_0_lang.7594243c.mjs +275 -0
  52. package/chunks/ToolbarButton.vue_vue_type_style_index_0_lang.e2cb14ba.mjs +31 -0
  53. package/chunks/XInputTag.vue_vue_type_style_index_0_lang.7ad045b3.mjs +74 -0
  54. package/chunks/confirmable-mixin.26e1d0e0.mjs +197 -0
  55. package/chunks/{dataformat.f995e2f9.mjs → dataformat.816df805.mjs} +5 -5
  56. package/chunks/{dic.eaac0823.mjs → dic.3b4ba802.mjs} +40 -40
  57. package/chunks/{event.b5d855dd.mjs → event.4377230d.mjs} +2 -2
  58. package/chunks/{index.57f871af.mjs → index.d91bd77a.mjs} +7 -7
  59. package/chunks/{init.47f219b4.mjs → init.f0a03127.mjs} +2 -2
  60. package/chunks/{util.ae730cde.mjs → util.7844e2c2.mjs} +21 -21
  61. package/color-picker/index.mjs +200 -32
  62. package/confirm-button/index.mjs +1 -1
  63. package/confirmable/index.mjs +1 -1
  64. package/count-up/index.mjs +14 -17
  65. package/data-box/index.mjs +36 -33
  66. package/data-card/index.mjs +35 -33
  67. package/data-cardtext/index.mjs +29 -27
  68. package/data-display/index.mjs +37 -34
  69. package/data-icons/index.mjs +32 -29
  70. package/data-imgtext/index.mjs +30 -27
  71. package/data-operatext/index.mjs +41 -39
  72. package/data-panel/index.mjs +39 -36
  73. package/data-pay/index.mjs +26 -22
  74. package/data-price/index.mjs +34 -32
  75. package/data-progress/index.mjs +32 -28
  76. package/data-rotate/index.mjs +38 -35
  77. package/data-table-picker/index.mjs +25 -22
  78. package/data-tabs/index.mjs +35 -32
  79. package/dialog-form/index.mjs +41 -32
  80. package/dynamic-table/index.mjs +47 -42
  81. package/easy-popup/index.mjs +29 -56
  82. package/editable-progress/index.mjs +16 -14
  83. package/editable-tree/index.mjs +129 -476
  84. package/egd-collapse-item/index.mjs +1 -2
  85. package/element-dialog/index.mjs +37 -126
  86. package/empty-view/index.mjs +13 -31
  87. package/flex-column/index.mjs +1 -1
  88. package/flex-item/index.mjs +1 -1
  89. package/flex-row/index.mjs +1 -1
  90. package/flow/index.mjs +105 -40
  91. package/flow-designer/index.mjs +1190 -1114
  92. package/flow-node/index.mjs +15 -47
  93. package/flow-viewer/index.mjs +167 -78
  94. package/form-block/index.mjs +24 -22
  95. package/form-cascader/index.mjs +29 -29
  96. package/form-checkbox-group/index.mjs +76 -31
  97. package/form-date-picker/index.mjs +21 -20
  98. package/form-holder/index.mjs +16 -15
  99. package/form-input/index.mjs +30 -88
  100. package/form-input-email/index.mjs +28 -28
  101. package/form-input-id-card/index.mjs +37 -37
  102. package/form-input-number/index.mjs +219 -59
  103. package/form-input-phone-number/index.mjs +25 -25
  104. package/form-input-tag/index.mjs +160 -38
  105. package/form-input-time/index.mjs +23 -23
  106. package/form-item/index.mjs +15 -144
  107. package/form-item-group/index.mjs +15 -163
  108. package/form-radio-group/index.mjs +39 -38
  109. package/form-select/index.mjs +33 -32
  110. package/form-switch/index.mjs +26 -26
  111. package/form-textarea/index.mjs +26 -26
  112. package/form-view/index.mjs +46 -42
  113. package/fy-array/index.mjs +65 -61
  114. package/fy-cascader/index.mjs +14 -13
  115. package/fy-checkbox/index.mjs +37 -32
  116. package/fy-code/index.mjs +11 -14
  117. package/fy-curd/index.mjs +206 -2795
  118. package/fy-date/index.mjs +16 -57
  119. package/fy-draggable/index.mjs +21 -20
  120. package/fy-dynamic/index.mjs +64 -207
  121. package/fy-empty/index.mjs +12 -29
  122. package/fy-form/index.mjs +178 -732
  123. package/fy-form-design/index.mjs +1738 -1179
  124. package/fy-input/index.mjs +15 -101
  125. package/fy-input-color/index.mjs +17 -66
  126. package/fy-input-icon/index.mjs +21 -116
  127. package/fy-input-map/index.mjs +27 -24
  128. package/fy-input-number/index.mjs +23 -22
  129. package/fy-input-table/index.mjs +22 -18
  130. package/fy-input-tree/index.mjs +32 -28
  131. package/fy-progress/index.mjs +24 -23
  132. package/fy-radio/index.mjs +23 -18
  133. package/fy-rate/index.mjs +16 -49
  134. package/fy-select/index.mjs +29 -122
  135. package/fy-slider/index.mjs +18 -17
  136. package/fy-switch/index.mjs +21 -20
  137. package/fy-tabs/index.mjs +14 -48
  138. package/fy-time/index.mjs +20 -14
  139. package/fy-title/index.mjs +1 -1
  140. package/fy-tree/index.mjs +26 -20
  141. package/fy-u-editor/index.mjs +1 -1
  142. package/fy-upload/index.mjs +76 -74
  143. package/guide-steps/index.mjs +24 -22
  144. package/highlight-j-s/index.mjs +19 -29
  145. package/icon-temp/index.mjs +12 -30
  146. package/iframe-window/index.mjs +19 -18
  147. package/image-cropper/index.mjs +53 -51
  148. package/image-preview/index.mjs +27 -25
  149. package/input-number/index.mjs +63 -172
  150. package/input-number-range/index.mjs +24 -23
  151. package/license/index.mjs +1 -1
  152. package/loading-view/index.mjs +15 -33
  153. package/login/index.mjs +40 -35
  154. package/nav-bar/index.mjs +15 -30
  155. package/notice/index.mjs +19 -18
  156. package/package.json +1 -1
  157. package/page/index.mjs +12 -20
  158. package/page-header/index.mjs +13 -34
  159. package/page-index/index.mjs +34 -33
  160. package/page-index-top/index.mjs +100 -51
  161. package/page-skeleton/index.mjs +18 -35
  162. package/page-skeleton-new/index.mjs +16 -15
  163. package/pageable-table/index.mjs +85 -223
  164. package/pageable-view/index.mjs +34 -33
  165. package/present-view/index.mjs +75 -71
  166. package/record-video/index.mjs +1 -1
  167. package/resize-observer/index.mjs +21 -29
  168. package/search/index.mjs +29 -27
  169. package/search-popover/index.mjs +1 -1
  170. package/sign/index.mjs +1 -1
  171. package/split-pane/index.mjs +40 -45
  172. package/static-pageable-table/index.mjs +20 -18
  173. package/swiper/index.mjs +27 -25
  174. package/table-view/index.mjs +627 -89
  175. package/tag-render/index.mjs +21 -19
  176. package/text-ellipsis/index.mjs +13 -12
  177. package/tinymce-editor/index.mjs +73 -72
  178. package/toolbar/index.mjs +15 -208
  179. package/toolbar-button/index.mjs +32 -57
  180. package/verify/index.mjs +1 -1
  181. package/vue-cron/index.mjs +112 -104
  182. package/watermark/index.mjs +1 -1
  183. package/web-types.json +1 -1
  184. package/x-input-tag/index.mjs +51 -117
  185. package/chunks/FormTemp.7f91629d.mjs +0 -165
  186. package/chunks/confirmable-mixin.817b542f.mjs +0 -116
  187. package/chunks/form-input-mixin.4632ad36.mjs +0 -24
  188. package/chunks/form-item-mixin.ad148e7b.mjs +0 -140
  189. package/chunks/input-number-mixin.41a066be.mjs +0 -60
@@ -0,0 +1,737 @@
1
+ import { isBlank as B } from "@web-utils/core";
2
+ import { formatDate as v } from "@web-utils/integrations/dayjs";
3
+ import { g as E, M as H, A as R, b as T, e as Y, h as G, i as F, j as U, k as V, l as W, u as q } from "./util.7844e2c2.mjs";
4
+ import { p as J } from "./packages.1fc9ccba.mjs";
5
+ import S from "element-ui/lib/button";
6
+ import P from "element-ui/lib/form-item";
7
+ import j from "element-ui/lib/col";
8
+ import { n as x } from "./vueComponentNormalizer.446f5dc4.mjs";
9
+ import "@web-utils/component/fy-u-editor/style.css";
10
+ import { g as K, b as Q } from "./dataformat.816df805.mjs";
11
+ import { s as X } from "./slot.4b391395.mjs";
12
+ import Z from "element-ui/lib/tooltip";
13
+ import ee from "element-ui/lib/tab-pane";
14
+ import te from "element-ui/lib/tabs";
15
+ import re from "element-ui/lib/collapse-item";
16
+ import ne from "element-ui/lib/collapse";
17
+ import ae from "element-ui/lib/row";
18
+ import oe from "element-ui/lib/form";
19
+ const Ee = (e = {}, a = {}, r = {}, n = []) => {
20
+ let o = e[a.prop];
21
+ const t = a.type, l = a.separator;
22
+ if (a.bind && (o = E(e, a.bind)), B(o))
23
+ o = "";
24
+ else {
25
+ const u = H.includes(a.type) && a.multiple, c = R.includes(a.type);
26
+ if ((["string", "number"].includes(a.dataType) || u || c) && !Array.isArray(o) && (o = `${o}`.split(l || T), a.dataType === "number" && (o = Y(o))), G.includes(t))
27
+ Array.isArray(o) ? o = o.join(l || F) : o = o.split(l || T).join(l || F);
28
+ else if (t === "password")
29
+ o = U(o, "*");
30
+ else if (V.includes(t) && a.format) {
31
+ const _ = a.format.replace("dd", "DD").replace("yyyy", "YYYY"), m = v(Date.now(), "YYYY-MM-DD");
32
+ if (t.indexOf("range") !== -1) {
33
+ let f = o[0] || "", d = o[1] || "";
34
+ t === "timerange" && f.length <= 8 && d.length < 8 && (f = `${m} ${f}`, d = `${m} ${d}`), o = [v(f, _), v(d, _)].join(a.separator || "~");
35
+ } else
36
+ t === "time" && o.length <= 8 && (o = `${m} ${o}`), o = v(o, _);
37
+ }
38
+ o = W(n, o, a.props || r.props);
39
+ }
40
+ return a.formatter && typeof a.formatter == "function" && (o = a.formatter(e, e[a.prop], o, a)), o;
41
+ }, He = (e, a, r, n) => {
42
+ if (!n)
43
+ return;
44
+ if (!window.Mock) {
45
+ J.logs("mock");
46
+ return;
47
+ }
48
+ const t = (window.Mock || {}).Random, l = {};
49
+ function u({ en: p }) {
50
+ return p ? t.name(!0) : t.cname();
51
+ }
52
+ function c({ max: p, min: s, precision: i }) {
53
+ if (i) {
54
+ const y = `${t.float(s, p, i)}`, b = y.indexOf(".") + 1;
55
+ return Number(y.substring(0, b + i));
56
+ } else
57
+ return t.integer(s, p);
58
+ }
59
+ function _({ header: p }) {
60
+ let s = t.url();
61
+ const i = s.indexOf("://");
62
+ return p === !1 ? s = s.substring(i + 3) : s = `http://${s.substring(i + 3)}`, s;
63
+ }
64
+ function m({ format: p, now: s }) {
65
+ return s ? t.now(p) : t.datetime(p);
66
+ }
67
+ function f({ min: p, max: s }) {
68
+ return t.csentence(p, s);
69
+ }
70
+ function d() {
71
+ return t.county(!0);
72
+ }
73
+ function A({ dic: p, props: s, columnType: i, multiple: y }) {
74
+ const b = s.value || "value", h = p.length;
75
+ if (["checkbox"].includes(i) || y) {
76
+ const g = c({ min: 1, max: h }), k = [];
77
+ for (let $ = 0; $ < g; $++) {
78
+ let D = !0;
79
+ for (; D; ) {
80
+ const I = c({ min: 0, max: h - 1 }), O = p[I][b];
81
+ k.includes(O) || (k.push(O), D = !1);
82
+ }
83
+ }
84
+ return k;
85
+ } else {
86
+ const g = c({ min: 0, max: h - 1 });
87
+ return p[g][b];
88
+ }
89
+ }
90
+ function L() {
91
+ Object.keys(e).forEach((p) => {
92
+ const s = e[p];
93
+ if (s.mock && typeof s.mock == "object") {
94
+ const i = s.mock;
95
+ switch (i.dic = typeof s.dicData == "string" ? a[s.dicData] : s.dicData || [], i.props = s.props || {}, i.columnType = s.type, i.multiple = s.multiple, i.type) {
96
+ case "name":
97
+ l[s.prop] = u(i);
98
+ break;
99
+ case "number":
100
+ l[s.prop] = c(i);
101
+ break;
102
+ case "datetime":
103
+ l[s.prop] = m(i);
104
+ break;
105
+ case "word":
106
+ l[s.prop] = f(i);
107
+ break;
108
+ case "url":
109
+ l[s.prop] = _(i);
110
+ break;
111
+ case "county":
112
+ l[s.prop] = d();
113
+ break;
114
+ case "dic":
115
+ l[s.prop] = A(i);
116
+ break;
117
+ }
118
+ } else
119
+ s.mock instanceof Function && (l[s.prop] = s.mock(r));
120
+ });
121
+ }
122
+ return L(), l;
123
+ };
124
+ var se = function() {
125
+ var e = this, a = e.$createElement, r = e._self._c || a;
126
+ return e.display ? r("div", {
127
+ class: ["avue-group", {
128
+ "avue-group--header": !e.isHeader,
129
+ "avue-group__arrow": !e.arrow
130
+ }]
131
+ }, [e._t("tabs"), r(ne, {
132
+ attrs: {
133
+ value: e.text
134
+ },
135
+ on: {
136
+ change: e.handleChange
137
+ },
138
+ model: {
139
+ value: e.activeName,
140
+ callback: function(n) {
141
+ e.activeName = n;
142
+ },
143
+ expression: "activeName"
144
+ }
145
+ }, [r(re, {
146
+ attrs: {
147
+ name: 1,
148
+ disabled: !e.arrow
149
+ },
150
+ scopedSlots: e._u([{
151
+ key: "title",
152
+ fn: function() {
153
+ return [r("div", {
154
+ staticClass: "avue-group__header"
155
+ }, [e._t("header", function() {
156
+ return [e.icon ? r("i", {
157
+ class: [e.icon, "avue-group__icon"]
158
+ }) : e._e(), e.label ? r("h1", {
159
+ staticClass: "avue-group__title"
160
+ }, [e._v(" " + e._s(e.label) + " ")]) : e._e()];
161
+ })], 2)];
162
+ },
163
+ proxy: !0
164
+ }], null, !0)
165
+ }, [e._t("default")], 2)], 1)], 2) : e._e();
166
+ }, le = [];
167
+ const ie = {
168
+ name: "FormGroup",
169
+ props: {
170
+ arrow: {
171
+ type: Boolean,
172
+ default: !0
173
+ },
174
+ collapse: {
175
+ type: Boolean,
176
+ default: !0
177
+ },
178
+ header: {
179
+ type: Boolean,
180
+ default: !0
181
+ },
182
+ icon: {
183
+ type: String
184
+ },
185
+ display: {
186
+ type: Boolean,
187
+ default: !0
188
+ },
189
+ label: {
190
+ type: String
191
+ }
192
+ },
193
+ data() {
194
+ return {
195
+ activeName: ""
196
+ };
197
+ },
198
+ computed: {
199
+ text() {
200
+ return this.collapse ? 1 : 0;
201
+ },
202
+ isHeader() {
203
+ return this.$slots.header && this.header || (this.label || this.icon) && this.header;
204
+ }
205
+ },
206
+ watch: {
207
+ text(e) {
208
+ this.activeName = [e];
209
+ }
210
+ },
211
+ created() {
212
+ this.activeName = [this.text];
213
+ },
214
+ methods: {
215
+ handleChange(e) {
216
+ this.$emit("change", e);
217
+ }
218
+ }
219
+ }, z = {};
220
+ var pe = /* @__PURE__ */ x(
221
+ ie,
222
+ se,
223
+ le,
224
+ !1,
225
+ ue,
226
+ null,
227
+ null,
228
+ null
229
+ );
230
+ function ue(e) {
231
+ for (let a in z)
232
+ this[a] = z[a];
233
+ }
234
+ const ce = /* @__PURE__ */ function() {
235
+ return pe.exports;
236
+ }();
237
+ var fe = function() {
238
+ var e = this, a = e.$createElement, r = e._self._c || a;
239
+ return e.formSafe.parentOption.menuBtn !== !1 ? r(j, {
240
+ class: ["menu", e.formSafe.menuPosition, "no-print"],
241
+ style: e.styleName,
242
+ attrs: {
243
+ span: e.menuSpan,
244
+ md: e.menuSpan
245
+ }
246
+ }, [r(P, {
247
+ staticStyle: {
248
+ "text-align": "center"
249
+ },
250
+ attrs: {
251
+ "label-width": "0px"
252
+ }
253
+ }, [e.formSafe.isMock ? r(S, {
254
+ attrs: {
255
+ type: "primary",
256
+ size: e.formSafe.controlSize,
257
+ icon: "el-icon-edit-outline",
258
+ disabled: e.formSafe.allDisabled
259
+ },
260
+ on: {
261
+ click: e.formSafe.handleMock
262
+ }
263
+ }, [e._v(" " + e._s(e.formSafe.parentOption.mockText || "模拟") + " ")]) : e._e(), e.formSafe.isPrint ? r(S, {
264
+ attrs: {
265
+ type: "primary",
266
+ size: e.formSafe.controlSize,
267
+ icon: "el-icon-printer",
268
+ disabled: e.formSafe.allDisabled
269
+ },
270
+ on: {
271
+ click: e.formSafe.handlePrint
272
+ }
273
+ }, [e._v(" " + e._s(e.formSafe.parentOption.printText || "打印") + " ")]) : e._e(), e.formSafe.parentOption.submitBtn !== !1 ? r(S, {
274
+ attrs: {
275
+ type: "primary",
276
+ size: e.formSafe.controlSize,
277
+ icon: e.formSafe.parentOption.submitIcon || "el-icon-check",
278
+ loading: e.formSafe.allDisabled
279
+ },
280
+ on: {
281
+ click: e.formSafe.submit
282
+ }
283
+ }, [e._v(" " + e._s(e.formSafe.parentOption.submitText || "提交") + " ")]) : e._e(), e.formSafe.parentOption.emptyBtn !== !1 ? r(S, {
284
+ attrs: {
285
+ icon: e.formSafe.parentOption.emptyIcon || "el-icon-delete",
286
+ size: e.formSafe.controlSize,
287
+ disabled: e.formSafe.allDisabled
288
+ },
289
+ on: {
290
+ click: e.formSafe.resetForm
291
+ }
292
+ }, [e._v(" " + e._s(e.formSafe.parentOption.emptyText || "清空") + " ")]) : e._e(), e._t("menuForm", null, {
293
+ disabled: e.formSafe.allDisabled,
294
+ size: e.formSafe.controlSize
295
+ })], 2)], 1) : e._e();
296
+ }, de = [];
297
+ const _e = {
298
+ name: "FyFormMenu",
299
+ inject: ["formSafe"],
300
+ computed: {
301
+ menuSpan() {
302
+ return this.formSafe.parentOption.menuSpan || 24;
303
+ },
304
+ styleName() {
305
+ return this.menuSpan !== 24 ? {
306
+ padding: 0
307
+ } : {};
308
+ }
309
+ }
310
+ }, N = {};
311
+ var me = /* @__PURE__ */ x(
312
+ _e,
313
+ fe,
314
+ de,
315
+ !1,
316
+ ye,
317
+ null,
318
+ null,
319
+ null
320
+ );
321
+ function ye(e) {
322
+ for (let a in N)
323
+ this[a] = N[a];
324
+ }
325
+ const C = /* @__PURE__ */ function() {
326
+ return me.exports;
327
+ }();
328
+ var be = function() {
329
+ var e = this, a = e.$createElement, r = e._self._c || a;
330
+ return r(e.getComponent(e.column.type, e.column.component), e._g(e._b({
331
+ ref: "temp",
332
+ tag: "Component",
333
+ attrs: {
334
+ column: Object.assign(e.column, e.params),
335
+ dic: e.dic,
336
+ disabled: e.column.disabled || e.disabled,
337
+ readonly: e.column.readonly || e.readonly,
338
+ placeholder: e.getPlaceholder(e.column),
339
+ props: e.column.props || e.props,
340
+ "props-http": e.column.propsHttp || e.propsHttp,
341
+ size: e.column.size || e.size,
342
+ "table-data": e.tableData,
343
+ type: e.type || e.column.type,
344
+ "column-slot": e.columnSlot
345
+ },
346
+ nativeOn: {
347
+ keyup: function(n) {
348
+ return !n.type.indexOf("key") && e._k(n.keyCode, "enter", 13, n.key, "Enter") ? null : e.enterChange.apply(null, arguments);
349
+ }
350
+ },
351
+ scopedSlots: e._u([e._l(e.columnSlot, function(n) {
352
+ return {
353
+ key: n,
354
+ fn: function(o) {
355
+ return [e._t(n, null, null, o)];
356
+ }
357
+ };
358
+ })], null, !0),
359
+ model: {
360
+ value: e.text,
361
+ callback: function(n) {
362
+ e.text = n;
363
+ },
364
+ expression: "text"
365
+ }
366
+ }, "Component", Object.assign(e.column, e.uploadFun(e.column)), !1), e.event), [e.params.html ? r("span", {
367
+ domProps: {
368
+ innerHTML: e._s(e.params.html)
369
+ }
370
+ }) : e._e()]);
371
+ }, ve = [];
372
+ const Se = {
373
+ name: "FormTemp",
374
+ components: { FyUEditor: () => import("@web-utils/component/fy-u-editor") },
375
+ mixins: [X],
376
+ props: {
377
+ value: [String, Object, Number, Boolean, Array],
378
+ columnSlot: {
379
+ type: Array,
380
+ default: () => []
381
+ },
382
+ tableData: {
383
+ type: Object,
384
+ default: () => ({})
385
+ },
386
+ enter: {
387
+ type: Boolean,
388
+ default: !1
389
+ },
390
+ type: {
391
+ type: String
392
+ },
393
+ propsHttp: {
394
+ type: Object,
395
+ default: () => ({})
396
+ },
397
+ props: {
398
+ type: Object
399
+ },
400
+ dic: {
401
+ type: Array
402
+ },
403
+ size: {
404
+ type: String
405
+ },
406
+ disabled: {
407
+ type: Boolean
408
+ },
409
+ readonly: {
410
+ type: Boolean
411
+ },
412
+ column: {
413
+ type: Object,
414
+ default: () => ({})
415
+ }
416
+ },
417
+ computed: {
418
+ params() {
419
+ return this.column.params || {};
420
+ },
421
+ event() {
422
+ return this.column.event || {};
423
+ },
424
+ text: {
425
+ get() {
426
+ return this.value;
427
+ },
428
+ set(e) {
429
+ this.$emit("input", e), this.$emit("change", e);
430
+ }
431
+ }
432
+ },
433
+ methods: {
434
+ uploadFun: q,
435
+ getComponent: K,
436
+ getPlaceholder: Q,
437
+ enterChange() {
438
+ typeof this.column.enter == "function" ? this.column.enter({ value: this.text, column: this.column }) : this.enter && this.$emit("enter");
439
+ }
440
+ }
441
+ }, w = {};
442
+ var he = /* @__PURE__ */ x(
443
+ Se,
444
+ be,
445
+ ve,
446
+ !1,
447
+ ge,
448
+ null,
449
+ null,
450
+ null
451
+ );
452
+ function ge(e) {
453
+ for (let a in w)
454
+ this[a] = w[a];
455
+ }
456
+ const M = /* @__PURE__ */ function() {
457
+ return he.exports;
458
+ }(), Re = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
459
+ __proto__: null,
460
+ default: M
461
+ }, Symbol.toStringTag, { value: "Module" }));
462
+ var Ye = function() {
463
+ var e = this, a = e.$createElement, r = e._self._c || a;
464
+ return r("div", {
465
+ class: ["avue-form", {
466
+ "avue--detail": e.isDetail
467
+ }],
468
+ style: {
469
+ width: e.setPx(e.parentOption.formWidth, "100%")
470
+ }
471
+ }, [r(oe, {
472
+ ref: "form",
473
+ attrs: {
474
+ "status-icon": e.parentOption.statusIcon,
475
+ model: e.form,
476
+ "label-suffix": e.labelSuffix,
477
+ size: e.$AVUE.formSize || e.controlSize,
478
+ "label-position": e.parentOption.labelPosition,
479
+ "label-width": e.setPx(e.parentOption.labelWidth, e.labelWidth)
480
+ },
481
+ nativeOn: {
482
+ submit: function(n) {
483
+ n.preventDefault();
484
+ }
485
+ }
486
+ }, [r(ae, {
487
+ class: {
488
+ "avue-form__tabs": e.isTabs
489
+ },
490
+ attrs: {
491
+ span: 24
492
+ }
493
+ }, [e._l(e.columnOption, function(n, o) {
494
+ return r(ce, {
495
+ key: n.prop,
496
+ attrs: {
497
+ tabs: e.isTabs,
498
+ arrow: n.arrow,
499
+ collapse: n.collapse,
500
+ display: e.vaildDisplay(n),
501
+ icon: n.icon,
502
+ index: o,
503
+ header: !e.isTabs,
504
+ active: e.activeName,
505
+ label: n.label
506
+ },
507
+ on: {
508
+ change: e.handleGroupClick
509
+ },
510
+ scopedSlots: e._u([{
511
+ key: "tabs",
512
+ fn: function() {
513
+ return [e.isTabs && o === 1 ? r(te, {
514
+ staticClass: "avue-form__tabs",
515
+ attrs: {
516
+ type: e.tabsType
517
+ },
518
+ on: {
519
+ "tab-click": e.handleTabClick
520
+ },
521
+ model: {
522
+ value: e.activeName,
523
+ callback: function(t) {
524
+ e.activeName = t;
525
+ },
526
+ expression: "activeName"
527
+ }
528
+ }, [e._l(e.columnOption, function(t, l) {
529
+ return [e.vaildDisplay(t) && l !== 0 ? r(ee, {
530
+ key: l,
531
+ attrs: {
532
+ name: `${l}`
533
+ },
534
+ scopedSlots: e._u([{
535
+ key: "label",
536
+ fn: function() {
537
+ return [r("span", [e.getSlotName(t, "H", e.$scopedSlots) ? e._t(e.getSlotName(t, "H"), null, {
538
+ column: e.column
539
+ }) : [r("i", {
540
+ class: t.icon
541
+ }, [e._v(" ")]), e._v(" " + e._s(t.label) + " ")]], 2)];
542
+ },
543
+ proxy: !0
544
+ }], null, !0)
545
+ }) : e._e()];
546
+ })], 2) : e._e()];
547
+ },
548
+ proxy: !0
549
+ }, e.getSlotName(n, "H", e.$scopedSlots) ? {
550
+ key: "header",
551
+ fn: function() {
552
+ return [e._t(e.getSlotName(n, "H"), null, {
553
+ column: n
554
+ })];
555
+ },
556
+ proxy: !0
557
+ } : null], null, !0)
558
+ }, [r("div", {
559
+ directives: [{
560
+ name: "show",
561
+ rawName: "v-show",
562
+ value: e.isGroupShow(n, o),
563
+ expression: "isGroupShow(item, index)"
564
+ }],
565
+ class: ["avue-form__group", {
566
+ "avue-form__group--flex": n.flex === !1
567
+ }]
568
+ }, [e._l(n.column, function(t, l) {
569
+ return [e.vaildDisplay(t) ? r(j, {
570
+ key: l,
571
+ class: ["avue-form__row", {
572
+ "avue--detail avue--detail__column": e.vaildDetail(t)
573
+ }, t.className],
574
+ style: {
575
+ paddingLeft: e.gutter,
576
+ paddingRight: e.gutter
577
+ },
578
+ attrs: {
579
+ span: e.getSpan(t),
580
+ md: e.getSpan(t),
581
+ sm: t.smSpan || n.smSpan || 12,
582
+ xs: t.xsSpan || n.xmSpan || 24,
583
+ offset: t.offset || n.offset,
584
+ push: t.push || n.push,
585
+ pull: t.pull || n.pull
586
+ }
587
+ }, [r(P, {
588
+ class: `avue-form__item--${t.labelPosition || n.labelPosition || ""}`,
589
+ attrs: {
590
+ prop: t.prop,
591
+ label: t.label,
592
+ rules: t.rules,
593
+ "label-position": t.labelPosition || n.labelPosition || e.parentOption.labelPosition,
594
+ "label-width": e.getLabelWidth(t, n)
595
+ },
596
+ scopedSlots: e._u([e.getSlotName(t, "L", e.$scopedSlots) ? {
597
+ key: "label",
598
+ fn: function() {
599
+ return [e._t(e.getSlotName(t, "L"), null, {
600
+ column: t,
601
+ value: e.form[t.prop],
602
+ readonly: t.readonly || e.readonly,
603
+ disabled: e.getDisabled(t),
604
+ size: t.size || e.controlSize,
605
+ dic: e.DIC[t.prop]
606
+ })];
607
+ },
608
+ proxy: !0
609
+ } : t.labelTip ? {
610
+ key: "label",
611
+ fn: function() {
612
+ return [r(Z, {
613
+ staticClass: "item",
614
+ attrs: {
615
+ effect: "dark",
616
+ placement: t.labelTipPlacement || "top-start"
617
+ },
618
+ scopedSlots: e._u([{
619
+ key: "content",
620
+ fn: function() {
621
+ return [r("div", {
622
+ domProps: {
623
+ innerHTML: e._s(t.labelTip)
624
+ }
625
+ })];
626
+ },
627
+ proxy: !0
628
+ }], null, !0)
629
+ }, [r("i", {
630
+ staticClass: "el-icon-info"
631
+ })]), r("span", [e._v(" " + e._s(t.label) + e._s(e.labelSuffix))])];
632
+ },
633
+ proxy: !0
634
+ } : null, e.getSlotName(t, "E", e.$scopedSlots) ? {
635
+ key: "error",
636
+ fn: function(u) {
637
+ return [e._t(e.getSlotName(t, "E"), null, null, Object.assign(u, {
638
+ column: t,
639
+ value: e.form[t.prop],
640
+ readonly: e.readonly || t.readonly,
641
+ disabled: e.getDisabled(t),
642
+ size: t.size || e.controlSize,
643
+ dic: e.DIC[t.prop]
644
+ }))];
645
+ }
646
+ } : null], null, !0)
647
+ }, [r(e.validTip(t) ? "div" : "elTooltip", {
648
+ tag: "Component",
649
+ attrs: {
650
+ disabled: e.validTip(t),
651
+ content: t.tip || e.getPlaceholder(t),
652
+ placement: t.tipPlacement
653
+ }
654
+ }, [e.$scopedSlots[t.prop] ? e._t(t.prop, null, {
655
+ value: e.form[t.prop],
656
+ column: t,
657
+ label: e.form[`$${t.prop}`],
658
+ size: t.size || e.controlSize,
659
+ readonly: e.readonly || t.readonly,
660
+ disabled: e.getDisabled(t),
661
+ dic: e.DIC[t.prop]
662
+ }) : r(M, e._b({
663
+ ref: t.prop,
664
+ refInFor: !0,
665
+ attrs: {
666
+ column: t,
667
+ dic: e.DIC[t.prop],
668
+ props: e.parentOption.props,
669
+ "props-http": e.parentOption.propsHttp,
670
+ disabled: e.getDisabled(t),
671
+ readonly: t.readonly || e.readonly,
672
+ enter: e.parentOption.enter,
673
+ size: t.size || e.controlSize,
674
+ "column-slot": e.columnSlot
675
+ },
676
+ on: {
677
+ enter: e.submit,
678
+ change: function(u) {
679
+ return e.propChange(n.column, t);
680
+ }
681
+ },
682
+ scopedSlots: e._u([e._l(e.getSlotName(t, "T", e.$scopedSlots) ? [t] : [], function(u) {
683
+ return {
684
+ key: e.getSlotName(t, "T"),
685
+ fn: function(c) {
686
+ return [e._t(e.getSlotName(u, "T"), null, null, c)];
687
+ }
688
+ };
689
+ }), e._l(e.columnSlot, function(u) {
690
+ return {
691
+ key: u,
692
+ fn: function(c) {
693
+ return [e._t(u, null, null, c)];
694
+ }
695
+ };
696
+ })], null, !0),
697
+ model: {
698
+ value: e.form[t.prop],
699
+ callback: function(u) {
700
+ e.$set(e.form, t.prop, u);
701
+ },
702
+ expression: "form[column.prop]"
703
+ }
704
+ }, "FormTemp", e.uploadFun(t), !1))], 2)], 1)], 1) : e._e(), e.vaildDisplay(t) && t.row && t.span !== 24 && t.count ? r("div", {
705
+ key: `line${l}`,
706
+ staticClass: "avue-form__line",
707
+ style: {
708
+ width: `${t.count / 24 * 100}%`
709
+ }
710
+ }) : e._e()];
711
+ }), !e.isDetail && !e.isMenu ? r(C, {
712
+ scopedSlots: e._u([{
713
+ key: "menuForm",
714
+ fn: function(t) {
715
+ return [e._t("menuForm", null, null, t)];
716
+ }
717
+ }], null, !0)
718
+ }) : e._e()], 2)]);
719
+ }), !e.isDetail && e.isMenu ? r(C, {
720
+ scopedSlots: e._u([{
721
+ key: "menuForm",
722
+ fn: function(n) {
723
+ return [e._t("menuForm", null, null, n)];
724
+ }
725
+ }], null, !0)
726
+ }) : e._e()], 2)], 1)], 1);
727
+ }, Ge = [];
728
+ export {
729
+ M as F,
730
+ C as a,
731
+ ce as b,
732
+ Re as c,
733
+ Ee as d,
734
+ He as m,
735
+ Ye as r,
736
+ Ge as s
737
+ };