liyu-pc-base 1.0.767 → 1.0.770
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-COd6A2I1.js → FieldRender2-IMoy36wn.js} +328 -325
- package/dist/FieldRender2-IMoy36wn.js.map +1 -0
- package/dist/{FormRender3-tJm5mOwN.js → FormRender3-StDadmB_.js} +1 -1
- package/dist/{FormRender3-tJm5mOwN.js.map → FormRender3-StDadmB_.js.map} +1 -1
- package/dist/{SearchRender-DVqwM0O0.js → SearchRender-DgcfIDr1.js} +1 -1
- package/dist/{SearchRender-DVqwM0O0.js.map → SearchRender-DgcfIDr1.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-COd6A2I1.js.map +0 -1
|
@@ -15,16 +15,16 @@ import { t as y } from "./RemoteText-BVqSMfSl.js";
|
|
|
15
15
|
import { t as b } from "./modal-tools-CrXdI5sg.js";
|
|
16
16
|
import { resolveContextValue as x } from "./components/FormRender/utils.js";
|
|
17
17
|
import { exportJsonToExcelByTokenHeader as ee } from "./utils/excel.js";
|
|
18
|
-
import { a as S, c as te, d as C, f as w, i as T, l as ne, n as E, o as D, r as
|
|
19
|
-
import { Fragment as
|
|
20
|
-
import { Modal as
|
|
21
|
-
import { debounce as
|
|
18
|
+
import { a as S, c as te, d as C, f as w, i as T, l as ne, n as E, o as D, r as O, s as re, t as k, u as ie } from "./TinymceEditor-VlIMhy_4.js";
|
|
19
|
+
import { Fragment as A, computed as j, createBlock as M, createCommentVNode as N, createElementBlock as P, createElementVNode as F, createSlots as I, createTextVNode as L, createVNode as R, defineAsyncComponent as ae, defineComponent as z, h as oe, mergeModels as se, mergeProps as ce, normalizeClass as le, normalizeStyle as ue, onMounted as B, onUnmounted as V, openBlock as H, reactive as U, ref as W, renderList as G, renderSlot as de, resolveComponent as K, resolveDynamicComponent as q, toDisplayString as J, unref as fe, useModel as pe, vShow as me, watch as Y, withCtx as X, withDirectives as he } from "vue";
|
|
20
|
+
import { Modal as ge, message as _e } from "ant-design-vue";
|
|
21
|
+
import { debounce as ve, isArray as ye } from "lodash-es";
|
|
22
22
|
import Z from "moment";
|
|
23
|
-
import { ExclamationCircleOutlined as
|
|
24
|
-
import { useI18n as
|
|
25
|
-
import
|
|
23
|
+
import { ExclamationCircleOutlined as be, PlusOutlined as xe } from "@ant-design/icons-vue";
|
|
24
|
+
import { useI18n as Se } from "vue-i18n";
|
|
25
|
+
import Ce from "mitt";
|
|
26
26
|
//#region src/components/FormRender/FormTemplate/FormItem.vue?vue&type=script&lang.ts
|
|
27
|
-
var
|
|
27
|
+
var we = z({
|
|
28
28
|
name: "FormTemplate",
|
|
29
29
|
components: {},
|
|
30
30
|
props: {
|
|
@@ -82,7 +82,7 @@ var Te = R({
|
|
|
82
82
|
},
|
|
83
83
|
emits: ["update:value", "remove"],
|
|
84
84
|
setup(e, { emit: t }) {
|
|
85
|
-
let n = U({ ...e.field.form.rules }), r = W({}), i =
|
|
85
|
+
let n = U({ ...e.field.form.rules }), r = W({}), i = ae(() => import("./FormRender3-StDadmB_.js").then((e) => e.n)), a, o = () => {
|
|
86
86
|
let e = /* @__PURE__ */ new Uint8Array(16);
|
|
87
87
|
return window.crypto.getRandomValues(e), Array.from(e, (e) => e.toString(16).padStart(2, "0")).join("");
|
|
88
88
|
}, s = W([]), c = o(), u = ([t, i]) => {
|
|
@@ -114,13 +114,13 @@ var Te = R({
|
|
|
114
114
|
data() {
|
|
115
115
|
return { model: this.value };
|
|
116
116
|
}
|
|
117
|
-
}),
|
|
117
|
+
}), Te = { class: "form-wrap" }, Ee = { class: "form-content" }, De = {
|
|
118
118
|
key: 0,
|
|
119
119
|
class: "form-action"
|
|
120
120
|
};
|
|
121
|
-
function
|
|
121
|
+
function Oe(e, t, n, r, i, a) {
|
|
122
122
|
let o = K("DeleteOutlined"), s = K("a-button");
|
|
123
|
-
return H(),
|
|
123
|
+
return H(), P("div", Te, [F("div", Ee, [(H(), M(q(e.FormRender3Async), {
|
|
124
124
|
form: e.field.form,
|
|
125
125
|
model: e.value,
|
|
126
126
|
"onUpdate:model": t[0] ||= (t) => e.value = t,
|
|
@@ -151,18 +151,18 @@ function ke(e, t, n, r, i, a) {
|
|
|
151
151
|
"modalType",
|
|
152
152
|
"base-key-path",
|
|
153
153
|
"worker-host-functions"
|
|
154
|
-
]))]), e.field.max_count === e.min_count ?
|
|
154
|
+
]))]), e.field.max_count === e.min_count ? N("", !0) : (H(), P("div", De, [R(s, {
|
|
155
155
|
onClick: e.removeFormItem,
|
|
156
156
|
size: "small",
|
|
157
157
|
type: "link",
|
|
158
158
|
danger: "",
|
|
159
159
|
disabled: e.listLength <= e.min_count
|
|
160
160
|
}, {
|
|
161
|
-
icon: X(() => [
|
|
161
|
+
icon: X(() => [R(o)]),
|
|
162
162
|
_: 1
|
|
163
163
|
}, 8, ["onClick", "disabled"])]))]);
|
|
164
164
|
}
|
|
165
|
-
var
|
|
165
|
+
var ke = /*#__PURE__*/ t(we, [["render", Oe], ["__scopeId", "data-v-d6626b20"]]), Ae = { key: 1 }, je = /*#__PURE__*/ t(/* @__PURE__ */ z({
|
|
166
166
|
__name: "TableCell",
|
|
167
167
|
props: {
|
|
168
168
|
field: {
|
|
@@ -214,18 +214,18 @@ var Ae = /*#__PURE__*/ t(Te, [["render", ke], ["__scopeId", "data-v-d6626b20"]])
|
|
|
214
214
|
r("update_model", e);
|
|
215
215
|
}, o = (e) => {
|
|
216
216
|
r("update_name2", e);
|
|
217
|
-
}, s =
|
|
217
|
+
}, s = j(() => i.value && !n.field.disabled && n.field.type !== "dynamicvaluefield");
|
|
218
218
|
return (t, n) => {
|
|
219
219
|
let r = K("a-form");
|
|
220
|
-
return H(),
|
|
220
|
+
return H(), M(r, {
|
|
221
221
|
model: e.model,
|
|
222
222
|
layout: "inline",
|
|
223
223
|
class: "table-cell-form"
|
|
224
224
|
}, {
|
|
225
|
-
default: X(() => [
|
|
225
|
+
default: X(() => [he(F("div", { class: le(["field-cell-item", {
|
|
226
226
|
editable: s.value,
|
|
227
227
|
"item-required": e.has_reqrired
|
|
228
|
-
}]) }, [e.field.type === "dynamicvaluefield" ? (H(),
|
|
228
|
+
}]) }, [e.field.type === "dynamicvaluefield" ? (H(), P("span", Ae, J(e.model[e.field.name]), 1)) : (H(), M(St, {
|
|
229
229
|
is_show_label: !1,
|
|
230
230
|
value: e.model[e.field.name],
|
|
231
231
|
"onUpdate:value": n[0] ||= (t) => e.model[e.field.name] = t,
|
|
@@ -262,12 +262,12 @@ var Ae = /*#__PURE__*/ t(Te, [["render", ke], ["__scopeId", "data-v-d6626b20"]])
|
|
|
262
262
|
"base-key-path",
|
|
263
263
|
"worker-host-functions",
|
|
264
264
|
"is_form_design"
|
|
265
|
-
]))], 2), [[
|
|
265
|
+
]))], 2), [[me, i.value]])]),
|
|
266
266
|
_: 1
|
|
267
267
|
}, 8, ["model"]);
|
|
268
268
|
};
|
|
269
269
|
}
|
|
270
|
-
}), [["__scopeId", "data-v-00188241"]]),
|
|
270
|
+
}), [["__scopeId", "data-v-00188241"]]), Me = { key: 0 }, Ne = { key: 1 }, Pe = /* @__PURE__ */ z({
|
|
271
271
|
__name: "TableSummary",
|
|
272
272
|
props: {
|
|
273
273
|
summaryParams: {
|
|
@@ -280,7 +280,7 @@ var Ae = /*#__PURE__*/ t(Te, [["render", ke], ["__scopeId", "data-v-d6626b20"]])
|
|
|
280
280
|
}
|
|
281
281
|
},
|
|
282
282
|
setup(e) {
|
|
283
|
-
let t = e, n =
|
|
283
|
+
let t = e, n = j(() => {
|
|
284
284
|
let e = 0;
|
|
285
285
|
for (let n of t.tableDataSource) {
|
|
286
286
|
let r = n[t.summaryParams.column.dataIndex];
|
|
@@ -303,22 +303,22 @@ var Ae = /*#__PURE__*/ t(Te, [["render", ke], ["__scopeId", "data-v-d6626b20"]])
|
|
|
303
303
|
return parseFloat((e + t).toFixed(n));
|
|
304
304
|
}
|
|
305
305
|
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);
|
|
306
|
-
return (t, r) => (H(),
|
|
307
|
-
e.summaryParams?.column?.field?.addonBefore ? (H(),
|
|
308
|
-
|
|
309
|
-
e.summaryParams?.column?.field?.addonAfter ? (H(),
|
|
306
|
+
return (t, r) => (H(), P(A, null, [
|
|
307
|
+
e.summaryParams?.column?.field?.addonBefore ? (H(), P("span", Me, J(e.summaryParams.column.field.addonBefore), 1)) : N("", !0),
|
|
308
|
+
L(" " + J(n.value) + " ", 1),
|
|
309
|
+
e.summaryParams?.column?.field?.addonAfter ? (H(), P("span", Ne, J(e.summaryParams.column.field.addonAfter), 1)) : N("", !0)
|
|
310
310
|
], 64));
|
|
311
311
|
}
|
|
312
|
-
}),
|
|
312
|
+
}), Fe = {
|
|
313
313
|
key: 0,
|
|
314
314
|
class: "required-star"
|
|
315
|
-
},
|
|
315
|
+
}, Ie = {
|
|
316
316
|
key: 0,
|
|
317
317
|
class: "cell-item"
|
|
318
|
-
},
|
|
318
|
+
}, Le = {
|
|
319
319
|
key: 1,
|
|
320
320
|
class: "cell-item"
|
|
321
|
-
},
|
|
321
|
+
}, Re = /*#__PURE__*/ t(/* @__PURE__ */ z({
|
|
322
322
|
__name: "FormTemplateTable",
|
|
323
323
|
props: {
|
|
324
324
|
value: {},
|
|
@@ -377,12 +377,12 @@ var Ae = /*#__PURE__*/ t(Te, [["render", ke], ["__scopeId", "data-v-d6626b20"]])
|
|
|
377
377
|
}), V(() => {
|
|
378
378
|
r.nestValidate && delete r.nestValidate[d];
|
|
379
379
|
});
|
|
380
|
-
let h =
|
|
380
|
+
let h = j(() => {
|
|
381
381
|
let e = 0;
|
|
382
382
|
return f.value.forEach((t) => {
|
|
383
383
|
e += t._width || 150;
|
|
384
384
|
}), e;
|
|
385
|
-
}), g =
|
|
385
|
+
}), g = j(() => (r.value || []).map((e, t) => ({
|
|
386
386
|
...e,
|
|
387
387
|
_key: t
|
|
388
388
|
}))), _ = (e) => {
|
|
@@ -449,24 +449,24 @@ var Ae = /*#__PURE__*/ t(Te, [["render", ke], ["__scopeId", "data-v-d6626b20"]])
|
|
|
449
449
|
f.value = e;
|
|
450
450
|
}, y = (e) => {
|
|
451
451
|
u.value.splice(e, 1), i("remove", e);
|
|
452
|
-
}, b =
|
|
452
|
+
}, b = j(() => {
|
|
453
453
|
if (r.innerModel) {
|
|
454
454
|
let e = r.innerModel[r.field.name] || [];
|
|
455
455
|
return (r.value || []).map((t, n) => e[n] || {});
|
|
456
456
|
}
|
|
457
457
|
return [];
|
|
458
|
-
}), x =
|
|
458
|
+
}), x = j(() => {
|
|
459
459
|
let e = [], t = 0;
|
|
460
460
|
for (let n of f.value) n.is_summary && e.push({ index: t }), t++;
|
|
461
461
|
return e;
|
|
462
462
|
});
|
|
463
463
|
return (e, t) => {
|
|
464
464
|
let r = K("DeleteOutlined"), i = K("a-button"), a = K("s-table-summary-cell"), s = K("s-table-summary-row"), c = K("s-table");
|
|
465
|
-
return H(),
|
|
465
|
+
return H(), M(C, {
|
|
466
466
|
"dynamic-title": e.field.dynamicTitle,
|
|
467
467
|
"onUpdate:dynamicTitle": t[1] ||= (t) => e.field.dynamicTitle = t
|
|
468
468
|
}, {
|
|
469
|
-
default: X(() => [(H(),
|
|
469
|
+
default: X(() => [(H(), M(c, {
|
|
470
470
|
dataSource: g.value,
|
|
471
471
|
columns: f.value,
|
|
472
472
|
autoRowHeight: !0,
|
|
@@ -480,18 +480,18 @@ var Ae = /*#__PURE__*/ t(Te, [["render", ke], ["__scopeId", "data-v-d6626b20"]])
|
|
|
480
480
|
pagination: n.value,
|
|
481
481
|
"onUpdate:pagination": t[0] ||= (e) => n.value = e,
|
|
482
482
|
rangeSelection: !1
|
|
483
|
-
},
|
|
484
|
-
headerCell: X(({ column: e }) => [
|
|
485
|
-
bodyCell: X(({ column: t, record: n }) => [t.key === "action" ? (H(),
|
|
483
|
+
}, I({
|
|
484
|
+
headerCell: X(({ column: e }) => [F("span", null, J(e.title), 1), e.has_reqrired ? (H(), P("span", Fe, " * ")) : N("", !0)]),
|
|
485
|
+
bodyCell: X(({ column: t, record: n }) => [t.key === "action" ? (H(), P("div", Ie, [R(i, {
|
|
486
486
|
onClick: (e) => y(n._key),
|
|
487
487
|
size: "small",
|
|
488
488
|
type: "link",
|
|
489
489
|
danger: "",
|
|
490
490
|
disabled: e.value.length <= e.min_count
|
|
491
491
|
}, {
|
|
492
|
-
icon: X(() => [
|
|
492
|
+
icon: X(() => [R(r)]),
|
|
493
493
|
_: 2
|
|
494
|
-
}, 1032, ["onClick", "disabled"])])) : t.key === "index" ? (H(),
|
|
494
|
+
}, 1032, ["onClick", "disabled"])])) : t.key === "index" ? (H(), P("div", Le, J(n._key + 1), 1)) : t.field ? (H(), M(je, {
|
|
495
495
|
key: `${n._key}_${t.dataIndex}`,
|
|
496
496
|
field: t.field,
|
|
497
497
|
model: e.value[n._key],
|
|
@@ -524,19 +524,19 @@ var Ae = /*#__PURE__*/ t(Te, [["render", ke], ["__scopeId", "data-v-d6626b20"]])
|
|
|
524
524
|
"is_form_design",
|
|
525
525
|
"has_reqrired",
|
|
526
526
|
"onUpdate_model"
|
|
527
|
-
])) :
|
|
527
|
+
])) : N("", !0)]),
|
|
528
528
|
_: 2
|
|
529
529
|
}, [x.value.length > 0 ? {
|
|
530
530
|
name: "summary",
|
|
531
|
-
fn: X(() => [
|
|
532
|
-
default: X(() => [
|
|
533
|
-
default: X(() => t[2] ||= [
|
|
531
|
+
fn: X(() => [R(s, null, {
|
|
532
|
+
default: X(() => [R(a, { index: 0 }, {
|
|
533
|
+
default: X(() => t[2] ||= [L("合计")]),
|
|
534
534
|
_: 1
|
|
535
|
-
}), (H(!0),
|
|
535
|
+
}), (H(!0), P(A, null, G(x.value, (e) => (H(), M(a, {
|
|
536
536
|
key: e.index,
|
|
537
537
|
index: e.index
|
|
538
538
|
}, {
|
|
539
|
-
default: X((e) => [
|
|
539
|
+
default: X((e) => [R(Pe, {
|
|
540
540
|
"summary-params": e,
|
|
541
541
|
tableDataSource: g.value
|
|
542
542
|
}, null, 8, ["summary-params", "tableDataSource"])]),
|
|
@@ -555,11 +555,11 @@ var Ae = /*#__PURE__*/ t(Te, [["render", ke], ["__scopeId", "data-v-d6626b20"]])
|
|
|
555
555
|
}, 8, ["dynamic-title"]);
|
|
556
556
|
};
|
|
557
557
|
}
|
|
558
|
-
}), [["__scopeId", "data-v-f3f0dcf2"]]),
|
|
559
|
-
function
|
|
558
|
+
}), [["__scopeId", "data-v-f3f0dcf2"]]), ze = /* @__PURE__ */ new Set();
|
|
559
|
+
function Be(e, t = []) {
|
|
560
560
|
return [...t, e.name || e.code || "field"].join("__");
|
|
561
561
|
}
|
|
562
|
-
async function
|
|
562
|
+
async function Ve(e) {
|
|
563
563
|
try {
|
|
564
564
|
let t = e.serialConfig || {};
|
|
565
565
|
return { value: await i({
|
|
@@ -575,7 +575,7 @@ async function He(e) {
|
|
|
575
575
|
};
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
|
-
async function
|
|
578
|
+
async function He(e) {
|
|
579
579
|
let { field: t, currentValue: n, innerModel: r, globalInnerModel: a, formModel: o, context: l, baseKeyPath: u = [], workerHostFunctions: d = {}, is_form_design: f = !1 } = e;
|
|
580
580
|
if (t.watchType === "scoped") {
|
|
581
581
|
if (t.valueType === "single") {
|
|
@@ -638,11 +638,11 @@ async function Ue(e) {
|
|
|
638
638
|
};
|
|
639
639
|
}
|
|
640
640
|
else if (t.watchType === "serial") {
|
|
641
|
-
if (f) return await
|
|
641
|
+
if (f) return await Ve(t);
|
|
642
642
|
if (n != null && n !== "") return null;
|
|
643
|
-
let e =
|
|
644
|
-
if (
|
|
645
|
-
|
|
643
|
+
let e = Be(t, u);
|
|
644
|
+
if (ze.has(e)) return null;
|
|
645
|
+
ze.add(e);
|
|
646
646
|
try {
|
|
647
647
|
let e = t.serialConfig || {}, r = await i({
|
|
648
648
|
org_id: s(),
|
|
@@ -656,14 +656,23 @@ async function Ue(e) {
|
|
|
656
656
|
error: e?.message || "流水号分配失败"
|
|
657
657
|
};
|
|
658
658
|
} finally {
|
|
659
|
-
|
|
659
|
+
ze.delete(e);
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
662
|
return null;
|
|
663
663
|
}
|
|
664
664
|
//#endregion
|
|
665
|
-
//#region src/components/FormRender/
|
|
666
|
-
var
|
|
665
|
+
//#region src/components/FormRender/addonValue.ts
|
|
666
|
+
var Ue = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, We = (e, t) => t && e.endsWith(t) ? e.slice(0, -t.length) : e, Ge = (e) => e != null && !(e instanceof Array) && typeof e != "object", Ke = (e, t) => {
|
|
667
|
+
if (!Ge(t)) return t;
|
|
668
|
+
let n = `${t}`;
|
|
669
|
+
return e?.extraAddonAfter && e?.addonAfter && (n = We(n, e.addonAfter)), e?.extraAddonBefore && e?.addonBefore && (n = Ue(n, e.addonBefore)), n;
|
|
670
|
+
}, qe = (e, t) => {
|
|
671
|
+
let n = Ke(e, t);
|
|
672
|
+
if (!Ge(n) || n === "") return n;
|
|
673
|
+
let r = `${n}`;
|
|
674
|
+
return e?.extraAddonBefore && e?.addonBefore && (r = `${e.addonBefore}${r}`), e?.extraAddonAfter && e?.addonAfter && (r = `${r}${e.addonAfter}`), r;
|
|
675
|
+
}, Q = r(), Je = { class: "top_btn" }, Ye = /*#__PURE__*/ t(/* @__PURE__ */ z({
|
|
667
676
|
__name: "FormTemplate",
|
|
668
677
|
props: {
|
|
669
678
|
field: {},
|
|
@@ -685,16 +694,16 @@ var Q = r(), We = { class: "top_btn" }, Ge = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
|
685
694
|
},
|
|
686
695
|
emits: ["update:value"],
|
|
687
696
|
setup(e, { emit: t }) {
|
|
688
|
-
let n = e, r = t, i = W(0), a =
|
|
697
|
+
let n = e, r = t, i = W(0), a = Ce(), o = [{
|
|
689
698
|
label: "添加(add)",
|
|
690
699
|
value: "add"
|
|
691
700
|
}, {
|
|
692
701
|
label: "整体更新(update)",
|
|
693
702
|
value: "update"
|
|
694
|
-
}], s =
|
|
695
|
-
|
|
703
|
+
}], s = ae(() => import("./ImportExcelModal-Dds857L2.js")), l = j(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("download"))), u = j(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("import"))), d = () => {
|
|
704
|
+
ge.confirm({
|
|
696
705
|
title: "确认清空吗?",
|
|
697
|
-
icon:
|
|
706
|
+
icon: R(be),
|
|
698
707
|
content: "清空后将无法恢复",
|
|
699
708
|
okText: "确认",
|
|
700
709
|
cancelText: "取消",
|
|
@@ -702,7 +711,7 @@ var Q = r(), We = { class: "top_btn" }, Ge = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
|
702
711
|
r("update:value", []);
|
|
703
712
|
}
|
|
704
713
|
});
|
|
705
|
-
}, f =
|
|
714
|
+
}, f = j(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("clear"))), p = j(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("add"))), m = {}, h = () => {
|
|
706
715
|
let e = [], t = n.field.form?.dynamicFieldList || [];
|
|
707
716
|
t.forEach((t) => {
|
|
708
717
|
t.children instanceof Array && t.children.forEach((t) => {
|
|
@@ -728,16 +737,16 @@ var Q = r(), We = { class: "top_btn" }, Ge = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
|
728
737
|
e.forEach((e) => {
|
|
729
738
|
let r = (0, Q.cloneDeep)(n.field.form.model || {});
|
|
730
739
|
Object.keys(e).forEach((t) => {
|
|
731
|
-
e[t].error && a.push(
|
|
740
|
+
e[t].error && a.push(oe("li", e[t].error + "(" + e[t].excel_position + ")")), r[t] = e[t].value, m[t] && (r[m[t]] = e[t].raw_value);
|
|
732
741
|
}), t?.length && t.forEach((e) => {
|
|
733
742
|
e.children instanceof Array && e.children.forEach((e) => {
|
|
734
743
|
e.type === "dynamicvaluefield" && delete r[e.name];
|
|
735
744
|
});
|
|
736
745
|
}), o.push(r);
|
|
737
|
-
}), a.length > 0 ?
|
|
746
|
+
}), a.length > 0 ? ge.warning({
|
|
738
747
|
title: "导入Excel报错, 请改正后再尝试导入",
|
|
739
|
-
content:
|
|
740
|
-
icon:
|
|
748
|
+
content: oe("ol", a),
|
|
749
|
+
icon: R(be)
|
|
741
750
|
}) : r("update:value", [...n.value || [], ...o]), i.open = !1;
|
|
742
751
|
},
|
|
743
752
|
onCancel: () => {
|
|
@@ -771,7 +780,7 @@ var Q = r(), We = { class: "top_btn" }, Ge = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
|
771
780
|
}), setTimeout(() => {
|
|
772
781
|
g.value = !1;
|
|
773
782
|
}, 1500);
|
|
774
|
-
}, y =
|
|
783
|
+
}, y = j(() => n.field.min_count ?? 0), x = j(() => {
|
|
775
784
|
if (n.innerModel) {
|
|
776
785
|
n.innerModel[n.field.name] || (n.innerModel[n.field.name] = []);
|
|
777
786
|
for (let e = 0; e < n.value.length; e++) n.innerModel[n.field.name][e] || (n.innerModel[n.field.name][e] = {});
|
|
@@ -788,7 +797,7 @@ var Q = r(), We = { class: "top_btn" }, Ge = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
|
788
797
|
keyPath: [...n.baseKeyPath, n.field.name]
|
|
789
798
|
}, n.workerHostFunctions || {});
|
|
790
799
|
} catch (e) {
|
|
791
|
-
|
|
800
|
+
_e.error(e.message);
|
|
792
801
|
return;
|
|
793
802
|
}
|
|
794
803
|
if (e.action == "add") {
|
|
@@ -842,16 +851,23 @@ var Q = r(), We = { class: "top_btn" }, Ge = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
|
842
851
|
r("update:value", t);
|
|
843
852
|
}
|
|
844
853
|
});
|
|
845
|
-
let E =
|
|
854
|
+
let E = j(() => {
|
|
846
855
|
let e = [];
|
|
847
856
|
return (n.field?.form?.dynamicFieldList || []).forEach((t) => {
|
|
848
857
|
t.children instanceof Array && t.children.forEach((t) => {
|
|
849
858
|
t.type === "dynamicvaluefield" && e.push(t);
|
|
850
859
|
});
|
|
851
860
|
}), e;
|
|
852
|
-
}), D = (
|
|
853
|
-
|
|
854
|
-
|
|
861
|
+
}), D = j(() => {
|
|
862
|
+
let e = [];
|
|
863
|
+
return (n.field?.form?.dynamicFieldList || []).forEach((t) => {
|
|
864
|
+
t.children instanceof Array && t.children.forEach((t) => {
|
|
865
|
+
(t.extraAddonBefore && t.addonBefore || t.extraAddonAfter && t.addonAfter) && e.push(t);
|
|
866
|
+
});
|
|
867
|
+
}), e;
|
|
868
|
+
}), O = W(!1), re = (0, Q.debounce)(async () => {
|
|
869
|
+
if (!O.value) {
|
|
870
|
+
O.value = !0;
|
|
855
871
|
try {
|
|
856
872
|
let e = n.value;
|
|
857
873
|
if (!e || e.length === 0 || E.value.length === 0) return;
|
|
@@ -863,7 +879,7 @@ var Q = r(), We = { class: "top_btn" }, Ge = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
|
863
879
|
e
|
|
864
880
|
];
|
|
865
881
|
for (let o of E.value) {
|
|
866
|
-
let s = i[e]?.[o.name], c = await
|
|
882
|
+
let s = i[e]?.[o.name], c = await He({
|
|
867
883
|
field: o,
|
|
868
884
|
currentValue: s,
|
|
869
885
|
innerModel: r,
|
|
@@ -882,9 +898,24 @@ var Q = r(), We = { class: "top_btn" }, Ge = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
|
882
898
|
}
|
|
883
899
|
t && r("update:value", i);
|
|
884
900
|
} finally {
|
|
885
|
-
|
|
901
|
+
O.value = !1;
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
}, 200), k = (0, Q.debounce)(() => {
|
|
905
|
+
let e = n.value;
|
|
906
|
+
if (!e || e.length === 0 || D.value.length === 0) return;
|
|
907
|
+
let t = !1, i = [...e];
|
|
908
|
+
for (let e = 0; e < i.length; e++) {
|
|
909
|
+
let n = i[e];
|
|
910
|
+
if (!n || typeof n != "object") continue;
|
|
911
|
+
let r = n;
|
|
912
|
+
for (let e of D.value) {
|
|
913
|
+
let i = r[e.name], a = qe(e, i);
|
|
914
|
+
a !== i && (r === n && (r = { ...n }), r[e.name] = a, t = !0);
|
|
886
915
|
}
|
|
916
|
+
i[e] = r;
|
|
887
917
|
}
|
|
918
|
+
t && r("update:value", i);
|
|
888
919
|
}, 200);
|
|
889
920
|
return Y(() => [
|
|
890
921
|
n.value,
|
|
@@ -893,7 +924,7 @@ var Q = r(), We = { class: "top_btn" }, Ge = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
|
893
924
|
n.context,
|
|
894
925
|
n.field
|
|
895
926
|
], () => {
|
|
896
|
-
|
|
927
|
+
re(), k();
|
|
897
928
|
}, {
|
|
898
929
|
deep: !0,
|
|
899
930
|
immediate: !0
|
|
@@ -904,61 +935,61 @@ var Q = r(), We = { class: "top_btn" }, Ge = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
|
904
935
|
r("update:value", e);
|
|
905
936
|
}
|
|
906
937
|
}), V(() => {
|
|
907
|
-
window.removeEventListener("resize", T);
|
|
938
|
+
window.removeEventListener("resize", T), T.cancel(), re.cancel(), k.cancel();
|
|
908
939
|
}), (e, t) => {
|
|
909
940
|
let n = K("a-button");
|
|
910
|
-
return H(),
|
|
911
|
-
e.is_form_design ? (H(),
|
|
941
|
+
return H(), P(A, null, [F("div", Je, [
|
|
942
|
+
e.is_form_design ? (H(), M(n, {
|
|
912
943
|
key: 0,
|
|
913
944
|
type: "primary",
|
|
914
945
|
size: "small",
|
|
915
946
|
onClick: ne,
|
|
916
947
|
ghost: !0
|
|
917
948
|
}, {
|
|
918
|
-
default: X(() => t[0] ||= [
|
|
949
|
+
default: X(() => t[0] ||= [L(" 编辑表单 ")]),
|
|
919
950
|
_: 1
|
|
920
|
-
})) :
|
|
921
|
-
f.value ? (H(),
|
|
951
|
+
})) : N("", !0),
|
|
952
|
+
f.value ? (H(), M(n, {
|
|
922
953
|
key: 1,
|
|
923
954
|
size: "small",
|
|
924
955
|
type: "primary",
|
|
925
956
|
onClick: d,
|
|
926
957
|
danger: !0
|
|
927
958
|
}, {
|
|
928
|
-
default: X(() => t[1] ||= [
|
|
959
|
+
default: X(() => t[1] ||= [L(" 清空 ")]),
|
|
929
960
|
_: 1
|
|
930
|
-
})) :
|
|
931
|
-
l.value ? (H(),
|
|
961
|
+
})) : N("", !0),
|
|
962
|
+
l.value ? (H(), M(n, {
|
|
932
963
|
key: 2,
|
|
933
964
|
size: "small",
|
|
934
965
|
type: "primary",
|
|
935
966
|
loading: g.value,
|
|
936
967
|
onClick: v
|
|
937
968
|
}, {
|
|
938
|
-
default: X(() => t[2] ||= [
|
|
969
|
+
default: X(() => t[2] ||= [L(" 下载导入模版 ")]),
|
|
939
970
|
_: 1
|
|
940
|
-
}, 8, ["loading"])) :
|
|
941
|
-
u.value ? (H(),
|
|
971
|
+
}, 8, ["loading"])) : N("", !0),
|
|
972
|
+
u.value ? (H(), M(n, {
|
|
942
973
|
key: 3,
|
|
943
974
|
size: "small",
|
|
944
975
|
type: "primary",
|
|
945
976
|
onClick: h
|
|
946
977
|
}, {
|
|
947
|
-
default: X(() => t[3] ||= [
|
|
978
|
+
default: X(() => t[3] ||= [L(" 导入Excel数据 ")]),
|
|
948
979
|
_: 1
|
|
949
|
-
})) :
|
|
950
|
-
p.value && (!e.field.custom_btn_list?.length || e.field.max_count !== y.value) ? (H(),
|
|
980
|
+
})) : N("", !0),
|
|
981
|
+
p.value && (!e.field.custom_btn_list?.length || e.field.max_count !== y.value) ? (H(), M(n, {
|
|
951
982
|
key: 4,
|
|
952
983
|
type: "primary",
|
|
953
984
|
size: "small",
|
|
954
985
|
onClick: te,
|
|
955
986
|
disabled: e.field.max_count && e.value.length >= e.field.max_count
|
|
956
987
|
}, {
|
|
957
|
-
icon: X(() => [
|
|
958
|
-
default: X(() => [
|
|
988
|
+
icon: X(() => [R(fe(xe))]),
|
|
989
|
+
default: X(() => [L(" " + J(e.field.btn_title || "添加"), 1)]),
|
|
959
990
|
_: 1
|
|
960
|
-
}, 8, ["disabled"])) :
|
|
961
|
-
(H(!0),
|
|
991
|
+
}, 8, ["disabled"])) : N("", !0),
|
|
992
|
+
(H(!0), P(A, null, G(e.field.custom_btn_list, (t) => (H(), M(C, {
|
|
962
993
|
action_code_id: t.action_code_id,
|
|
963
994
|
code: t.code,
|
|
964
995
|
"onUpdate:code": (e) => t.code = e,
|
|
@@ -966,14 +997,14 @@ var Q = r(), We = { class: "top_btn" }, Ge = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
|
966
997
|
"onUpdate:action": (e) => t.action = e,
|
|
967
998
|
options: o
|
|
968
999
|
}, {
|
|
969
|
-
default: X(() => [
|
|
1000
|
+
default: X(() => [R(n, {
|
|
970
1001
|
size: "small",
|
|
971
1002
|
type: t.type,
|
|
972
1003
|
danger: t.danger,
|
|
973
1004
|
onClick: (e) => S(t),
|
|
974
1005
|
disabled: e.field.max_count && e.value.length >= e.field.max_count && t.action === "add"
|
|
975
1006
|
}, {
|
|
976
|
-
default: X(() => [
|
|
1007
|
+
default: X(() => [L(J(t.label), 1)]),
|
|
977
1008
|
_: 2
|
|
978
1009
|
}, 1032, [
|
|
979
1010
|
"type",
|
|
@@ -989,7 +1020,7 @@ var Q = r(), We = { class: "top_btn" }, Ge = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
|
989
1020
|
"action",
|
|
990
1021
|
"onUpdate:action"
|
|
991
1022
|
]))), 256))
|
|
992
|
-
]), e.field.showType === "table" ? (H(),
|
|
1023
|
+
]), e.field.showType === "table" ? (H(), M(Re, {
|
|
993
1024
|
key: 0,
|
|
994
1025
|
value: e.value,
|
|
995
1026
|
field: e.field,
|
|
@@ -1015,7 +1046,7 @@ var Q = r(), We = { class: "top_btn" }, Ge = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
|
1015
1046
|
"worker-host-functions",
|
|
1016
1047
|
"min_count",
|
|
1017
1048
|
"formModel"
|
|
1018
|
-
])) : (H(!0),
|
|
1049
|
+
])) : (H(!0), P(A, { key: 1 }, G(e.value, (t, n) => (H(), M(ke, {
|
|
1019
1050
|
form: e.field.form,
|
|
1020
1051
|
field: e.field,
|
|
1021
1052
|
value: e.value[n],
|
|
@@ -1060,10 +1091,10 @@ var Q = r(), We = { class: "top_btn" }, Ge = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
|
1060
1091
|
]))), 256))], 64);
|
|
1061
1092
|
};
|
|
1062
1093
|
}
|
|
1063
|
-
}), [["__scopeId", "data-v-
|
|
1094
|
+
}), [["__scopeId", "data-v-4563f7e9"]]), Xe = {
|
|
1064
1095
|
key: 0,
|
|
1065
1096
|
class: "error-msg"
|
|
1066
|
-
},
|
|
1097
|
+
}, Ze = /*#__PURE__*/ t(/* @__PURE__ */ z({
|
|
1067
1098
|
name: "DynamicValueField",
|
|
1068
1099
|
__name: "DynamicValueField",
|
|
1069
1100
|
props: {
|
|
@@ -1103,8 +1134,8 @@ var Q = r(), We = { class: "top_btn" }, Ge = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
|
1103
1134
|
},
|
|
1104
1135
|
emits: ["update:value"],
|
|
1105
1136
|
setup(e, { emit: t }) {
|
|
1106
|
-
let n = e, r = t, i = W(null), a = W(n.value || ""), o =
|
|
1107
|
-
let l = await
|
|
1137
|
+
let n = e, r = t, i = W(null), a = W(n.value || ""), o = j(() => n.is_form_design ? a.value : n.value), s = (0, Q.debounce)(async (e, t, s, c) => {
|
|
1138
|
+
let l = await He({
|
|
1108
1139
|
field: s,
|
|
1109
1140
|
currentValue: o.value,
|
|
1110
1141
|
innerModel: e,
|
|
@@ -1130,21 +1161,21 @@ var Q = r(), We = { class: "top_btn" }, Ge = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
|
1130
1161
|
deep: !0
|
|
1131
1162
|
}), (t, n) => {
|
|
1132
1163
|
let r = K("a-input");
|
|
1133
|
-
return H(),
|
|
1164
|
+
return H(), P(A, null, [R(C, {
|
|
1134
1165
|
"value-code": e.field,
|
|
1135
1166
|
"show-debug-code": e.field.watchType === "code"
|
|
1136
1167
|
}, {
|
|
1137
|
-
default: X(() => [
|
|
1168
|
+
default: X(() => [R(r, {
|
|
1138
1169
|
value: o.value,
|
|
1139
1170
|
readonly: "",
|
|
1140
1171
|
size: "small",
|
|
1141
1172
|
style: { "background-color": "#f5f5f5" }
|
|
1142
1173
|
}, null, 8, ["value"])]),
|
|
1143
1174
|
_: 1
|
|
1144
|
-
}, 8, ["value-code", "show-debug-code"]), i.value ? (H(),
|
|
1175
|
+
}, 8, ["value-code", "show-debug-code"]), i.value ? (H(), P("span", Xe, J(i.value), 1)) : N("", !0)], 64);
|
|
1145
1176
|
};
|
|
1146
1177
|
}
|
|
1147
|
-
}), [["__scopeId", "data-v-eab2ef4b"]]),
|
|
1178
|
+
}), [["__scopeId", "data-v-eab2ef4b"]]), Qe = z({
|
|
1148
1179
|
name: "FormButton",
|
|
1149
1180
|
components: { debugCode: C },
|
|
1150
1181
|
props: {
|
|
@@ -1199,7 +1230,7 @@ var Q = r(), We = { class: "top_btn" }, Ge = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
|
1199
1230
|
keyPath: [...e.baseKeyPath, e.field.name]
|
|
1200
1231
|
}, e.workerHostFunctions || {});
|
|
1201
1232
|
} catch (e) {
|
|
1202
|
-
|
|
1233
|
+
_e.error(e.message);
|
|
1203
1234
|
return;
|
|
1204
1235
|
}
|
|
1205
1236
|
t && Object.assign(e.formModel, t);
|
|
@@ -1212,21 +1243,21 @@ var Q = r(), We = { class: "top_btn" }, Ge = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
|
1212
1243
|
});
|
|
1213
1244
|
//#endregion
|
|
1214
1245
|
//#region src/components/FormRender/FormButton/FormButton.vue
|
|
1215
|
-
function
|
|
1246
|
+
function $e(e, t, n, r, i, a) {
|
|
1216
1247
|
let o = K("a-button"), s = K("debug-code");
|
|
1217
|
-
return H(),
|
|
1248
|
+
return H(), M(s, {
|
|
1218
1249
|
action_code_id: e.field.action_code_id,
|
|
1219
1250
|
code: e.field.code,
|
|
1220
1251
|
"onUpdate:code": t[0] ||= (t) => e.field.code = t
|
|
1221
1252
|
}, {
|
|
1222
|
-
default: X(() => [
|
|
1253
|
+
default: X(() => [R(o, {
|
|
1223
1254
|
danger: e.field.danger,
|
|
1224
1255
|
type: e.field.btn_type,
|
|
1225
1256
|
disabled: e.field.disabled,
|
|
1226
1257
|
size: "small",
|
|
1227
1258
|
onClick: e.handlClick
|
|
1228
1259
|
}, {
|
|
1229
|
-
default: X(() => [
|
|
1260
|
+
default: X(() => [L(J(e.field.label), 1)]),
|
|
1230
1261
|
_: 1
|
|
1231
1262
|
}, 8, [
|
|
1232
1263
|
"danger",
|
|
@@ -1237,46 +1268,35 @@ function Ye(e, t, n, r, i, a) {
|
|
|
1237
1268
|
_: 1
|
|
1238
1269
|
}, 8, ["action_code_id", "code"]);
|
|
1239
1270
|
}
|
|
1240
|
-
var
|
|
1271
|
+
var et = /*#__PURE__*/ t(Qe, [["render", $e]]), tt = z({
|
|
1241
1272
|
name: "InputNumberPro",
|
|
1242
|
-
components: {},
|
|
1243
1273
|
props: {
|
|
1244
1274
|
field: {
|
|
1245
1275
|
type: Object,
|
|
1246
1276
|
required: !0
|
|
1247
1277
|
},
|
|
1248
1278
|
value: {
|
|
1249
|
-
type: Number,
|
|
1279
|
+
type: [Number, String],
|
|
1250
1280
|
required: !1,
|
|
1251
1281
|
default: () => null
|
|
1252
1282
|
}
|
|
1253
1283
|
},
|
|
1254
1284
|
emits: ["update:value"],
|
|
1255
1285
|
setup(e, { emit: t }) {
|
|
1256
|
-
let n = (n) => {
|
|
1257
|
-
e.field.extraAddonAfter && e.field.addonAfter && (n = `${n}${e.field.addonAfter}`), e.field.extraAddonBefore && e.field.addonBefore && (n = `${e.field.addonBefore}${n}`), t("update:value", n);
|
|
1258
|
-
};
|
|
1259
|
-
function r(e, t, n) {
|
|
1260
|
-
return e.endsWith(t) ? e.slice(0, -t.length) + n : e;
|
|
1261
|
-
}
|
|
1262
|
-
function i(e, t, n) {
|
|
1263
|
-
return e.startsWith(t) ? n + e.slice(t.length) : e;
|
|
1264
|
-
}
|
|
1265
1286
|
return {
|
|
1266
|
-
update:
|
|
1267
|
-
|
|
1287
|
+
update: (e) => {
|
|
1288
|
+
t("update:value", e);
|
|
1289
|
+
},
|
|
1290
|
+
innerValue: j(() => {
|
|
1268
1291
|
let t = e.value;
|
|
1269
|
-
return typeof t == "string" && (
|
|
1292
|
+
return typeof t == "string" && (t = parseFloat(t), isNaN(t) && (t = null)), t;
|
|
1270
1293
|
})
|
|
1271
1294
|
};
|
|
1272
|
-
},
|
|
1273
|
-
data() {
|
|
1274
|
-
return { model: this.value };
|
|
1275
1295
|
}
|
|
1276
|
-
}),
|
|
1277
|
-
function
|
|
1296
|
+
}), nt = { key: 0 }, rt = { key: 0 }, it = { key: 0 };
|
|
1297
|
+
function at(e, t, n, r, i, a) {
|
|
1278
1298
|
let o = K("a-input-number");
|
|
1279
|
-
return H(),
|
|
1299
|
+
return H(), M(o, {
|
|
1280
1300
|
value: e.innerValue,
|
|
1281
1301
|
autocomplete: e.field.autocomplete == null ? "off" : e.field.autocomplete,
|
|
1282
1302
|
"default-value": e.field.defaultValue,
|
|
@@ -1289,20 +1309,20 @@ function tt(e, t, n, r, i, a) {
|
|
|
1289
1309
|
step: e.field.step,
|
|
1290
1310
|
size: "small",
|
|
1291
1311
|
"onUpdate:value": e.update
|
|
1292
|
-
},
|
|
1312
|
+
}, I({ _: 2 }, [
|
|
1293
1313
|
e.field?.prefix || e.field?.prefixIcon ? {
|
|
1294
1314
|
name: "prefix",
|
|
1295
|
-
fn: X(() => [e.field?.prefix ? (H(),
|
|
1315
|
+
fn: X(() => [e.field?.prefix ? (H(), P("span", nt, J(e.field.prefix), 1)) : N("", !0), e.field?.prefixIcon ? (H(), M(q(e.field?.prefixIcon), { key: 1 })) : N("", !0)]),
|
|
1296
1316
|
key: "0"
|
|
1297
1317
|
} : void 0,
|
|
1298
1318
|
e.field?.addonBefore || e.field?.addonBeforeIcon ? {
|
|
1299
1319
|
name: "addonBefore",
|
|
1300
|
-
fn: X(() => [e.field?.addonBefore ? (H(),
|
|
1320
|
+
fn: X(() => [e.field?.addonBefore ? (H(), P("span", rt, J(e.field.addonBefore), 1)) : N("", !0), e.field?.addonBeforeIcon ? (H(), M(q(e.field?.addonBeforeIcon), { key: 1 })) : N("", !0)]),
|
|
1301
1321
|
key: "1"
|
|
1302
1322
|
} : void 0,
|
|
1303
1323
|
e.field?.addonAfter || e.field?.addonAfterIcon ? {
|
|
1304
1324
|
name: "addonAfter",
|
|
1305
|
-
fn: X(() => [e.field?.addonAfter ? (H(),
|
|
1325
|
+
fn: X(() => [e.field?.addonAfter ? (H(), P("span", it, J(e.field.addonAfter), 1)) : N("", !0), e.field?.addonAfterIcon ? (H(), M(q(e.field?.addonAfterIcon), { key: 1 })) : N("", !0)]),
|
|
1306
1326
|
key: "2"
|
|
1307
1327
|
} : void 0
|
|
1308
1328
|
]), 1032, [
|
|
@@ -1319,7 +1339,7 @@ function tt(e, t, n, r, i, a) {
|
|
|
1319
1339
|
"onUpdate:value"
|
|
1320
1340
|
]);
|
|
1321
1341
|
}
|
|
1322
|
-
var
|
|
1342
|
+
var ot = /*#__PURE__*/ t(tt, [["render", at], ["__scopeId", "data-v-bbad17f1"]]), st = { key: 0 }, ct = { key: 0 }, lt = { key: 0 }, ut = { key: 0 }, dt = /*#__PURE__*/ t(/* @__PURE__ */ z({
|
|
1323
1343
|
__name: "InputPro",
|
|
1324
1344
|
props: /*@__PURE__*/ se({ field: {
|
|
1325
1345
|
type: Object,
|
|
@@ -1330,55 +1350,39 @@ var nt = /*#__PURE__*/ t(Ze, [["render", tt], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1330
1350
|
}),
|
|
1331
1351
|
emits: ["update:value"],
|
|
1332
1352
|
setup(e) {
|
|
1333
|
-
let t =
|
|
1334
|
-
|
|
1335
|
-
let
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
n.field.extraAddonAfter && n.field.addonAfter && (e = `${e ?? ""}${n.field.addonAfter}`), n.field.extraAddonBefore && n.field.addonBefore && (e = `${n.field.addonBefore}${e ?? ""}`), t.value = e;
|
|
1340
|
-
}, 300);
|
|
1341
|
-
de(() => {
|
|
1342
|
-
i.cancel();
|
|
1343
|
-
});
|
|
1344
|
-
function a(e, t, n) {
|
|
1345
|
-
return e?.startsWith(t) ? n + e.slice(t.length) : e;
|
|
1346
|
-
}
|
|
1347
|
-
function o(e, t, n) {
|
|
1348
|
-
return e?.endsWith(t) ? e.slice(0, -t.length) + n : e;
|
|
1349
|
-
}
|
|
1350
|
-
return (t, n) => {
|
|
1351
|
-
let a = K("a-input");
|
|
1352
|
-
return H(), A(a, {
|
|
1353
|
-
value: r.value,
|
|
1354
|
-
"onUpdate:value": [n[0] ||= (e) => r.value = e, pe(i)],
|
|
1353
|
+
let t = pe(e, "value");
|
|
1354
|
+
return (n, r) => {
|
|
1355
|
+
let i = K("a-input");
|
|
1356
|
+
return H(), M(i, {
|
|
1357
|
+
value: t.value,
|
|
1358
|
+
"onUpdate:value": r[0] ||= (e) => t.value = e,
|
|
1355
1359
|
"allow-clear": e.field.allowClear == null ? !0 : e.field.allowClear,
|
|
1356
1360
|
autocomplete: e.field.autocomplete == null ? "off" : e.field.autocomplete,
|
|
1357
1361
|
"default-value": e.field.defaultValue,
|
|
1358
1362
|
readonly: e.field.disabled,
|
|
1359
1363
|
maxlength: e.field.maxlength,
|
|
1360
|
-
placeholder: e.field.placeholder ? e.field.placeholder :
|
|
1364
|
+
placeholder: e.field.placeholder ? e.field.placeholder : n.$t("请输入") + e.field.label,
|
|
1361
1365
|
type: e.field.inputType ? e.field.inputType : "text",
|
|
1362
1366
|
size: "small"
|
|
1363
|
-
},
|
|
1367
|
+
}, I({ _: 2 }, [
|
|
1364
1368
|
e.field?.prefix || e.field?.prefixIcon ? {
|
|
1365
1369
|
name: "prefix",
|
|
1366
|
-
fn: X(() => [e.field?.prefix ? (H(),
|
|
1370
|
+
fn: X(() => [e.field?.prefix ? (H(), P("span", st, J(e.field.prefix), 1)) : N("", !0), e.field?.prefixIcon ? (H(), M(q(e.field?.prefixIcon), { key: 1 })) : N("", !0)]),
|
|
1367
1371
|
key: "0"
|
|
1368
1372
|
} : void 0,
|
|
1369
1373
|
e.field?.suffix || e.field?.suffixIcon ? {
|
|
1370
1374
|
name: "suffix",
|
|
1371
|
-
fn: X(() => [e.field?.suffix ? (H(),
|
|
1375
|
+
fn: X(() => [e.field?.suffix ? (H(), P("span", ct, J(e.field.suffix), 1)) : N("", !0), e.field?.suffixIcon ? (H(), M(q(e.field?.suffixIcon), { key: 1 })) : N("", !0)]),
|
|
1372
1376
|
key: "1"
|
|
1373
1377
|
} : void 0,
|
|
1374
1378
|
e.field?.addonBefore || e.field?.addonBeforeIcon ? {
|
|
1375
1379
|
name: "addonBefore",
|
|
1376
|
-
fn: X(() => [e.field?.addonBefore ? (H(),
|
|
1380
|
+
fn: X(() => [e.field?.addonBefore ? (H(), P("span", lt, J(e.field.addonBefore), 1)) : N("", !0), e.field?.addonBeforeIcon ? (H(), M(q(e.field?.addonBeforeIcon), { key: 1 })) : N("", !0)]),
|
|
1377
1381
|
key: "2"
|
|
1378
1382
|
} : void 0,
|
|
1379
1383
|
e.field?.addonAfter || e.field?.addonAfterIcon ? {
|
|
1380
1384
|
name: "addonAfter",
|
|
1381
|
-
fn: X(() => [e.field?.addonAfter ? (H(),
|
|
1385
|
+
fn: X(() => [e.field?.addonAfter ? (H(), P("span", ut, J(e.field.addonAfter), 1)) : N("", !0), e.field?.addonAfterIcon ? (H(), M(q(e.field?.addonAfterIcon), { key: 1 })) : N("", !0)]),
|
|
1382
1386
|
key: "3"
|
|
1383
1387
|
} : void 0
|
|
1384
1388
|
]), 1032, [
|
|
@@ -1389,14 +1393,13 @@ var nt = /*#__PURE__*/ t(Ze, [["render", tt], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1389
1393
|
"readonly",
|
|
1390
1394
|
"maxlength",
|
|
1391
1395
|
"placeholder",
|
|
1392
|
-
"type"
|
|
1393
|
-
"onUpdate:value"
|
|
1396
|
+
"type"
|
|
1394
1397
|
]);
|
|
1395
1398
|
};
|
|
1396
1399
|
}
|
|
1397
|
-
}), [["__scopeId", "data-v-
|
|
1400
|
+
}), [["__scopeId", "data-v-87b5f3ba"]]), $ = (e, t = "YYYY-MM-DD") => Z(e, t, !0).isValid(), ft = (e, t = "YYYY-MM-DD HH:mm:ss") => Z(e, t, !0).isValid(), pt = (e, t = "HH:mm:ss") => Z(e, t, !0).isValid(), mt = z({
|
|
1398
1401
|
name: "FieldRender2",
|
|
1399
|
-
methods: { isArray:
|
|
1402
|
+
methods: { isArray: ye },
|
|
1400
1403
|
props: {
|
|
1401
1404
|
field: {
|
|
1402
1405
|
type: Object,
|
|
@@ -1503,19 +1506,19 @@ var nt = /*#__PURE__*/ t(Ze, [["render", tt], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1503
1506
|
})) : n = o(e) && typeof e == "number" ? e.toString() : e : t == "date" ? o(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1504
1507
|
$(e) && typeof e == "string" ? n.push(Z(e, "YYYY-MM-DD")) : n.push(e);
|
|
1505
1508
|
})) : n = $(e) && typeof e == "string" ? e.toString() : e : t == "datetime" ? o(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1506
|
-
|
|
1507
|
-
})) : n =
|
|
1508
|
-
|
|
1509
|
-
})) : n =
|
|
1509
|
+
ft(e) && typeof e == "string" ? n.push(Z(e, "YYYY-MM-DD HH:mm:ss")) : n.push(e);
|
|
1510
|
+
})) : n = ft(e) && typeof e == "string" ? Z(e, "YYYY-MM-DD HH:mm:ss") : e : t == "time" ? o(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1511
|
+
pt(e) && typeof e == "string" ? n.push(Z(e, "HH:mm:ss")) : n.push(e);
|
|
1512
|
+
})) : n = pt(e) && typeof e == "string" ? Z(e, "HH:mm:ss") : e : t == "float" ? o(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1510
1513
|
o(e) && typeof e == "string" ? n.push(Number(e)) : n.push(e);
|
|
1511
1514
|
})) : n = o(e) && typeof e == "string" ? Number(e) : e : t == "bool" && (o(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1512
1515
|
o(e) && typeof e == "string" ? n.push(!!e) : n.push(e);
|
|
1513
1516
|
})) : n = o(e) && typeof e == "string" ? !!e : e), n;
|
|
1514
|
-
}, s = W(e.is_show_field), c = W(!1), l =
|
|
1517
|
+
}, s = W(e.is_show_field), c = W(!1), l = j(() => e.is_form_design && e.field.type === "remotetablepro"), u = () => {
|
|
1515
1518
|
t("update:is_edit", c.value);
|
|
1516
1519
|
}, d = () => {
|
|
1517
1520
|
t("add");
|
|
1518
|
-
}, f =
|
|
1521
|
+
}, f = ve(() => {
|
|
1519
1522
|
let r = s.value;
|
|
1520
1523
|
e.field?.is_hide && (s.value = !1, s.value !== r && (s.value ? (n.value[e.field.name] = null, t("update_model", {
|
|
1521
1524
|
add_key: e.field.name,
|
|
@@ -1544,7 +1547,7 @@ var nt = /*#__PURE__*/ t(Ze, [["render", tt], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1544
1547
|
})) : (delete n.value[e.field.name], t("update_model", { remove_key: e.field.name })));
|
|
1545
1548
|
}, 300), p = W(""), m = W(e.label);
|
|
1546
1549
|
Y(() => p.value, (n) => {
|
|
1547
|
-
if (t("update:value", n), e.field.name2) {
|
|
1550
|
+
if (t("update:value", qe(e.field, n)), e.field.name2) {
|
|
1548
1551
|
let r;
|
|
1549
1552
|
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"];
|
|
1550
1553
|
else if (e.field.type === "checkbox" && n && n.length >= 0) {
|
|
@@ -1554,7 +1557,7 @@ var nt = /*#__PURE__*/ t(Ze, [["render", tt], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1554
1557
|
n == r?.[e.field.valueKey ? e.field.valueKey : "value"] && t.push(r?.[e.field.labelKey ? e.field.labelKey : "label"]);
|
|
1555
1558
|
});
|
|
1556
1559
|
}), r = t.toString();
|
|
1557
|
-
} else if (e.field.type === "select") if (
|
|
1560
|
+
} else if (e.field.type === "select") if (ye(n)) {
|
|
1558
1561
|
let t = [];
|
|
1559
1562
|
e.options.forEach((r) => {
|
|
1560
1563
|
n.forEach((n) => {
|
|
@@ -1569,7 +1572,7 @@ var nt = /*#__PURE__*/ t(Ze, [["render", tt], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1569
1572
|
}
|
|
1570
1573
|
}, { deep: !0 }), Y(() => e.value, (t) => {
|
|
1571
1574
|
let n = t;
|
|
1572
|
-
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);
|
|
1575
|
+
n = Ke(e.field, n), 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);
|
|
1573
1576
|
}, { immediate: !0 }), Y(() => m.value, (n) => {
|
|
1574
1577
|
t("update:label", n), "name2" in e.field && t("update_name2", {
|
|
1575
1578
|
key: e.field.name2,
|
|
@@ -1598,7 +1601,7 @@ var nt = /*#__PURE__*/ t(Ze, [["render", tt], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1598
1601
|
}
|
|
1599
1602
|
l.value && t("update:is_edit", c.value);
|
|
1600
1603
|
});
|
|
1601
|
-
let { t: h } =
|
|
1604
|
+
let { t: h } = Se();
|
|
1602
1605
|
return {
|
|
1603
1606
|
t: h,
|
|
1604
1607
|
is_show_field: s,
|
|
@@ -1615,7 +1618,7 @@ var nt = /*#__PURE__*/ t(Ze, [["render", tt], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1615
1618
|
IconSelect: T,
|
|
1616
1619
|
RichTextEditor: S,
|
|
1617
1620
|
Upload: D,
|
|
1618
|
-
RemoteCascaderPro:
|
|
1621
|
+
RemoteCascaderPro: re,
|
|
1619
1622
|
RemoteTreeSelectPro: te,
|
|
1620
1623
|
RemoteSelectPro: p,
|
|
1621
1624
|
RemoteComplete: ne,
|
|
@@ -1630,31 +1633,31 @@ var nt = /*#__PURE__*/ t(Ze, [["render", tt], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1630
1633
|
JsonStr: _,
|
|
1631
1634
|
JsonObj: v,
|
|
1632
1635
|
RemoteText: y,
|
|
1633
|
-
RemoteTablePro:
|
|
1634
|
-
FormTemplate:
|
|
1635
|
-
DynamicValueField:
|
|
1636
|
-
FormButton:
|
|
1637
|
-
PlusOutlined:
|
|
1638
|
-
MonthPicker:
|
|
1636
|
+
RemoteTablePro: ie,
|
|
1637
|
+
FormTemplate: Ye,
|
|
1638
|
+
DynamicValueField: Ze,
|
|
1639
|
+
FormButton: et,
|
|
1640
|
+
PlusOutlined: xe,
|
|
1641
|
+
MonthPicker: O,
|
|
1639
1642
|
MonthRangePicker: E,
|
|
1640
1643
|
CodeEditor: w,
|
|
1641
|
-
TinymceEditor:
|
|
1642
|
-
InputNumberPro:
|
|
1643
|
-
InputPro:
|
|
1644
|
+
TinymceEditor: k,
|
|
1645
|
+
InputNumberPro: ot,
|
|
1646
|
+
InputPro: dt
|
|
1644
1647
|
}
|
|
1645
|
-
}),
|
|
1648
|
+
}), ht = {
|
|
1646
1649
|
key: 0,
|
|
1647
1650
|
style: {
|
|
1648
1651
|
height: "62px",
|
|
1649
1652
|
width: "100%"
|
|
1650
1653
|
}
|
|
1651
|
-
},
|
|
1654
|
+
}, gt = { key: 1 }, _t = { key: 0 }, vt = { key: 1 }, yt = {
|
|
1652
1655
|
key: 3,
|
|
1653
1656
|
style: {
|
|
1654
1657
|
height: "30px",
|
|
1655
1658
|
position: "relative"
|
|
1656
1659
|
}
|
|
1657
|
-
},
|
|
1660
|
+
}, bt = { style: {
|
|
1658
1661
|
position: "absolute",
|
|
1659
1662
|
bottom: "0",
|
|
1660
1663
|
padding: "0",
|
|
@@ -1662,39 +1665,39 @@ var nt = /*#__PURE__*/ t(Ze, [["render", tt], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1662
1665
|
"font-weight": "bolder",
|
|
1663
1666
|
"font-size": "17px"
|
|
1664
1667
|
} };
|
|
1665
|
-
function
|
|
1666
|
-
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"), ee = K("a-select-option"), S = K("a-select"), te = K("a-cascader"), C = K("remote-cascader"), w = K("remote-cascader-pro"), T = K("month-picker"), ne = K("a-date-picker"), E = K("a-range-picker"), D = K("month-range-picker"),
|
|
1667
|
-
return H(),
|
|
1668
|
-
e.field.type !== "divider" && e.field.type !== "button" && (e.field?.is_search_show !== !1 || e.field_render_show) ? (H(),
|
|
1668
|
+
function xt(e, t, n, r, i, a) {
|
|
1669
|
+
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"), ee = K("a-select-option"), S = K("a-select"), te = K("a-cascader"), C = K("remote-cascader"), w = K("remote-cascader-pro"), T = K("month-picker"), ne = K("a-date-picker"), E = K("a-range-picker"), D = K("month-range-picker"), O = K("a-time-picker"), re = K("a-time-range-picker"), k = K("a-radio"), ie = K("a-radio-group"), j = K("a-checkbox"), ae = K("a-checkbox-group"), z = K("a-tree-select"), oe = K("remote-filter-select"), se = K("remote-select"), le = K("remote-select-pro"), B = K("remote-complete"), V = K("remote-tree-select"), U = K("remote-tree-select-pro"), W = K("remote-modal"), fe = K("remote-table"), pe = K("remote-table-pro"), me = K("FormTemplate"), Y = K("DynamicValueField"), he = K("remote-text"), ge = K("upload"), _e = K("code-editor"), ve = K("TinymceEditor"), ye = K("icon-select"), Z = K("a-form-item"), be = K("a-divider"), xe = K("FormButton");
|
|
1670
|
+
return H(), P(A, null, [
|
|
1671
|
+
e.field.type !== "divider" && e.field.type !== "button" && (e.field?.is_search_show !== !1 || e.field_render_show) ? (H(), M(Z, ce({
|
|
1669
1672
|
key: 0,
|
|
1670
1673
|
extra: e.field.extra,
|
|
1671
1674
|
name: e.field.name
|
|
1672
|
-
}, e.validateInfos ? e.validateInfos[e.field.name] : null),
|
|
1675
|
+
}, e.validateInfos ? e.validateInfos[e.field.name] : null), I({
|
|
1673
1676
|
default: X(() => [
|
|
1674
|
-
|
|
1675
|
-
e.field.type === "kong" ? (H(),
|
|
1676
|
-
e.field.type === "tag" ? (H(),
|
|
1677
|
+
de(e.$slots, "default", {}, void 0, !0),
|
|
1678
|
+
e.field.type === "kong" ? (H(), P("div", ht)) : N("", !0),
|
|
1679
|
+
e.field.type === "tag" ? (H(), P("div", gt, [e.field.content && e.field.content(e.field, e.model) || e.model ? (H(), M(l, {
|
|
1677
1680
|
key: 0,
|
|
1678
1681
|
color: e.field.color ? e.field.color(e.field, e.model) : "green",
|
|
1679
1682
|
style: ue(e.field.style),
|
|
1680
1683
|
onClick: t[1] ||= (t) => e.field.cb ? e.field.cb(e.field, e.model) : ""
|
|
1681
1684
|
}, {
|
|
1682
|
-
default: X(() => [e.field.content ? (H(),
|
|
1685
|
+
default: X(() => [e.field.content ? (H(), P("span", _t, J(e.field.content(e.field, e.model)), 1)) : (H(), P("span", vt, J(e.model), 1))]),
|
|
1683
1686
|
_: 1
|
|
1684
|
-
}, 8, ["color", "style"])) :
|
|
1685
|
-
e.field.type === "kong_title" ? (H(),
|
|
1687
|
+
}, 8, ["color", "style"])) : N("", !0)])) : N("", !0),
|
|
1688
|
+
e.field.type === "kong_title" ? (H(), P("div", {
|
|
1686
1689
|
key: 2,
|
|
1687
1690
|
style: ue("height: " + e.field.height + "px")
|
|
1688
|
-
}, null, 4)) :
|
|
1689
|
-
e.field.type === "title" ? (H(),
|
|
1690
|
-
e.field.type === "rate" ? (H(),
|
|
1691
|
+
}, null, 4)) : N("", !0),
|
|
1692
|
+
e.field.type === "title" ? (H(), P("div", yt, [F("span", bt, J(e.field.name), 1)])) : N("", !0),
|
|
1693
|
+
e.field.type === "rate" ? (H(), M(u, {
|
|
1691
1694
|
key: 4,
|
|
1692
1695
|
value: e.model,
|
|
1693
1696
|
"onUpdate:value": t[2] ||= (t) => e.model = t,
|
|
1694
1697
|
disabled: e.field.disabled,
|
|
1695
1698
|
"allow-half": ""
|
|
1696
|
-
}, null, 8, ["value", "disabled"])) :
|
|
1697
|
-
e.field.type === "input" ? (H(),
|
|
1699
|
+
}, null, 8, ["value", "disabled"])) : N("", !0),
|
|
1700
|
+
e.field.type === "input" ? (H(), M(d, {
|
|
1698
1701
|
key: 5,
|
|
1699
1702
|
field: e.field,
|
|
1700
1703
|
value: e.model,
|
|
@@ -1706,8 +1709,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
1706
1709
|
"value",
|
|
1707
1710
|
"base-key-path",
|
|
1708
1711
|
"worker-host-functions"
|
|
1709
|
-
])) :
|
|
1710
|
-
e.field.type === "money" ? (H(),
|
|
1712
|
+
])) : N("", !0),
|
|
1713
|
+
e.field.type === "money" ? (H(), M(f, {
|
|
1711
1714
|
key: 6,
|
|
1712
1715
|
size: "small",
|
|
1713
1716
|
value: e.model,
|
|
@@ -1733,8 +1736,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
1733
1736
|
"precision",
|
|
1734
1737
|
"step",
|
|
1735
1738
|
"placeholder"
|
|
1736
|
-
])) :
|
|
1737
|
-
e.field.type === "number" ? (H(),
|
|
1739
|
+
])) : N("", !0),
|
|
1740
|
+
e.field.type === "number" ? (H(), M(p, {
|
|
1738
1741
|
key: 7,
|
|
1739
1742
|
value: e.model,
|
|
1740
1743
|
"onUpdate:value": t[5] ||= (t) => e.model = t,
|
|
@@ -1747,8 +1750,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
1747
1750
|
"field",
|
|
1748
1751
|
"base-key-path",
|
|
1749
1752
|
"worker-host-functions"
|
|
1750
|
-
])) :
|
|
1751
|
-
e.field.type === "volume" ? (H(),
|
|
1753
|
+
])) : N("", !0),
|
|
1754
|
+
e.field.type === "volume" ? (H(), M(m, {
|
|
1752
1755
|
key: 8,
|
|
1753
1756
|
value: e.model,
|
|
1754
1757
|
"onUpdate:value": t[6] ||= (t) => e.model = t,
|
|
@@ -1769,8 +1772,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
1769
1772
|
"disabled",
|
|
1770
1773
|
"maxlength",
|
|
1771
1774
|
"placeholder"
|
|
1772
|
-
])) :
|
|
1773
|
-
e.field.type === "weight" ? (H(),
|
|
1775
|
+
])) : N("", !0),
|
|
1776
|
+
e.field.type === "weight" ? (H(), M(m, {
|
|
1774
1777
|
key: 9,
|
|
1775
1778
|
value: e.model,
|
|
1776
1779
|
"onUpdate:value": t[7] ||= (t) => e.model = t,
|
|
@@ -1791,8 +1794,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
1791
1794
|
"disabled",
|
|
1792
1795
|
"maxlength",
|
|
1793
1796
|
"placeholder"
|
|
1794
|
-
])) :
|
|
1795
|
-
e.field.type === "attributetable" ? (H(),
|
|
1797
|
+
])) : N("", !0),
|
|
1798
|
+
e.field.type === "attributetable" ? (H(), M(h, {
|
|
1796
1799
|
key: 10,
|
|
1797
1800
|
value: e.model,
|
|
1798
1801
|
"onUpdate:value": t[8] ||= (t) => e.model = t,
|
|
@@ -1809,8 +1812,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
1809
1812
|
"init_model",
|
|
1810
1813
|
"base-key-path",
|
|
1811
1814
|
"worker-host-functions"
|
|
1812
|
-
])) :
|
|
1813
|
-
e.field.type === "attributenomtable" ? (H(),
|
|
1815
|
+
])) : N("", !0),
|
|
1816
|
+
e.field.type === "attributenomtable" ? (H(), M(g, {
|
|
1814
1817
|
key: 11,
|
|
1815
1818
|
size: "small",
|
|
1816
1819
|
value: e.model,
|
|
@@ -1827,8 +1830,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
1827
1830
|
"init_model",
|
|
1828
1831
|
"base-key-path",
|
|
1829
1832
|
"worker-host-functions"
|
|
1830
|
-
])) :
|
|
1831
|
-
e.field.type === "textarea" ? (H(),
|
|
1833
|
+
])) : N("", !0),
|
|
1834
|
+
e.field.type === "textarea" ? (H(), M(_, {
|
|
1832
1835
|
key: 12,
|
|
1833
1836
|
value: e.model,
|
|
1834
1837
|
"onUpdate:value": t[10] ||= (t) => e.model = t,
|
|
@@ -1847,8 +1850,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
1847
1850
|
"autocomplete",
|
|
1848
1851
|
"disabled",
|
|
1849
1852
|
"placeholder"
|
|
1850
|
-
])) :
|
|
1851
|
-
e.field.type === "jsonstr" ? (H(),
|
|
1853
|
+
])) : N("", !0),
|
|
1854
|
+
e.field.type === "jsonstr" ? (H(), M(v, {
|
|
1852
1855
|
key: 13,
|
|
1853
1856
|
value: e.model,
|
|
1854
1857
|
"onUpdate:value": t[11] ||= (t) => e.model = t,
|
|
@@ -1862,8 +1865,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
1862
1865
|
"disabled",
|
|
1863
1866
|
"rows",
|
|
1864
1867
|
"placeholder"
|
|
1865
|
-
])) :
|
|
1866
|
-
e.field.type === "jsonobj" ? (H(),
|
|
1868
|
+
])) : N("", !0),
|
|
1869
|
+
e.field.type === "jsonobj" ? (H(), M(y, {
|
|
1867
1870
|
key: 14,
|
|
1868
1871
|
value: e.model,
|
|
1869
1872
|
"onUpdate:value": t[12] ||= (t) => e.model = t,
|
|
@@ -1879,8 +1882,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
1879
1882
|
"mode",
|
|
1880
1883
|
"fullWidthButton",
|
|
1881
1884
|
"darkTheme"
|
|
1882
|
-
])) :
|
|
1883
|
-
e.field.type === "richtexteditor" ? (H(),
|
|
1885
|
+
])) : N("", !0),
|
|
1886
|
+
e.field.type === "richtexteditor" ? (H(), M(b, {
|
|
1884
1887
|
key: 15,
|
|
1885
1888
|
value: e.model,
|
|
1886
1889
|
"onUpdate:value": t[13] ||= (t) => e.model = t,
|
|
@@ -1890,8 +1893,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
1890
1893
|
"value",
|
|
1891
1894
|
"readOnly",
|
|
1892
1895
|
"placeholder"
|
|
1893
|
-
])) :
|
|
1894
|
-
e.field.type === "password" ? (H(),
|
|
1896
|
+
])) : N("", !0),
|
|
1897
|
+
e.field.type === "password" ? (H(), M(x, {
|
|
1895
1898
|
key: 16,
|
|
1896
1899
|
value: e.model,
|
|
1897
1900
|
"onUpdate:value": t[14] ||= (t) => e.model = t,
|
|
@@ -1922,8 +1925,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
1922
1925
|
"precision",
|
|
1923
1926
|
"step",
|
|
1924
1927
|
"visibilityToggle"
|
|
1925
|
-
])) :
|
|
1926
|
-
e.field.type === "select" ? (H(),
|
|
1928
|
+
])) : N("", !0),
|
|
1929
|
+
e.field.type === "select" ? (H(), P(A, { key: 17 }, [e.field.mode === "default" ? (H(), M(S, {
|
|
1927
1930
|
key: 0,
|
|
1928
1931
|
value: e.model,
|
|
1929
1932
|
"onUpdate:value": t[16] ||= (t) => e.model = t,
|
|
@@ -1938,11 +1941,11 @@ function _t(e, t, n, r, i, a) {
|
|
|
1938
1941
|
size: "small",
|
|
1939
1942
|
style: { width: "100%" }
|
|
1940
1943
|
}, {
|
|
1941
|
-
default: X(() => [(H(!0),
|
|
1944
|
+
default: X(() => [(H(!0), P(A, null, G(e.options, (t) => (H(), M(ee, {
|
|
1942
1945
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
1943
1946
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
1944
1947
|
}, {
|
|
1945
|
-
default: X(() => [
|
|
1948
|
+
default: X(() => [L(J(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
1946
1949
|
_: 2
|
|
1947
1950
|
}, 1032, ["value"]))), 128))]),
|
|
1948
1951
|
_: 1
|
|
@@ -1955,7 +1958,7 @@ function _t(e, t, n, r, i, a) {
|
|
|
1955
1958
|
"maxTagCount",
|
|
1956
1959
|
"placeholder",
|
|
1957
1960
|
"show-search"
|
|
1958
|
-
])) : (H(),
|
|
1961
|
+
])) : (H(), M(S, {
|
|
1959
1962
|
key: 1,
|
|
1960
1963
|
value: e.model,
|
|
1961
1964
|
"onUpdate:value": t[17] ||= (t) => e.model = t,
|
|
@@ -1970,11 +1973,11 @@ function _t(e, t, n, r, i, a) {
|
|
|
1970
1973
|
size: "small",
|
|
1971
1974
|
style: { "min-width": "150px" }
|
|
1972
1975
|
}, {
|
|
1973
|
-
default: X(() => [(H(!0),
|
|
1976
|
+
default: X(() => [(H(!0), P(A, null, G(e.options, (t, n) => (H(), M(ee, {
|
|
1974
1977
|
key: n,
|
|
1975
1978
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
1976
1979
|
}, {
|
|
1977
|
-
default: X(() => [
|
|
1980
|
+
default: X(() => [L(J(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
1978
1981
|
_: 2
|
|
1979
1982
|
}, 1032, ["value"]))), 128))]),
|
|
1980
1983
|
_: 1
|
|
@@ -1987,8 +1990,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
1987
1990
|
"mode",
|
|
1988
1991
|
"placeholder",
|
|
1989
1992
|
"show-search"
|
|
1990
|
-
]))], 64)) :
|
|
1991
|
-
e.field.type === "groupselect" ? (H(),
|
|
1993
|
+
]))], 64)) : N("", !0),
|
|
1994
|
+
e.field.type === "groupselect" ? (H(), P(A, { key: 18 }, [e.field.mode === "default" ? (H(), M(S, {
|
|
1992
1995
|
key: 0,
|
|
1993
1996
|
value: e.model,
|
|
1994
1997
|
"onUpdate:value": t[18] ||= (t) => e.model = t,
|
|
@@ -2017,7 +2020,7 @@ function _t(e, t, n, r, i, a) {
|
|
|
2017
2020
|
"options",
|
|
2018
2021
|
"placeholder",
|
|
2019
2022
|
"show-search"
|
|
2020
|
-
])) : (H(),
|
|
2023
|
+
])) : (H(), M(S, {
|
|
2021
2024
|
key: 1,
|
|
2022
2025
|
value: e.model,
|
|
2023
2026
|
"onUpdate:value": t[19] ||= (t) => e.model = t,
|
|
@@ -2046,8 +2049,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
2046
2049
|
"options",
|
|
2047
2050
|
"placeholder",
|
|
2048
2051
|
"show-search"
|
|
2049
|
-
]))], 64)) :
|
|
2050
|
-
e.field.type === "cascader" ? (H(),
|
|
2052
|
+
]))], 64)) : N("", !0),
|
|
2053
|
+
e.field.type === "cascader" ? (H(), M(te, {
|
|
2051
2054
|
key: 19,
|
|
2052
2055
|
value: e.model,
|
|
2053
2056
|
"onUpdate:value": t[20] ||= (t) => e.model = t,
|
|
@@ -2070,8 +2073,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
2070
2073
|
"changeOnSelect",
|
|
2071
2074
|
"options",
|
|
2072
2075
|
"placeholder"
|
|
2073
|
-
])) :
|
|
2074
|
-
e.field.type === "remotecascader" ? (H(),
|
|
2076
|
+
])) : N("", !0),
|
|
2077
|
+
e.field.type === "remotecascader" ? (H(), M(C, {
|
|
2075
2078
|
key: 20,
|
|
2076
2079
|
value: e.model,
|
|
2077
2080
|
"onUpdate:value": t[21] ||= (t) => e.model = t,
|
|
@@ -2096,8 +2099,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
2096
2099
|
"label-space",
|
|
2097
2100
|
"search_config",
|
|
2098
2101
|
"value-key"
|
|
2099
|
-
])) :
|
|
2100
|
-
e.field.type === "remotecascaderpro" ? (H(),
|
|
2102
|
+
])) : N("", !0),
|
|
2103
|
+
e.field.type === "remotecascaderpro" ? (H(), M(w, {
|
|
2101
2104
|
key: 21,
|
|
2102
2105
|
label: e.labelModel,
|
|
2103
2106
|
"onUpdate:label": t[23] ||= (t) => e.labelModel = t,
|
|
@@ -2144,8 +2147,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
2144
2147
|
"init_watch",
|
|
2145
2148
|
"is_form_design",
|
|
2146
2149
|
"placeholder"
|
|
2147
|
-
])) :
|
|
2148
|
-
e.field.type === "monthpicker" ? (H(),
|
|
2150
|
+
])) : N("", !0),
|
|
2151
|
+
e.field.type === "monthpicker" ? (H(), M(T, {
|
|
2149
2152
|
key: 22,
|
|
2150
2153
|
value: e.model,
|
|
2151
2154
|
"onUpdate:value": t[25] ||= (t) => e.model = t,
|
|
@@ -2173,8 +2176,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
2173
2176
|
"start_offset_day",
|
|
2174
2177
|
"end_offset_day",
|
|
2175
2178
|
"fix_day"
|
|
2176
|
-
])) :
|
|
2177
|
-
e.field.type === "datepicker" ? (H(),
|
|
2179
|
+
])) : N("", !0),
|
|
2180
|
+
e.field.type === "datepicker" ? (H(), M(ne, {
|
|
2178
2181
|
key: 23,
|
|
2179
2182
|
value: e.model,
|
|
2180
2183
|
"onUpdate:value": t[26] ||= (t) => e.model = t,
|
|
@@ -2200,8 +2203,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
2200
2203
|
"placeholder",
|
|
2201
2204
|
"show-time",
|
|
2202
2205
|
"value-format"
|
|
2203
|
-
])) :
|
|
2204
|
-
e.field.type === "rangepicker" ? (H(),
|
|
2206
|
+
])) : N("", !0),
|
|
2207
|
+
e.field.type === "rangepicker" ? (H(), M(E, {
|
|
2205
2208
|
key: 24,
|
|
2206
2209
|
value: e.model,
|
|
2207
2210
|
"onUpdate:value": t[27] ||= (t) => e.model = t,
|
|
@@ -2225,8 +2228,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
2225
2228
|
"show-time",
|
|
2226
2229
|
"value-format",
|
|
2227
2230
|
"picker"
|
|
2228
|
-
])) :
|
|
2229
|
-
e.field.type === "monthrangepicker" ? (H(),
|
|
2231
|
+
])) : N("", !0),
|
|
2232
|
+
e.field.type === "monthrangepicker" ? (H(), M(D, {
|
|
2230
2233
|
key: 25,
|
|
2231
2234
|
value: e.model,
|
|
2232
2235
|
"onUpdate:value": t[28] ||= (t) => e.model = t,
|
|
@@ -2252,8 +2255,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
2252
2255
|
"start_offset_day",
|
|
2253
2256
|
"end_offset_day",
|
|
2254
2257
|
"fix_day"
|
|
2255
|
-
])) :
|
|
2256
|
-
e.field.type === "timepicker" ? (H(),
|
|
2258
|
+
])) : N("", !0),
|
|
2259
|
+
e.field.type === "timepicker" ? (H(), M(O, {
|
|
2257
2260
|
key: 26,
|
|
2258
2261
|
value: e.model,
|
|
2259
2262
|
"onUpdate:value": t[29] ||= (t) => e.model = t,
|
|
@@ -2273,8 +2276,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
2273
2276
|
"format",
|
|
2274
2277
|
"placeholder",
|
|
2275
2278
|
"value-format"
|
|
2276
|
-
])) :
|
|
2277
|
-
e.field.type === "timerangepicker" ? (H(),
|
|
2279
|
+
])) : N("", !0),
|
|
2280
|
+
e.field.type === "timerangepicker" ? (H(), M(re, {
|
|
2278
2281
|
key: 27,
|
|
2279
2282
|
value: e.model,
|
|
2280
2283
|
"onUpdate:value": t[30] ||= (t) => e.model = t,
|
|
@@ -2294,8 +2297,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
2294
2297
|
"format",
|
|
2295
2298
|
"placeholder",
|
|
2296
2299
|
"value-format"
|
|
2297
|
-
])) :
|
|
2298
|
-
e.field.type === "radio" ? (H(),
|
|
2300
|
+
])) : N("", !0),
|
|
2301
|
+
e.field.type === "radio" ? (H(), M(ie, {
|
|
2299
2302
|
key: 28,
|
|
2300
2303
|
value: e.model,
|
|
2301
2304
|
"onUpdate:value": t[31] ||= (t) => e.model = t,
|
|
@@ -2303,12 +2306,12 @@ function _t(e, t, n, r, i, a) {
|
|
|
2303
2306
|
disabled: e.field.disabled,
|
|
2304
2307
|
size: "small"
|
|
2305
2308
|
}, {
|
|
2306
|
-
default: X(() => [(H(!0),
|
|
2309
|
+
default: X(() => [(H(!0), P(A, null, G(e.options, (t) => (H(), M(k, {
|
|
2307
2310
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2308
2311
|
disabled: t.disabled,
|
|
2309
2312
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2310
2313
|
}, {
|
|
2311
|
-
default: X(() => [
|
|
2314
|
+
default: X(() => [L(J(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
2312
2315
|
_: 2
|
|
2313
2316
|
}, 1032, ["disabled", "value"]))), 128))]),
|
|
2314
2317
|
_: 1
|
|
@@ -2316,8 +2319,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
2316
2319
|
"value",
|
|
2317
2320
|
"default-value",
|
|
2318
2321
|
"disabled"
|
|
2319
|
-
])) :
|
|
2320
|
-
e.field.type === "checkbox" ? (H(),
|
|
2322
|
+
])) : N("", !0),
|
|
2323
|
+
e.field.type === "checkbox" ? (H(), M(ae, {
|
|
2321
2324
|
key: 29,
|
|
2322
2325
|
value: e.model,
|
|
2323
2326
|
"onUpdate:value": t[32] ||= (t) => e.model = t,
|
|
@@ -2325,12 +2328,12 @@ function _t(e, t, n, r, i, a) {
|
|
|
2325
2328
|
disabled: e.field.disabled,
|
|
2326
2329
|
size: "small"
|
|
2327
2330
|
}, {
|
|
2328
|
-
default: X(() => [(H(!0),
|
|
2331
|
+
default: X(() => [(H(!0), P(A, null, G(e.options, (t) => (H(), M(j, {
|
|
2329
2332
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2330
2333
|
disabled: t.disabled,
|
|
2331
2334
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2332
2335
|
}, {
|
|
2333
|
-
default: X(() => [
|
|
2336
|
+
default: X(() => [L(J(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
2334
2337
|
_: 2
|
|
2335
2338
|
}, 1032, ["disabled", "value"]))), 128))]),
|
|
2336
2339
|
_: 1
|
|
@@ -2338,8 +2341,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
2338
2341
|
"value",
|
|
2339
2342
|
"default-value",
|
|
2340
2343
|
"disabled"
|
|
2341
|
-
])) :
|
|
2342
|
-
e.field.type === "treeselect" ? (H(),
|
|
2344
|
+
])) : N("", !0),
|
|
2345
|
+
e.field.type === "treeselect" ? (H(), M(z, {
|
|
2343
2346
|
key: 30,
|
|
2344
2347
|
value: e.model,
|
|
2345
2348
|
"onUpdate:value": t[33] ||= (t) => e.model = t,
|
|
@@ -2365,8 +2368,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
2365
2368
|
"tree-data",
|
|
2366
2369
|
"tree-label-prop",
|
|
2367
2370
|
"tree-node-filter-prop"
|
|
2368
|
-
])) :
|
|
2369
|
-
e.field.type === "remotefilterselect" ? (H(),
|
|
2371
|
+
])) : N("", !0),
|
|
2372
|
+
e.field.type === "remotefilterselect" ? (H(), M(oe, {
|
|
2370
2373
|
key: 31,
|
|
2371
2374
|
label: e.labelModel,
|
|
2372
2375
|
"onUpdate:label": t[34] ||= (t) => e.labelModel = t,
|
|
@@ -2393,8 +2396,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
2393
2396
|
"label-space",
|
|
2394
2397
|
"search_config",
|
|
2395
2398
|
"value-key"
|
|
2396
|
-
])) :
|
|
2397
|
-
e.field.type === "remoteselect" ? (H(),
|
|
2399
|
+
])) : N("", !0),
|
|
2400
|
+
e.field.type === "remoteselect" ? (H(), M(se, {
|
|
2398
2401
|
key: 32,
|
|
2399
2402
|
label: e.labelModel,
|
|
2400
2403
|
"onUpdate:label": t[36] ||= (t) => e.labelModel = t,
|
|
@@ -2421,8 +2424,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
2421
2424
|
"label-space",
|
|
2422
2425
|
"search_config",
|
|
2423
2426
|
"value-key"
|
|
2424
|
-
])) :
|
|
2425
|
-
e.field.type === "remoteselectpro" ? (H(),
|
|
2427
|
+
])) : N("", !0),
|
|
2428
|
+
e.field.type === "remoteselectpro" ? (H(), M(le, {
|
|
2426
2429
|
key: 33,
|
|
2427
2430
|
label: e.labelModel,
|
|
2428
2431
|
"onUpdate:label": t[38] ||= (t) => e.labelModel = t,
|
|
@@ -2469,8 +2472,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
2469
2472
|
"context",
|
|
2470
2473
|
"base-key-path",
|
|
2471
2474
|
"placeholder"
|
|
2472
|
-
])) :
|
|
2473
|
-
e.field.type === "remotecomplete" ? (H(),
|
|
2475
|
+
])) : N("", !0),
|
|
2476
|
+
e.field.type === "remotecomplete" ? (H(), M(B, {
|
|
2474
2477
|
key: 34,
|
|
2475
2478
|
value: e.model,
|
|
2476
2479
|
"onUpdate:value": t[40] ||= (t) => e.model = t,
|
|
@@ -2508,8 +2511,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
2508
2511
|
"is_input",
|
|
2509
2512
|
"is_form_design",
|
|
2510
2513
|
"placeholder"
|
|
2511
|
-
])) :
|
|
2512
|
-
e.field.type === "remotetreeselect" ? (H(),
|
|
2514
|
+
])) : N("", !0),
|
|
2515
|
+
e.field.type === "remotetreeselect" ? (H(), M(V, {
|
|
2513
2516
|
key: 35,
|
|
2514
2517
|
label: e.labelModel,
|
|
2515
2518
|
"onUpdate:label": t[41] ||= (t) => e.labelModel = t,
|
|
@@ -2536,8 +2539,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
2536
2539
|
"label-key",
|
|
2537
2540
|
"search_config",
|
|
2538
2541
|
"value-key"
|
|
2539
|
-
])) :
|
|
2540
|
-
e.field.type === "remotetreeselectpro" ? (H(),
|
|
2542
|
+
])) : N("", !0),
|
|
2543
|
+
e.field.type === "remotetreeselectpro" ? (H(), M(U, {
|
|
2541
2544
|
key: 36,
|
|
2542
2545
|
label: e.labelModel,
|
|
2543
2546
|
"onUpdate:label": t[43] ||= (t) => e.labelModel = t,
|
|
@@ -2582,8 +2585,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
2582
2585
|
"init_watch",
|
|
2583
2586
|
"is_form_design",
|
|
2584
2587
|
"placeholder"
|
|
2585
|
-
])) :
|
|
2586
|
-
e.field.type === "remotemodal" ? (H(),
|
|
2588
|
+
])) : N("", !0),
|
|
2589
|
+
e.field.type === "remotemodal" ? (H(), M(W, {
|
|
2587
2590
|
key: 37,
|
|
2588
2591
|
label: e.labelModel,
|
|
2589
2592
|
"onUpdate:label": t[45] ||= (t) => e.labelModel = t,
|
|
@@ -2608,8 +2611,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
2608
2611
|
"modalType",
|
|
2609
2612
|
"search_config",
|
|
2610
2613
|
"watch"
|
|
2611
|
-
])) :
|
|
2612
|
-
e.field.type === "remotetable" ? (H(),
|
|
2614
|
+
])) : N("", !0),
|
|
2615
|
+
e.field.type === "remotetable" ? (H(), M(fe, {
|
|
2613
2616
|
key: 38,
|
|
2614
2617
|
value: e.model,
|
|
2615
2618
|
"onUpdate:value": t[47] ||= (t) => e.model = t,
|
|
@@ -2637,8 +2640,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
2637
2640
|
"watch",
|
|
2638
2641
|
"base-key-path",
|
|
2639
2642
|
"worker-host-functions"
|
|
2640
|
-
])) :
|
|
2641
|
-
e.field.type === "remotetablepro" && !e.self_is_edit ? (H(),
|
|
2643
|
+
])) : N("", !0),
|
|
2644
|
+
e.field.type === "remotetablepro" && !e.self_is_edit ? (H(), M(pe, {
|
|
2642
2645
|
key: 39,
|
|
2643
2646
|
value: e.model,
|
|
2644
2647
|
"onUpdate:value": t[48] ||= (t) => e.model = t,
|
|
@@ -2672,8 +2675,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
2672
2675
|
"global-inner-model",
|
|
2673
2676
|
"base-key-path",
|
|
2674
2677
|
"worker-host-functions"
|
|
2675
|
-
])) :
|
|
2676
|
-
e.field.type === "formtemplate" ? (H(),
|
|
2678
|
+
])) : N("", !0),
|
|
2679
|
+
e.field.type === "formtemplate" ? (H(), M(me, {
|
|
2677
2680
|
key: 40,
|
|
2678
2681
|
value: e.model,
|
|
2679
2682
|
"onUpdate:value": t[49] ||= (t) => e.model = t,
|
|
@@ -2717,8 +2720,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
2717
2720
|
"base-key-path",
|
|
2718
2721
|
"worker-host-functions",
|
|
2719
2722
|
"contextOptions"
|
|
2720
|
-
])) :
|
|
2721
|
-
e.field.type === "dynamicvaluefield" ? (H(),
|
|
2723
|
+
])) : N("", !0),
|
|
2724
|
+
e.field.type === "dynamicvaluefield" ? (H(), M(Y, {
|
|
2722
2725
|
key: 41,
|
|
2723
2726
|
value: e.model,
|
|
2724
2727
|
"onUpdate:value": t[50] ||= (t) => e.model = t,
|
|
@@ -2756,8 +2759,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
2756
2759
|
"context",
|
|
2757
2760
|
"base-key-path",
|
|
2758
2761
|
"worker-host-functions"
|
|
2759
|
-
])) :
|
|
2760
|
-
e.field.type === "remotetext" ? (H(),
|
|
2762
|
+
])) : N("", !0),
|
|
2763
|
+
e.field.type === "remotetext" ? (H(), M(he, {
|
|
2761
2764
|
key: 42,
|
|
2762
2765
|
value: e.model,
|
|
2763
2766
|
"onUpdate:value": t[51] ||= (t) => e.model = t,
|
|
@@ -2779,8 +2782,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
2779
2782
|
"modalType",
|
|
2780
2783
|
"search_config",
|
|
2781
2784
|
"watch"
|
|
2782
|
-
])) :
|
|
2783
|
-
e.field.type === "upload" ? (H(),
|
|
2785
|
+
])) : N("", !0),
|
|
2786
|
+
e.field.type === "upload" ? (H(), M(ge, {
|
|
2784
2787
|
key: 43,
|
|
2785
2788
|
value: e.model,
|
|
2786
2789
|
"onUpdate:value": t[52] ||= (t) => e.model = t,
|
|
@@ -2796,8 +2799,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
2796
2799
|
"listType",
|
|
2797
2800
|
"maxCount",
|
|
2798
2801
|
"acceptList"
|
|
2799
|
-
])) :
|
|
2800
|
-
e.field.type === "codeeditor" ? (H(),
|
|
2802
|
+
])) : N("", !0),
|
|
2803
|
+
e.field.type === "codeeditor" ? (H(), M(_e, {
|
|
2801
2804
|
key: 44,
|
|
2802
2805
|
editorValue: e.model,
|
|
2803
2806
|
"onUpdate:editorValue": t[53] ||= (t) => e.model = t,
|
|
@@ -2809,8 +2812,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
2809
2812
|
"options",
|
|
2810
2813
|
"mode",
|
|
2811
2814
|
"lineWrapping"
|
|
2812
|
-
])) :
|
|
2813
|
-
e.field.type === "tinymceeditor" ? (H(),
|
|
2815
|
+
])) : N("", !0),
|
|
2816
|
+
e.field.type === "tinymceeditor" ? (H(), M(ve, {
|
|
2814
2817
|
key: 45,
|
|
2815
2818
|
modelValue: e.model,
|
|
2816
2819
|
"onUpdate:modelValue": t[54] ||= (t) => e.model = t,
|
|
@@ -2820,14 +2823,14 @@ function _t(e, t, n, r, i, a) {
|
|
|
2820
2823
|
"modelValue",
|
|
2821
2824
|
"options",
|
|
2822
2825
|
"mode"
|
|
2823
|
-
])) :
|
|
2824
|
-
e.field.type === "iconselect" ? (H(),
|
|
2826
|
+
])) : N("", !0),
|
|
2827
|
+
e.field.type === "iconselect" ? (H(), M(ye, {
|
|
2825
2828
|
key: 46,
|
|
2826
2829
|
value: e.model,
|
|
2827
2830
|
"onUpdate:value": t[55] ||= (t) => e.model = t,
|
|
2828
2831
|
placeholder: e.field.placeholder_i18n == null ? e.field.placeholder ? e.field.placeholder : e.$t("请选择") + e.field.label : e.t(e.field.placeholder_i18n)
|
|
2829
|
-
}, null, 8, ["value", "placeholder"])) :
|
|
2830
|
-
e.field.type === "rate" ? (H(),
|
|
2832
|
+
}, null, 8, ["value", "placeholder"])) : N("", !0),
|
|
2833
|
+
e.field.type === "rate" ? (H(), M(u, {
|
|
2831
2834
|
key: 47,
|
|
2832
2835
|
value: e.model,
|
|
2833
2836
|
"onUpdate:value": t[56] ||= (t) => e.model = t,
|
|
@@ -2837,8 +2840,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
2837
2840
|
"value",
|
|
2838
2841
|
"count",
|
|
2839
2842
|
"allow-half"
|
|
2840
|
-
])) :
|
|
2841
|
-
e.field.type === "radio-color" ? (H(),
|
|
2843
|
+
])) : N("", !0),
|
|
2844
|
+
e.field.type === "radio-color" ? (H(), M(ie, {
|
|
2842
2845
|
key: 48,
|
|
2843
2846
|
value: e.model,
|
|
2844
2847
|
"onUpdate:value": t[57] ||= (t) => e.model = t,
|
|
@@ -2846,12 +2849,12 @@ function _t(e, t, n, r, i, a) {
|
|
|
2846
2849
|
disabled: e.field.disabled,
|
|
2847
2850
|
size: "small"
|
|
2848
2851
|
}, {
|
|
2849
|
-
default: X(() => [(H(!0),
|
|
2852
|
+
default: X(() => [(H(!0), P(A, null, G(e.options, (t) => (H(), M(k, {
|
|
2850
2853
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2851
2854
|
disabled: t.disabled,
|
|
2852
2855
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2853
2856
|
}, {
|
|
2854
|
-
default: X(() => [
|
|
2857
|
+
default: X(() => [F("div", { style: ue({
|
|
2855
2858
|
width: "20px",
|
|
2856
2859
|
height: "20px",
|
|
2857
2860
|
backgroundColor: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
@@ -2863,8 +2866,8 @@ function _t(e, t, n, r, i, a) {
|
|
|
2863
2866
|
"value",
|
|
2864
2867
|
"default-value",
|
|
2865
2868
|
"disabled"
|
|
2866
|
-
])) :
|
|
2867
|
-
e.field.type?.startsWith("CustomField") ? (H(),
|
|
2869
|
+
])) : N("", !0),
|
|
2870
|
+
e.field.type?.startsWith("CustomField") ? (H(), M(q(e.field.type), {
|
|
2868
2871
|
key: 49,
|
|
2869
2872
|
label: e.labelModel,
|
|
2870
2873
|
"onUpdate:label": t[58] ||= (t) => e.labelModel = t,
|
|
@@ -2889,14 +2892,14 @@ function _t(e, t, n, r, i, a) {
|
|
|
2889
2892
|
"init_watch",
|
|
2890
2893
|
"is_form_design",
|
|
2891
2894
|
"placeholder"
|
|
2892
|
-
])) :
|
|
2895
|
+
])) : N("", !0)
|
|
2893
2896
|
]),
|
|
2894
2897
|
_: 2
|
|
2895
2898
|
}, [e.is_show_label ? {
|
|
2896
2899
|
name: "label",
|
|
2897
2900
|
fn: X(() => [
|
|
2898
|
-
|
|
2899
|
-
e.is_show_edit ? (H(),
|
|
2901
|
+
L(J(e.is_show_label ? e.field.label_i18n == null ? e.field.label : e.t(e.field.label_i18n) : null) + " ", 1),
|
|
2902
|
+
e.is_show_edit ? (H(), M(o, {
|
|
2900
2903
|
key: 0,
|
|
2901
2904
|
checked: e.self_is_edit,
|
|
2902
2905
|
"onUpdate:checked": t[0] ||= (t) => e.self_is_edit = t,
|
|
@@ -2904,28 +2907,28 @@ function _t(e, t, n, r, i, a) {
|
|
|
2904
2907
|
onChange: e.handleToggleEdit,
|
|
2905
2908
|
"checked-children": "表单",
|
|
2906
2909
|
"un-checked-children": "列表"
|
|
2907
|
-
}, null, 8, ["checked", "onChange"])) :
|
|
2908
|
-
e.is_show_edit && e.self_is_edit ? (H(),
|
|
2910
|
+
}, null, 8, ["checked", "onChange"])) : N("", !0),
|
|
2911
|
+
e.is_show_edit && e.self_is_edit ? (H(), M(c, {
|
|
2909
2912
|
key: 1,
|
|
2910
2913
|
size: "small",
|
|
2911
2914
|
type: "primary",
|
|
2912
2915
|
onClick: e.handleAdd
|
|
2913
2916
|
}, {
|
|
2914
|
-
icon: X(() => [
|
|
2915
|
-
default: X(() => [t[61] ||=
|
|
2917
|
+
icon: X(() => [R(s)]),
|
|
2918
|
+
default: X(() => [t[61] ||= L(" 添加分组 ")]),
|
|
2916
2919
|
_: 1
|
|
2917
|
-
}, 8, ["onClick"])) :
|
|
2920
|
+
}, 8, ["onClick"])) : N("", !0)
|
|
2918
2921
|
]),
|
|
2919
2922
|
key: "0"
|
|
2920
|
-
} : void 0]), 1040, ["extra", "name"])) :
|
|
2921
|
-
e.field.type === "divider" ? (H(),
|
|
2923
|
+
} : void 0]), 1040, ["extra", "name"])) : N("", !0),
|
|
2924
|
+
e.field.type === "divider" ? (H(), M(be, {
|
|
2922
2925
|
key: 1,
|
|
2923
2926
|
orientation: e.field.orientation
|
|
2924
2927
|
}, {
|
|
2925
|
-
default: X(() => [
|
|
2928
|
+
default: X(() => [L(J(e.field.label), 1)]),
|
|
2926
2929
|
_: 1
|
|
2927
|
-
}, 8, ["orientation"])) :
|
|
2928
|
-
e.field.type === "button" ? (H(),
|
|
2930
|
+
}, 8, ["orientation"])) : N("", !0),
|
|
2931
|
+
e.field.type === "button" ? (H(), M(xe, {
|
|
2929
2932
|
key: 2,
|
|
2930
2933
|
value: e.model,
|
|
2931
2934
|
"onUpdate:value": t[60] ||= (t) => e.model = t,
|
|
@@ -2947,9 +2950,9 @@ function _t(e, t, n, r, i, a) {
|
|
|
2947
2950
|
"context",
|
|
2948
2951
|
"base-key-path",
|
|
2949
2952
|
"worker-host-functions"
|
|
2950
|
-
])) :
|
|
2953
|
+
])) : N("", !0)
|
|
2951
2954
|
], 64);
|
|
2952
2955
|
}
|
|
2953
|
-
var
|
|
2956
|
+
var St = /*#__PURE__*/ t(mt, [["render", xt], ["__scopeId", "data-v-c9b8686a"]]);
|
|
2954
2957
|
//#endregion
|
|
2955
|
-
export {
|
|
2958
|
+
export { St as t };
|