liyu-pc-base 1.0.709 → 1.0.715
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.
- package/dist/{FieldRender2-D-0-7Z4g.js → FieldRender2-BHJlvm68.js} +434 -363
- package/dist/FieldRender2-BHJlvm68.js.map +1 -0
- package/dist/{FormRender3-Ds6-LtUm.js → FormRender3-DDE-yVTe.js} +1 -1
- package/dist/{FormRender3-Ds6-LtUm.js.map → FormRender3-DDE-yVTe.js.map} +1 -1
- package/dist/{SearchRender-SbB-5vAn.js → SearchRender-CdYwARiH.js} +1 -1
- package/dist/{SearchRender-SbB-5vAn.js.map → SearchRender-CdYwARiH.js.map} +1 -1
- package/dist/components/index.js +3 -3
- package/dist/index.js +1 -1
- package/dist/liyu-pc-base.css +1 -1
- package/package.json +1 -1
- package/dist/FieldRender2-D-0-7Z4g.js.map +0 -1
|
@@ -14,16 +14,16 @@ import { t as _ } from "./RemoteText-BVqSMfSl.js";
|
|
|
14
14
|
import { t as v } from "./modal-tools-CrXdI5sg.js";
|
|
15
15
|
import { resolveContextValue as y } from "./components/FormRender/utils.js";
|
|
16
16
|
import { exportJsonToExcelByTokenHeader as b } from "./utils/excel.js";
|
|
17
|
-
import { a as x, c as S, d as C, f as w, i as T, l as E, n as D, o as ee, r as
|
|
18
|
-
import { Fragment as
|
|
19
|
-
import { Modal as
|
|
20
|
-
import { debounce as
|
|
17
|
+
import { a as x, c as S, d as C, f as w, i as T, l as E, n as D, o as ee, r as O, s as te, t as ne, u as re } from "./TinymceEditor-VlIMhy_4.js";
|
|
18
|
+
import { Fragment as k, computed as A, createBlock as j, createCommentVNode as M, createElementBlock as N, createElementVNode as P, createSlots as F, createTextVNode as I, createVNode as L, defineAsyncComponent as R, defineComponent as z, h as ie, mergeModels as ae, mergeProps as oe, normalizeClass as se, normalizeStyle as ce, onMounted as B, onUnmounted as V, openBlock as H, reactive as U, ref as W, renderList as G, renderSlot as le, resolveComponent as K, resolveDynamicComponent as q, toDisplayString as J, unref as ue, useModel as de, vShow as fe, watch as Y, withCtx as X, withDirectives as pe } from "vue";
|
|
19
|
+
import { Modal as me, message as he } from "ant-design-vue";
|
|
20
|
+
import { debounce as ge, isArray as _e } from "lodash-es";
|
|
21
21
|
import Z from "moment";
|
|
22
22
|
import { ExclamationCircleOutlined as ve, PlusOutlined as ye } from "@ant-design/icons-vue";
|
|
23
23
|
import { useI18n as be } from "vue-i18n";
|
|
24
24
|
import xe from "mitt";
|
|
25
25
|
//#region src/components/FormRender/FormTemplate/FormItem.vue?vue&type=script&lang.ts
|
|
26
|
-
var Se =
|
|
26
|
+
var Se = z({
|
|
27
27
|
name: "FormTemplate",
|
|
28
28
|
components: {},
|
|
29
29
|
props: {
|
|
@@ -81,10 +81,10 @@ var Se = R({
|
|
|
81
81
|
},
|
|
82
82
|
emits: ["update:value", "remove"],
|
|
83
83
|
setup(e, { emit: t }) {
|
|
84
|
-
let n =
|
|
84
|
+
let n = U({ ...e.field.form.rules }), r = W({}), i = R(() => import("./FormRender3-DDE-yVTe.js").then((e) => e.n)), a, o = () => {
|
|
85
85
|
let e = /* @__PURE__ */ new Uint8Array(16);
|
|
86
86
|
return window.crypto.getRandomValues(e), Array.from(e, (e) => e.toString(16).padStart(2, "0")).join("");
|
|
87
|
-
}, c =
|
|
87
|
+
}, c = W([]), l = o(), u = ([t, i]) => {
|
|
88
88
|
let o = {};
|
|
89
89
|
Object.keys(n).forEach((e) => {
|
|
90
90
|
e in t && !i[e] && (o[e] = n[e]);
|
|
@@ -92,12 +92,12 @@ var Se = R({
|
|
|
92
92
|
let c = s(t, o);
|
|
93
93
|
a = c.validate, r.value = c.validateInfos, e.nestValidate && (e.nestValidate[l] = a);
|
|
94
94
|
};
|
|
95
|
-
return
|
|
95
|
+
return Y(() => e.value, (e) => {
|
|
96
96
|
u([e, c.value]);
|
|
97
97
|
}, {
|
|
98
98
|
deep: !0,
|
|
99
99
|
immediate: !0
|
|
100
|
-
}),
|
|
100
|
+
}), B(() => {}), V(() => {
|
|
101
101
|
e.nestValidate && delete e.nestValidate[l];
|
|
102
102
|
}), {
|
|
103
103
|
FormRender3Async: i,
|
|
@@ -118,8 +118,8 @@ var Se = R({
|
|
|
118
118
|
class: "form-action"
|
|
119
119
|
};
|
|
120
120
|
function Ee(e, t, n, r, i, a) {
|
|
121
|
-
let o =
|
|
122
|
-
return
|
|
121
|
+
let o = K("DeleteOutlined"), s = K("a-button");
|
|
122
|
+
return H(), N("div", Ce, [P("div", we, [(H(), j(q(e.FormRender3Async), {
|
|
123
123
|
form: e.field.form,
|
|
124
124
|
model: e.value,
|
|
125
125
|
"onUpdate:model": t[0] ||= (t) => e.value = t,
|
|
@@ -150,18 +150,18 @@ function Ee(e, t, n, r, i, a) {
|
|
|
150
150
|
"modalType",
|
|
151
151
|
"base-key-path",
|
|
152
152
|
"worker-host-functions"
|
|
153
|
-
]))]), e.field.max_count === e.min_count ?
|
|
153
|
+
]))]), e.field.max_count === e.min_count ? M("", !0) : (H(), N("div", Te, [L(s, {
|
|
154
154
|
onClick: e.removeFormItem,
|
|
155
155
|
size: "small",
|
|
156
156
|
type: "link",
|
|
157
157
|
danger: "",
|
|
158
158
|
disabled: e.listLength <= e.min_count
|
|
159
159
|
}, {
|
|
160
|
-
icon:
|
|
160
|
+
icon: X(() => [L(o)]),
|
|
161
161
|
_: 1
|
|
162
162
|
}, 8, ["onClick", "disabled"])]))]);
|
|
163
163
|
}
|
|
164
|
-
var De = /*#__PURE__*/ t(Se, [["render", Ee], ["__scopeId", "data-v-d6626b20"]]), Oe = /*#__PURE__*/ t(/* @__PURE__ */
|
|
164
|
+
var De = /*#__PURE__*/ t(Se, [["render", Ee], ["__scopeId", "data-v-d6626b20"]]), Oe = { key: 1 }, ke = /*#__PURE__*/ t(/* @__PURE__ */ z({
|
|
165
165
|
__name: "TableCell",
|
|
166
166
|
props: {
|
|
167
167
|
field: {
|
|
@@ -209,22 +209,22 @@ var De = /*#__PURE__*/ t(Se, [["render", Ee], ["__scopeId", "data-v-d6626b20"]])
|
|
|
209
209
|
},
|
|
210
210
|
emits: ["update_model", "update_name2"],
|
|
211
211
|
setup(e, { emit: t }) {
|
|
212
|
-
let n = e, r = t, i =
|
|
212
|
+
let n = e, r = t, i = W(!0), a = (e) => {
|
|
213
213
|
r("update_model", e);
|
|
214
214
|
}, o = (e) => {
|
|
215
215
|
r("update_name2", e);
|
|
216
|
-
}, s =
|
|
216
|
+
}, s = A(() => i.value && !n.field.disabled && n.field.type !== "dynamicvaluefield");
|
|
217
217
|
return (t, n) => {
|
|
218
|
-
let r =
|
|
219
|
-
return
|
|
218
|
+
let r = K("a-form");
|
|
219
|
+
return H(), j(r, {
|
|
220
220
|
model: e.model,
|
|
221
221
|
layout: "inline",
|
|
222
222
|
class: "table-cell-form"
|
|
223
223
|
}, {
|
|
224
|
-
default:
|
|
224
|
+
default: X(() => [pe(P("div", { class: se(["field-cell-item", {
|
|
225
225
|
editable: s.value,
|
|
226
226
|
"item-required": e.has_reqrired
|
|
227
|
-
}]) }, [(
|
|
227
|
+
}]) }, [e.field.type === "dynamicvaluefield" ? (H(), N("span", Oe, J(e.model[e.field.name]), 1)) : (H(), j(ft, {
|
|
228
228
|
is_show_label: !1,
|
|
229
229
|
value: e.model[e.field.name],
|
|
230
230
|
"onUpdate:value": n[0] ||= (t) => e.model[e.field.name] = t,
|
|
@@ -261,12 +261,12 @@ var De = /*#__PURE__*/ t(Se, [["render", Ee], ["__scopeId", "data-v-d6626b20"]])
|
|
|
261
261
|
"base-key-path",
|
|
262
262
|
"worker-host-functions",
|
|
263
263
|
"is_form_design"
|
|
264
|
-
]))], 2), [[
|
|
264
|
+
]))], 2), [[fe, i.value]])]),
|
|
265
265
|
_: 1
|
|
266
266
|
}, 8, ["model"]);
|
|
267
267
|
};
|
|
268
268
|
}
|
|
269
|
-
}), [["__scopeId", "data-v-
|
|
269
|
+
}), [["__scopeId", "data-v-00188241"]]), Ae = { key: 0 }, je = { key: 1 }, Me = /* @__PURE__ */ z({
|
|
270
270
|
__name: "TableSummary",
|
|
271
271
|
props: {
|
|
272
272
|
summaryParams: {
|
|
@@ -279,7 +279,7 @@ var De = /*#__PURE__*/ t(Se, [["render", Ee], ["__scopeId", "data-v-d6626b20"]])
|
|
|
279
279
|
}
|
|
280
280
|
},
|
|
281
281
|
setup(e) {
|
|
282
|
-
let t = e, n =
|
|
282
|
+
let t = e, n = A(() => {
|
|
283
283
|
let e = 0;
|
|
284
284
|
for (let n of t.tableDataSource) {
|
|
285
285
|
let r = n[t.summaryParams.column.dataIndex];
|
|
@@ -302,22 +302,22 @@ var De = /*#__PURE__*/ t(Se, [["render", Ee], ["__scopeId", "data-v-d6626b20"]])
|
|
|
302
302
|
return parseFloat((e + t).toFixed(n));
|
|
303
303
|
}
|
|
304
304
|
let o = (e, t) => (typeof t == "string" && (e.addonAfter && (t = r(t, e.addonAfter, "")), e.addonBefore && (t = i(t, e.addonBefore, "")), t = parseFloat(t)), t);
|
|
305
|
-
return (t, r) => (
|
|
306
|
-
e.summaryParams?.column?.field?.addonBefore ? (
|
|
307
|
-
|
|
308
|
-
e.summaryParams?.column?.field?.addonAfter ? (
|
|
305
|
+
return (t, r) => (H(), N(k, null, [
|
|
306
|
+
e.summaryParams?.column?.field?.addonBefore ? (H(), N("span", Ae, J(e.summaryParams.column.field.addonBefore), 1)) : M("", !0),
|
|
307
|
+
I(" " + J(n.value) + " ", 1),
|
|
308
|
+
e.summaryParams?.column?.field?.addonAfter ? (H(), N("span", je, J(e.summaryParams.column.field.addonAfter), 1)) : M("", !0)
|
|
309
309
|
], 64));
|
|
310
310
|
}
|
|
311
|
-
}),
|
|
311
|
+
}), Ne = {
|
|
312
312
|
key: 0,
|
|
313
313
|
class: "required-star"
|
|
314
|
-
},
|
|
314
|
+
}, Pe = {
|
|
315
315
|
key: 0,
|
|
316
316
|
class: "cell-item"
|
|
317
|
-
},
|
|
317
|
+
}, Fe = {
|
|
318
318
|
key: 1,
|
|
319
319
|
class: "cell-item"
|
|
320
|
-
},
|
|
320
|
+
}, Ie = /*#__PURE__*/ t(/* @__PURE__ */ z({
|
|
321
321
|
__name: "FormTemplateTable",
|
|
322
322
|
props: {
|
|
323
323
|
value: {},
|
|
@@ -334,16 +334,16 @@ var De = /*#__PURE__*/ t(Se, [["render", Ee], ["__scopeId", "data-v-d6626b20"]])
|
|
|
334
334
|
},
|
|
335
335
|
emits: ["remove"],
|
|
336
336
|
setup(e, { emit: t }) {
|
|
337
|
-
let n =
|
|
337
|
+
let n = W({
|
|
338
338
|
showQuickJumper: !0,
|
|
339
339
|
showSizeChanger: !1,
|
|
340
340
|
showTotal: (e) => `共 ${e} 条记录`,
|
|
341
341
|
pageSize: 5,
|
|
342
342
|
current: 1
|
|
343
|
-
}), r = e, i = t, a =
|
|
343
|
+
}), r = e, i = t, a = U({ ...r.field.form?.rules || {} }), c = W([]), l = W([]), u = W([]), d = (() => {
|
|
344
344
|
let e = /* @__PURE__ */ new Uint8Array(16);
|
|
345
345
|
return window.crypto.getRandomValues(e), Array.from(e, (e) => e.toString(16).padStart(2, "0")).join("");
|
|
346
|
-
})(), f =
|
|
346
|
+
})(), f = W([]), p = () => {
|
|
347
347
|
let e = [], t = [];
|
|
348
348
|
(r.value || []).forEach((n, r) => {
|
|
349
349
|
u.value[r] || (u.value[r] = {});
|
|
@@ -360,28 +360,28 @@ var De = /*#__PURE__*/ t(Se, [["render", Ee], ["__scopeId", "data-v-d6626b20"]])
|
|
|
360
360
|
}, m = (e, t) => {
|
|
361
361
|
u.value[e] || (u.value[e] = {}), t.add_key ? (delete u.value[e][t.add_key], p()) : t.remove_key && (u.value[e][t.remove_key] = !0, p());
|
|
362
362
|
};
|
|
363
|
-
|
|
363
|
+
Y(() => r.value, () => {
|
|
364
364
|
p();
|
|
365
365
|
}, {
|
|
366
366
|
deep: !0,
|
|
367
367
|
immediate: !0
|
|
368
|
-
}),
|
|
368
|
+
}), Y(() => r.field, () => {
|
|
369
369
|
v();
|
|
370
|
-
}, { deep: !0 }),
|
|
370
|
+
}, { deep: !0 }), Y(() => r.formModel, () => {
|
|
371
371
|
v();
|
|
372
|
-
}, { deep: !0 }),
|
|
372
|
+
}, { deep: !0 }), Y(() => r.context, () => {
|
|
373
373
|
v();
|
|
374
|
-
}, { deep: !0 }),
|
|
374
|
+
}, { deep: !0 }), B(() => {
|
|
375
375
|
v();
|
|
376
|
-
}),
|
|
376
|
+
}), V(() => {
|
|
377
377
|
r.nestValidate && delete r.nestValidate[d];
|
|
378
378
|
});
|
|
379
|
-
let h =
|
|
379
|
+
let h = A(() => {
|
|
380
380
|
let e = 0;
|
|
381
381
|
return f.value.forEach((t) => {
|
|
382
382
|
e += t._width || 150;
|
|
383
383
|
}), e;
|
|
384
|
-
}), g =
|
|
384
|
+
}), g = A(() => (r.value || []).map((e, t) => ({
|
|
385
385
|
...e,
|
|
386
386
|
_key: t
|
|
387
387
|
}))), _ = (e) => {
|
|
@@ -401,7 +401,7 @@ var De = /*#__PURE__*/ t(Se, [["render", Ee], ["__scopeId", "data-v-d6626b20"]])
|
|
|
401
401
|
maxWidth: 50
|
|
402
402
|
}), r.field?.form?.dynamicFieldList?.forEach((n) => {
|
|
403
403
|
n.children instanceof Array && n.children.forEach((n) => {
|
|
404
|
-
if (n.
|
|
404
|
+
if (t[n.name] || n.is_table_hide_column) return;
|
|
405
405
|
t[n.name] = !0;
|
|
406
406
|
let r = n.is_table_auto_width;
|
|
407
407
|
(r == null || r === "") && (r = !0);
|
|
@@ -448,24 +448,24 @@ var De = /*#__PURE__*/ t(Se, [["render", Ee], ["__scopeId", "data-v-d6626b20"]])
|
|
|
448
448
|
f.value = e;
|
|
449
449
|
}, y = (e) => {
|
|
450
450
|
u.value.splice(e, 1), i("remove", e);
|
|
451
|
-
}, b =
|
|
451
|
+
}, b = A(() => {
|
|
452
452
|
if (r.innerModel) {
|
|
453
453
|
let e = r.innerModel[r.field.name] || [];
|
|
454
454
|
return (r.value || []).map((t, n) => e[n] || {});
|
|
455
455
|
}
|
|
456
456
|
return [];
|
|
457
|
-
}), x =
|
|
457
|
+
}), x = A(() => {
|
|
458
458
|
let e = [], t = 0;
|
|
459
459
|
for (let n of f.value) n.is_summary && e.push({ index: t }), t++;
|
|
460
460
|
return e;
|
|
461
461
|
});
|
|
462
462
|
return (e, t) => {
|
|
463
|
-
let r =
|
|
464
|
-
return
|
|
463
|
+
let r = K("DeleteOutlined"), i = K("a-button"), a = K("s-table-summary-cell"), o = K("s-table-summary-row"), s = K("s-table");
|
|
464
|
+
return H(), j(C, {
|
|
465
465
|
"dynamic-title": e.field.dynamicTitle,
|
|
466
466
|
"onUpdate:dynamicTitle": t[1] ||= (t) => e.field.dynamicTitle = t
|
|
467
467
|
}, {
|
|
468
|
-
default:
|
|
468
|
+
default: X(() => [(H(), j(s, {
|
|
469
469
|
dataSource: g.value,
|
|
470
470
|
columns: f.value,
|
|
471
471
|
autoRowHeight: !0,
|
|
@@ -479,18 +479,18 @@ var De = /*#__PURE__*/ t(Se, [["render", Ee], ["__scopeId", "data-v-d6626b20"]])
|
|
|
479
479
|
pagination: n.value,
|
|
480
480
|
"onUpdate:pagination": t[0] ||= (e) => n.value = e,
|
|
481
481
|
rangeSelection: !1
|
|
482
|
-
},
|
|
483
|
-
headerCell:
|
|
484
|
-
bodyCell:
|
|
482
|
+
}, F({
|
|
483
|
+
headerCell: X(({ column: e }) => [P("span", null, J(e.title), 1), e.has_reqrired ? (H(), N("span", Ne, " * ")) : M("", !0)]),
|
|
484
|
+
bodyCell: X(({ column: t, record: n }) => [t.key === "action" ? (H(), N("div", Pe, [L(i, {
|
|
485
485
|
onClick: (e) => y(n._key),
|
|
486
486
|
size: "small",
|
|
487
487
|
type: "link",
|
|
488
488
|
danger: "",
|
|
489
489
|
disabled: e.value.length <= e.min_count
|
|
490
490
|
}, {
|
|
491
|
-
icon:
|
|
491
|
+
icon: X(() => [L(r)]),
|
|
492
492
|
_: 2
|
|
493
|
-
}, 1032, ["onClick", "disabled"])])) : t.key === "index" ? (
|
|
493
|
+
}, 1032, ["onClick", "disabled"])])) : t.key === "index" ? (H(), N("div", Fe, J(n._key + 1), 1)) : t.field ? (H(), j(ke, {
|
|
494
494
|
key: `${n._key}_${t.dataIndex}`,
|
|
495
495
|
field: t.field,
|
|
496
496
|
model: e.value[n._key],
|
|
@@ -523,19 +523,19 @@ var De = /*#__PURE__*/ t(Se, [["render", Ee], ["__scopeId", "data-v-d6626b20"]])
|
|
|
523
523
|
"is_form_design",
|
|
524
524
|
"has_reqrired",
|
|
525
525
|
"onUpdate_model"
|
|
526
|
-
])) :
|
|
526
|
+
])) : M("", !0)]),
|
|
527
527
|
_: 2
|
|
528
528
|
}, [x.value.length > 0 ? {
|
|
529
529
|
name: "summary",
|
|
530
|
-
fn:
|
|
531
|
-
default:
|
|
532
|
-
default:
|
|
530
|
+
fn: X(() => [L(o, null, {
|
|
531
|
+
default: X(() => [L(a, { index: 0 }, {
|
|
532
|
+
default: X(() => t[2] ||= [I("合计")]),
|
|
533
533
|
_: 1
|
|
534
|
-
}), (
|
|
534
|
+
}), (H(!0), N(k, null, G(x.value, (e) => (H(), j(a, {
|
|
535
535
|
key: e.index,
|
|
536
536
|
index: e.index
|
|
537
537
|
}, {
|
|
538
|
-
default:
|
|
538
|
+
default: X((e) => [L(Me, {
|
|
539
539
|
"summary-params": e,
|
|
540
540
|
tableDataSource: g.value
|
|
541
541
|
}, null, 8, ["summary-params", "tableDataSource"])]),
|
|
@@ -554,7 +554,76 @@ var De = /*#__PURE__*/ t(Se, [["render", Ee], ["__scopeId", "data-v-d6626b20"]])
|
|
|
554
554
|
}, 8, ["dynamic-title"]);
|
|
555
555
|
};
|
|
556
556
|
}
|
|
557
|
-
}), [["__scopeId", "data-v-
|
|
557
|
+
}), [["__scopeId", "data-v-f3f0dcf2"]]);
|
|
558
|
+
//#endregion
|
|
559
|
+
//#region src/components/FormRender/DynamicValueField/computeDynamicValue.ts
|
|
560
|
+
async function Le(e) {
|
|
561
|
+
let { field: t, currentValue: n, innerModel: r, globalInnerModel: i, formModel: a, context: s, baseKeyPath: c = [], workerHostFunctions: l = {} } = e;
|
|
562
|
+
if (t.watchType === "scoped") {
|
|
563
|
+
if (t.valueType === "single") {
|
|
564
|
+
let e = r?.[t.fieldName];
|
|
565
|
+
if (e === void 0 && n !== void 0) return null;
|
|
566
|
+
if (t.valueKey && (e = e?.[t.valueKey]), e !== n) return { value: e };
|
|
567
|
+
} else if (t.valueType === "multiple") {
|
|
568
|
+
let e = r?.[t.fieldName];
|
|
569
|
+
if (t.valueKeyList && t.valueKeyList.length) {
|
|
570
|
+
let r = [];
|
|
571
|
+
for (let n of t.valueKeyList) e?.[n] !== void 0 && r.push(e?.[n]);
|
|
572
|
+
if (r.length === 0 && n !== void 0) return null;
|
|
573
|
+
if (e = r.join(t.valueSpace || ","), e !== n) return { value: e };
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
} else if (t.watchType === "global") {
|
|
577
|
+
if (t.valueType === "single") {
|
|
578
|
+
let e = i?.[t.fieldName];
|
|
579
|
+
if (t.valueKey && (e = e?.[t.valueKey]), e === void 0 && n !== void 0) return null;
|
|
580
|
+
if (e !== n) return { value: e };
|
|
581
|
+
} else if (t.valueType === "multiple") {
|
|
582
|
+
let e = i?.[t.fieldName];
|
|
583
|
+
if (t.valueKeyList && t.valueKeyList.length) {
|
|
584
|
+
let r = [];
|
|
585
|
+
for (let n of t.valueKeyList) e?.[n] && r.push(e?.[n]);
|
|
586
|
+
if (r.length === 0 && n !== void 0) return null;
|
|
587
|
+
if (e = r.join(t.valueSpace || ","), e !== n) return { value: e };
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
} else if (t.watchType === "context") {
|
|
591
|
+
let e = y(t.fieldName || "", s, ["formModel", ...c]);
|
|
592
|
+
if (t.valueType === "single") {
|
|
593
|
+
let r = e;
|
|
594
|
+
if (t.valueKey && (r = r?.[t.valueKey]), r === void 0 && n !== void 0) return null;
|
|
595
|
+
if (r !== n) return { value: r };
|
|
596
|
+
} else if (t.valueType === "multiple") {
|
|
597
|
+
let r = e;
|
|
598
|
+
if (t.valueKeyList && t.valueKeyList.length) {
|
|
599
|
+
let e = [];
|
|
600
|
+
for (let n of t.valueKeyList) r?.[n] !== void 0 && e.push(r?.[n]);
|
|
601
|
+
if (e.length === 0 && n !== void 0) return null;
|
|
602
|
+
if (r = e.join(t.valueSpace || ","), r !== n) return { value: r };
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
} else if (t.watchType === "code") try {
|
|
606
|
+
let e = await o(t.code, {
|
|
607
|
+
innerModel: r,
|
|
608
|
+
globalInnerModel: i,
|
|
609
|
+
field: t,
|
|
610
|
+
formModel: a,
|
|
611
|
+
context: s,
|
|
612
|
+
keyPath: [...c, t.name]
|
|
613
|
+
}, l);
|
|
614
|
+
if (e === void 0 && n !== void 0) return null;
|
|
615
|
+
if (e !== n) return { value: e };
|
|
616
|
+
} catch (e) {
|
|
617
|
+
return console.error(e), {
|
|
618
|
+
value: "",
|
|
619
|
+
error: e.message
|
|
620
|
+
};
|
|
621
|
+
}
|
|
622
|
+
return null;
|
|
623
|
+
}
|
|
624
|
+
//#endregion
|
|
625
|
+
//#region src/components/FormRender/FormTemplate/FormTemplate.vue?vue&type=script&setup=true&lang.ts
|
|
626
|
+
var Q = r(), Re = { class: "top_btn" }, ze = /*#__PURE__*/ t(/* @__PURE__ */ z({
|
|
558
627
|
__name: "FormTemplate",
|
|
559
628
|
props: {
|
|
560
629
|
field: {},
|
|
@@ -576,16 +645,16 @@ var De = /*#__PURE__*/ t(Se, [["render", Ee], ["__scopeId", "data-v-d6626b20"]])
|
|
|
576
645
|
},
|
|
577
646
|
emits: ["update:value"],
|
|
578
647
|
setup(e, { emit: t }) {
|
|
579
|
-
let n = e, r = t, i =
|
|
648
|
+
let n = e, r = t, i = W(0), a = xe(), s = [{
|
|
580
649
|
label: "添加(add)",
|
|
581
650
|
value: "add"
|
|
582
651
|
}, {
|
|
583
652
|
label: "整体更新(update)",
|
|
584
653
|
value: "update"
|
|
585
|
-
}], c =
|
|
586
|
-
|
|
654
|
+
}], c = R(() => import("./ImportExcelModal-Dds857L2.js")), l = A(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("download"))), u = A(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("import"))), d = () => {
|
|
655
|
+
me.confirm({
|
|
587
656
|
title: "确认清空吗?",
|
|
588
|
-
icon:
|
|
657
|
+
icon: L(ve),
|
|
589
658
|
content: "清空后将无法恢复",
|
|
590
659
|
okText: "确认",
|
|
591
660
|
cancelText: "取消",
|
|
@@ -593,10 +662,11 @@ var De = /*#__PURE__*/ t(Se, [["render", Ee], ["__scopeId", "data-v-d6626b20"]])
|
|
|
593
662
|
r("update:value", []);
|
|
594
663
|
}
|
|
595
664
|
});
|
|
596
|
-
}, f =
|
|
665
|
+
}, f = A(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("clear"))), p = A(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("add"))), m = {}, h = () => {
|
|
597
666
|
let e = [];
|
|
598
667
|
(n.field.form?.dynamicFieldList || []).forEach((t) => {
|
|
599
668
|
t.children instanceof Array && t.children.forEach((t) => {
|
|
669
|
+
if (t.is_table_hide_column) return;
|
|
600
670
|
let r = { ...t };
|
|
601
671
|
t?.name2 && (m[t.name] = t?.name2), [
|
|
602
672
|
"select",
|
|
@@ -607,7 +677,7 @@ var De = /*#__PURE__*/ t(Se, [["render", Ee], ["__scopeId", "data-v-d6626b20"]])
|
|
|
607
677
|
].includes(t.type) && (r.options = n.field.form?.options?.[t.name] || t.options), e.push(r);
|
|
608
678
|
});
|
|
609
679
|
});
|
|
610
|
-
let t =
|
|
680
|
+
let t = U({
|
|
611
681
|
open: !0,
|
|
612
682
|
loading: !1,
|
|
613
683
|
component: c,
|
|
@@ -618,12 +688,12 @@ var De = /*#__PURE__*/ t(Se, [["render", Ee], ["__scopeId", "data-v-d6626b20"]])
|
|
|
618
688
|
e.forEach((e) => {
|
|
619
689
|
let t = (0, Q.cloneDeep)(n.field.form.model || {});
|
|
620
690
|
Object.keys(e).forEach((n) => {
|
|
621
|
-
e[n].error && i.push(
|
|
691
|
+
e[n].error && i.push(ie("li", e[n].error + "(" + e[n].excel_position + ")")), t[n] = e[n].value, m[n] && (t[m[n]] = e[n].raw_value);
|
|
622
692
|
}), a.push(t);
|
|
623
|
-
}), i.length > 0 ?
|
|
693
|
+
}), i.length > 0 ? me.warning({
|
|
624
694
|
title: "导入Excel报错, 请改正后再尝试导入",
|
|
625
|
-
content:
|
|
626
|
-
icon:
|
|
695
|
+
content: ie("ol", i),
|
|
696
|
+
icon: L(ve)
|
|
627
697
|
}) : r("update:value", [...n.value || [], ...a]), t.open = !1;
|
|
628
698
|
},
|
|
629
699
|
onCancel: () => {
|
|
@@ -631,7 +701,7 @@ var De = /*#__PURE__*/ t(Se, [["render", Ee], ["__scopeId", "data-v-d6626b20"]])
|
|
|
631
701
|
}
|
|
632
702
|
});
|
|
633
703
|
v(t);
|
|
634
|
-
}, g =
|
|
704
|
+
}, g = W(!1), _ = (e) => {
|
|
635
705
|
if (n.field?.form?.rules) {
|
|
636
706
|
let t = n.field?.form?.rules[e];
|
|
637
707
|
if (t) {
|
|
@@ -644,7 +714,7 @@ var De = /*#__PURE__*/ t(Se, [["render", Ee], ["__scopeId", "data-v-d6626b20"]])
|
|
|
644
714
|
let e = [], t = [];
|
|
645
715
|
(n.field.form?.dynamicFieldList || []).forEach((r) => {
|
|
646
716
|
r.children instanceof Array && r.children.forEach((r) => {
|
|
647
|
-
r.is_hide || (e.push(_(r.name) ? { title: [r.label, {
|
|
717
|
+
r.is_hide || r.is_table_hide_column || (e.push(_(r.name) ? { title: [r.label, {
|
|
648
718
|
text: "[必填]",
|
|
649
719
|
color: "FFFF0000"
|
|
650
720
|
}] } : { title: [r.label] }), n.value && n.value.length > 0 ? t.push(n.value[0][r.name] ? n.value[0][r.name].toString() : "") : t.push(""));
|
|
@@ -657,7 +727,7 @@ var De = /*#__PURE__*/ t(Se, [["render", Ee], ["__scopeId", "data-v-d6626b20"]])
|
|
|
657
727
|
}), setTimeout(() => {
|
|
658
728
|
g.value = !1;
|
|
659
729
|
}, 1500);
|
|
660
|
-
}, x =
|
|
730
|
+
}, x = A(() => n.field.min_count ?? 0), S = A(() => {
|
|
661
731
|
if (n.innerModel) {
|
|
662
732
|
n.innerModel[n.field.name] || (n.innerModel[n.field.name] = []);
|
|
663
733
|
for (let e = 0; e < n.value.length; e++) n.innerModel[n.field.name][e] || (n.innerModel[n.field.name][e] = {});
|
|
@@ -674,7 +744,7 @@ var De = /*#__PURE__*/ t(Se, [["render", Ee], ["__scopeId", "data-v-d6626b20"]])
|
|
|
674
744
|
keyPath: [...n.baseKeyPath, n.field.name]
|
|
675
745
|
}, n.workerHostFunctions || {});
|
|
676
746
|
} catch (e) {
|
|
677
|
-
|
|
747
|
+
he.error(e.message);
|
|
678
748
|
return;
|
|
679
749
|
}
|
|
680
750
|
if (e.action == "add") {
|
|
@@ -702,7 +772,7 @@ var De = /*#__PURE__*/ t(Se, [["render", Ee], ["__scopeId", "data-v-d6626b20"]])
|
|
|
702
772
|
}, D = (0, Q.debounce)(() => {
|
|
703
773
|
i.value = window.innerHeight - 165;
|
|
704
774
|
}, 200), ee = () => {
|
|
705
|
-
v(
|
|
775
|
+
v(U({
|
|
706
776
|
open: !0,
|
|
707
777
|
loading: !1,
|
|
708
778
|
component: "InnerFormDesignModal",
|
|
@@ -721,74 +791,122 @@ var De = /*#__PURE__*/ t(Se, [["render", Ee], ["__scopeId", "data-v-d6626b20"]])
|
|
|
721
791
|
}
|
|
722
792
|
}));
|
|
723
793
|
};
|
|
724
|
-
|
|
794
|
+
Y(() => n.value, (e) => {
|
|
725
795
|
if (!(e instanceof Array) || e.length < x.value) {
|
|
726
796
|
let t = [...e || []];
|
|
727
797
|
for (; t.length < x.value;) t.push((0, Q.cloneDeep)(n.field.form.model || {}));
|
|
728
798
|
r("update:value", t);
|
|
729
799
|
}
|
|
730
|
-
})
|
|
800
|
+
});
|
|
801
|
+
let O = A(() => {
|
|
802
|
+
let e = [];
|
|
803
|
+
return (n.field?.form?.dynamicFieldList || []).forEach((t) => {
|
|
804
|
+
t.children instanceof Array && t.children.forEach((t) => {
|
|
805
|
+
t.type === "dynamicvaluefield" && e.push(t);
|
|
806
|
+
});
|
|
807
|
+
}), e;
|
|
808
|
+
}), te = (0, Q.debounce)(async () => {
|
|
809
|
+
let e = n.value;
|
|
810
|
+
if (!e || e.length === 0 || O.value.length === 0) return;
|
|
811
|
+
let t = !1, i = [...e];
|
|
812
|
+
for (let e = 0; e < i.length; e++) {
|
|
813
|
+
let r = n.innerModel?.[n.field.name]?.[e], a = [
|
|
814
|
+
...n.baseKeyPath || [],
|
|
815
|
+
n.field.name,
|
|
816
|
+
e
|
|
817
|
+
];
|
|
818
|
+
for (let o of O.value) {
|
|
819
|
+
let s = i[e]?.[o.name], c = await Le({
|
|
820
|
+
field: o,
|
|
821
|
+
currentValue: s,
|
|
822
|
+
innerModel: r,
|
|
823
|
+
globalInnerModel: n.globalInnerModel,
|
|
824
|
+
formModel: i[e],
|
|
825
|
+
context: n.context,
|
|
826
|
+
baseKeyPath: a,
|
|
827
|
+
workerHostFunctions: n.workerHostFunctions || {}
|
|
828
|
+
});
|
|
829
|
+
c && (i[e] = {
|
|
830
|
+
...i[e],
|
|
831
|
+
[o.name]: c.value
|
|
832
|
+
}, t = !0);
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
t && r("update:value", i);
|
|
836
|
+
}, 200);
|
|
837
|
+
return Y(() => [
|
|
838
|
+
n.value,
|
|
839
|
+
n.innerModel,
|
|
840
|
+
n.globalInnerModel,
|
|
841
|
+
n.context,
|
|
842
|
+
n.field
|
|
843
|
+
], () => {
|
|
844
|
+
te();
|
|
845
|
+
}, {
|
|
846
|
+
deep: !0,
|
|
847
|
+
immediate: !0
|
|
848
|
+
}), B(() => {
|
|
731
849
|
if (window.addEventListener("resize", D), D(), !(n.value instanceof Array) || n.value.length < x.value) {
|
|
732
850
|
let e = [...n.value || []];
|
|
733
851
|
for (; e.length < x.value;) e.push((0, Q.cloneDeep)(n.field.form.model || {}));
|
|
734
852
|
r("update:value", e);
|
|
735
853
|
}
|
|
736
|
-
}),
|
|
854
|
+
}), V(() => {
|
|
737
855
|
window.removeEventListener("resize", D);
|
|
738
856
|
}), (e, t) => {
|
|
739
|
-
let n =
|
|
740
|
-
return
|
|
741
|
-
e.is_form_design ? (
|
|
857
|
+
let n = K("a-button");
|
|
858
|
+
return H(), N(k, null, [P("div", Re, [
|
|
859
|
+
e.is_form_design ? (H(), j(n, {
|
|
742
860
|
key: 0,
|
|
743
861
|
type: "primary",
|
|
744
862
|
size: "small",
|
|
745
863
|
onClick: ee,
|
|
746
864
|
ghost: !0
|
|
747
865
|
}, {
|
|
748
|
-
default:
|
|
866
|
+
default: X(() => t[0] ||= [I(" 编辑表单 ")]),
|
|
749
867
|
_: 1
|
|
750
|
-
})) :
|
|
751
|
-
f.value ? (
|
|
868
|
+
})) : M("", !0),
|
|
869
|
+
f.value ? (H(), j(n, {
|
|
752
870
|
key: 1,
|
|
753
871
|
size: "small",
|
|
754
872
|
type: "primary",
|
|
755
873
|
onClick: d,
|
|
756
874
|
danger: !0
|
|
757
875
|
}, {
|
|
758
|
-
default:
|
|
876
|
+
default: X(() => t[1] ||= [I(" 清空 ")]),
|
|
759
877
|
_: 1
|
|
760
|
-
})) :
|
|
761
|
-
l.value ? (
|
|
878
|
+
})) : M("", !0),
|
|
879
|
+
l.value ? (H(), j(n, {
|
|
762
880
|
key: 2,
|
|
763
881
|
size: "small",
|
|
764
882
|
type: "primary",
|
|
765
883
|
loading: g.value,
|
|
766
884
|
onClick: y
|
|
767
885
|
}, {
|
|
768
|
-
default:
|
|
886
|
+
default: X(() => t[2] ||= [I(" 下载导入模版 ")]),
|
|
769
887
|
_: 1
|
|
770
|
-
}, 8, ["loading"])) :
|
|
771
|
-
u.value ? (
|
|
888
|
+
}, 8, ["loading"])) : M("", !0),
|
|
889
|
+
u.value ? (H(), j(n, {
|
|
772
890
|
key: 3,
|
|
773
891
|
size: "small",
|
|
774
892
|
type: "primary",
|
|
775
893
|
onClick: h
|
|
776
894
|
}, {
|
|
777
|
-
default:
|
|
895
|
+
default: X(() => t[3] ||= [I(" 导入Excel数据 ")]),
|
|
778
896
|
_: 1
|
|
779
|
-
})) :
|
|
780
|
-
p.value && (!e.field.custom_btn_list?.length || e.field.max_count !== x.value) ? (
|
|
897
|
+
})) : M("", !0),
|
|
898
|
+
p.value && (!e.field.custom_btn_list?.length || e.field.max_count !== x.value) ? (H(), j(n, {
|
|
781
899
|
key: 4,
|
|
782
900
|
type: "primary",
|
|
783
901
|
size: "small",
|
|
784
902
|
onClick: T,
|
|
785
903
|
disabled: e.field.max_count && e.value.length >= e.field.max_count
|
|
786
904
|
}, {
|
|
787
|
-
icon:
|
|
788
|
-
default:
|
|
905
|
+
icon: X(() => [L(ue(ye))]),
|
|
906
|
+
default: X(() => [I(" " + J(e.field.btn_title || "添加"), 1)]),
|
|
789
907
|
_: 1
|
|
790
|
-
}, 8, ["disabled"])) :
|
|
791
|
-
(
|
|
908
|
+
}, 8, ["disabled"])) : M("", !0),
|
|
909
|
+
(H(!0), N(k, null, G(e.field.custom_btn_list, (t) => (H(), j(C, {
|
|
792
910
|
action_code_id: t.action_code_id,
|
|
793
911
|
code: t.code,
|
|
794
912
|
"onUpdate:code": (e) => t.code = e,
|
|
@@ -796,14 +914,14 @@ var De = /*#__PURE__*/ t(Se, [["render", Ee], ["__scopeId", "data-v-d6626b20"]])
|
|
|
796
914
|
"onUpdate:action": (e) => t.action = e,
|
|
797
915
|
options: s
|
|
798
916
|
}, {
|
|
799
|
-
default:
|
|
917
|
+
default: X(() => [L(n, {
|
|
800
918
|
size: "small",
|
|
801
919
|
type: t.type,
|
|
802
920
|
danger: t.danger,
|
|
803
921
|
onClick: (e) => w(t),
|
|
804
922
|
disabled: e.field.max_count && e.value.length >= e.field.max_count && t.action === "add"
|
|
805
923
|
}, {
|
|
806
|
-
default:
|
|
924
|
+
default: X(() => [I(J(t.label), 1)]),
|
|
807
925
|
_: 2
|
|
808
926
|
}, 1032, [
|
|
809
927
|
"type",
|
|
@@ -819,7 +937,7 @@ var De = /*#__PURE__*/ t(Se, [["render", Ee], ["__scopeId", "data-v-d6626b20"]])
|
|
|
819
937
|
"action",
|
|
820
938
|
"onUpdate:action"
|
|
821
939
|
]))), 256))
|
|
822
|
-
]), e.field.showType === "table" ? (
|
|
940
|
+
]), e.field.showType === "table" ? (H(), j(Ie, {
|
|
823
941
|
key: 0,
|
|
824
942
|
value: e.value,
|
|
825
943
|
field: e.field,
|
|
@@ -845,7 +963,7 @@ var De = /*#__PURE__*/ t(Se, [["render", Ee], ["__scopeId", "data-v-d6626b20"]])
|
|
|
845
963
|
"worker-host-functions",
|
|
846
964
|
"min_count",
|
|
847
965
|
"formModel"
|
|
848
|
-
])) : (
|
|
966
|
+
])) : (H(!0), N(k, { key: 1 }, G(e.value, (t, n) => (H(), j(De, {
|
|
849
967
|
form: e.field.form,
|
|
850
968
|
field: e.field,
|
|
851
969
|
value: e.value[n],
|
|
@@ -890,10 +1008,10 @@ var De = /*#__PURE__*/ t(Se, [["render", Ee], ["__scopeId", "data-v-d6626b20"]])
|
|
|
890
1008
|
]))), 256))], 64);
|
|
891
1009
|
};
|
|
892
1010
|
}
|
|
893
|
-
}), [["__scopeId", "data-v-
|
|
1011
|
+
}), [["__scopeId", "data-v-c86c2d37"]]), Be = {
|
|
894
1012
|
key: 0,
|
|
895
1013
|
class: "error-msg"
|
|
896
|
-
},
|
|
1014
|
+
}, Ve = /*#__PURE__*/ t(/* @__PURE__ */ z({
|
|
897
1015
|
name: "DynamicValueField",
|
|
898
1016
|
__name: "DynamicValueField",
|
|
899
1017
|
props: {
|
|
@@ -929,67 +1047,20 @@ var De = /*#__PURE__*/ t(Se, [["render", Ee], ["__scopeId", "data-v-d6626b20"]])
|
|
|
929
1047
|
},
|
|
930
1048
|
emits: ["update:value"],
|
|
931
1049
|
setup(e, { emit: t }) {
|
|
932
|
-
let n = e, r = t, i =
|
|
933
|
-
let
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
if (e.length === 0 && n.value !== void 0) return;
|
|
945
|
-
t = e.join(a.valueSpace || ","), t !== n.value && r("update:value", t);
|
|
946
|
-
}
|
|
947
|
-
}
|
|
948
|
-
} else if (a.watchType === "global") {
|
|
949
|
-
if (a.valueType === "single") {
|
|
950
|
-
let e = t?.[a.fieldName];
|
|
951
|
-
if (a.valueKey && (e = e?.[a.valueKey]), e === void 0 && n.value !== void 0) return;
|
|
952
|
-
e !== n.value && r("update:value", e);
|
|
953
|
-
} else if (a.valueType === "multiple") {
|
|
954
|
-
let e = t?.[a.fieldName];
|
|
955
|
-
if (a.valueKeyList && a.valueKeyList.length) {
|
|
956
|
-
let t = [];
|
|
957
|
-
for (let n of a.valueKeyList) e?.[n] && t.push(e?.[n]);
|
|
958
|
-
if (t.length === 0 && n.value !== void 0) return;
|
|
959
|
-
e = t.join(a.valueSpace || ","), e !== n.value && r("update:value", e);
|
|
960
|
-
}
|
|
961
|
-
}
|
|
962
|
-
} else if (a.watchType === "context") {
|
|
963
|
-
let e = y(a.fieldName || "", n.context, ["formModel", ...n.baseKeyPath || []]);
|
|
964
|
-
if (a.valueType === "single") {
|
|
965
|
-
let t = e;
|
|
966
|
-
if (a.valueKey && (t = t?.[a.valueKey]), t === void 0 && n.value !== void 0) return;
|
|
967
|
-
t !== n.value && r("update:value", t);
|
|
968
|
-
} else if (a.valueType === "multiple") {
|
|
969
|
-
let t = e;
|
|
970
|
-
if (a.valueKeyList && a.valueKeyList.length) {
|
|
971
|
-
let e = [];
|
|
972
|
-
for (let n of a.valueKeyList) t?.[n] !== void 0 && e.push(t?.[n]);
|
|
973
|
-
if (e.length === 0 && n.value !== void 0) return;
|
|
974
|
-
t = e.join(a.valueSpace || ","), t !== n.value && r("update:value", t);
|
|
975
|
-
}
|
|
976
|
-
}
|
|
977
|
-
} else if (a.watchType === "code") try {
|
|
978
|
-
let e = await o(c, {
|
|
979
|
-
innerModel: n.innerModel,
|
|
980
|
-
globalInnerModel: n.globalInnerModel,
|
|
981
|
-
field: a,
|
|
982
|
-
formModel: s,
|
|
983
|
-
context: n.context,
|
|
984
|
-
keyPath: [...n.baseKeyPath, a.name]
|
|
985
|
-
}, n.workerHostFunctions || {});
|
|
986
|
-
if (e === void 0 && n.value !== void 0) return;
|
|
987
|
-
e !== n.value && r("update:value", e), i.value = null;
|
|
988
|
-
} catch (e) {
|
|
989
|
-
console.error(e), r("update:value", ""), i.value = e.message;
|
|
990
|
-
}
|
|
1050
|
+
let n = e, r = t, i = W(null), a = (0, Q.debounce)(async (e, t, a, o) => {
|
|
1051
|
+
let s = await Le({
|
|
1052
|
+
field: a,
|
|
1053
|
+
currentValue: n.value,
|
|
1054
|
+
innerModel: e,
|
|
1055
|
+
globalInnerModel: t,
|
|
1056
|
+
formModel: o,
|
|
1057
|
+
context: n.context,
|
|
1058
|
+
baseKeyPath: n.baseKeyPath,
|
|
1059
|
+
workerHostFunctions: n.workerHostFunctions || {}
|
|
1060
|
+
});
|
|
1061
|
+
s && (r("update:value", s.value), a.watchType === "code" && (i.value = s.error || null));
|
|
991
1062
|
}, 200);
|
|
992
|
-
return
|
|
1063
|
+
return Y(() => [
|
|
993
1064
|
n.innerModel,
|
|
994
1065
|
n.globalInnerModel,
|
|
995
1066
|
n.field,
|
|
@@ -1001,22 +1072,22 @@ var De = /*#__PURE__*/ t(Se, [["render", Ee], ["__scopeId", "data-v-d6626b20"]])
|
|
|
1001
1072
|
immediate: !0,
|
|
1002
1073
|
deep: !0
|
|
1003
1074
|
}), (t, n) => {
|
|
1004
|
-
let r =
|
|
1005
|
-
return
|
|
1075
|
+
let r = K("a-input");
|
|
1076
|
+
return H(), N(k, null, [L(C, {
|
|
1006
1077
|
"value-code": e.field,
|
|
1007
1078
|
"show-debug-code": e.field.watchType === "code"
|
|
1008
1079
|
}, {
|
|
1009
|
-
default:
|
|
1080
|
+
default: X(() => [L(r, {
|
|
1010
1081
|
value: e.value,
|
|
1011
1082
|
readonly: "",
|
|
1012
1083
|
size: "small",
|
|
1013
1084
|
style: { "background-color": "#f5f5f5" }
|
|
1014
1085
|
}, null, 8, ["value"])]),
|
|
1015
1086
|
_: 1
|
|
1016
|
-
}, 8, ["value-code", "show-debug-code"]), i.value ? (
|
|
1087
|
+
}, 8, ["value-code", "show-debug-code"]), i.value ? (H(), N("span", Be, J(i.value), 1)) : M("", !0)], 64);
|
|
1017
1088
|
};
|
|
1018
1089
|
}
|
|
1019
|
-
}), [["__scopeId", "data-v-
|
|
1090
|
+
}), [["__scopeId", "data-v-fa20c879"]]), He = z({
|
|
1020
1091
|
name: "FormButton",
|
|
1021
1092
|
components: { debugCode: C },
|
|
1022
1093
|
props: {
|
|
@@ -1071,7 +1142,7 @@ var De = /*#__PURE__*/ t(Se, [["render", Ee], ["__scopeId", "data-v-d6626b20"]])
|
|
|
1071
1142
|
keyPath: [...e.baseKeyPath, e.field.name]
|
|
1072
1143
|
}, e.workerHostFunctions || {});
|
|
1073
1144
|
} catch (e) {
|
|
1074
|
-
|
|
1145
|
+
he.error(e.message);
|
|
1075
1146
|
return;
|
|
1076
1147
|
}
|
|
1077
1148
|
t && Object.assign(e.formModel, t);
|
|
@@ -1084,21 +1155,21 @@ var De = /*#__PURE__*/ t(Se, [["render", Ee], ["__scopeId", "data-v-d6626b20"]])
|
|
|
1084
1155
|
});
|
|
1085
1156
|
//#endregion
|
|
1086
1157
|
//#region src/components/FormRender/FormButton/FormButton.vue
|
|
1087
|
-
function
|
|
1088
|
-
let o =
|
|
1089
|
-
return
|
|
1158
|
+
function Ue(e, t, n, r, i, a) {
|
|
1159
|
+
let o = K("a-button"), s = K("debug-code");
|
|
1160
|
+
return H(), j(s, {
|
|
1090
1161
|
action_code_id: e.field.action_code_id,
|
|
1091
1162
|
code: e.field.code,
|
|
1092
1163
|
"onUpdate:code": t[0] ||= (t) => e.field.code = t
|
|
1093
1164
|
}, {
|
|
1094
|
-
default:
|
|
1165
|
+
default: X(() => [L(o, {
|
|
1095
1166
|
danger: e.field.danger,
|
|
1096
1167
|
type: e.field.btn_type,
|
|
1097
1168
|
disabled: e.field.disabled,
|
|
1098
1169
|
size: "small",
|
|
1099
1170
|
onClick: e.handlClick
|
|
1100
1171
|
}, {
|
|
1101
|
-
default:
|
|
1172
|
+
default: X(() => [I(J(e.field.label), 1)]),
|
|
1102
1173
|
_: 1
|
|
1103
1174
|
}, 8, [
|
|
1104
1175
|
"danger",
|
|
@@ -1109,7 +1180,7 @@ function Ve(e, t, n, r, i, a) {
|
|
|
1109
1180
|
_: 1
|
|
1110
1181
|
}, 8, ["action_code_id", "code"]);
|
|
1111
1182
|
}
|
|
1112
|
-
var
|
|
1183
|
+
var We = /*#__PURE__*/ t(He, [["render", Ue]]), Ge = z({
|
|
1113
1184
|
name: "InputNumberPro",
|
|
1114
1185
|
components: {},
|
|
1115
1186
|
props: {
|
|
@@ -1136,7 +1207,7 @@ var He = /*#__PURE__*/ t(Be, [["render", Ve]]), Ue = R({
|
|
|
1136
1207
|
}
|
|
1137
1208
|
return {
|
|
1138
1209
|
update: n,
|
|
1139
|
-
innerValue:
|
|
1210
|
+
innerValue: A(() => {
|
|
1140
1211
|
let t = e.value;
|
|
1141
1212
|
return typeof t == "string" && (e.field.addonAfter && (t = r(t, e.field.addonAfter, "")), e.field.addonBefore && (t = i(t, e.field.addonBefore, "")), t = parseFloat(t), isNaN(t) && (t = null)), t;
|
|
1142
1213
|
})
|
|
@@ -1145,10 +1216,10 @@ var He = /*#__PURE__*/ t(Be, [["render", Ve]]), Ue = R({
|
|
|
1145
1216
|
data() {
|
|
1146
1217
|
return { model: this.value };
|
|
1147
1218
|
}
|
|
1148
|
-
}),
|
|
1149
|
-
function
|
|
1150
|
-
let o =
|
|
1151
|
-
return
|
|
1219
|
+
}), Ke = { key: 0 }, qe = { key: 0 }, Je = { key: 0 };
|
|
1220
|
+
function Ye(e, t, n, r, i, a) {
|
|
1221
|
+
let o = K("a-input-number");
|
|
1222
|
+
return H(), j(o, {
|
|
1152
1223
|
value: e.innerValue,
|
|
1153
1224
|
autocomplete: e.field.autocomplete == null ? "off" : e.field.autocomplete,
|
|
1154
1225
|
"default-value": e.field.defaultValue,
|
|
@@ -1161,20 +1232,20 @@ function qe(e, t, n, r, i, a) {
|
|
|
1161
1232
|
step: e.field.step,
|
|
1162
1233
|
size: "small",
|
|
1163
1234
|
"onUpdate:value": e.update
|
|
1164
|
-
},
|
|
1235
|
+
}, F({ _: 2 }, [
|
|
1165
1236
|
e.field?.prefix || e.field?.prefixIcon ? {
|
|
1166
1237
|
name: "prefix",
|
|
1167
|
-
fn:
|
|
1238
|
+
fn: X(() => [e.field?.prefix ? (H(), N("span", Ke, J(e.field.prefix), 1)) : M("", !0), e.field?.prefixIcon ? (H(), j(q(e.field?.prefixIcon), { key: 1 })) : M("", !0)]),
|
|
1168
1239
|
key: "0"
|
|
1169
1240
|
} : void 0,
|
|
1170
1241
|
e.field?.addonBefore || e.field?.addonBeforeIcon ? {
|
|
1171
1242
|
name: "addonBefore",
|
|
1172
|
-
fn:
|
|
1243
|
+
fn: X(() => [e.field?.addonBefore ? (H(), N("span", qe, J(e.field.addonBefore), 1)) : M("", !0), e.field?.addonBeforeIcon ? (H(), j(q(e.field?.addonBeforeIcon), { key: 1 })) : M("", !0)]),
|
|
1173
1244
|
key: "1"
|
|
1174
1245
|
} : void 0,
|
|
1175
1246
|
e.field?.addonAfter || e.field?.addonAfterIcon ? {
|
|
1176
1247
|
name: "addonAfter",
|
|
1177
|
-
fn:
|
|
1248
|
+
fn: X(() => [e.field?.addonAfter ? (H(), N("span", Je, J(e.field.addonAfter), 1)) : M("", !0), e.field?.addonAfterIcon ? (H(), j(q(e.field?.addonAfterIcon), { key: 1 })) : M("", !0)]),
|
|
1178
1249
|
key: "2"
|
|
1179
1250
|
} : void 0
|
|
1180
1251
|
]), 1032, [
|
|
@@ -1191,9 +1262,9 @@ function qe(e, t, n, r, i, a) {
|
|
|
1191
1262
|
"onUpdate:value"
|
|
1192
1263
|
]);
|
|
1193
1264
|
}
|
|
1194
|
-
var
|
|
1265
|
+
var Xe = /*#__PURE__*/ t(Ge, [["render", Ye], ["__scopeId", "data-v-1c2384e8"]]), Ze = { key: 0 }, Qe = { key: 0 }, $e = { key: 0 }, et = { key: 0 }, tt = /*#__PURE__*/ t(/* @__PURE__ */ z({
|
|
1195
1266
|
__name: "InputPro",
|
|
1196
|
-
props: /*@__PURE__*/
|
|
1267
|
+
props: /*@__PURE__*/ ae({ field: {
|
|
1197
1268
|
type: Object,
|
|
1198
1269
|
required: !0
|
|
1199
1270
|
} }, {
|
|
@@ -1202,8 +1273,8 @@ var Je = /*#__PURE__*/ t(Ue, [["render", qe], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1202
1273
|
}),
|
|
1203
1274
|
emits: ["update:value"],
|
|
1204
1275
|
setup(e) {
|
|
1205
|
-
let t =
|
|
1206
|
-
|
|
1276
|
+
let t = de(e, "value"), n = e, r = W("");
|
|
1277
|
+
Y(() => t.value, (e) => {
|
|
1207
1278
|
let t = e;
|
|
1208
1279
|
n.field.extraAddonAfter && n.field.addonAfter && (t = o(t, n.field.addonAfter, "")), n.field.extraAddonBefore && n.field.addonBefore && (t = a(t, n.field.addonBefore, "")), r.value = t;
|
|
1209
1280
|
}, { immediate: !0 });
|
|
@@ -1217,8 +1288,8 @@ var Je = /*#__PURE__*/ t(Ue, [["render", qe], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1217
1288
|
return e?.endsWith(t) ? e.slice(0, -t.length) + n : e;
|
|
1218
1289
|
}
|
|
1219
1290
|
return (t, n) => {
|
|
1220
|
-
let a =
|
|
1221
|
-
return
|
|
1291
|
+
let a = K("a-input");
|
|
1292
|
+
return H(), j(a, {
|
|
1222
1293
|
value: r.value,
|
|
1223
1294
|
"onUpdate:value": n[0] ||= (e) => r.value = e,
|
|
1224
1295
|
"allow-clear": e.field.allowClear == null ? !0 : e.field.allowClear,
|
|
@@ -1229,26 +1300,26 @@ var Je = /*#__PURE__*/ t(Ue, [["render", qe], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1229
1300
|
placeholder: e.field.placeholder ? e.field.placeholder : t.$t("请输入") + e.field.label,
|
|
1230
1301
|
type: e.field.inputType ? e.field.inputType : "text",
|
|
1231
1302
|
size: "small",
|
|
1232
|
-
onChange: n[1] ||= (e) =>
|
|
1233
|
-
},
|
|
1303
|
+
onChange: n[1] ||= (e) => ue(i)(e.target.value)
|
|
1304
|
+
}, F({ _: 2 }, [
|
|
1234
1305
|
e.field?.prefix || e.field?.prefixIcon ? {
|
|
1235
1306
|
name: "prefix",
|
|
1236
|
-
fn:
|
|
1307
|
+
fn: X(() => [e.field?.prefix ? (H(), N("span", Ze, J(e.field.prefix), 1)) : M("", !0), e.field?.prefixIcon ? (H(), j(q(e.field?.prefixIcon), { key: 1 })) : M("", !0)]),
|
|
1237
1308
|
key: "0"
|
|
1238
1309
|
} : void 0,
|
|
1239
1310
|
e.field?.suffix || e.field?.suffixIcon ? {
|
|
1240
1311
|
name: "suffix",
|
|
1241
|
-
fn:
|
|
1312
|
+
fn: X(() => [e.field?.suffix ? (H(), N("span", Qe, J(e.field.suffix), 1)) : M("", !0), e.field?.suffixIcon ? (H(), j(q(e.field?.suffixIcon), { key: 1 })) : M("", !0)]),
|
|
1242
1313
|
key: "1"
|
|
1243
1314
|
} : void 0,
|
|
1244
1315
|
e.field?.addonBefore || e.field?.addonBeforeIcon ? {
|
|
1245
1316
|
name: "addonBefore",
|
|
1246
|
-
fn:
|
|
1317
|
+
fn: X(() => [e.field?.addonBefore ? (H(), N("span", $e, J(e.field.addonBefore), 1)) : M("", !0), e.field?.addonBeforeIcon ? (H(), j(q(e.field?.addonBeforeIcon), { key: 1 })) : M("", !0)]),
|
|
1247
1318
|
key: "2"
|
|
1248
1319
|
} : void 0,
|
|
1249
1320
|
e.field?.addonAfter || e.field?.addonAfterIcon ? {
|
|
1250
1321
|
name: "addonAfter",
|
|
1251
|
-
fn:
|
|
1322
|
+
fn: X(() => [e.field?.addonAfter ? (H(), N("span", et, J(e.field.addonAfter), 1)) : M("", !0), e.field?.addonAfterIcon ? (H(), j(q(e.field?.addonAfterIcon), { key: 1 })) : M("", !0)]),
|
|
1252
1323
|
key: "3"
|
|
1253
1324
|
} : void 0
|
|
1254
1325
|
]), 1032, [
|
|
@@ -1263,9 +1334,9 @@ var Je = /*#__PURE__*/ t(Ue, [["render", qe], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1263
1334
|
]);
|
|
1264
1335
|
};
|
|
1265
1336
|
}
|
|
1266
|
-
}), [["__scopeId", "data-v-a5e3757b"]]), $ = (e, t = "YYYY-MM-DD") => Z(e, t, !0).isValid(),
|
|
1337
|
+
}), [["__scopeId", "data-v-a5e3757b"]]), $ = (e, t = "YYYY-MM-DD") => Z(e, t, !0).isValid(), nt = (e, t = "YYYY-MM-DD HH:mm:ss") => Z(e, t, !0).isValid(), rt = (e, t = "HH:mm:ss") => Z(e, t, !0).isValid(), it = z({
|
|
1267
1338
|
name: "FieldRender2",
|
|
1268
|
-
methods: { isArray:
|
|
1339
|
+
methods: { isArray: _e },
|
|
1269
1340
|
props: {
|
|
1270
1341
|
field: {
|
|
1271
1342
|
type: Object,
|
|
@@ -1363,7 +1434,7 @@ var Je = /*#__PURE__*/ t(Ue, [["render", qe], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1363
1434
|
"update_name2"
|
|
1364
1435
|
],
|
|
1365
1436
|
setup(e, { emit: t }) {
|
|
1366
|
-
let n =
|
|
1437
|
+
let n = W({ ...e.formModel }), r = (e) => typeof e == "string" && e.indexOf(",") >= 0 ? e.split(",") : e, o = (e, t) => {
|
|
1367
1438
|
let n;
|
|
1368
1439
|
return t == "int" ? a(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1369
1440
|
a(e) && typeof e == "string" ? n.push(Number(e)) : n.push(e);
|
|
@@ -1372,19 +1443,19 @@ var Je = /*#__PURE__*/ t(Ue, [["render", qe], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1372
1443
|
})) : n = a(e) && typeof e == "number" ? e.toString() : e : t == "date" ? a(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1373
1444
|
$(e) && typeof e == "string" ? n.push(Z(e, "YYYY-MM-DD")) : n.push(e);
|
|
1374
1445
|
})) : n = $(e) && typeof e == "string" ? e.toString() : e : t == "datetime" ? a(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1375
|
-
|
|
1376
|
-
})) : n =
|
|
1377
|
-
|
|
1378
|
-
})) : n =
|
|
1446
|
+
nt(e) && typeof e == "string" ? n.push(Z(e, "YYYY-MM-DD HH:mm:ss")) : n.push(e);
|
|
1447
|
+
})) : n = nt(e) && typeof e == "string" ? Z(e, "YYYY-MM-DD HH:mm:ss") : e : t == "time" ? a(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1448
|
+
rt(e) && typeof e == "string" ? n.push(Z(e, "HH:mm:ss")) : n.push(e);
|
|
1449
|
+
})) : n = rt(e) && typeof e == "string" ? Z(e, "HH:mm:ss") : e : t == "float" ? a(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1379
1450
|
a(e) && typeof e == "string" ? n.push(Number(e)) : n.push(e);
|
|
1380
1451
|
})) : n = a(e) && typeof e == "string" ? Number(e) : e : t == "bool" && (a(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1381
1452
|
a(e) && typeof e == "string" ? n.push(!!e) : n.push(e);
|
|
1382
1453
|
})) : n = a(e) && typeof e == "string" ? !!e : e), n;
|
|
1383
|
-
}, s =
|
|
1454
|
+
}, s = W(e.is_show_field), c = W(!1), l = A(() => e.is_form_design && e.field.type === "remotetablepro"), u = () => {
|
|
1384
1455
|
t("update:is_edit", c.value);
|
|
1385
1456
|
}, d = () => {
|
|
1386
1457
|
t("add");
|
|
1387
|
-
}, f =
|
|
1458
|
+
}, f = ge(() => {
|
|
1388
1459
|
let r = s.value;
|
|
1389
1460
|
e.field?.is_hide && (s.value = !1, s.value !== r && (s.value ? (n.value[e.field.name] = null, t("update_model", {
|
|
1390
1461
|
add_key: e.field.name,
|
|
@@ -1411,8 +1482,8 @@ var Je = /*#__PURE__*/ t(Ue, [["render", qe], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1411
1482
|
add_key: e.field.name,
|
|
1412
1483
|
value: null
|
|
1413
1484
|
})) : (delete n.value[e.field.name], t("update_model", { remove_key: e.field.name })));
|
|
1414
|
-
}, 300), p =
|
|
1415
|
-
|
|
1485
|
+
}, 300), p = W(""), m = W(e.label);
|
|
1486
|
+
Y(() => p.value, (n) => {
|
|
1416
1487
|
if (t("update:value", n), e.field.name2) {
|
|
1417
1488
|
let r;
|
|
1418
1489
|
if (e.field.type === "radio") r = e.options.find((t) => t[e.field.valueKey ? e.field.valueKey : "value"] == n)?.[e.field.labelKey ? e.field.labelKey : "label"];
|
|
@@ -1423,7 +1494,7 @@ var Je = /*#__PURE__*/ t(Ue, [["render", qe], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1423
1494
|
n == r?.[e.field.valueKey ? e.field.valueKey : "value"] && t.push(r?.[e.field.labelKey ? e.field.labelKey : "label"]);
|
|
1424
1495
|
});
|
|
1425
1496
|
}), r = t.toString();
|
|
1426
|
-
} else if (e.field.type === "select") if (
|
|
1497
|
+
} else if (e.field.type === "select") if (_e(n)) {
|
|
1427
1498
|
let t = [];
|
|
1428
1499
|
e.options.forEach((r) => {
|
|
1429
1500
|
n.forEach((n) => {
|
|
@@ -1436,27 +1507,27 @@ var Je = /*#__PURE__*/ t(Ue, [["render", qe], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1436
1507
|
value: r
|
|
1437
1508
|
});
|
|
1438
1509
|
}
|
|
1439
|
-
}, { deep: !0 }),
|
|
1510
|
+
}, { deep: !0 }), Y(() => e.value, (t) => {
|
|
1440
1511
|
let n = t;
|
|
1441
1512
|
e.field.type === "rangepicker" && n ? n = r(n) : e.field.type === "input" && n && (n = n.toString().replace(/(^\s*)|(\s*$)/g, "")), s.value && (p.value = n);
|
|
1442
|
-
}, { immediate: !0 }),
|
|
1513
|
+
}, { immediate: !0 }), Y(() => m.value, (n) => {
|
|
1443
1514
|
t("update:label", n), "name2" in e.field && t("update_name2", {
|
|
1444
1515
|
key: e.field.name2,
|
|
1445
1516
|
value: n.toString()
|
|
1446
1517
|
});
|
|
1447
|
-
}, { deep: !0 }),
|
|
1518
|
+
}, { deep: !0 }), Y(() => e.label, (e) => {
|
|
1448
1519
|
m.value = e;
|
|
1449
|
-
}),
|
|
1520
|
+
}), Y(() => e.formModel, (e) => {
|
|
1450
1521
|
n.value = { ...e };
|
|
1451
|
-
}, { deep: !0 }),
|
|
1522
|
+
}, { deep: !0 }), Y(() => n.value, (t, n) => {
|
|
1452
1523
|
e.field?.conditions && e.field?.conditions.forEach((e) => {
|
|
1453
1524
|
e.forEach((e) => {
|
|
1454
1525
|
n[e.watchKey] != t[e.watchKey] && f();
|
|
1455
1526
|
});
|
|
1456
1527
|
});
|
|
1457
|
-
}, { deep: !0 }),
|
|
1528
|
+
}, { deep: !0 }), Y(() => [e.conditionsVisibleNum, e.isUseConditions], () => {
|
|
1458
1529
|
e.field?.is_hide ? (s.value = !1, t("update:is_show_field", s.value)) : e.field?.conditions && e.isUseConditions ? f() : (s.value = !0, t("update:is_show_field", s.value));
|
|
1459
|
-
}),
|
|
1530
|
+
}), B(() => {
|
|
1460
1531
|
if (e.field?.is_hide ? (s.value = !1, t("update:is_show_field", s.value)) : e.field?.conditions instanceof Array && e.field?.conditions.length > 0 ? f() : (s.value = !0, t("update:is_show_field", s.value)), !s.value) delete n.value[e.field.name], t("update_model", { remove_key: e.field.name });
|
|
1461
1532
|
else {
|
|
1462
1533
|
let r = n.value[e.field.name];
|
|
@@ -1484,7 +1555,7 @@ var Je = /*#__PURE__*/ t(Ue, [["render", qe], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1484
1555
|
IconSelect: T,
|
|
1485
1556
|
RichTextEditor: x,
|
|
1486
1557
|
Upload: ee,
|
|
1487
|
-
RemoteCascaderPro:
|
|
1558
|
+
RemoteCascaderPro: te,
|
|
1488
1559
|
RemoteTreeSelectPro: S,
|
|
1489
1560
|
RemoteSelectPro: d,
|
|
1490
1561
|
RemoteComplete: E,
|
|
@@ -1499,31 +1570,31 @@ var Je = /*#__PURE__*/ t(Ue, [["render", qe], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1499
1570
|
JsonStr: h,
|
|
1500
1571
|
JsonObj: g,
|
|
1501
1572
|
RemoteText: _,
|
|
1502
|
-
RemoteTablePro:
|
|
1503
|
-
FormTemplate:
|
|
1504
|
-
DynamicValueField:
|
|
1505
|
-
FormButton:
|
|
1573
|
+
RemoteTablePro: re,
|
|
1574
|
+
FormTemplate: ze,
|
|
1575
|
+
DynamicValueField: Ve,
|
|
1576
|
+
FormButton: We,
|
|
1506
1577
|
PlusOutlined: ye,
|
|
1507
|
-
MonthPicker:
|
|
1578
|
+
MonthPicker: O,
|
|
1508
1579
|
MonthRangePicker: D,
|
|
1509
1580
|
CodeEditor: w,
|
|
1510
|
-
TinymceEditor:
|
|
1511
|
-
InputNumberPro:
|
|
1512
|
-
InputPro:
|
|
1581
|
+
TinymceEditor: ne,
|
|
1582
|
+
InputNumberPro: Xe,
|
|
1583
|
+
InputPro: tt
|
|
1513
1584
|
}
|
|
1514
|
-
}),
|
|
1585
|
+
}), at = {
|
|
1515
1586
|
key: 0,
|
|
1516
1587
|
style: {
|
|
1517
1588
|
height: "62px",
|
|
1518
1589
|
width: "100%"
|
|
1519
1590
|
}
|
|
1520
|
-
},
|
|
1591
|
+
}, ot = { key: 1 }, st = { key: 0 }, ct = { key: 1 }, lt = {
|
|
1521
1592
|
key: 3,
|
|
1522
1593
|
style: {
|
|
1523
1594
|
height: "30px",
|
|
1524
1595
|
position: "relative"
|
|
1525
1596
|
}
|
|
1526
|
-
},
|
|
1597
|
+
}, ut = { style: {
|
|
1527
1598
|
position: "absolute",
|
|
1528
1599
|
bottom: "0",
|
|
1529
1600
|
padding: "0",
|
|
@@ -1531,39 +1602,39 @@ var Je = /*#__PURE__*/ t(Ue, [["render", qe], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1531
1602
|
"font-weight": "bolder",
|
|
1532
1603
|
"font-size": "17px"
|
|
1533
1604
|
} };
|
|
1534
|
-
function
|
|
1535
|
-
let o =
|
|
1536
|
-
return
|
|
1537
|
-
e.field.type !== "divider" && e.field.type !== "button" && (e.field?.is_search_show !== !1 || e.field_render_show) ? (
|
|
1605
|
+
function dt(e, t, n, r, i, a) {
|
|
1606
|
+
let o = K("a-switch"), s = K("plus-outlined"), c = K("a-button"), l = K("a-tag"), u = K("a-rate"), d = K("InputPro"), f = K("a-input-number"), p = K("InputNumberPro"), m = K("a-input"), h = K("attribute-table"), g = K("attribute-nom-table"), _ = K("a-textarea"), v = K("json-str"), y = K("json-obj"), b = K("rich-text-editor"), x = K("a-input-password"), S = K("a-select-option"), C = K("a-select"), w = K("a-cascader"), T = K("remote-cascader"), E = K("remote-cascader-pro"), D = K("month-picker"), ee = K("a-date-picker"), O = K("a-range-picker"), te = K("month-range-picker"), ne = K("a-time-picker"), re = K("a-time-range-picker"), A = K("a-radio"), R = K("a-radio-group"), z = K("a-checkbox"), ie = K("a-checkbox-group"), ae = K("a-tree-select"), se = K("remote-filter-select"), B = K("remote-select"), V = K("remote-select-pro"), U = K("remote-complete"), W = K("remote-tree-select"), ue = K("remote-tree-select-pro"), de = K("remote-modal"), fe = K("remote-table"), Y = K("remote-table-pro"), pe = K("FormTemplate"), me = K("DynamicValueField"), he = K("remote-text"), ge = K("upload"), _e = K("code-editor"), Z = K("TinymceEditor"), ve = K("icon-select"), ye = K("a-form-item"), be = K("a-divider"), xe = K("FormButton");
|
|
1607
|
+
return H(), N(k, null, [
|
|
1608
|
+
e.field.type !== "divider" && e.field.type !== "button" && (e.field?.is_search_show !== !1 || e.field_render_show) ? (H(), j(ye, oe({
|
|
1538
1609
|
key: 0,
|
|
1539
1610
|
extra: e.field.extra,
|
|
1540
1611
|
name: e.field.name
|
|
1541
|
-
}, e.validateInfos ? e.validateInfos[e.field.name] : null),
|
|
1542
|
-
default:
|
|
1543
|
-
|
|
1544
|
-
e.field.type === "kong" ? (
|
|
1545
|
-
e.field.type === "tag" ? (
|
|
1612
|
+
}, e.validateInfos ? e.validateInfos[e.field.name] : null), F({
|
|
1613
|
+
default: X(() => [
|
|
1614
|
+
le(e.$slots, "default", {}, void 0, !0),
|
|
1615
|
+
e.field.type === "kong" ? (H(), N("div", at)) : M("", !0),
|
|
1616
|
+
e.field.type === "tag" ? (H(), N("div", ot, [e.field.content && e.field.content(e.field, e.model) || e.model ? (H(), j(l, {
|
|
1546
1617
|
key: 0,
|
|
1547
1618
|
color: e.field.color ? e.field.color(e.field, e.model) : "green",
|
|
1548
|
-
style:
|
|
1619
|
+
style: ce(e.field.style),
|
|
1549
1620
|
onClick: t[1] ||= (t) => e.field.cb ? e.field.cb(e.field, e.model) : ""
|
|
1550
1621
|
}, {
|
|
1551
|
-
default:
|
|
1622
|
+
default: X(() => [e.field.content ? (H(), N("span", st, J(e.field.content(e.field, e.model)), 1)) : (H(), N("span", ct, J(e.model), 1))]),
|
|
1552
1623
|
_: 1
|
|
1553
|
-
}, 8, ["color", "style"])) :
|
|
1554
|
-
e.field.type === "kong_title" ? (
|
|
1624
|
+
}, 8, ["color", "style"])) : M("", !0)])) : M("", !0),
|
|
1625
|
+
e.field.type === "kong_title" ? (H(), N("div", {
|
|
1555
1626
|
key: 2,
|
|
1556
|
-
style:
|
|
1557
|
-
}, null, 4)) :
|
|
1558
|
-
e.field.type === "title" ? (
|
|
1559
|
-
e.field.type === "rate" ? (
|
|
1627
|
+
style: ce("height: " + e.field.height + "px")
|
|
1628
|
+
}, null, 4)) : M("", !0),
|
|
1629
|
+
e.field.type === "title" ? (H(), N("div", lt, [P("span", ut, J(e.field.name), 1)])) : M("", !0),
|
|
1630
|
+
e.field.type === "rate" ? (H(), j(u, {
|
|
1560
1631
|
key: 4,
|
|
1561
1632
|
value: e.model,
|
|
1562
1633
|
"onUpdate:value": t[2] ||= (t) => e.model = t,
|
|
1563
1634
|
disabled: e.field.disabled,
|
|
1564
1635
|
"allow-half": ""
|
|
1565
|
-
}, null, 8, ["value", "disabled"])) :
|
|
1566
|
-
e.field.type === "input" ? (
|
|
1636
|
+
}, null, 8, ["value", "disabled"])) : M("", !0),
|
|
1637
|
+
e.field.type === "input" ? (H(), j(d, {
|
|
1567
1638
|
key: 5,
|
|
1568
1639
|
field: e.field,
|
|
1569
1640
|
value: e.model,
|
|
@@ -1575,8 +1646,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
1575
1646
|
"value",
|
|
1576
1647
|
"base-key-path",
|
|
1577
1648
|
"worker-host-functions"
|
|
1578
|
-
])) :
|
|
1579
|
-
e.field.type === "money" ? (
|
|
1649
|
+
])) : M("", !0),
|
|
1650
|
+
e.field.type === "money" ? (H(), j(f, {
|
|
1580
1651
|
key: 6,
|
|
1581
1652
|
size: "small",
|
|
1582
1653
|
value: e.model,
|
|
@@ -1602,8 +1673,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
1602
1673
|
"precision",
|
|
1603
1674
|
"step",
|
|
1604
1675
|
"placeholder"
|
|
1605
|
-
])) :
|
|
1606
|
-
e.field.type === "number" ? (
|
|
1676
|
+
])) : M("", !0),
|
|
1677
|
+
e.field.type === "number" ? (H(), j(p, {
|
|
1607
1678
|
key: 7,
|
|
1608
1679
|
value: e.model,
|
|
1609
1680
|
"onUpdate:value": t[5] ||= (t) => e.model = t,
|
|
@@ -1616,8 +1687,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
1616
1687
|
"field",
|
|
1617
1688
|
"base-key-path",
|
|
1618
1689
|
"worker-host-functions"
|
|
1619
|
-
])) :
|
|
1620
|
-
e.field.type === "volume" ? (
|
|
1690
|
+
])) : M("", !0),
|
|
1691
|
+
e.field.type === "volume" ? (H(), j(m, {
|
|
1621
1692
|
key: 8,
|
|
1622
1693
|
value: e.model,
|
|
1623
1694
|
"onUpdate:value": t[6] ||= (t) => e.model = t,
|
|
@@ -1638,8 +1709,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
1638
1709
|
"disabled",
|
|
1639
1710
|
"maxlength",
|
|
1640
1711
|
"placeholder"
|
|
1641
|
-
])) :
|
|
1642
|
-
e.field.type === "weight" ? (
|
|
1712
|
+
])) : M("", !0),
|
|
1713
|
+
e.field.type === "weight" ? (H(), j(m, {
|
|
1643
1714
|
key: 9,
|
|
1644
1715
|
value: e.model,
|
|
1645
1716
|
"onUpdate:value": t[7] ||= (t) => e.model = t,
|
|
@@ -1660,8 +1731,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
1660
1731
|
"disabled",
|
|
1661
1732
|
"maxlength",
|
|
1662
1733
|
"placeholder"
|
|
1663
|
-
])) :
|
|
1664
|
-
e.field.type === "attributetable" ? (
|
|
1734
|
+
])) : M("", !0),
|
|
1735
|
+
e.field.type === "attributetable" ? (H(), j(h, {
|
|
1665
1736
|
key: 10,
|
|
1666
1737
|
value: e.model,
|
|
1667
1738
|
"onUpdate:value": t[8] ||= (t) => e.model = t,
|
|
@@ -1678,8 +1749,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
1678
1749
|
"init_model",
|
|
1679
1750
|
"base-key-path",
|
|
1680
1751
|
"worker-host-functions"
|
|
1681
|
-
])) :
|
|
1682
|
-
e.field.type === "attributenomtable" ? (
|
|
1752
|
+
])) : M("", !0),
|
|
1753
|
+
e.field.type === "attributenomtable" ? (H(), j(g, {
|
|
1683
1754
|
key: 11,
|
|
1684
1755
|
size: "small",
|
|
1685
1756
|
value: e.model,
|
|
@@ -1696,8 +1767,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
1696
1767
|
"init_model",
|
|
1697
1768
|
"base-key-path",
|
|
1698
1769
|
"worker-host-functions"
|
|
1699
|
-
])) :
|
|
1700
|
-
e.field.type === "textarea" ? (
|
|
1770
|
+
])) : M("", !0),
|
|
1771
|
+
e.field.type === "textarea" ? (H(), j(_, {
|
|
1701
1772
|
key: 12,
|
|
1702
1773
|
value: e.model,
|
|
1703
1774
|
"onUpdate:value": t[10] ||= (t) => e.model = t,
|
|
@@ -1716,8 +1787,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
1716
1787
|
"autocomplete",
|
|
1717
1788
|
"disabled",
|
|
1718
1789
|
"placeholder"
|
|
1719
|
-
])) :
|
|
1720
|
-
e.field.type === "jsonstr" ? (
|
|
1790
|
+
])) : M("", !0),
|
|
1791
|
+
e.field.type === "jsonstr" ? (H(), j(v, {
|
|
1721
1792
|
key: 13,
|
|
1722
1793
|
value: e.model,
|
|
1723
1794
|
"onUpdate:value": t[11] ||= (t) => e.model = t,
|
|
@@ -1731,8 +1802,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
1731
1802
|
"disabled",
|
|
1732
1803
|
"rows",
|
|
1733
1804
|
"placeholder"
|
|
1734
|
-
])) :
|
|
1735
|
-
e.field.type === "jsonobj" ? (
|
|
1805
|
+
])) : M("", !0),
|
|
1806
|
+
e.field.type === "jsonobj" ? (H(), j(y, {
|
|
1736
1807
|
key: 14,
|
|
1737
1808
|
value: e.model,
|
|
1738
1809
|
"onUpdate:value": t[12] ||= (t) => e.model = t,
|
|
@@ -1748,8 +1819,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
1748
1819
|
"mode",
|
|
1749
1820
|
"fullWidthButton",
|
|
1750
1821
|
"darkTheme"
|
|
1751
|
-
])) :
|
|
1752
|
-
e.field.type === "richtexteditor" ? (
|
|
1822
|
+
])) : M("", !0),
|
|
1823
|
+
e.field.type === "richtexteditor" ? (H(), j(b, {
|
|
1753
1824
|
key: 15,
|
|
1754
1825
|
value: e.model,
|
|
1755
1826
|
"onUpdate:value": t[13] ||= (t) => e.model = t,
|
|
@@ -1759,8 +1830,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
1759
1830
|
"value",
|
|
1760
1831
|
"readOnly",
|
|
1761
1832
|
"placeholder"
|
|
1762
|
-
])) :
|
|
1763
|
-
e.field.type === "password" ? (
|
|
1833
|
+
])) : M("", !0),
|
|
1834
|
+
e.field.type === "password" ? (H(), j(x, {
|
|
1764
1835
|
key: 16,
|
|
1765
1836
|
value: e.model,
|
|
1766
1837
|
"onUpdate:value": t[14] ||= (t) => e.model = t,
|
|
@@ -1791,8 +1862,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
1791
1862
|
"precision",
|
|
1792
1863
|
"step",
|
|
1793
1864
|
"visibilityToggle"
|
|
1794
|
-
])) :
|
|
1795
|
-
e.field.type === "select" ? (
|
|
1865
|
+
])) : M("", !0),
|
|
1866
|
+
e.field.type === "select" ? (H(), N(k, { key: 17 }, [e.field.mode === "default" ? (H(), j(C, {
|
|
1796
1867
|
key: 0,
|
|
1797
1868
|
value: e.model,
|
|
1798
1869
|
"onUpdate:value": t[16] ||= (t) => e.model = t,
|
|
@@ -1807,11 +1878,11 @@ function lt(e, t, n, r, i, a) {
|
|
|
1807
1878
|
size: "small",
|
|
1808
1879
|
style: { width: "100%" }
|
|
1809
1880
|
}, {
|
|
1810
|
-
default:
|
|
1881
|
+
default: X(() => [(H(!0), N(k, null, G(e.options, (t) => (H(), j(S, {
|
|
1811
1882
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
1812
1883
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
1813
1884
|
}, {
|
|
1814
|
-
default:
|
|
1885
|
+
default: X(() => [I(J(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
1815
1886
|
_: 2
|
|
1816
1887
|
}, 1032, ["value"]))), 128))]),
|
|
1817
1888
|
_: 1
|
|
@@ -1824,7 +1895,7 @@ function lt(e, t, n, r, i, a) {
|
|
|
1824
1895
|
"maxTagCount",
|
|
1825
1896
|
"placeholder",
|
|
1826
1897
|
"show-search"
|
|
1827
|
-
])) : (
|
|
1898
|
+
])) : (H(), j(C, {
|
|
1828
1899
|
key: 1,
|
|
1829
1900
|
value: e.model,
|
|
1830
1901
|
"onUpdate:value": t[17] ||= (t) => e.model = t,
|
|
@@ -1839,11 +1910,11 @@ function lt(e, t, n, r, i, a) {
|
|
|
1839
1910
|
size: "small",
|
|
1840
1911
|
style: { "min-width": "150px" }
|
|
1841
1912
|
}, {
|
|
1842
|
-
default:
|
|
1913
|
+
default: X(() => [(H(!0), N(k, null, G(e.options, (t, n) => (H(), j(S, {
|
|
1843
1914
|
key: n,
|
|
1844
1915
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
1845
1916
|
}, {
|
|
1846
|
-
default:
|
|
1917
|
+
default: X(() => [I(J(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
1847
1918
|
_: 2
|
|
1848
1919
|
}, 1032, ["value"]))), 128))]),
|
|
1849
1920
|
_: 1
|
|
@@ -1856,8 +1927,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
1856
1927
|
"mode",
|
|
1857
1928
|
"placeholder",
|
|
1858
1929
|
"show-search"
|
|
1859
|
-
]))], 64)) :
|
|
1860
|
-
e.field.type === "groupselect" ? (
|
|
1930
|
+
]))], 64)) : M("", !0),
|
|
1931
|
+
e.field.type === "groupselect" ? (H(), N(k, { key: 18 }, [e.field.mode === "default" ? (H(), j(C, {
|
|
1861
1932
|
key: 0,
|
|
1862
1933
|
value: e.model,
|
|
1863
1934
|
"onUpdate:value": t[18] ||= (t) => e.model = t,
|
|
@@ -1886,7 +1957,7 @@ function lt(e, t, n, r, i, a) {
|
|
|
1886
1957
|
"options",
|
|
1887
1958
|
"placeholder",
|
|
1888
1959
|
"show-search"
|
|
1889
|
-
])) : (
|
|
1960
|
+
])) : (H(), j(C, {
|
|
1890
1961
|
key: 1,
|
|
1891
1962
|
value: e.model,
|
|
1892
1963
|
"onUpdate:value": t[19] ||= (t) => e.model = t,
|
|
@@ -1915,8 +1986,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
1915
1986
|
"options",
|
|
1916
1987
|
"placeholder",
|
|
1917
1988
|
"show-search"
|
|
1918
|
-
]))], 64)) :
|
|
1919
|
-
e.field.type === "cascader" ? (
|
|
1989
|
+
]))], 64)) : M("", !0),
|
|
1990
|
+
e.field.type === "cascader" ? (H(), j(w, {
|
|
1920
1991
|
key: 19,
|
|
1921
1992
|
value: e.model,
|
|
1922
1993
|
"onUpdate:value": t[20] ||= (t) => e.model = t,
|
|
@@ -1939,8 +2010,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
1939
2010
|
"changeOnSelect",
|
|
1940
2011
|
"options",
|
|
1941
2012
|
"placeholder"
|
|
1942
|
-
])) :
|
|
1943
|
-
e.field.type === "remotecascader" ? (
|
|
2013
|
+
])) : M("", !0),
|
|
2014
|
+
e.field.type === "remotecascader" ? (H(), j(T, {
|
|
1944
2015
|
key: 20,
|
|
1945
2016
|
value: e.model,
|
|
1946
2017
|
"onUpdate:value": t[21] ||= (t) => e.model = t,
|
|
@@ -1965,8 +2036,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
1965
2036
|
"label-space",
|
|
1966
2037
|
"search_config",
|
|
1967
2038
|
"value-key"
|
|
1968
|
-
])) :
|
|
1969
|
-
e.field.type === "remotecascaderpro" ? (
|
|
2039
|
+
])) : M("", !0),
|
|
2040
|
+
e.field.type === "remotecascaderpro" ? (H(), j(E, {
|
|
1970
2041
|
key: 21,
|
|
1971
2042
|
label: e.labelModel,
|
|
1972
2043
|
"onUpdate:label": t[23] ||= (t) => e.labelModel = t,
|
|
@@ -2013,8 +2084,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
2013
2084
|
"init_watch",
|
|
2014
2085
|
"is_form_design",
|
|
2015
2086
|
"placeholder"
|
|
2016
|
-
])) :
|
|
2017
|
-
e.field.type === "monthpicker" ? (
|
|
2087
|
+
])) : M("", !0),
|
|
2088
|
+
e.field.type === "monthpicker" ? (H(), j(D, {
|
|
2018
2089
|
key: 22,
|
|
2019
2090
|
value: e.model,
|
|
2020
2091
|
"onUpdate:value": t[25] ||= (t) => e.model = t,
|
|
@@ -2042,8 +2113,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
2042
2113
|
"start_offset_day",
|
|
2043
2114
|
"end_offset_day",
|
|
2044
2115
|
"fix_day"
|
|
2045
|
-
])) :
|
|
2046
|
-
e.field.type === "datepicker" ? (
|
|
2116
|
+
])) : M("", !0),
|
|
2117
|
+
e.field.type === "datepicker" ? (H(), j(ee, {
|
|
2047
2118
|
key: 23,
|
|
2048
2119
|
value: e.model,
|
|
2049
2120
|
"onUpdate:value": t[26] ||= (t) => e.model = t,
|
|
@@ -2069,8 +2140,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
2069
2140
|
"placeholder",
|
|
2070
2141
|
"show-time",
|
|
2071
2142
|
"value-format"
|
|
2072
|
-
])) :
|
|
2073
|
-
e.field.type === "rangepicker" ? (
|
|
2143
|
+
])) : M("", !0),
|
|
2144
|
+
e.field.type === "rangepicker" ? (H(), j(O, {
|
|
2074
2145
|
key: 24,
|
|
2075
2146
|
value: e.model,
|
|
2076
2147
|
"onUpdate:value": t[27] ||= (t) => e.model = t,
|
|
@@ -2094,8 +2165,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
2094
2165
|
"show-time",
|
|
2095
2166
|
"value-format",
|
|
2096
2167
|
"picker"
|
|
2097
|
-
])) :
|
|
2098
|
-
e.field.type === "monthrangepicker" ? (
|
|
2168
|
+
])) : M("", !0),
|
|
2169
|
+
e.field.type === "monthrangepicker" ? (H(), j(te, {
|
|
2099
2170
|
key: 25,
|
|
2100
2171
|
value: e.model,
|
|
2101
2172
|
"onUpdate:value": t[28] ||= (t) => e.model = t,
|
|
@@ -2121,8 +2192,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
2121
2192
|
"start_offset_day",
|
|
2122
2193
|
"end_offset_day",
|
|
2123
2194
|
"fix_day"
|
|
2124
|
-
])) :
|
|
2125
|
-
e.field.type === "timepicker" ? (
|
|
2195
|
+
])) : M("", !0),
|
|
2196
|
+
e.field.type === "timepicker" ? (H(), j(ne, {
|
|
2126
2197
|
key: 26,
|
|
2127
2198
|
value: e.model,
|
|
2128
2199
|
"onUpdate:value": t[29] ||= (t) => e.model = t,
|
|
@@ -2142,8 +2213,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
2142
2213
|
"format",
|
|
2143
2214
|
"placeholder",
|
|
2144
2215
|
"value-format"
|
|
2145
|
-
])) :
|
|
2146
|
-
e.field.type === "timerangepicker" ? (
|
|
2216
|
+
])) : M("", !0),
|
|
2217
|
+
e.field.type === "timerangepicker" ? (H(), j(re, {
|
|
2147
2218
|
key: 27,
|
|
2148
2219
|
value: e.model,
|
|
2149
2220
|
"onUpdate:value": t[30] ||= (t) => e.model = t,
|
|
@@ -2163,8 +2234,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
2163
2234
|
"format",
|
|
2164
2235
|
"placeholder",
|
|
2165
2236
|
"value-format"
|
|
2166
|
-
])) :
|
|
2167
|
-
e.field.type === "radio" ? (
|
|
2237
|
+
])) : M("", !0),
|
|
2238
|
+
e.field.type === "radio" ? (H(), j(R, {
|
|
2168
2239
|
key: 28,
|
|
2169
2240
|
value: e.model,
|
|
2170
2241
|
"onUpdate:value": t[31] ||= (t) => e.model = t,
|
|
@@ -2172,12 +2243,12 @@ function lt(e, t, n, r, i, a) {
|
|
|
2172
2243
|
disabled: e.field.disabled,
|
|
2173
2244
|
size: "small"
|
|
2174
2245
|
}, {
|
|
2175
|
-
default:
|
|
2246
|
+
default: X(() => [(H(!0), N(k, null, G(e.options, (t) => (H(), j(A, {
|
|
2176
2247
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2177
2248
|
disabled: t.disabled,
|
|
2178
2249
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2179
2250
|
}, {
|
|
2180
|
-
default:
|
|
2251
|
+
default: X(() => [I(J(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
2181
2252
|
_: 2
|
|
2182
2253
|
}, 1032, ["disabled", "value"]))), 128))]),
|
|
2183
2254
|
_: 1
|
|
@@ -2185,8 +2256,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
2185
2256
|
"value",
|
|
2186
2257
|
"default-value",
|
|
2187
2258
|
"disabled"
|
|
2188
|
-
])) :
|
|
2189
|
-
e.field.type === "checkbox" ? (
|
|
2259
|
+
])) : M("", !0),
|
|
2260
|
+
e.field.type === "checkbox" ? (H(), j(ie, {
|
|
2190
2261
|
key: 29,
|
|
2191
2262
|
value: e.model,
|
|
2192
2263
|
"onUpdate:value": t[32] ||= (t) => e.model = t,
|
|
@@ -2194,12 +2265,12 @@ function lt(e, t, n, r, i, a) {
|
|
|
2194
2265
|
disabled: e.field.disabled,
|
|
2195
2266
|
size: "small"
|
|
2196
2267
|
}, {
|
|
2197
|
-
default:
|
|
2268
|
+
default: X(() => [(H(!0), N(k, null, G(e.options, (t) => (H(), j(z, {
|
|
2198
2269
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2199
2270
|
disabled: t.disabled,
|
|
2200
2271
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2201
2272
|
}, {
|
|
2202
|
-
default:
|
|
2273
|
+
default: X(() => [I(J(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
2203
2274
|
_: 2
|
|
2204
2275
|
}, 1032, ["disabled", "value"]))), 128))]),
|
|
2205
2276
|
_: 1
|
|
@@ -2207,8 +2278,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
2207
2278
|
"value",
|
|
2208
2279
|
"default-value",
|
|
2209
2280
|
"disabled"
|
|
2210
|
-
])) :
|
|
2211
|
-
e.field.type === "treeselect" ? (
|
|
2281
|
+
])) : M("", !0),
|
|
2282
|
+
e.field.type === "treeselect" ? (H(), j(ae, {
|
|
2212
2283
|
key: 30,
|
|
2213
2284
|
value: e.model,
|
|
2214
2285
|
"onUpdate:value": t[33] ||= (t) => e.model = t,
|
|
@@ -2234,8 +2305,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
2234
2305
|
"tree-data",
|
|
2235
2306
|
"tree-label-prop",
|
|
2236
2307
|
"tree-node-filter-prop"
|
|
2237
|
-
])) :
|
|
2238
|
-
e.field.type === "remotefilterselect" ? (
|
|
2308
|
+
])) : M("", !0),
|
|
2309
|
+
e.field.type === "remotefilterselect" ? (H(), j(se, {
|
|
2239
2310
|
key: 31,
|
|
2240
2311
|
label: e.labelModel,
|
|
2241
2312
|
"onUpdate:label": t[34] ||= (t) => e.labelModel = t,
|
|
@@ -2262,8 +2333,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
2262
2333
|
"label-space",
|
|
2263
2334
|
"search_config",
|
|
2264
2335
|
"value-key"
|
|
2265
|
-
])) :
|
|
2266
|
-
e.field.type === "remoteselect" ? (
|
|
2336
|
+
])) : M("", !0),
|
|
2337
|
+
e.field.type === "remoteselect" ? (H(), j(B, {
|
|
2267
2338
|
key: 32,
|
|
2268
2339
|
label: e.labelModel,
|
|
2269
2340
|
"onUpdate:label": t[36] ||= (t) => e.labelModel = t,
|
|
@@ -2290,8 +2361,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
2290
2361
|
"label-space",
|
|
2291
2362
|
"search_config",
|
|
2292
2363
|
"value-key"
|
|
2293
|
-
])) :
|
|
2294
|
-
e.field.type === "remoteselectpro" ? (
|
|
2364
|
+
])) : M("", !0),
|
|
2365
|
+
e.field.type === "remoteselectpro" ? (H(), j(V, {
|
|
2295
2366
|
key: 33,
|
|
2296
2367
|
label: e.labelModel,
|
|
2297
2368
|
"onUpdate:label": t[38] ||= (t) => e.labelModel = t,
|
|
@@ -2338,8 +2409,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
2338
2409
|
"context",
|
|
2339
2410
|
"base-key-path",
|
|
2340
2411
|
"placeholder"
|
|
2341
|
-
])) :
|
|
2342
|
-
e.field.type === "remotecomplete" ? (
|
|
2412
|
+
])) : M("", !0),
|
|
2413
|
+
e.field.type === "remotecomplete" ? (H(), j(U, {
|
|
2343
2414
|
key: 34,
|
|
2344
2415
|
value: e.model,
|
|
2345
2416
|
"onUpdate:value": t[40] ||= (t) => e.model = t,
|
|
@@ -2377,8 +2448,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
2377
2448
|
"is_input",
|
|
2378
2449
|
"is_form_design",
|
|
2379
2450
|
"placeholder"
|
|
2380
|
-
])) :
|
|
2381
|
-
e.field.type === "remotetreeselect" ? (
|
|
2451
|
+
])) : M("", !0),
|
|
2452
|
+
e.field.type === "remotetreeselect" ? (H(), j(W, {
|
|
2382
2453
|
key: 35,
|
|
2383
2454
|
label: e.labelModel,
|
|
2384
2455
|
"onUpdate:label": t[41] ||= (t) => e.labelModel = t,
|
|
@@ -2405,8 +2476,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
2405
2476
|
"label-key",
|
|
2406
2477
|
"search_config",
|
|
2407
2478
|
"value-key"
|
|
2408
|
-
])) :
|
|
2409
|
-
e.field.type === "remotetreeselectpro" ? (
|
|
2479
|
+
])) : M("", !0),
|
|
2480
|
+
e.field.type === "remotetreeselectpro" ? (H(), j(ue, {
|
|
2410
2481
|
key: 36,
|
|
2411
2482
|
label: e.labelModel,
|
|
2412
2483
|
"onUpdate:label": t[43] ||= (t) => e.labelModel = t,
|
|
@@ -2451,8 +2522,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
2451
2522
|
"init_watch",
|
|
2452
2523
|
"is_form_design",
|
|
2453
2524
|
"placeholder"
|
|
2454
|
-
])) :
|
|
2455
|
-
e.field.type === "remotemodal" ? (
|
|
2525
|
+
])) : M("", !0),
|
|
2526
|
+
e.field.type === "remotemodal" ? (H(), j(de, {
|
|
2456
2527
|
key: 37,
|
|
2457
2528
|
label: e.labelModel,
|
|
2458
2529
|
"onUpdate:label": t[45] ||= (t) => e.labelModel = t,
|
|
@@ -2477,8 +2548,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
2477
2548
|
"modalType",
|
|
2478
2549
|
"search_config",
|
|
2479
2550
|
"watch"
|
|
2480
|
-
])) :
|
|
2481
|
-
e.field.type === "remotetable" ? (
|
|
2551
|
+
])) : M("", !0),
|
|
2552
|
+
e.field.type === "remotetable" ? (H(), j(fe, {
|
|
2482
2553
|
key: 38,
|
|
2483
2554
|
value: e.model,
|
|
2484
2555
|
"onUpdate:value": t[47] ||= (t) => e.model = t,
|
|
@@ -2506,8 +2577,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
2506
2577
|
"watch",
|
|
2507
2578
|
"base-key-path",
|
|
2508
2579
|
"worker-host-functions"
|
|
2509
|
-
])) :
|
|
2510
|
-
e.field.type === "remotetablepro" && !e.self_is_edit ? (
|
|
2580
|
+
])) : M("", !0),
|
|
2581
|
+
e.field.type === "remotetablepro" && !e.self_is_edit ? (H(), j(Y, {
|
|
2511
2582
|
key: 39,
|
|
2512
2583
|
value: e.model,
|
|
2513
2584
|
"onUpdate:value": t[48] ||= (t) => e.model = t,
|
|
@@ -2541,8 +2612,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
2541
2612
|
"global-inner-model",
|
|
2542
2613
|
"base-key-path",
|
|
2543
2614
|
"worker-host-functions"
|
|
2544
|
-
])) :
|
|
2545
|
-
e.field.type === "formtemplate" ? (
|
|
2615
|
+
])) : M("", !0),
|
|
2616
|
+
e.field.type === "formtemplate" ? (H(), j(pe, {
|
|
2546
2617
|
key: 40,
|
|
2547
2618
|
value: e.model,
|
|
2548
2619
|
"onUpdate:value": t[49] ||= (t) => e.model = t,
|
|
@@ -2586,8 +2657,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
2586
2657
|
"base-key-path",
|
|
2587
2658
|
"worker-host-functions",
|
|
2588
2659
|
"contextOptions"
|
|
2589
|
-
])) :
|
|
2590
|
-
e.field.type === "dynamicvaluefield" ? (
|
|
2660
|
+
])) : M("", !0),
|
|
2661
|
+
e.field.type === "dynamicvaluefield" ? (H(), j(me, {
|
|
2591
2662
|
key: 41,
|
|
2592
2663
|
value: e.model,
|
|
2593
2664
|
"onUpdate:value": t[50] ||= (t) => e.model = t,
|
|
@@ -2625,8 +2696,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
2625
2696
|
"context",
|
|
2626
2697
|
"base-key-path",
|
|
2627
2698
|
"worker-host-functions"
|
|
2628
|
-
])) :
|
|
2629
|
-
e.field.type === "remotetext" ? (
|
|
2699
|
+
])) : M("", !0),
|
|
2700
|
+
e.field.type === "remotetext" ? (H(), j(he, {
|
|
2630
2701
|
key: 42,
|
|
2631
2702
|
value: e.model,
|
|
2632
2703
|
"onUpdate:value": t[51] ||= (t) => e.model = t,
|
|
@@ -2648,8 +2719,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
2648
2719
|
"modalType",
|
|
2649
2720
|
"search_config",
|
|
2650
2721
|
"watch"
|
|
2651
|
-
])) :
|
|
2652
|
-
e.field.type === "upload" ? (
|
|
2722
|
+
])) : M("", !0),
|
|
2723
|
+
e.field.type === "upload" ? (H(), j(ge, {
|
|
2653
2724
|
key: 43,
|
|
2654
2725
|
value: e.model,
|
|
2655
2726
|
"onUpdate:value": t[52] ||= (t) => e.model = t,
|
|
@@ -2665,8 +2736,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
2665
2736
|
"listType",
|
|
2666
2737
|
"maxCount",
|
|
2667
2738
|
"acceptList"
|
|
2668
|
-
])) :
|
|
2669
|
-
e.field.type === "codeeditor" ? (
|
|
2739
|
+
])) : M("", !0),
|
|
2740
|
+
e.field.type === "codeeditor" ? (H(), j(_e, {
|
|
2670
2741
|
key: 44,
|
|
2671
2742
|
editorValue: e.model,
|
|
2672
2743
|
"onUpdate:editorValue": t[53] ||= (t) => e.model = t,
|
|
@@ -2678,8 +2749,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
2678
2749
|
"options",
|
|
2679
2750
|
"mode",
|
|
2680
2751
|
"lineWrapping"
|
|
2681
|
-
])) :
|
|
2682
|
-
e.field.type === "tinymceeditor" ? (
|
|
2752
|
+
])) : M("", !0),
|
|
2753
|
+
e.field.type === "tinymceeditor" ? (H(), j(Z, {
|
|
2683
2754
|
key: 45,
|
|
2684
2755
|
modelValue: e.model,
|
|
2685
2756
|
"onUpdate:modelValue": t[54] ||= (t) => e.model = t,
|
|
@@ -2689,14 +2760,14 @@ function lt(e, t, n, r, i, a) {
|
|
|
2689
2760
|
"modelValue",
|
|
2690
2761
|
"options",
|
|
2691
2762
|
"mode"
|
|
2692
|
-
])) :
|
|
2693
|
-
e.field.type === "iconselect" ? (
|
|
2763
|
+
])) : M("", !0),
|
|
2764
|
+
e.field.type === "iconselect" ? (H(), j(ve, {
|
|
2694
2765
|
key: 46,
|
|
2695
2766
|
value: e.model,
|
|
2696
2767
|
"onUpdate:value": t[55] ||= (t) => e.model = t,
|
|
2697
2768
|
placeholder: e.field.placeholder_i18n == null ? e.field.placeholder ? e.field.placeholder : e.$t("请选择") + e.field.label : e.t(e.field.placeholder_i18n)
|
|
2698
|
-
}, null, 8, ["value", "placeholder"])) :
|
|
2699
|
-
e.field.type === "rate" ? (
|
|
2769
|
+
}, null, 8, ["value", "placeholder"])) : M("", !0),
|
|
2770
|
+
e.field.type === "rate" ? (H(), j(u, {
|
|
2700
2771
|
key: 47,
|
|
2701
2772
|
value: e.model,
|
|
2702
2773
|
"onUpdate:value": t[56] ||= (t) => e.model = t,
|
|
@@ -2706,8 +2777,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
2706
2777
|
"value",
|
|
2707
2778
|
"count",
|
|
2708
2779
|
"allow-half"
|
|
2709
|
-
])) :
|
|
2710
|
-
e.field.type === "radio-color" ? (
|
|
2780
|
+
])) : M("", !0),
|
|
2781
|
+
e.field.type === "radio-color" ? (H(), j(R, {
|
|
2711
2782
|
key: 48,
|
|
2712
2783
|
value: e.model,
|
|
2713
2784
|
"onUpdate:value": t[57] ||= (t) => e.model = t,
|
|
@@ -2715,12 +2786,12 @@ function lt(e, t, n, r, i, a) {
|
|
|
2715
2786
|
disabled: e.field.disabled,
|
|
2716
2787
|
size: "small"
|
|
2717
2788
|
}, {
|
|
2718
|
-
default:
|
|
2789
|
+
default: X(() => [(H(!0), N(k, null, G(e.options, (t) => (H(), j(A, {
|
|
2719
2790
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2720
2791
|
disabled: t.disabled,
|
|
2721
2792
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2722
2793
|
}, {
|
|
2723
|
-
default:
|
|
2794
|
+
default: X(() => [P("div", { style: ce({
|
|
2724
2795
|
width: "20px",
|
|
2725
2796
|
height: "20px",
|
|
2726
2797
|
backgroundColor: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
@@ -2732,8 +2803,8 @@ function lt(e, t, n, r, i, a) {
|
|
|
2732
2803
|
"value",
|
|
2733
2804
|
"default-value",
|
|
2734
2805
|
"disabled"
|
|
2735
|
-
])) :
|
|
2736
|
-
e.field.type?.startsWith("CustomField") ? (
|
|
2806
|
+
])) : M("", !0),
|
|
2807
|
+
e.field.type?.startsWith("CustomField") ? (H(), j(q(e.field.type), {
|
|
2737
2808
|
key: 49,
|
|
2738
2809
|
label: e.labelModel,
|
|
2739
2810
|
"onUpdate:label": t[58] ||= (t) => e.labelModel = t,
|
|
@@ -2758,14 +2829,14 @@ function lt(e, t, n, r, i, a) {
|
|
|
2758
2829
|
"init_watch",
|
|
2759
2830
|
"is_form_design",
|
|
2760
2831
|
"placeholder"
|
|
2761
|
-
])) :
|
|
2832
|
+
])) : M("", !0)
|
|
2762
2833
|
]),
|
|
2763
2834
|
_: 2
|
|
2764
2835
|
}, [e.is_show_label ? {
|
|
2765
2836
|
name: "label",
|
|
2766
|
-
fn:
|
|
2767
|
-
|
|
2768
|
-
e.is_show_edit ? (
|
|
2837
|
+
fn: X(() => [
|
|
2838
|
+
I(J(e.is_show_label ? e.field.label_i18n == null ? e.field.label : e.t(e.field.label_i18n) : null) + " ", 1),
|
|
2839
|
+
e.is_show_edit ? (H(), j(o, {
|
|
2769
2840
|
key: 0,
|
|
2770
2841
|
checked: e.self_is_edit,
|
|
2771
2842
|
"onUpdate:checked": t[0] ||= (t) => e.self_is_edit = t,
|
|
@@ -2773,28 +2844,28 @@ function lt(e, t, n, r, i, a) {
|
|
|
2773
2844
|
onChange: e.handleToggleEdit,
|
|
2774
2845
|
"checked-children": "表单",
|
|
2775
2846
|
"un-checked-children": "列表"
|
|
2776
|
-
}, null, 8, ["checked", "onChange"])) :
|
|
2777
|
-
e.is_show_edit && e.self_is_edit ? (
|
|
2847
|
+
}, null, 8, ["checked", "onChange"])) : M("", !0),
|
|
2848
|
+
e.is_show_edit && e.self_is_edit ? (H(), j(c, {
|
|
2778
2849
|
key: 1,
|
|
2779
2850
|
size: "small",
|
|
2780
2851
|
type: "primary",
|
|
2781
2852
|
onClick: e.handleAdd
|
|
2782
2853
|
}, {
|
|
2783
|
-
icon:
|
|
2784
|
-
default:
|
|
2854
|
+
icon: X(() => [L(s)]),
|
|
2855
|
+
default: X(() => [t[61] ||= I(" 添加分组 ")]),
|
|
2785
2856
|
_: 1
|
|
2786
|
-
}, 8, ["onClick"])) :
|
|
2857
|
+
}, 8, ["onClick"])) : M("", !0)
|
|
2787
2858
|
]),
|
|
2788
2859
|
key: "0"
|
|
2789
|
-
} : void 0]), 1040, ["extra", "name"])) :
|
|
2790
|
-
e.field.type === "divider" ? (
|
|
2860
|
+
} : void 0]), 1040, ["extra", "name"])) : M("", !0),
|
|
2861
|
+
e.field.type === "divider" ? (H(), j(be, {
|
|
2791
2862
|
key: 1,
|
|
2792
2863
|
orientation: e.field.orientation
|
|
2793
2864
|
}, {
|
|
2794
|
-
default:
|
|
2865
|
+
default: X(() => [I(J(e.field.label), 1)]),
|
|
2795
2866
|
_: 1
|
|
2796
|
-
}, 8, ["orientation"])) :
|
|
2797
|
-
e.field.type === "button" ? (
|
|
2867
|
+
}, 8, ["orientation"])) : M("", !0),
|
|
2868
|
+
e.field.type === "button" ? (H(), j(xe, {
|
|
2798
2869
|
key: 2,
|
|
2799
2870
|
value: e.model,
|
|
2800
2871
|
"onUpdate:value": t[60] ||= (t) => e.model = t,
|
|
@@ -2816,9 +2887,9 @@ function lt(e, t, n, r, i, a) {
|
|
|
2816
2887
|
"context",
|
|
2817
2888
|
"base-key-path",
|
|
2818
2889
|
"worker-host-functions"
|
|
2819
|
-
])) :
|
|
2890
|
+
])) : M("", !0)
|
|
2820
2891
|
], 64);
|
|
2821
2892
|
}
|
|
2822
|
-
var
|
|
2893
|
+
var ft = /*#__PURE__*/ t(it, [["render", dt], ["__scopeId", "data-v-4d903c12"]]);
|
|
2823
2894
|
//#endregion
|
|
2824
|
-
export {
|
|
2895
|
+
export { ft as t };
|