@web-utils/component 3.0.2 → 3.0.3

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 (166) hide show
  1. package/address-input/index.mjs +14 -14
  2. package/chat/index.mjs +39 -40
  3. package/chunk-file-uploader/index.mjs +35 -594
  4. package/chunk-file-uploader/style.css +1 -1
  5. package/chunks/FormTemp.d079292b.mjs +139 -0
  6. package/chunks/{dataformat.816df805.mjs → dataformat.e655611c.mjs} +6 -6
  7. package/chunks/detail.d6f8e347.mjs +29 -0
  8. package/chunks/{dic.3b4ba802.mjs → dic.eaac0823.mjs} +40 -40
  9. package/chunks/{event.4377230d.mjs → event.10295951.mjs} +2 -2
  10. package/chunks/form-input-mixin.78a567bc.mjs +24 -0
  11. package/chunks/form-item-mixin.57cb2019.mjs +140 -0
  12. package/chunks/{index.d91bd77a.mjs → index.57f871af.mjs} +7 -7
  13. package/chunks/{init.f0a03127.mjs → init.47f219b4.mjs} +2 -2
  14. package/chunks/input-number-mixin.41a066be.mjs +60 -0
  15. package/chunks/{util.7844e2c2.mjs → util.ae730cde.mjs} +21 -21
  16. package/count-up/index.mjs +17 -14
  17. package/data-box/index.mjs +18 -19
  18. package/data-display/index.mjs +17 -18
  19. package/data-icons/index.mjs +16 -17
  20. package/data-panel/index.mjs +20 -21
  21. package/data-pay/index.mjs +15 -16
  22. package/data-progress/index.mjs +19 -20
  23. package/data-rotate/index.mjs +35 -36
  24. package/data-table-picker/index.mjs +23 -25
  25. package/data-tabs/index.mjs +15 -16
  26. package/dialog-form/index.mjs +11 -12
  27. package/dynamic-table/index.mjs +34 -35
  28. package/easy-popup/index.mjs +56 -29
  29. package/editable-tree/index.mjs +485 -134
  30. package/element-dialog/index.mjs +127 -37
  31. package/empty-view/index.mjs +31 -13
  32. package/flex-column/index.mjs +1 -1
  33. package/flex-item/index.mjs +1 -1
  34. package/flex-row/index.mjs +1 -1
  35. package/flow/index.mjs +40 -105
  36. package/flow-designer/index.mjs +555 -615
  37. package/flow-node/index.mjs +47 -15
  38. package/flow-viewer/index.mjs +78 -167
  39. package/form-cascader/index.mjs +24 -24
  40. package/form-checkbox-group/index.mjs +35 -79
  41. package/form-date-picker/index.mjs +22 -22
  42. package/form-holder/index.mjs +1 -1
  43. package/form-input/index.mjs +86 -28
  44. package/form-input-email/index.mjs +18 -18
  45. package/form-input-id-card/index.mjs +27 -27
  46. package/form-input-number/index.mjs +59 -219
  47. package/form-input-phone-number/index.mjs +27 -27
  48. package/form-input-tag/index.mjs +38 -160
  49. package/form-input-time/index.mjs +16 -16
  50. package/form-item/index.mjs +146 -15
  51. package/form-item-group/index.mjs +164 -14
  52. package/form-radio-group/index.mjs +41 -41
  53. package/form-select/index.mjs +20 -20
  54. package/form-switch/index.mjs +19 -19
  55. package/form-textarea/index.mjs +29 -29
  56. package/form-view/index.mjs +42 -46
  57. package/fy-array/index.mjs +2 -2
  58. package/fy-cascader/index.mjs +15 -15
  59. package/fy-checkbox/index.mjs +1 -1
  60. package/fy-code/index.mjs +1 -1
  61. package/fy-curd/index.mjs +2824 -210
  62. package/fy-date/index.mjs +59 -17
  63. package/fy-draggable/index.mjs +1 -1
  64. package/fy-dynamic/index.mjs +208 -64
  65. package/fy-empty/index.mjs +29 -12
  66. package/fy-form/index.mjs +743 -178
  67. package/fy-form-design/index.mjs +1013 -1540
  68. package/fy-input/index.mjs +105 -17
  69. package/fy-input-color/index.mjs +67 -16
  70. package/fy-input-icon/index.mjs +119 -23
  71. package/fy-input-map/index.mjs +14 -15
  72. package/fy-input-number/index.mjs +1 -1
  73. package/fy-input-table/index.mjs +19 -21
  74. package/fy-input-tree/index.mjs +3 -3
  75. package/fy-radio/index.mjs +1 -1
  76. package/fy-rate/index.mjs +50 -16
  77. package/fy-select/index.mjs +126 -29
  78. package/fy-slider/index.mjs +2 -2
  79. package/fy-switch/index.mjs +1 -1
  80. package/fy-tabs/index.mjs +51 -15
  81. package/fy-time/index.mjs +1 -1
  82. package/fy-title/index.mjs +1 -1
  83. package/fy-tree/index.mjs +23 -25
  84. package/fy-u-editor/index.mjs +1 -1
  85. package/fy-upload/index.mjs +2 -2
  86. package/highlight-j-s/index.mjs +29 -19
  87. package/icon-temp/index.mjs +30 -12
  88. package/iframe-window/index.mjs +18 -19
  89. package/image-cropper/index.mjs +22 -23
  90. package/image-preview/index.mjs +1 -1
  91. package/input-number/index.mjs +173 -63
  92. package/license/index.mjs +1 -1
  93. package/loading-view/index.mjs +33 -15
  94. package/login/index.mjs +1 -1
  95. package/nav-bar/index.mjs +31 -15
  96. package/package.json +1 -1
  97. package/page/index.mjs +20 -12
  98. package/page-header/index.mjs +34 -13
  99. package/page-index-top/index.mjs +53 -100
  100. package/page-skeleton/index.mjs +35 -18
  101. package/page-skeleton-new/index.mjs +15 -16
  102. package/pageable-table/index.mjs +228 -86
  103. package/pageable-view/index.mjs +1 -1
  104. package/present-view/index.mjs +71 -75
  105. package/record-video/index.mjs +1 -1
  106. package/resize-observer/index.mjs +29 -21
  107. package/search/index.mjs +9 -9
  108. package/search-popover/index.mjs +1 -1
  109. package/sign/index.mjs +1 -1
  110. package/split-pane/index.mjs +45 -40
  111. package/swiper/index.mjs +13 -14
  112. package/table-view/index.mjs +97 -631
  113. package/text-ellipsis/index.mjs +1 -1
  114. package/tinymce-editor/index.mjs +63 -63
  115. package/toolbar/index.mjs +208 -15
  116. package/toolbar-button/index.mjs +56 -30
  117. package/verify/index.mjs +1 -1
  118. package/watermark/index.mjs +1 -1
  119. package/web-types.json +1 -1
  120. package/x-input-tag/index.mjs +118 -49
  121. package/chunks/CountUp.f1a19f35.mjs +0 -124
  122. package/chunks/CountUp.vue_vue_type_template_lang.1f68c96e.mjs +0 -8
  123. package/chunks/EasyPopup.vue_vue_type_style_index_0_lang.89350bda.mjs +0 -32
  124. package/chunks/EditableTree.vue_vue_type_style_index_0_lang.5dba9f89.mjs +0 -356
  125. package/chunks/ElementDialog.d8f3105c.mjs +0 -211
  126. package/chunks/ElementDialog.vue_vue_type_style_index_0_lang.57cb8e07.mjs +0 -95
  127. package/chunks/EmptyView.e2430422.mjs +0 -51
  128. package/chunks/EmptyView.vue_vue_type_style_index_0_lang.ffa84770.mjs +0 -23
  129. package/chunks/FlowNode.vue_vue_type_template_lang.662bdcfa.mjs +0 -37
  130. package/chunks/FormInput.vue_vue_type_template_lang.3cb79386.mjs +0 -65
  131. package/chunks/FormItem.2920ac0c.mjs +0 -45
  132. package/chunks/FormItem.vue_vue_type_style_index_0_lang.970bd712.mjs +0 -258
  133. package/chunks/FormItemGroup.41daddb6.mjs +0 -64
  134. package/chunks/FormItemGroup.vue_vue_type_style_index_0_lang.b588a8ea.mjs +0 -155
  135. package/chunks/FyCurd.8acd2983.mjs +0 -548
  136. package/chunks/FyCurd.vue_vue_type_style_index_0_lang.4fbd4b30.mjs +0 -2945
  137. package/chunks/FyDate.vue_vue_type_style_index_0_lang.429c03e3.mjs +0 -47
  138. package/chunks/FyDynamic.vue_vue_type_style_index_0_lang.304417ce.mjs +0 -151
  139. package/chunks/FyEmpty.vue_vue_type_style_index_0_lang.fc8bd24c.mjs +0 -22
  140. package/chunks/FyForm.0294e494.mjs +0 -439
  141. package/chunks/FyForm.vue_vue_type_style_index_0_lang.6e64daee.mjs +0 -737
  142. package/chunks/FyInput.vue_vue_type_template_lang.d2c56811.mjs +0 -93
  143. package/chunks/FyInputColor.vue_vue_type_template_lang.6eca0ddd.mjs +0 -56
  144. package/chunks/FyInputIcon.vue_vue_type_style_index_0_lang.11a6a221.mjs +0 -158
  145. package/chunks/FyRate.vue_vue_type_style_index_0_lang.82174185.mjs +0 -39
  146. package/chunks/FySelect.vue_vue_type_style_index_0_lang.5f0f3244.mjs +0 -102
  147. package/chunks/FyTabs.vue_vue_type_template_lang.66af5ac9.mjs +0 -41
  148. package/chunks/HighlightJS.vue_vue_type_style_index_0_lang.fefeaa3b.mjs +0 -15
  149. package/chunks/IconTemp.42c48e1f.mjs +0 -32
  150. package/chunks/IconTemp.vue_vue_type_style_index_0_lang.a0777b31.mjs +0 -23
  151. package/chunks/InputNumber.vue_vue_type_style_index_0_lang.18046bd3.mjs +0 -172
  152. package/chunks/LoadingView.vue_vue_type_style_index_0_lang.4c3fff2a.mjs +0 -23
  153. package/chunks/NavBar.vue_vue_type_style_index_0_lang.e21b57f3.mjs +0 -21
  154. package/chunks/Page.81f4b8d9.mjs +0 -32
  155. package/chunks/Page.vue_vue_type_style_index_0_lang.cb4f9bf2.mjs +0 -13
  156. package/chunks/PageHeader.vue_vue_type_style_index_0_lang.3bcca5aa.mjs +0 -26
  157. package/chunks/PageSkeleton.vue_vue_type_style_index_0_lang.8621381f.mjs +0 -88
  158. package/chunks/PageableTable.333cbdc1.mjs +0 -335
  159. package/chunks/PageableTable.vue_vue_type_style_index_0_lang.fd89fb43.mjs +0 -148
  160. package/chunks/ResizeObserver.60f728f0.mjs +0 -54
  161. package/chunks/ResizeObserver.vue_vue_type_style_index_0_lang.7079029c.mjs +0 -13
  162. package/chunks/TableColumn.8503272e.mjs +0 -106
  163. package/chunks/Toolbar.5c539dbb.mjs +0 -24
  164. package/chunks/Toolbar.vue_vue_type_style_index_0_lang.7594243c.mjs +0 -275
  165. package/chunks/ToolbarButton.vue_vue_type_style_index_0_lang.e2cb14ba.mjs +0 -31
  166. package/chunks/XInputTag.vue_vue_type_style_index_0_lang.7ad045b3.mjs +0 -74
@@ -1,737 +0,0 @@
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
- };