liyu-pc-base 1.0.765 → 1.0.767
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-DGe9eoIm.js → FieldRender2-COd6A2I1.js} +241 -238
- package/dist/FieldRender2-COd6A2I1.js.map +1 -0
- package/dist/{FormRender3-CFahE5cD.js → FormRender3-tJm5mOwN.js} +1 -1
- package/dist/{FormRender3-CFahE5cD.js.map → FormRender3-tJm5mOwN.js.map} +1 -1
- package/dist/{SearchRender-gO2FgdkU.js → SearchRender-DVqwM0O0.js} +1 -1
- package/dist/{SearchRender-gO2FgdkU.js.map → SearchRender-DVqwM0O0.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-DGe9eoIm.js.map +0 -1
|
@@ -16,15 +16,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
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 re, s as ie, t as ae, u as oe } from "./TinymceEditor-VlIMhy_4.js";
|
|
19
|
-
import { Fragment as O, computed as k, createBlock as A, createCommentVNode as j, createElementBlock as M, createElementVNode as N, createSlots as P, createTextVNode as F, createVNode as I, defineAsyncComponent as L, defineComponent as R, h as
|
|
19
|
+
import { Fragment as O, computed as k, createBlock as A, createCommentVNode as j, createElementBlock as M, createElementVNode as N, createSlots as P, createTextVNode as F, createVNode as I, defineAsyncComponent as L, defineComponent as R, h as z, mergeModels as se, mergeProps as ce, normalizeClass as le, normalizeStyle as ue, onBeforeUnmount as de, onMounted as B, onUnmounted as V, openBlock as H, reactive as U, ref as W, renderList as G, renderSlot as fe, resolveComponent as K, resolveDynamicComponent as q, toDisplayString as J, unref as pe, useModel as me, vShow as he, watch as Y, withCtx as X, withDirectives as ge } from "vue";
|
|
20
20
|
import { Modal as _e, message as ve } from "ant-design-vue";
|
|
21
21
|
import { debounce as ye, isArray as be } from "lodash-es";
|
|
22
|
-
import
|
|
23
|
-
import { ExclamationCircleOutlined as xe, PlusOutlined as
|
|
24
|
-
import { useI18n as
|
|
25
|
-
import
|
|
22
|
+
import Z from "moment";
|
|
23
|
+
import { ExclamationCircleOutlined as xe, PlusOutlined as Se } from "@ant-design/icons-vue";
|
|
24
|
+
import { useI18n as Ce } from "vue-i18n";
|
|
25
|
+
import we from "mitt";
|
|
26
26
|
//#region src/components/FormRender/FormTemplate/FormItem.vue?vue&type=script&lang.ts
|
|
27
|
-
var
|
|
27
|
+
var Te = R({
|
|
28
28
|
name: "FormTemplate",
|
|
29
29
|
components: {},
|
|
30
30
|
props: {
|
|
@@ -82,10 +82,10 @@ var we = R({
|
|
|
82
82
|
},
|
|
83
83
|
emits: ["update:value", "remove"],
|
|
84
84
|
setup(e, { emit: t }) {
|
|
85
|
-
let n =
|
|
85
|
+
let n = U({ ...e.field.form.rules }), r = W({}), i = L(() => import("./FormRender3-tJm5mOwN.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
|
-
}, s =
|
|
88
|
+
}, s = W([]), c = o(), u = ([t, i]) => {
|
|
89
89
|
let o = {};
|
|
90
90
|
Object.keys(n).forEach((e) => {
|
|
91
91
|
e in t && !i[e] && (o[e] = n[e]);
|
|
@@ -93,12 +93,12 @@ var we = R({
|
|
|
93
93
|
let s = l(t, o);
|
|
94
94
|
a = s.validate, r.value = s.validateInfos, e.nestValidate && (e.nestValidate[c] = a);
|
|
95
95
|
};
|
|
96
|
-
return
|
|
96
|
+
return Y(() => e.value, (e) => {
|
|
97
97
|
u([e, s.value]);
|
|
98
98
|
}, {
|
|
99
99
|
deep: !0,
|
|
100
100
|
immediate: !0
|
|
101
|
-
}),
|
|
101
|
+
}), B(() => {}), V(() => {
|
|
102
102
|
e.nestValidate && delete e.nestValidate[c];
|
|
103
103
|
}), {
|
|
104
104
|
FormRender3Async: i,
|
|
@@ -114,13 +114,13 @@ var we = R({
|
|
|
114
114
|
data() {
|
|
115
115
|
return { model: this.value };
|
|
116
116
|
}
|
|
117
|
-
}),
|
|
117
|
+
}), Ee = { class: "form-wrap" }, De = { class: "form-content" }, Oe = {
|
|
118
118
|
key: 0,
|
|
119
119
|
class: "form-action"
|
|
120
120
|
};
|
|
121
|
-
function
|
|
122
|
-
let o =
|
|
123
|
-
return
|
|
121
|
+
function ke(e, t, n, r, i, a) {
|
|
122
|
+
let o = K("DeleteOutlined"), s = K("a-button");
|
|
123
|
+
return H(), M("div", Ee, [N("div", De, [(H(), A(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 Oe(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 ? j("", !0) : (
|
|
154
|
+
]))]), e.field.max_count === e.min_count ? j("", !0) : (H(), M("div", Oe, [I(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:
|
|
161
|
+
icon: X(() => [I(o)]),
|
|
162
162
|
_: 1
|
|
163
163
|
}, 8, ["onClick", "disabled"])]))]);
|
|
164
164
|
}
|
|
165
|
-
var
|
|
165
|
+
var Ae = /*#__PURE__*/ t(Te, [["render", ke], ["__scopeId", "data-v-d6626b20"]]), je = { key: 1 }, Me = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
166
166
|
__name: "TableCell",
|
|
167
167
|
props: {
|
|
168
168
|
field: {
|
|
@@ -210,22 +210,22 @@ var ke = /*#__PURE__*/ t(we, [["render", Oe], ["__scopeId", "data-v-d6626b20"]])
|
|
|
210
210
|
},
|
|
211
211
|
emits: ["update_model", "update_name2"],
|
|
212
212
|
setup(e, { emit: t }) {
|
|
213
|
-
let n = e, r = t, i =
|
|
213
|
+
let n = e, r = t, i = W(!0), a = (e) => {
|
|
214
214
|
r("update_model", e);
|
|
215
215
|
}, o = (e) => {
|
|
216
216
|
r("update_name2", e);
|
|
217
217
|
}, s = k(() => i.value && !n.field.disabled && n.field.type !== "dynamicvaluefield");
|
|
218
218
|
return (t, n) => {
|
|
219
|
-
let r =
|
|
220
|
-
return
|
|
219
|
+
let r = K("a-form");
|
|
220
|
+
return H(), A(r, {
|
|
221
221
|
model: e.model,
|
|
222
222
|
layout: "inline",
|
|
223
223
|
class: "table-cell-form"
|
|
224
224
|
}, {
|
|
225
|
-
default:
|
|
225
|
+
default: X(() => [ge(N("div", { class: le(["field-cell-item", {
|
|
226
226
|
editable: s.value,
|
|
227
227
|
"item-required": e.has_reqrired
|
|
228
|
-
}]) }, [e.field.type === "dynamicvaluefield" ? (
|
|
228
|
+
}]) }, [e.field.type === "dynamicvaluefield" ? (H(), M("span", je, J(e.model[e.field.name]), 1)) : (H(), A(vt, {
|
|
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,
|
|
@@ -267,7 +267,7 @@ var ke = /*#__PURE__*/ t(we, [["render", Oe], ["__scopeId", "data-v-d6626b20"]])
|
|
|
267
267
|
}, 8, ["model"]);
|
|
268
268
|
};
|
|
269
269
|
}
|
|
270
|
-
}), [["__scopeId", "data-v-00188241"]]),
|
|
270
|
+
}), [["__scopeId", "data-v-00188241"]]), Ne = { key: 0 }, Pe = { key: 1 }, Fe = /* @__PURE__ */ R({
|
|
271
271
|
__name: "TableSummary",
|
|
272
272
|
props: {
|
|
273
273
|
summaryParams: {
|
|
@@ -303,22 +303,22 @@ var ke = /*#__PURE__*/ t(we, [["render", Oe], ["__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) => (
|
|
307
|
-
e.summaryParams?.column?.field?.addonBefore ? (
|
|
308
|
-
F(" " +
|
|
309
|
-
e.summaryParams?.column?.field?.addonAfter ? (
|
|
306
|
+
return (t, r) => (H(), M(O, null, [
|
|
307
|
+
e.summaryParams?.column?.field?.addonBefore ? (H(), M("span", Ne, J(e.summaryParams.column.field.addonBefore), 1)) : j("", !0),
|
|
308
|
+
F(" " + J(n.value) + " ", 1),
|
|
309
|
+
e.summaryParams?.column?.field?.addonAfter ? (H(), M("span", Pe, J(e.summaryParams.column.field.addonAfter), 1)) : j("", !0)
|
|
310
310
|
], 64));
|
|
311
311
|
}
|
|
312
|
-
}),
|
|
312
|
+
}), Ie = {
|
|
313
313
|
key: 0,
|
|
314
314
|
class: "required-star"
|
|
315
|
-
},
|
|
315
|
+
}, Le = {
|
|
316
316
|
key: 0,
|
|
317
317
|
class: "cell-item"
|
|
318
|
-
},
|
|
318
|
+
}, Re = {
|
|
319
319
|
key: 1,
|
|
320
320
|
class: "cell-item"
|
|
321
|
-
},
|
|
321
|
+
}, ze = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
322
322
|
__name: "FormTemplateTable",
|
|
323
323
|
props: {
|
|
324
324
|
value: {},
|
|
@@ -335,16 +335,16 @@ var ke = /*#__PURE__*/ t(we, [["render", Oe], ["__scopeId", "data-v-d6626b20"]])
|
|
|
335
335
|
},
|
|
336
336
|
emits: ["remove"],
|
|
337
337
|
setup(e, { emit: t }) {
|
|
338
|
-
let n =
|
|
338
|
+
let n = W({
|
|
339
339
|
showQuickJumper: !0,
|
|
340
340
|
showSizeChanger: !1,
|
|
341
341
|
showTotal: (e) => `共 ${e} 条记录`,
|
|
342
342
|
pageSize: 5,
|
|
343
343
|
current: 1
|
|
344
|
-
}), r = e, i = t, a =
|
|
344
|
+
}), r = e, i = t, a = U({ ...r.field.form?.rules || {} }), o = W([]), s = W([]), u = W([]), d = (() => {
|
|
345
345
|
let e = /* @__PURE__ */ new Uint8Array(16);
|
|
346
346
|
return window.crypto.getRandomValues(e), Array.from(e, (e) => e.toString(16).padStart(2, "0")).join("");
|
|
347
|
-
})(), f =
|
|
347
|
+
})(), f = W([]), p = () => {
|
|
348
348
|
let e = [], t = [];
|
|
349
349
|
(r.value || []).forEach((n, r) => {
|
|
350
350
|
u.value[r] || (u.value[r] = {});
|
|
@@ -361,20 +361,20 @@ var ke = /*#__PURE__*/ t(we, [["render", Oe], ["__scopeId", "data-v-d6626b20"]])
|
|
|
361
361
|
}, m = (e, t) => {
|
|
362
362
|
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());
|
|
363
363
|
};
|
|
364
|
-
|
|
364
|
+
Y(() => r.value, () => {
|
|
365
365
|
p();
|
|
366
366
|
}, {
|
|
367
367
|
deep: !0,
|
|
368
368
|
immediate: !0
|
|
369
|
-
}),
|
|
369
|
+
}), Y(() => r.field, () => {
|
|
370
370
|
v();
|
|
371
|
-
}, { deep: !0 }),
|
|
371
|
+
}, { deep: !0 }), Y(() => r.formModel, () => {
|
|
372
372
|
v();
|
|
373
|
-
}, { deep: !0 }),
|
|
373
|
+
}, { deep: !0 }), Y(() => r.context, () => {
|
|
374
374
|
v();
|
|
375
|
-
}, { deep: !0 }),
|
|
375
|
+
}, { deep: !0 }), B(() => {
|
|
376
376
|
v();
|
|
377
|
-
}),
|
|
377
|
+
}), V(() => {
|
|
378
378
|
r.nestValidate && delete r.nestValidate[d];
|
|
379
379
|
});
|
|
380
380
|
let h = k(() => {
|
|
@@ -461,12 +461,12 @@ var ke = /*#__PURE__*/ t(we, [["render", Oe], ["__scopeId", "data-v-d6626b20"]])
|
|
|
461
461
|
return e;
|
|
462
462
|
});
|
|
463
463
|
return (e, t) => {
|
|
464
|
-
let r =
|
|
465
|
-
return
|
|
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(), A(C, {
|
|
466
466
|
"dynamic-title": e.field.dynamicTitle,
|
|
467
467
|
"onUpdate:dynamicTitle": t[1] ||= (t) => e.field.dynamicTitle = t
|
|
468
468
|
}, {
|
|
469
|
-
default:
|
|
469
|
+
default: X(() => [(H(), A(c, {
|
|
470
470
|
dataSource: g.value,
|
|
471
471
|
columns: f.value,
|
|
472
472
|
autoRowHeight: !0,
|
|
@@ -481,17 +481,17 @@ var ke = /*#__PURE__*/ t(we, [["render", Oe], ["__scopeId", "data-v-d6626b20"]])
|
|
|
481
481
|
"onUpdate:pagination": t[0] ||= (e) => n.value = e,
|
|
482
482
|
rangeSelection: !1
|
|
483
483
|
}, P({
|
|
484
|
-
headerCell:
|
|
485
|
-
bodyCell:
|
|
484
|
+
headerCell: X(({ column: e }) => [N("span", null, J(e.title), 1), e.has_reqrired ? (H(), M("span", Ie, " * ")) : j("", !0)]),
|
|
485
|
+
bodyCell: X(({ column: t, record: n }) => [t.key === "action" ? (H(), M("div", Le, [I(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:
|
|
492
|
+
icon: X(() => [I(r)]),
|
|
493
493
|
_: 2
|
|
494
|
-
}, 1032, ["onClick", "disabled"])])) : t.key === "index" ? (
|
|
494
|
+
}, 1032, ["onClick", "disabled"])])) : t.key === "index" ? (H(), M("div", Re, J(n._key + 1), 1)) : t.field ? (H(), A(Me, {
|
|
495
495
|
key: `${n._key}_${t.dataIndex}`,
|
|
496
496
|
field: t.field,
|
|
497
497
|
model: e.value[n._key],
|
|
@@ -528,15 +528,15 @@ var ke = /*#__PURE__*/ t(we, [["render", Oe], ["__scopeId", "data-v-d6626b20"]])
|
|
|
528
528
|
_: 2
|
|
529
529
|
}, [x.value.length > 0 ? {
|
|
530
530
|
name: "summary",
|
|
531
|
-
fn:
|
|
532
|
-
default:
|
|
533
|
-
default:
|
|
531
|
+
fn: X(() => [I(s, null, {
|
|
532
|
+
default: X(() => [I(a, { index: 0 }, {
|
|
533
|
+
default: X(() => t[2] ||= [F("合计")]),
|
|
534
534
|
_: 1
|
|
535
|
-
}), (
|
|
535
|
+
}), (H(!0), M(O, null, G(x.value, (e) => (H(), A(a, {
|
|
536
536
|
key: e.index,
|
|
537
537
|
index: e.index
|
|
538
538
|
}, {
|
|
539
|
-
default:
|
|
539
|
+
default: X((e) => [I(Fe, {
|
|
540
540
|
"summary-params": e,
|
|
541
541
|
tableDataSource: g.value
|
|
542
542
|
}, null, 8, ["summary-params", "tableDataSource"])]),
|
|
@@ -555,11 +555,11 @@ var ke = /*#__PURE__*/ t(we, [["render", Oe], ["__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"]]), Be = /* @__PURE__ */ new Set();
|
|
559
|
+
function Ve(e, t = []) {
|
|
560
560
|
return [...t, e.name || e.code || "field"].join("__");
|
|
561
561
|
}
|
|
562
|
-
async function
|
|
562
|
+
async function He(e) {
|
|
563
563
|
try {
|
|
564
564
|
let t = e.serialConfig || {};
|
|
565
565
|
return { value: await i({
|
|
@@ -575,7 +575,7 @@ async function Ve(e) {
|
|
|
575
575
|
};
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
|
-
async function
|
|
578
|
+
async function Ue(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 He(e) {
|
|
|
638
638
|
};
|
|
639
639
|
}
|
|
640
640
|
else if (t.watchType === "serial") {
|
|
641
|
-
if (f) return await
|
|
641
|
+
if (f) return await He(t);
|
|
642
642
|
if (n != null && n !== "") return null;
|
|
643
|
-
let e =
|
|
644
|
-
if (
|
|
645
|
-
|
|
643
|
+
let e = Ve(t, u);
|
|
644
|
+
if (Be.has(e)) return null;
|
|
645
|
+
Be.add(e);
|
|
646
646
|
try {
|
|
647
647
|
let e = t.serialConfig || {}, r = await i({
|
|
648
648
|
org_id: s(),
|
|
@@ -656,14 +656,14 @@ async function He(e) {
|
|
|
656
656
|
error: e?.message || "流水号分配失败"
|
|
657
657
|
};
|
|
658
658
|
} finally {
|
|
659
|
-
|
|
659
|
+
Be.delete(e);
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
662
|
return null;
|
|
663
663
|
}
|
|
664
664
|
//#endregion
|
|
665
665
|
//#region src/components/FormRender/FormTemplate/FormTemplate.vue?vue&type=script&setup=true&lang.ts
|
|
666
|
-
var Q = r(),
|
|
666
|
+
var Q = r(), We = { class: "top_btn" }, Ge = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
667
667
|
__name: "FormTemplate",
|
|
668
668
|
props: {
|
|
669
669
|
field: {},
|
|
@@ -685,7 +685,7 @@ var Q = r(), Ue = { class: "top_btn" }, We = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
|
685
685
|
},
|
|
686
686
|
emits: ["update:value"],
|
|
687
687
|
setup(e, { emit: t }) {
|
|
688
|
-
let n = e, r = t, i =
|
|
688
|
+
let n = e, r = t, i = W(0), a = we(), o = [{
|
|
689
689
|
label: "添加(add)",
|
|
690
690
|
value: "add"
|
|
691
691
|
}, {
|
|
@@ -717,7 +717,7 @@ var Q = r(), Ue = { class: "top_btn" }, We = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
|
717
717
|
].includes(t.type) && (r.options = n.field.form?.options?.[t.name] || t.options), e.push(r);
|
|
718
718
|
});
|
|
719
719
|
});
|
|
720
|
-
let i =
|
|
720
|
+
let i = U({
|
|
721
721
|
open: !0,
|
|
722
722
|
loading: !1,
|
|
723
723
|
component: s,
|
|
@@ -728,7 +728,7 @@ var Q = r(), Ue = { class: "top_btn" }, We = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
|
728
728
|
e.forEach((e) => {
|
|
729
729
|
let r = (0, Q.cloneDeep)(n.field.form.model || {});
|
|
730
730
|
Object.keys(e).forEach((t) => {
|
|
731
|
-
e[t].error && a.push(
|
|
731
|
+
e[t].error && a.push(z("li", e[t].error + "(" + e[t].excel_position + ")")), r[t] = e[t].value, m[t] && (r[m[t]] = e[t].raw_value);
|
|
732
732
|
}), t?.length && t.forEach((e) => {
|
|
733
733
|
e.children instanceof Array && e.children.forEach((e) => {
|
|
734
734
|
e.type === "dynamicvaluefield" && delete r[e.name];
|
|
@@ -736,7 +736,7 @@ var Q = r(), Ue = { class: "top_btn" }, We = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
|
736
736
|
}), o.push(r);
|
|
737
737
|
}), a.length > 0 ? _e.warning({
|
|
738
738
|
title: "导入Excel报错, 请改正后再尝试导入",
|
|
739
|
-
content:
|
|
739
|
+
content: z("ol", a),
|
|
740
740
|
icon: I(xe)
|
|
741
741
|
}) : r("update:value", [...n.value || [], ...o]), i.open = !1;
|
|
742
742
|
},
|
|
@@ -745,7 +745,7 @@ var Q = r(), Ue = { class: "top_btn" }, We = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
|
745
745
|
}
|
|
746
746
|
});
|
|
747
747
|
b(i);
|
|
748
|
-
}, g =
|
|
748
|
+
}, g = W(!1), _ = (e) => {
|
|
749
749
|
if (n.field?.form?.rules) {
|
|
750
750
|
let t = n.field?.form?.rules[e];
|
|
751
751
|
if (t) {
|
|
@@ -816,7 +816,7 @@ var Q = r(), Ue = { class: "top_btn" }, We = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
|
816
816
|
}, T = (0, Q.debounce)(() => {
|
|
817
817
|
i.value = window.innerHeight - 165;
|
|
818
818
|
}, 200), ne = () => {
|
|
819
|
-
b(
|
|
819
|
+
b(U({
|
|
820
820
|
open: !0,
|
|
821
821
|
loading: !1,
|
|
822
822
|
component: "InnerFormDesignModal",
|
|
@@ -835,7 +835,7 @@ var Q = r(), Ue = { class: "top_btn" }, We = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
|
835
835
|
}
|
|
836
836
|
}));
|
|
837
837
|
};
|
|
838
|
-
|
|
838
|
+
Y(() => n.value, (e) => {
|
|
839
839
|
if (!(e instanceof Array) || e.length < y.value) {
|
|
840
840
|
let t = [...e || []];
|
|
841
841
|
for (; t.length < y.value;) t.push((0, Q.cloneDeep)(n.field.form.model || {}));
|
|
@@ -863,7 +863,7 @@ var Q = r(), Ue = { class: "top_btn" }, We = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
|
863
863
|
e
|
|
864
864
|
];
|
|
865
865
|
for (let o of E.value) {
|
|
866
|
-
let s = i[e]?.[o.name], c = await
|
|
866
|
+
let s = i[e]?.[o.name], c = await Ue({
|
|
867
867
|
field: o,
|
|
868
868
|
currentValue: s,
|
|
869
869
|
innerModel: r,
|
|
@@ -886,7 +886,7 @@ var Q = r(), Ue = { class: "top_btn" }, We = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
|
886
886
|
}
|
|
887
887
|
}
|
|
888
888
|
}, 200);
|
|
889
|
-
return
|
|
889
|
+
return Y(() => [
|
|
890
890
|
n.value,
|
|
891
891
|
n.innerModel,
|
|
892
892
|
n.globalInnerModel,
|
|
@@ -897,68 +897,68 @@ var Q = r(), Ue = { class: "top_btn" }, We = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
|
897
897
|
}, {
|
|
898
898
|
deep: !0,
|
|
899
899
|
immediate: !0
|
|
900
|
-
}),
|
|
900
|
+
}), B(() => {
|
|
901
901
|
if (window.addEventListener("resize", T), T(), !(n.value instanceof Array) || n.value.length < y.value) {
|
|
902
902
|
let e = [...n.value || []];
|
|
903
903
|
for (; e.length < y.value;) e.push((0, Q.cloneDeep)(n.field.form.model || {}));
|
|
904
904
|
r("update:value", e);
|
|
905
905
|
}
|
|
906
|
-
}),
|
|
906
|
+
}), V(() => {
|
|
907
907
|
window.removeEventListener("resize", T);
|
|
908
908
|
}), (e, t) => {
|
|
909
|
-
let n =
|
|
910
|
-
return
|
|
911
|
-
e.is_form_design ? (
|
|
909
|
+
let n = K("a-button");
|
|
910
|
+
return H(), M(O, null, [N("div", We, [
|
|
911
|
+
e.is_form_design ? (H(), A(n, {
|
|
912
912
|
key: 0,
|
|
913
913
|
type: "primary",
|
|
914
914
|
size: "small",
|
|
915
915
|
onClick: ne,
|
|
916
916
|
ghost: !0
|
|
917
917
|
}, {
|
|
918
|
-
default:
|
|
918
|
+
default: X(() => t[0] ||= [F(" 编辑表单 ")]),
|
|
919
919
|
_: 1
|
|
920
920
|
})) : j("", !0),
|
|
921
|
-
f.value ? (
|
|
921
|
+
f.value ? (H(), A(n, {
|
|
922
922
|
key: 1,
|
|
923
923
|
size: "small",
|
|
924
924
|
type: "primary",
|
|
925
925
|
onClick: d,
|
|
926
926
|
danger: !0
|
|
927
927
|
}, {
|
|
928
|
-
default:
|
|
928
|
+
default: X(() => t[1] ||= [F(" 清空 ")]),
|
|
929
929
|
_: 1
|
|
930
930
|
})) : j("", !0),
|
|
931
|
-
l.value ? (
|
|
931
|
+
l.value ? (H(), A(n, {
|
|
932
932
|
key: 2,
|
|
933
933
|
size: "small",
|
|
934
934
|
type: "primary",
|
|
935
935
|
loading: g.value,
|
|
936
936
|
onClick: v
|
|
937
937
|
}, {
|
|
938
|
-
default:
|
|
938
|
+
default: X(() => t[2] ||= [F(" 下载导入模版 ")]),
|
|
939
939
|
_: 1
|
|
940
940
|
}, 8, ["loading"])) : j("", !0),
|
|
941
|
-
u.value ? (
|
|
941
|
+
u.value ? (H(), A(n, {
|
|
942
942
|
key: 3,
|
|
943
943
|
size: "small",
|
|
944
944
|
type: "primary",
|
|
945
945
|
onClick: h
|
|
946
946
|
}, {
|
|
947
|
-
default:
|
|
947
|
+
default: X(() => t[3] ||= [F(" 导入Excel数据 ")]),
|
|
948
948
|
_: 1
|
|
949
949
|
})) : j("", !0),
|
|
950
|
-
p.value && (!e.field.custom_btn_list?.length || e.field.max_count !== y.value) ? (
|
|
950
|
+
p.value && (!e.field.custom_btn_list?.length || e.field.max_count !== y.value) ? (H(), A(n, {
|
|
951
951
|
key: 4,
|
|
952
952
|
type: "primary",
|
|
953
953
|
size: "small",
|
|
954
954
|
onClick: te,
|
|
955
955
|
disabled: e.field.max_count && e.value.length >= e.field.max_count
|
|
956
956
|
}, {
|
|
957
|
-
icon:
|
|
958
|
-
default:
|
|
957
|
+
icon: X(() => [I(pe(Se))]),
|
|
958
|
+
default: X(() => [F(" " + J(e.field.btn_title || "添加"), 1)]),
|
|
959
959
|
_: 1
|
|
960
960
|
}, 8, ["disabled"])) : j("", !0),
|
|
961
|
-
(
|
|
961
|
+
(H(!0), M(O, null, G(e.field.custom_btn_list, (t) => (H(), A(C, {
|
|
962
962
|
action_code_id: t.action_code_id,
|
|
963
963
|
code: t.code,
|
|
964
964
|
"onUpdate:code": (e) => t.code = e,
|
|
@@ -966,14 +966,14 @@ var Q = r(), Ue = { class: "top_btn" }, We = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
|
966
966
|
"onUpdate:action": (e) => t.action = e,
|
|
967
967
|
options: o
|
|
968
968
|
}, {
|
|
969
|
-
default:
|
|
969
|
+
default: X(() => [I(n, {
|
|
970
970
|
size: "small",
|
|
971
971
|
type: t.type,
|
|
972
972
|
danger: t.danger,
|
|
973
973
|
onClick: (e) => S(t),
|
|
974
974
|
disabled: e.field.max_count && e.value.length >= e.field.max_count && t.action === "add"
|
|
975
975
|
}, {
|
|
976
|
-
default:
|
|
976
|
+
default: X(() => [F(J(t.label), 1)]),
|
|
977
977
|
_: 2
|
|
978
978
|
}, 1032, [
|
|
979
979
|
"type",
|
|
@@ -989,7 +989,7 @@ var Q = r(), Ue = { class: "top_btn" }, We = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
|
989
989
|
"action",
|
|
990
990
|
"onUpdate:action"
|
|
991
991
|
]))), 256))
|
|
992
|
-
]), e.field.showType === "table" ? (
|
|
992
|
+
]), e.field.showType === "table" ? (H(), A(ze, {
|
|
993
993
|
key: 0,
|
|
994
994
|
value: e.value,
|
|
995
995
|
field: e.field,
|
|
@@ -1015,7 +1015,7 @@ var Q = r(), Ue = { class: "top_btn" }, We = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
|
1015
1015
|
"worker-host-functions",
|
|
1016
1016
|
"min_count",
|
|
1017
1017
|
"formModel"
|
|
1018
|
-
])) : (
|
|
1018
|
+
])) : (H(!0), M(O, { key: 1 }, G(e.value, (t, n) => (H(), A(Ae, {
|
|
1019
1019
|
form: e.field.form,
|
|
1020
1020
|
field: e.field,
|
|
1021
1021
|
value: e.value[n],
|
|
@@ -1060,10 +1060,10 @@ var Q = r(), Ue = { class: "top_btn" }, We = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
|
1060
1060
|
]))), 256))], 64);
|
|
1061
1061
|
};
|
|
1062
1062
|
}
|
|
1063
|
-
}), [["__scopeId", "data-v-028954a7"]]),
|
|
1063
|
+
}), [["__scopeId", "data-v-028954a7"]]), Ke = {
|
|
1064
1064
|
key: 0,
|
|
1065
1065
|
class: "error-msg"
|
|
1066
|
-
},
|
|
1066
|
+
}, qe = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
1067
1067
|
name: "DynamicValueField",
|
|
1068
1068
|
__name: "DynamicValueField",
|
|
1069
1069
|
props: {
|
|
@@ -1103,8 +1103,8 @@ var Q = r(), Ue = { class: "top_btn" }, We = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
|
1103
1103
|
},
|
|
1104
1104
|
emits: ["update:value"],
|
|
1105
1105
|
setup(e, { emit: t }) {
|
|
1106
|
-
let n = e, r = t, i =
|
|
1107
|
-
let l = await
|
|
1106
|
+
let n = e, r = t, i = W(null), a = W(n.value || ""), o = k(() => n.is_form_design ? a.value : n.value), s = (0, Q.debounce)(async (e, t, s, c) => {
|
|
1107
|
+
let l = await Ue({
|
|
1108
1108
|
field: s,
|
|
1109
1109
|
currentValue: o.value,
|
|
1110
1110
|
innerModel: e,
|
|
@@ -1117,7 +1117,7 @@ var Q = r(), Ue = { class: "top_btn" }, We = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
|
1117
1117
|
});
|
|
1118
1118
|
l && (n.is_form_design ? a.value = l.value ?? "" : l.value !== void 0 && l.value !== null && l.value !== "" && r("update:value", l.value), (s.watchType === "code" || s.watchType === "serial") && (i.value = l.error || null));
|
|
1119
1119
|
}, 200);
|
|
1120
|
-
return
|
|
1120
|
+
return Y(() => [
|
|
1121
1121
|
n.innerModel,
|
|
1122
1122
|
n.globalInnerModel,
|
|
1123
1123
|
n.field,
|
|
@@ -1129,22 +1129,22 @@ var Q = r(), Ue = { class: "top_btn" }, We = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
|
1129
1129
|
immediate: !0,
|
|
1130
1130
|
deep: !0
|
|
1131
1131
|
}), (t, n) => {
|
|
1132
|
-
let r =
|
|
1133
|
-
return
|
|
1132
|
+
let r = K("a-input");
|
|
1133
|
+
return H(), M(O, null, [I(C, {
|
|
1134
1134
|
"value-code": e.field,
|
|
1135
1135
|
"show-debug-code": e.field.watchType === "code"
|
|
1136
1136
|
}, {
|
|
1137
|
-
default:
|
|
1137
|
+
default: X(() => [I(r, {
|
|
1138
1138
|
value: o.value,
|
|
1139
1139
|
readonly: "",
|
|
1140
1140
|
size: "small",
|
|
1141
1141
|
style: { "background-color": "#f5f5f5" }
|
|
1142
1142
|
}, null, 8, ["value"])]),
|
|
1143
1143
|
_: 1
|
|
1144
|
-
}, 8, ["value-code", "show-debug-code"]), i.value ? (
|
|
1144
|
+
}, 8, ["value-code", "show-debug-code"]), i.value ? (H(), M("span", Ke, J(i.value), 1)) : j("", !0)], 64);
|
|
1145
1145
|
};
|
|
1146
1146
|
}
|
|
1147
|
-
}), [["__scopeId", "data-v-eab2ef4b"]]),
|
|
1147
|
+
}), [["__scopeId", "data-v-eab2ef4b"]]), Je = R({
|
|
1148
1148
|
name: "FormButton",
|
|
1149
1149
|
components: { debugCode: C },
|
|
1150
1150
|
props: {
|
|
@@ -1212,21 +1212,21 @@ var Q = r(), Ue = { class: "top_btn" }, We = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
|
1212
1212
|
});
|
|
1213
1213
|
//#endregion
|
|
1214
1214
|
//#region src/components/FormRender/FormButton/FormButton.vue
|
|
1215
|
-
function
|
|
1216
|
-
let o =
|
|
1217
|
-
return
|
|
1215
|
+
function Ye(e, t, n, r, i, a) {
|
|
1216
|
+
let o = K("a-button"), s = K("debug-code");
|
|
1217
|
+
return H(), A(s, {
|
|
1218
1218
|
action_code_id: e.field.action_code_id,
|
|
1219
1219
|
code: e.field.code,
|
|
1220
1220
|
"onUpdate:code": t[0] ||= (t) => e.field.code = t
|
|
1221
1221
|
}, {
|
|
1222
|
-
default:
|
|
1222
|
+
default: X(() => [I(o, {
|
|
1223
1223
|
danger: e.field.danger,
|
|
1224
1224
|
type: e.field.btn_type,
|
|
1225
1225
|
disabled: e.field.disabled,
|
|
1226
1226
|
size: "small",
|
|
1227
1227
|
onClick: e.handlClick
|
|
1228
1228
|
}, {
|
|
1229
|
-
default:
|
|
1229
|
+
default: X(() => [F(J(e.field.label), 1)]),
|
|
1230
1230
|
_: 1
|
|
1231
1231
|
}, 8, [
|
|
1232
1232
|
"danger",
|
|
@@ -1237,7 +1237,7 @@ function Je(e, t, n, r, i, a) {
|
|
|
1237
1237
|
_: 1
|
|
1238
1238
|
}, 8, ["action_code_id", "code"]);
|
|
1239
1239
|
}
|
|
1240
|
-
var
|
|
1240
|
+
var Xe = /*#__PURE__*/ t(Je, [["render", Ye]]), Ze = R({
|
|
1241
1241
|
name: "InputNumberPro",
|
|
1242
1242
|
components: {},
|
|
1243
1243
|
props: {
|
|
@@ -1273,10 +1273,10 @@ var Ye = /*#__PURE__*/ t(qe, [["render", Je]]), Xe = R({
|
|
|
1273
1273
|
data() {
|
|
1274
1274
|
return { model: this.value };
|
|
1275
1275
|
}
|
|
1276
|
-
}),
|
|
1277
|
-
function
|
|
1278
|
-
let o =
|
|
1279
|
-
return
|
|
1276
|
+
}), Qe = { key: 0 }, $e = { key: 0 }, et = { key: 0 };
|
|
1277
|
+
function tt(e, t, n, r, i, a) {
|
|
1278
|
+
let o = K("a-input-number");
|
|
1279
|
+
return H(), A(o, {
|
|
1280
1280
|
value: e.innerValue,
|
|
1281
1281
|
autocomplete: e.field.autocomplete == null ? "off" : e.field.autocomplete,
|
|
1282
1282
|
"default-value": e.field.defaultValue,
|
|
@@ -1292,17 +1292,17 @@ function et(e, t, n, r, i, a) {
|
|
|
1292
1292
|
}, P({ _: 2 }, [
|
|
1293
1293
|
e.field?.prefix || e.field?.prefixIcon ? {
|
|
1294
1294
|
name: "prefix",
|
|
1295
|
-
fn:
|
|
1295
|
+
fn: X(() => [e.field?.prefix ? (H(), M("span", Qe, J(e.field.prefix), 1)) : j("", !0), e.field?.prefixIcon ? (H(), A(q(e.field?.prefixIcon), { key: 1 })) : j("", !0)]),
|
|
1296
1296
|
key: "0"
|
|
1297
1297
|
} : void 0,
|
|
1298
1298
|
e.field?.addonBefore || e.field?.addonBeforeIcon ? {
|
|
1299
1299
|
name: "addonBefore",
|
|
1300
|
-
fn:
|
|
1300
|
+
fn: X(() => [e.field?.addonBefore ? (H(), M("span", $e, J(e.field.addonBefore), 1)) : j("", !0), e.field?.addonBeforeIcon ? (H(), A(q(e.field?.addonBeforeIcon), { key: 1 })) : j("", !0)]),
|
|
1301
1301
|
key: "1"
|
|
1302
1302
|
} : void 0,
|
|
1303
1303
|
e.field?.addonAfter || e.field?.addonAfterIcon ? {
|
|
1304
1304
|
name: "addonAfter",
|
|
1305
|
-
fn:
|
|
1305
|
+
fn: X(() => [e.field?.addonAfter ? (H(), M("span", et, J(e.field.addonAfter), 1)) : j("", !0), e.field?.addonAfterIcon ? (H(), A(q(e.field?.addonAfterIcon), { key: 1 })) : j("", !0)]),
|
|
1306
1306
|
key: "2"
|
|
1307
1307
|
} : void 0
|
|
1308
1308
|
]), 1032, [
|
|
@@ -1319,9 +1319,9 @@ function et(e, t, n, r, i, a) {
|
|
|
1319
1319
|
"onUpdate:value"
|
|
1320
1320
|
]);
|
|
1321
1321
|
}
|
|
1322
|
-
var
|
|
1322
|
+
var nt = /*#__PURE__*/ t(Ze, [["render", tt], ["__scopeId", "data-v-1c2384e8"]]), rt = { key: 0 }, it = { key: 0 }, at = { key: 0 }, ot = { key: 0 }, st = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
1323
1323
|
__name: "InputPro",
|
|
1324
|
-
props: /*@__PURE__*/
|
|
1324
|
+
props: /*@__PURE__*/ se({ field: {
|
|
1325
1325
|
type: Object,
|
|
1326
1326
|
required: !0
|
|
1327
1327
|
} }, {
|
|
@@ -1330,14 +1330,17 @@ var tt = /*#__PURE__*/ t(Xe, [["render", et], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1330
1330
|
}),
|
|
1331
1331
|
emits: ["update:value"],
|
|
1332
1332
|
setup(e) {
|
|
1333
|
-
let t = me(e, "value"), n = e, r =
|
|
1334
|
-
|
|
1333
|
+
let t = me(e, "value"), n = e, r = W("");
|
|
1334
|
+
Y(() => t.value, (e) => {
|
|
1335
1335
|
let t = e;
|
|
1336
1336
|
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;
|
|
1337
1337
|
}, { immediate: !0 });
|
|
1338
1338
|
let i = (0, Q.debounce)((e) => {
|
|
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;
|
|
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
1340
|
}, 300);
|
|
1341
|
+
de(() => {
|
|
1342
|
+
i.cancel();
|
|
1343
|
+
});
|
|
1341
1344
|
function a(e, t, n) {
|
|
1342
1345
|
return e?.startsWith(t) ? n + e.slice(t.length) : e;
|
|
1343
1346
|
}
|
|
@@ -1345,10 +1348,10 @@ var tt = /*#__PURE__*/ t(Xe, [["render", et], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1345
1348
|
return e?.endsWith(t) ? e.slice(0, -t.length) + n : e;
|
|
1346
1349
|
}
|
|
1347
1350
|
return (t, n) => {
|
|
1348
|
-
let a =
|
|
1349
|
-
return
|
|
1351
|
+
let a = K("a-input");
|
|
1352
|
+
return H(), A(a, {
|
|
1350
1353
|
value: r.value,
|
|
1351
|
-
"onUpdate:value": n[0] ||= (e) => r.value = e,
|
|
1354
|
+
"onUpdate:value": [n[0] ||= (e) => r.value = e, pe(i)],
|
|
1352
1355
|
"allow-clear": e.field.allowClear == null ? !0 : e.field.allowClear,
|
|
1353
1356
|
autocomplete: e.field.autocomplete == null ? "off" : e.field.autocomplete,
|
|
1354
1357
|
"default-value": e.field.defaultValue,
|
|
@@ -1356,27 +1359,26 @@ var tt = /*#__PURE__*/ t(Xe, [["render", et], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1356
1359
|
maxlength: e.field.maxlength,
|
|
1357
1360
|
placeholder: e.field.placeholder ? e.field.placeholder : t.$t("请输入") + e.field.label,
|
|
1358
1361
|
type: e.field.inputType ? e.field.inputType : "text",
|
|
1359
|
-
size: "small"
|
|
1360
|
-
onChange: n[1] ||= (e) => pe(i)(e.target.value)
|
|
1362
|
+
size: "small"
|
|
1361
1363
|
}, P({ _: 2 }, [
|
|
1362
1364
|
e.field?.prefix || e.field?.prefixIcon ? {
|
|
1363
1365
|
name: "prefix",
|
|
1364
|
-
fn:
|
|
1366
|
+
fn: X(() => [e.field?.prefix ? (H(), M("span", rt, J(e.field.prefix), 1)) : j("", !0), e.field?.prefixIcon ? (H(), A(q(e.field?.prefixIcon), { key: 1 })) : j("", !0)]),
|
|
1365
1367
|
key: "0"
|
|
1366
1368
|
} : void 0,
|
|
1367
1369
|
e.field?.suffix || e.field?.suffixIcon ? {
|
|
1368
1370
|
name: "suffix",
|
|
1369
|
-
fn:
|
|
1371
|
+
fn: X(() => [e.field?.suffix ? (H(), M("span", it, J(e.field.suffix), 1)) : j("", !0), e.field?.suffixIcon ? (H(), A(q(e.field?.suffixIcon), { key: 1 })) : j("", !0)]),
|
|
1370
1372
|
key: "1"
|
|
1371
1373
|
} : void 0,
|
|
1372
1374
|
e.field?.addonBefore || e.field?.addonBeforeIcon ? {
|
|
1373
1375
|
name: "addonBefore",
|
|
1374
|
-
fn:
|
|
1376
|
+
fn: X(() => [e.field?.addonBefore ? (H(), M("span", at, J(e.field.addonBefore), 1)) : j("", !0), e.field?.addonBeforeIcon ? (H(), A(q(e.field?.addonBeforeIcon), { key: 1 })) : j("", !0)]),
|
|
1375
1377
|
key: "2"
|
|
1376
1378
|
} : void 0,
|
|
1377
1379
|
e.field?.addonAfter || e.field?.addonAfterIcon ? {
|
|
1378
1380
|
name: "addonAfter",
|
|
1379
|
-
fn:
|
|
1381
|
+
fn: X(() => [e.field?.addonAfter ? (H(), M("span", ot, J(e.field.addonAfter), 1)) : j("", !0), e.field?.addonAfterIcon ? (H(), A(q(e.field?.addonAfterIcon), { key: 1 })) : j("", !0)]),
|
|
1380
1382
|
key: "3"
|
|
1381
1383
|
} : void 0
|
|
1382
1384
|
]), 1032, [
|
|
@@ -1387,11 +1389,12 @@ var tt = /*#__PURE__*/ t(Xe, [["render", et], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1387
1389
|
"readonly",
|
|
1388
1390
|
"maxlength",
|
|
1389
1391
|
"placeholder",
|
|
1390
|
-
"type"
|
|
1392
|
+
"type",
|
|
1393
|
+
"onUpdate:value"
|
|
1391
1394
|
]);
|
|
1392
1395
|
};
|
|
1393
1396
|
}
|
|
1394
|
-
}), [["__scopeId", "data-v-
|
|
1397
|
+
}), [["__scopeId", "data-v-a761a74b"]]), $ = (e, t = "YYYY-MM-DD") => Z(e, t, !0).isValid(), ct = (e, t = "YYYY-MM-DD HH:mm:ss") => Z(e, t, !0).isValid(), lt = (e, t = "HH:mm:ss") => Z(e, t, !0).isValid(), ut = R({
|
|
1395
1398
|
name: "FieldRender2",
|
|
1396
1399
|
methods: { isArray: be },
|
|
1397
1400
|
props: {
|
|
@@ -1491,24 +1494,24 @@ var tt = /*#__PURE__*/ t(Xe, [["render", et], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1491
1494
|
"update_name2"
|
|
1492
1495
|
],
|
|
1493
1496
|
setup(e, { emit: t }) {
|
|
1494
|
-
let n =
|
|
1497
|
+
let n = W({ ...e.formModel }), r = (e) => typeof e == "string" && e.indexOf(",") >= 0 ? e.split(",") : e, i = (e, t) => {
|
|
1495
1498
|
let n;
|
|
1496
1499
|
return t == "int" ? o(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1497
1500
|
o(e) && typeof e == "string" ? n.push(Number(e)) : n.push(e);
|
|
1498
1501
|
})) : n = o(e) && typeof e == "string" ? Number(e) : e : t == "str" ? o(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1499
1502
|
o(e) && typeof e == "number" ? n.push(e.toString()) : n.push(e);
|
|
1500
1503
|
})) : n = o(e) && typeof e == "number" ? e.toString() : e : t == "date" ? o(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1501
|
-
$(e) && typeof e == "string" ? n.push(
|
|
1504
|
+
$(e) && typeof e == "string" ? n.push(Z(e, "YYYY-MM-DD")) : n.push(e);
|
|
1502
1505
|
})) : n = $(e) && typeof e == "string" ? e.toString() : e : t == "datetime" ? o(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1503
|
-
|
|
1504
|
-
})) : n =
|
|
1505
|
-
|
|
1506
|
-
})) : n =
|
|
1506
|
+
ct(e) && typeof e == "string" ? n.push(Z(e, "YYYY-MM-DD HH:mm:ss")) : n.push(e);
|
|
1507
|
+
})) : n = ct(e) && typeof e == "string" ? Z(e, "YYYY-MM-DD HH:mm:ss") : e : t == "time" ? o(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1508
|
+
lt(e) && typeof e == "string" ? n.push(Z(e, "HH:mm:ss")) : n.push(e);
|
|
1509
|
+
})) : n = lt(e) && typeof e == "string" ? Z(e, "HH:mm:ss") : e : t == "float" ? o(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1507
1510
|
o(e) && typeof e == "string" ? n.push(Number(e)) : n.push(e);
|
|
1508
1511
|
})) : n = o(e) && typeof e == "string" ? Number(e) : e : t == "bool" && (o(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1509
1512
|
o(e) && typeof e == "string" ? n.push(!!e) : n.push(e);
|
|
1510
1513
|
})) : n = o(e) && typeof e == "string" ? !!e : e), n;
|
|
1511
|
-
}, s =
|
|
1514
|
+
}, s = W(e.is_show_field), c = W(!1), l = k(() => e.is_form_design && e.field.type === "remotetablepro"), u = () => {
|
|
1512
1515
|
t("update:is_edit", c.value);
|
|
1513
1516
|
}, d = () => {
|
|
1514
1517
|
t("add");
|
|
@@ -1525,7 +1528,7 @@ var tt = /*#__PURE__*/ t(Xe, [["render", et], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1525
1528
|
let o = n[t], s = e.formModel[o.watchKey], c;
|
|
1526
1529
|
c = o.class_name ? i(o.value, o.class_name) : o.value;
|
|
1527
1530
|
let l, u;
|
|
1528
|
-
c instanceof Array && ([l, u] = c), o.operator == "lt" ? typeof l == "number" ? a(s) ? r.push(!1) : s < l ? r.push(!0) : r.push(!1) : $(l) && (a(s) ? r.push(!1) :
|
|
1531
|
+
c instanceof Array && ([l, u] = c), o.operator == "lt" ? typeof l == "number" ? a(s) ? r.push(!1) : s < l ? r.push(!0) : r.push(!1) : $(l) && (a(s) ? r.push(!1) : Z(s).isBefore(Z(l)) ? r.push(!0) : r.push(!1)) : o.operator == "lte" ? typeof l == "number" ? a(s) ? r.push(!1) : s <= l ? r.push(!0) : r.push(!1) : $(l) && (a(s) ? r.push(!1) : Z(s).isBefore(Z(l)) || Z(s).isSame(Z(l)) ? r.push(!0) : r.push(!1)) : o.operator == "gt" ? typeof l == "number" ? a(s) ? r.push(!1) : s > l ? r.push(!0) : r.push(!1) : $(l) && (a(s) ? r.push(!1) : Z(s).isAfter(Z(l)) ? r.push(!0) : r.push(!1)) : o.operator == "gte" ? typeof l == "number" ? a(s) ? r.push(!1) : s >= l ? r.push(!0) : r.push(!1) : $(l) && (a(s) ? r.push(!1) : Z(s).isAfter(Z(l)) || Z(s).isSame(Z(l)) ? r.push(!0) : r.push(!1)) : o.operator == "between" ? typeof l == "number" && typeof u == "number" && l && u ? a(s) ? r.push(!1) : s >= l && s <= u ? r.push(!0) : r.push(!1) : $(l) && (a(s) ? r.push(!1) : (Z(s).isAfter(Z(l)) || Z(s).isSame(Z(l))) && (Z(s).isBefore(Z(u)) || Z(s).isSame(Z(u))) ? r.push(!0) : r.push(!1)) : o.operator == "notbetween" ? typeof l == "number" && typeof u == "number" && l && u ? a(s) ? r.push(!1) : s < l || s > u ? r.push(!0) : r.push(!1) : $(l) && (a(s) ? r.push(!1) : Z(s).isBefore(Z(l)) || Z(s).isAfter(Z(u)) ? r.push(!0) : r.push(!1)) : o.operator == "in" ? s instanceof Array ? c.filter((e) => s.includes(e)).length > 0 ? r.push(!0) : r.push(!1) : (typeof s == "string" || typeof s == "number" || a(s)) && (c.find((e) => s == e) ? r.push(!0) : r.push(!1)) : o.operator == "eq" ? s === l ? r.push(!0) : r.push(!1) : o.operator == "contains" ? s.toString().indexOf(l) > -1 ? r.push(!0) : r.push(!1) : o.operator == "startswith" ? s.toString().startsWith(l) ? r.push(!0) : r.push(!1) : o.operator == "notin" ? s instanceof Array ? c.filter((e) => s.includes(e)).length > 0 ? r.push(!0) : r.push(!1) : (typeof s == "string" || typeof s == "number" || a(s)) && (c.find((e) => s == e) ? r.push(!1) : r.push(!0)) : o.operator == "notcontains" ? s.toString().indexOf(l) == -1 ? r.push(!0) : r.push(!1) : o.operator == "_eq" || (o.operator == "json_list_not_blank_not_null" ? s ? r.push(!0) : r.push(!1) : o.operator == "json_list_is_blank_is_null" || o.operator == "not_eq" ? s ? r.push(!1) : r.push(!0) : o.operator == "not_blank_not_null" && (s ? r.push(!0) : r.push(!1)));
|
|
1529
1532
|
}
|
|
1530
1533
|
o.push(r);
|
|
1531
1534
|
}
|
|
@@ -1539,8 +1542,8 @@ var tt = /*#__PURE__*/ t(Xe, [["render", et], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1539
1542
|
add_key: e.field.name,
|
|
1540
1543
|
value: null
|
|
1541
1544
|
})) : (delete n.value[e.field.name], t("update_model", { remove_key: e.field.name })));
|
|
1542
|
-
}, 300), p =
|
|
1543
|
-
|
|
1545
|
+
}, 300), p = W(""), m = W(e.label);
|
|
1546
|
+
Y(() => p.value, (n) => {
|
|
1544
1547
|
if (t("update:value", n), e.field.name2) {
|
|
1545
1548
|
let r;
|
|
1546
1549
|
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"];
|
|
@@ -1564,27 +1567,27 @@ var tt = /*#__PURE__*/ t(Xe, [["render", et], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1564
1567
|
value: r
|
|
1565
1568
|
});
|
|
1566
1569
|
}
|
|
1567
|
-
}, { deep: !0 }),
|
|
1570
|
+
}, { deep: !0 }), Y(() => e.value, (t) => {
|
|
1568
1571
|
let n = t;
|
|
1569
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);
|
|
1570
|
-
}, { immediate: !0 }),
|
|
1573
|
+
}, { immediate: !0 }), Y(() => m.value, (n) => {
|
|
1571
1574
|
t("update:label", n), "name2" in e.field && t("update_name2", {
|
|
1572
1575
|
key: e.field.name2,
|
|
1573
1576
|
value: n.toString()
|
|
1574
1577
|
});
|
|
1575
|
-
}, { deep: !0 }),
|
|
1578
|
+
}, { deep: !0 }), Y(() => e.label, (e) => {
|
|
1576
1579
|
m.value = e;
|
|
1577
|
-
}),
|
|
1580
|
+
}), Y(() => e.formModel, (e) => {
|
|
1578
1581
|
n.value = { ...e };
|
|
1579
|
-
}, { deep: !0 }),
|
|
1582
|
+
}, { deep: !0 }), Y(() => n.value, (t, n) => {
|
|
1580
1583
|
e.field?.conditions && e.field?.conditions.forEach((e) => {
|
|
1581
1584
|
e.forEach((e) => {
|
|
1582
1585
|
n[e.watchKey] != t[e.watchKey] && f();
|
|
1583
1586
|
});
|
|
1584
1587
|
});
|
|
1585
|
-
}, { deep: !0 }),
|
|
1588
|
+
}, { deep: !0 }), Y(() => [e.conditionsVisibleNum, e.isUseConditions], () => {
|
|
1586
1589
|
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));
|
|
1587
|
-
}),
|
|
1590
|
+
}), B(() => {
|
|
1588
1591
|
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 });
|
|
1589
1592
|
else {
|
|
1590
1593
|
let r = n.value[e.field.name];
|
|
@@ -1595,7 +1598,7 @@ var tt = /*#__PURE__*/ t(Xe, [["render", et], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1595
1598
|
}
|
|
1596
1599
|
l.value && t("update:is_edit", c.value);
|
|
1597
1600
|
});
|
|
1598
|
-
let { t: h } =
|
|
1601
|
+
let { t: h } = Ce();
|
|
1599
1602
|
return {
|
|
1600
1603
|
t: h,
|
|
1601
1604
|
is_show_field: s,
|
|
@@ -1628,30 +1631,30 @@ var tt = /*#__PURE__*/ t(Xe, [["render", et], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1628
1631
|
JsonObj: v,
|
|
1629
1632
|
RemoteText: y,
|
|
1630
1633
|
RemoteTablePro: oe,
|
|
1631
|
-
FormTemplate:
|
|
1632
|
-
DynamicValueField:
|
|
1633
|
-
FormButton:
|
|
1634
|
-
PlusOutlined:
|
|
1634
|
+
FormTemplate: Ge,
|
|
1635
|
+
DynamicValueField: qe,
|
|
1636
|
+
FormButton: Xe,
|
|
1637
|
+
PlusOutlined: Se,
|
|
1635
1638
|
MonthPicker: re,
|
|
1636
1639
|
MonthRangePicker: E,
|
|
1637
1640
|
CodeEditor: w,
|
|
1638
1641
|
TinymceEditor: ae,
|
|
1639
|
-
InputNumberPro:
|
|
1640
|
-
InputPro:
|
|
1642
|
+
InputNumberPro: nt,
|
|
1643
|
+
InputPro: st
|
|
1641
1644
|
}
|
|
1642
|
-
}),
|
|
1645
|
+
}), dt = {
|
|
1643
1646
|
key: 0,
|
|
1644
1647
|
style: {
|
|
1645
1648
|
height: "62px",
|
|
1646
1649
|
width: "100%"
|
|
1647
1650
|
}
|
|
1648
|
-
},
|
|
1651
|
+
}, ft = { key: 1 }, pt = { key: 0 }, mt = { key: 1 }, ht = {
|
|
1649
1652
|
key: 3,
|
|
1650
1653
|
style: {
|
|
1651
1654
|
height: "30px",
|
|
1652
1655
|
position: "relative"
|
|
1653
1656
|
}
|
|
1654
|
-
},
|
|
1657
|
+
}, gt = { style: {
|
|
1655
1658
|
position: "absolute",
|
|
1656
1659
|
bottom: "0",
|
|
1657
1660
|
padding: "0",
|
|
@@ -1659,39 +1662,39 @@ var tt = /*#__PURE__*/ t(Xe, [["render", et], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1659
1662
|
"font-weight": "bolder",
|
|
1660
1663
|
"font-size": "17px"
|
|
1661
1664
|
} };
|
|
1662
|
-
function
|
|
1663
|
-
let o =
|
|
1664
|
-
return
|
|
1665
|
-
e.field.type !== "divider" && e.field.type !== "button" && (e.field?.is_search_show !== !1 || e.field_render_show) ? (
|
|
1665
|
+
function _t(e, t, n, r, i, a) {
|
|
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"), re = K("a-time-picker"), ie = K("a-time-range-picker"), ae = K("a-radio"), oe = K("a-radio-group"), k = K("a-checkbox"), L = K("a-checkbox-group"), R = K("a-tree-select"), z = K("remote-filter-select"), se = K("remote-select"), le = K("remote-select-pro"), de = K("remote-complete"), B = K("remote-tree-select"), V = K("remote-tree-select-pro"), U = K("remote-modal"), W = K("remote-table"), pe = K("remote-table-pro"), me = K("FormTemplate"), he = K("DynamicValueField"), Y = K("remote-text"), ge = K("upload"), _e = K("code-editor"), ve = K("TinymceEditor"), ye = K("icon-select"), be = K("a-form-item"), Z = K("a-divider"), xe = K("FormButton");
|
|
1667
|
+
return H(), M(O, null, [
|
|
1668
|
+
e.field.type !== "divider" && e.field.type !== "button" && (e.field?.is_search_show !== !1 || e.field_render_show) ? (H(), A(be, ce({
|
|
1666
1669
|
key: 0,
|
|
1667
1670
|
extra: e.field.extra,
|
|
1668
1671
|
name: e.field.name
|
|
1669
1672
|
}, e.validateInfos ? e.validateInfos[e.field.name] : null), P({
|
|
1670
|
-
default:
|
|
1673
|
+
default: X(() => [
|
|
1671
1674
|
fe(e.$slots, "default", {}, void 0, !0),
|
|
1672
|
-
e.field.type === "kong" ? (
|
|
1673
|
-
e.field.type === "tag" ? (
|
|
1675
|
+
e.field.type === "kong" ? (H(), M("div", dt)) : j("", !0),
|
|
1676
|
+
e.field.type === "tag" ? (H(), M("div", ft, [e.field.content && e.field.content(e.field, e.model) || e.model ? (H(), A(l, {
|
|
1674
1677
|
key: 0,
|
|
1675
1678
|
color: e.field.color ? e.field.color(e.field, e.model) : "green",
|
|
1676
|
-
style:
|
|
1679
|
+
style: ue(e.field.style),
|
|
1677
1680
|
onClick: t[1] ||= (t) => e.field.cb ? e.field.cb(e.field, e.model) : ""
|
|
1678
1681
|
}, {
|
|
1679
|
-
default:
|
|
1682
|
+
default: X(() => [e.field.content ? (H(), M("span", pt, J(e.field.content(e.field, e.model)), 1)) : (H(), M("span", mt, J(e.model), 1))]),
|
|
1680
1683
|
_: 1
|
|
1681
1684
|
}, 8, ["color", "style"])) : j("", !0)])) : j("", !0),
|
|
1682
|
-
e.field.type === "kong_title" ? (
|
|
1685
|
+
e.field.type === "kong_title" ? (H(), M("div", {
|
|
1683
1686
|
key: 2,
|
|
1684
|
-
style:
|
|
1687
|
+
style: ue("height: " + e.field.height + "px")
|
|
1685
1688
|
}, null, 4)) : j("", !0),
|
|
1686
|
-
e.field.type === "title" ? (
|
|
1687
|
-
e.field.type === "rate" ? (
|
|
1689
|
+
e.field.type === "title" ? (H(), M("div", ht, [N("span", gt, J(e.field.name), 1)])) : j("", !0),
|
|
1690
|
+
e.field.type === "rate" ? (H(), A(u, {
|
|
1688
1691
|
key: 4,
|
|
1689
1692
|
value: e.model,
|
|
1690
1693
|
"onUpdate:value": t[2] ||= (t) => e.model = t,
|
|
1691
1694
|
disabled: e.field.disabled,
|
|
1692
1695
|
"allow-half": ""
|
|
1693
1696
|
}, null, 8, ["value", "disabled"])) : j("", !0),
|
|
1694
|
-
e.field.type === "input" ? (
|
|
1697
|
+
e.field.type === "input" ? (H(), A(d, {
|
|
1695
1698
|
key: 5,
|
|
1696
1699
|
field: e.field,
|
|
1697
1700
|
value: e.model,
|
|
@@ -1704,7 +1707,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
1704
1707
|
"base-key-path",
|
|
1705
1708
|
"worker-host-functions"
|
|
1706
1709
|
])) : j("", !0),
|
|
1707
|
-
e.field.type === "money" ? (
|
|
1710
|
+
e.field.type === "money" ? (H(), A(f, {
|
|
1708
1711
|
key: 6,
|
|
1709
1712
|
size: "small",
|
|
1710
1713
|
value: e.model,
|
|
@@ -1731,7 +1734,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
1731
1734
|
"step",
|
|
1732
1735
|
"placeholder"
|
|
1733
1736
|
])) : j("", !0),
|
|
1734
|
-
e.field.type === "number" ? (
|
|
1737
|
+
e.field.type === "number" ? (H(), A(p, {
|
|
1735
1738
|
key: 7,
|
|
1736
1739
|
value: e.model,
|
|
1737
1740
|
"onUpdate:value": t[5] ||= (t) => e.model = t,
|
|
@@ -1745,7 +1748,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
1745
1748
|
"base-key-path",
|
|
1746
1749
|
"worker-host-functions"
|
|
1747
1750
|
])) : j("", !0),
|
|
1748
|
-
e.field.type === "volume" ? (
|
|
1751
|
+
e.field.type === "volume" ? (H(), A(m, {
|
|
1749
1752
|
key: 8,
|
|
1750
1753
|
value: e.model,
|
|
1751
1754
|
"onUpdate:value": t[6] ||= (t) => e.model = t,
|
|
@@ -1767,7 +1770,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
1767
1770
|
"maxlength",
|
|
1768
1771
|
"placeholder"
|
|
1769
1772
|
])) : j("", !0),
|
|
1770
|
-
e.field.type === "weight" ? (
|
|
1773
|
+
e.field.type === "weight" ? (H(), A(m, {
|
|
1771
1774
|
key: 9,
|
|
1772
1775
|
value: e.model,
|
|
1773
1776
|
"onUpdate:value": t[7] ||= (t) => e.model = t,
|
|
@@ -1789,7 +1792,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
1789
1792
|
"maxlength",
|
|
1790
1793
|
"placeholder"
|
|
1791
1794
|
])) : j("", !0),
|
|
1792
|
-
e.field.type === "attributetable" ? (
|
|
1795
|
+
e.field.type === "attributetable" ? (H(), A(h, {
|
|
1793
1796
|
key: 10,
|
|
1794
1797
|
value: e.model,
|
|
1795
1798
|
"onUpdate:value": t[8] ||= (t) => e.model = t,
|
|
@@ -1807,7 +1810,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
1807
1810
|
"base-key-path",
|
|
1808
1811
|
"worker-host-functions"
|
|
1809
1812
|
])) : j("", !0),
|
|
1810
|
-
e.field.type === "attributenomtable" ? (
|
|
1813
|
+
e.field.type === "attributenomtable" ? (H(), A(g, {
|
|
1811
1814
|
key: 11,
|
|
1812
1815
|
size: "small",
|
|
1813
1816
|
value: e.model,
|
|
@@ -1825,7 +1828,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
1825
1828
|
"base-key-path",
|
|
1826
1829
|
"worker-host-functions"
|
|
1827
1830
|
])) : j("", !0),
|
|
1828
|
-
e.field.type === "textarea" ? (
|
|
1831
|
+
e.field.type === "textarea" ? (H(), A(_, {
|
|
1829
1832
|
key: 12,
|
|
1830
1833
|
value: e.model,
|
|
1831
1834
|
"onUpdate:value": t[10] ||= (t) => e.model = t,
|
|
@@ -1845,7 +1848,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
1845
1848
|
"disabled",
|
|
1846
1849
|
"placeholder"
|
|
1847
1850
|
])) : j("", !0),
|
|
1848
|
-
e.field.type === "jsonstr" ? (
|
|
1851
|
+
e.field.type === "jsonstr" ? (H(), A(v, {
|
|
1849
1852
|
key: 13,
|
|
1850
1853
|
value: e.model,
|
|
1851
1854
|
"onUpdate:value": t[11] ||= (t) => e.model = t,
|
|
@@ -1860,7 +1863,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
1860
1863
|
"rows",
|
|
1861
1864
|
"placeholder"
|
|
1862
1865
|
])) : j("", !0),
|
|
1863
|
-
e.field.type === "jsonobj" ? (
|
|
1866
|
+
e.field.type === "jsonobj" ? (H(), A(y, {
|
|
1864
1867
|
key: 14,
|
|
1865
1868
|
value: e.model,
|
|
1866
1869
|
"onUpdate:value": t[12] ||= (t) => e.model = t,
|
|
@@ -1877,7 +1880,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
1877
1880
|
"fullWidthButton",
|
|
1878
1881
|
"darkTheme"
|
|
1879
1882
|
])) : j("", !0),
|
|
1880
|
-
e.field.type === "richtexteditor" ? (
|
|
1883
|
+
e.field.type === "richtexteditor" ? (H(), A(b, {
|
|
1881
1884
|
key: 15,
|
|
1882
1885
|
value: e.model,
|
|
1883
1886
|
"onUpdate:value": t[13] ||= (t) => e.model = t,
|
|
@@ -1888,7 +1891,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
1888
1891
|
"readOnly",
|
|
1889
1892
|
"placeholder"
|
|
1890
1893
|
])) : j("", !0),
|
|
1891
|
-
e.field.type === "password" ? (
|
|
1894
|
+
e.field.type === "password" ? (H(), A(x, {
|
|
1892
1895
|
key: 16,
|
|
1893
1896
|
value: e.model,
|
|
1894
1897
|
"onUpdate:value": t[14] ||= (t) => e.model = t,
|
|
@@ -1920,7 +1923,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
1920
1923
|
"step",
|
|
1921
1924
|
"visibilityToggle"
|
|
1922
1925
|
])) : j("", !0),
|
|
1923
|
-
e.field.type === "select" ? (
|
|
1926
|
+
e.field.type === "select" ? (H(), M(O, { key: 17 }, [e.field.mode === "default" ? (H(), A(S, {
|
|
1924
1927
|
key: 0,
|
|
1925
1928
|
value: e.model,
|
|
1926
1929
|
"onUpdate:value": t[16] ||= (t) => e.model = t,
|
|
@@ -1935,11 +1938,11 @@ function gt(e, t, n, r, i, a) {
|
|
|
1935
1938
|
size: "small",
|
|
1936
1939
|
style: { width: "100%" }
|
|
1937
1940
|
}, {
|
|
1938
|
-
default:
|
|
1941
|
+
default: X(() => [(H(!0), M(O, null, G(e.options, (t) => (H(), A(ee, {
|
|
1939
1942
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
1940
1943
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
1941
1944
|
}, {
|
|
1942
|
-
default:
|
|
1945
|
+
default: X(() => [F(J(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
1943
1946
|
_: 2
|
|
1944
1947
|
}, 1032, ["value"]))), 128))]),
|
|
1945
1948
|
_: 1
|
|
@@ -1952,7 +1955,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
1952
1955
|
"maxTagCount",
|
|
1953
1956
|
"placeholder",
|
|
1954
1957
|
"show-search"
|
|
1955
|
-
])) : (
|
|
1958
|
+
])) : (H(), A(S, {
|
|
1956
1959
|
key: 1,
|
|
1957
1960
|
value: e.model,
|
|
1958
1961
|
"onUpdate:value": t[17] ||= (t) => e.model = t,
|
|
@@ -1967,11 +1970,11 @@ function gt(e, t, n, r, i, a) {
|
|
|
1967
1970
|
size: "small",
|
|
1968
1971
|
style: { "min-width": "150px" }
|
|
1969
1972
|
}, {
|
|
1970
|
-
default:
|
|
1973
|
+
default: X(() => [(H(!0), M(O, null, G(e.options, (t, n) => (H(), A(ee, {
|
|
1971
1974
|
key: n,
|
|
1972
1975
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
1973
1976
|
}, {
|
|
1974
|
-
default:
|
|
1977
|
+
default: X(() => [F(J(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
1975
1978
|
_: 2
|
|
1976
1979
|
}, 1032, ["value"]))), 128))]),
|
|
1977
1980
|
_: 1
|
|
@@ -1985,7 +1988,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
1985
1988
|
"placeholder",
|
|
1986
1989
|
"show-search"
|
|
1987
1990
|
]))], 64)) : j("", !0),
|
|
1988
|
-
e.field.type === "groupselect" ? (
|
|
1991
|
+
e.field.type === "groupselect" ? (H(), M(O, { key: 18 }, [e.field.mode === "default" ? (H(), A(S, {
|
|
1989
1992
|
key: 0,
|
|
1990
1993
|
value: e.model,
|
|
1991
1994
|
"onUpdate:value": t[18] ||= (t) => e.model = t,
|
|
@@ -2014,7 +2017,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
2014
2017
|
"options",
|
|
2015
2018
|
"placeholder",
|
|
2016
2019
|
"show-search"
|
|
2017
|
-
])) : (
|
|
2020
|
+
])) : (H(), A(S, {
|
|
2018
2021
|
key: 1,
|
|
2019
2022
|
value: e.model,
|
|
2020
2023
|
"onUpdate:value": t[19] ||= (t) => e.model = t,
|
|
@@ -2044,7 +2047,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
2044
2047
|
"placeholder",
|
|
2045
2048
|
"show-search"
|
|
2046
2049
|
]))], 64)) : j("", !0),
|
|
2047
|
-
e.field.type === "cascader" ? (
|
|
2050
|
+
e.field.type === "cascader" ? (H(), A(te, {
|
|
2048
2051
|
key: 19,
|
|
2049
2052
|
value: e.model,
|
|
2050
2053
|
"onUpdate:value": t[20] ||= (t) => e.model = t,
|
|
@@ -2068,7 +2071,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
2068
2071
|
"options",
|
|
2069
2072
|
"placeholder"
|
|
2070
2073
|
])) : j("", !0),
|
|
2071
|
-
e.field.type === "remotecascader" ? (
|
|
2074
|
+
e.field.type === "remotecascader" ? (H(), A(C, {
|
|
2072
2075
|
key: 20,
|
|
2073
2076
|
value: e.model,
|
|
2074
2077
|
"onUpdate:value": t[21] ||= (t) => e.model = t,
|
|
@@ -2094,7 +2097,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
2094
2097
|
"search_config",
|
|
2095
2098
|
"value-key"
|
|
2096
2099
|
])) : j("", !0),
|
|
2097
|
-
e.field.type === "remotecascaderpro" ? (
|
|
2100
|
+
e.field.type === "remotecascaderpro" ? (H(), A(w, {
|
|
2098
2101
|
key: 21,
|
|
2099
2102
|
label: e.labelModel,
|
|
2100
2103
|
"onUpdate:label": t[23] ||= (t) => e.labelModel = t,
|
|
@@ -2142,7 +2145,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
2142
2145
|
"is_form_design",
|
|
2143
2146
|
"placeholder"
|
|
2144
2147
|
])) : j("", !0),
|
|
2145
|
-
e.field.type === "monthpicker" ? (
|
|
2148
|
+
e.field.type === "monthpicker" ? (H(), A(T, {
|
|
2146
2149
|
key: 22,
|
|
2147
2150
|
value: e.model,
|
|
2148
2151
|
"onUpdate:value": t[25] ||= (t) => e.model = t,
|
|
@@ -2171,7 +2174,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
2171
2174
|
"end_offset_day",
|
|
2172
2175
|
"fix_day"
|
|
2173
2176
|
])) : j("", !0),
|
|
2174
|
-
e.field.type === "datepicker" ? (
|
|
2177
|
+
e.field.type === "datepicker" ? (H(), A(ne, {
|
|
2175
2178
|
key: 23,
|
|
2176
2179
|
value: e.model,
|
|
2177
2180
|
"onUpdate:value": t[26] ||= (t) => e.model = t,
|
|
@@ -2198,7 +2201,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
2198
2201
|
"show-time",
|
|
2199
2202
|
"value-format"
|
|
2200
2203
|
])) : j("", !0),
|
|
2201
|
-
e.field.type === "rangepicker" ? (
|
|
2204
|
+
e.field.type === "rangepicker" ? (H(), A(E, {
|
|
2202
2205
|
key: 24,
|
|
2203
2206
|
value: e.model,
|
|
2204
2207
|
"onUpdate:value": t[27] ||= (t) => e.model = t,
|
|
@@ -2223,7 +2226,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
2223
2226
|
"value-format",
|
|
2224
2227
|
"picker"
|
|
2225
2228
|
])) : j("", !0),
|
|
2226
|
-
e.field.type === "monthrangepicker" ? (
|
|
2229
|
+
e.field.type === "monthrangepicker" ? (H(), A(D, {
|
|
2227
2230
|
key: 25,
|
|
2228
2231
|
value: e.model,
|
|
2229
2232
|
"onUpdate:value": t[28] ||= (t) => e.model = t,
|
|
@@ -2250,7 +2253,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
2250
2253
|
"end_offset_day",
|
|
2251
2254
|
"fix_day"
|
|
2252
2255
|
])) : j("", !0),
|
|
2253
|
-
e.field.type === "timepicker" ? (
|
|
2256
|
+
e.field.type === "timepicker" ? (H(), A(re, {
|
|
2254
2257
|
key: 26,
|
|
2255
2258
|
value: e.model,
|
|
2256
2259
|
"onUpdate:value": t[29] ||= (t) => e.model = t,
|
|
@@ -2271,7 +2274,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
2271
2274
|
"placeholder",
|
|
2272
2275
|
"value-format"
|
|
2273
2276
|
])) : j("", !0),
|
|
2274
|
-
e.field.type === "timerangepicker" ? (
|
|
2277
|
+
e.field.type === "timerangepicker" ? (H(), A(ie, {
|
|
2275
2278
|
key: 27,
|
|
2276
2279
|
value: e.model,
|
|
2277
2280
|
"onUpdate:value": t[30] ||= (t) => e.model = t,
|
|
@@ -2292,7 +2295,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
2292
2295
|
"placeholder",
|
|
2293
2296
|
"value-format"
|
|
2294
2297
|
])) : j("", !0),
|
|
2295
|
-
e.field.type === "radio" ? (
|
|
2298
|
+
e.field.type === "radio" ? (H(), A(oe, {
|
|
2296
2299
|
key: 28,
|
|
2297
2300
|
value: e.model,
|
|
2298
2301
|
"onUpdate:value": t[31] ||= (t) => e.model = t,
|
|
@@ -2300,12 +2303,12 @@ function gt(e, t, n, r, i, a) {
|
|
|
2300
2303
|
disabled: e.field.disabled,
|
|
2301
2304
|
size: "small"
|
|
2302
2305
|
}, {
|
|
2303
|
-
default:
|
|
2306
|
+
default: X(() => [(H(!0), M(O, null, G(e.options, (t) => (H(), A(ae, {
|
|
2304
2307
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2305
2308
|
disabled: t.disabled,
|
|
2306
2309
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2307
2310
|
}, {
|
|
2308
|
-
default:
|
|
2311
|
+
default: X(() => [F(J(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
2309
2312
|
_: 2
|
|
2310
2313
|
}, 1032, ["disabled", "value"]))), 128))]),
|
|
2311
2314
|
_: 1
|
|
@@ -2314,7 +2317,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
2314
2317
|
"default-value",
|
|
2315
2318
|
"disabled"
|
|
2316
2319
|
])) : j("", !0),
|
|
2317
|
-
e.field.type === "checkbox" ? (
|
|
2320
|
+
e.field.type === "checkbox" ? (H(), A(L, {
|
|
2318
2321
|
key: 29,
|
|
2319
2322
|
value: e.model,
|
|
2320
2323
|
"onUpdate:value": t[32] ||= (t) => e.model = t,
|
|
@@ -2322,12 +2325,12 @@ function gt(e, t, n, r, i, a) {
|
|
|
2322
2325
|
disabled: e.field.disabled,
|
|
2323
2326
|
size: "small"
|
|
2324
2327
|
}, {
|
|
2325
|
-
default:
|
|
2328
|
+
default: X(() => [(H(!0), M(O, null, G(e.options, (t) => (H(), A(k, {
|
|
2326
2329
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2327
2330
|
disabled: t.disabled,
|
|
2328
2331
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2329
2332
|
}, {
|
|
2330
|
-
default:
|
|
2333
|
+
default: X(() => [F(J(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
2331
2334
|
_: 2
|
|
2332
2335
|
}, 1032, ["disabled", "value"]))), 128))]),
|
|
2333
2336
|
_: 1
|
|
@@ -2336,7 +2339,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
2336
2339
|
"default-value",
|
|
2337
2340
|
"disabled"
|
|
2338
2341
|
])) : j("", !0),
|
|
2339
|
-
e.field.type === "treeselect" ? (
|
|
2342
|
+
e.field.type === "treeselect" ? (H(), A(R, {
|
|
2340
2343
|
key: 30,
|
|
2341
2344
|
value: e.model,
|
|
2342
2345
|
"onUpdate:value": t[33] ||= (t) => e.model = t,
|
|
@@ -2363,7 +2366,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
2363
2366
|
"tree-label-prop",
|
|
2364
2367
|
"tree-node-filter-prop"
|
|
2365
2368
|
])) : j("", !0),
|
|
2366
|
-
e.field.type === "remotefilterselect" ? (
|
|
2369
|
+
e.field.type === "remotefilterselect" ? (H(), A(z, {
|
|
2367
2370
|
key: 31,
|
|
2368
2371
|
label: e.labelModel,
|
|
2369
2372
|
"onUpdate:label": t[34] ||= (t) => e.labelModel = t,
|
|
@@ -2391,7 +2394,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
2391
2394
|
"search_config",
|
|
2392
2395
|
"value-key"
|
|
2393
2396
|
])) : j("", !0),
|
|
2394
|
-
e.field.type === "remoteselect" ? (
|
|
2397
|
+
e.field.type === "remoteselect" ? (H(), A(se, {
|
|
2395
2398
|
key: 32,
|
|
2396
2399
|
label: e.labelModel,
|
|
2397
2400
|
"onUpdate:label": t[36] ||= (t) => e.labelModel = t,
|
|
@@ -2419,7 +2422,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
2419
2422
|
"search_config",
|
|
2420
2423
|
"value-key"
|
|
2421
2424
|
])) : j("", !0),
|
|
2422
|
-
e.field.type === "remoteselectpro" ? (
|
|
2425
|
+
e.field.type === "remoteselectpro" ? (H(), A(le, {
|
|
2423
2426
|
key: 33,
|
|
2424
2427
|
label: e.labelModel,
|
|
2425
2428
|
"onUpdate:label": t[38] ||= (t) => e.labelModel = t,
|
|
@@ -2467,7 +2470,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
2467
2470
|
"base-key-path",
|
|
2468
2471
|
"placeholder"
|
|
2469
2472
|
])) : j("", !0),
|
|
2470
|
-
e.field.type === "remotecomplete" ? (
|
|
2473
|
+
e.field.type === "remotecomplete" ? (H(), A(de, {
|
|
2471
2474
|
key: 34,
|
|
2472
2475
|
value: e.model,
|
|
2473
2476
|
"onUpdate:value": t[40] ||= (t) => e.model = t,
|
|
@@ -2506,7 +2509,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
2506
2509
|
"is_form_design",
|
|
2507
2510
|
"placeholder"
|
|
2508
2511
|
])) : j("", !0),
|
|
2509
|
-
e.field.type === "remotetreeselect" ? (
|
|
2512
|
+
e.field.type === "remotetreeselect" ? (H(), A(B, {
|
|
2510
2513
|
key: 35,
|
|
2511
2514
|
label: e.labelModel,
|
|
2512
2515
|
"onUpdate:label": t[41] ||= (t) => e.labelModel = t,
|
|
@@ -2534,7 +2537,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
2534
2537
|
"search_config",
|
|
2535
2538
|
"value-key"
|
|
2536
2539
|
])) : j("", !0),
|
|
2537
|
-
e.field.type === "remotetreeselectpro" ? (
|
|
2540
|
+
e.field.type === "remotetreeselectpro" ? (H(), A(V, {
|
|
2538
2541
|
key: 36,
|
|
2539
2542
|
label: e.labelModel,
|
|
2540
2543
|
"onUpdate:label": t[43] ||= (t) => e.labelModel = t,
|
|
@@ -2580,7 +2583,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
2580
2583
|
"is_form_design",
|
|
2581
2584
|
"placeholder"
|
|
2582
2585
|
])) : j("", !0),
|
|
2583
|
-
e.field.type === "remotemodal" ? (
|
|
2586
|
+
e.field.type === "remotemodal" ? (H(), A(U, {
|
|
2584
2587
|
key: 37,
|
|
2585
2588
|
label: e.labelModel,
|
|
2586
2589
|
"onUpdate:label": t[45] ||= (t) => e.labelModel = t,
|
|
@@ -2606,7 +2609,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
2606
2609
|
"search_config",
|
|
2607
2610
|
"watch"
|
|
2608
2611
|
])) : j("", !0),
|
|
2609
|
-
e.field.type === "remotetable" ? (
|
|
2612
|
+
e.field.type === "remotetable" ? (H(), A(W, {
|
|
2610
2613
|
key: 38,
|
|
2611
2614
|
value: e.model,
|
|
2612
2615
|
"onUpdate:value": t[47] ||= (t) => e.model = t,
|
|
@@ -2635,7 +2638,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
2635
2638
|
"base-key-path",
|
|
2636
2639
|
"worker-host-functions"
|
|
2637
2640
|
])) : j("", !0),
|
|
2638
|
-
e.field.type === "remotetablepro" && !e.self_is_edit ? (
|
|
2641
|
+
e.field.type === "remotetablepro" && !e.self_is_edit ? (H(), A(pe, {
|
|
2639
2642
|
key: 39,
|
|
2640
2643
|
value: e.model,
|
|
2641
2644
|
"onUpdate:value": t[48] ||= (t) => e.model = t,
|
|
@@ -2670,7 +2673,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
2670
2673
|
"base-key-path",
|
|
2671
2674
|
"worker-host-functions"
|
|
2672
2675
|
])) : j("", !0),
|
|
2673
|
-
e.field.type === "formtemplate" ? (
|
|
2676
|
+
e.field.type === "formtemplate" ? (H(), A(me, {
|
|
2674
2677
|
key: 40,
|
|
2675
2678
|
value: e.model,
|
|
2676
2679
|
"onUpdate:value": t[49] ||= (t) => e.model = t,
|
|
@@ -2715,7 +2718,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
2715
2718
|
"worker-host-functions",
|
|
2716
2719
|
"contextOptions"
|
|
2717
2720
|
])) : j("", !0),
|
|
2718
|
-
e.field.type === "dynamicvaluefield" ? (
|
|
2721
|
+
e.field.type === "dynamicvaluefield" ? (H(), A(he, {
|
|
2719
2722
|
key: 41,
|
|
2720
2723
|
value: e.model,
|
|
2721
2724
|
"onUpdate:value": t[50] ||= (t) => e.model = t,
|
|
@@ -2754,7 +2757,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
2754
2757
|
"base-key-path",
|
|
2755
2758
|
"worker-host-functions"
|
|
2756
2759
|
])) : j("", !0),
|
|
2757
|
-
e.field.type === "remotetext" ? (
|
|
2760
|
+
e.field.type === "remotetext" ? (H(), A(Y, {
|
|
2758
2761
|
key: 42,
|
|
2759
2762
|
value: e.model,
|
|
2760
2763
|
"onUpdate:value": t[51] ||= (t) => e.model = t,
|
|
@@ -2777,7 +2780,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
2777
2780
|
"search_config",
|
|
2778
2781
|
"watch"
|
|
2779
2782
|
])) : j("", !0),
|
|
2780
|
-
e.field.type === "upload" ? (
|
|
2783
|
+
e.field.type === "upload" ? (H(), A(ge, {
|
|
2781
2784
|
key: 43,
|
|
2782
2785
|
value: e.model,
|
|
2783
2786
|
"onUpdate:value": t[52] ||= (t) => e.model = t,
|
|
@@ -2794,7 +2797,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
2794
2797
|
"maxCount",
|
|
2795
2798
|
"acceptList"
|
|
2796
2799
|
])) : j("", !0),
|
|
2797
|
-
e.field.type === "codeeditor" ? (
|
|
2800
|
+
e.field.type === "codeeditor" ? (H(), A(_e, {
|
|
2798
2801
|
key: 44,
|
|
2799
2802
|
editorValue: e.model,
|
|
2800
2803
|
"onUpdate:editorValue": t[53] ||= (t) => e.model = t,
|
|
@@ -2807,7 +2810,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
2807
2810
|
"mode",
|
|
2808
2811
|
"lineWrapping"
|
|
2809
2812
|
])) : j("", !0),
|
|
2810
|
-
e.field.type === "tinymceeditor" ? (
|
|
2813
|
+
e.field.type === "tinymceeditor" ? (H(), A(ve, {
|
|
2811
2814
|
key: 45,
|
|
2812
2815
|
modelValue: e.model,
|
|
2813
2816
|
"onUpdate:modelValue": t[54] ||= (t) => e.model = t,
|
|
@@ -2818,13 +2821,13 @@ function gt(e, t, n, r, i, a) {
|
|
|
2818
2821
|
"options",
|
|
2819
2822
|
"mode"
|
|
2820
2823
|
])) : j("", !0),
|
|
2821
|
-
e.field.type === "iconselect" ? (
|
|
2824
|
+
e.field.type === "iconselect" ? (H(), A(ye, {
|
|
2822
2825
|
key: 46,
|
|
2823
2826
|
value: e.model,
|
|
2824
2827
|
"onUpdate:value": t[55] ||= (t) => e.model = t,
|
|
2825
2828
|
placeholder: e.field.placeholder_i18n == null ? e.field.placeholder ? e.field.placeholder : e.$t("请选择") + e.field.label : e.t(e.field.placeholder_i18n)
|
|
2826
2829
|
}, null, 8, ["value", "placeholder"])) : j("", !0),
|
|
2827
|
-
e.field.type === "rate" ? (
|
|
2830
|
+
e.field.type === "rate" ? (H(), A(u, {
|
|
2828
2831
|
key: 47,
|
|
2829
2832
|
value: e.model,
|
|
2830
2833
|
"onUpdate:value": t[56] ||= (t) => e.model = t,
|
|
@@ -2835,7 +2838,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
2835
2838
|
"count",
|
|
2836
2839
|
"allow-half"
|
|
2837
2840
|
])) : j("", !0),
|
|
2838
|
-
e.field.type === "radio-color" ? (
|
|
2841
|
+
e.field.type === "radio-color" ? (H(), A(oe, {
|
|
2839
2842
|
key: 48,
|
|
2840
2843
|
value: e.model,
|
|
2841
2844
|
"onUpdate:value": t[57] ||= (t) => e.model = t,
|
|
@@ -2843,12 +2846,12 @@ function gt(e, t, n, r, i, a) {
|
|
|
2843
2846
|
disabled: e.field.disabled,
|
|
2844
2847
|
size: "small"
|
|
2845
2848
|
}, {
|
|
2846
|
-
default:
|
|
2849
|
+
default: X(() => [(H(!0), M(O, null, G(e.options, (t) => (H(), A(ae, {
|
|
2847
2850
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2848
2851
|
disabled: t.disabled,
|
|
2849
2852
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2850
2853
|
}, {
|
|
2851
|
-
default:
|
|
2854
|
+
default: X(() => [N("div", { style: ue({
|
|
2852
2855
|
width: "20px",
|
|
2853
2856
|
height: "20px",
|
|
2854
2857
|
backgroundColor: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
@@ -2861,7 +2864,7 @@ function gt(e, t, n, r, i, a) {
|
|
|
2861
2864
|
"default-value",
|
|
2862
2865
|
"disabled"
|
|
2863
2866
|
])) : j("", !0),
|
|
2864
|
-
e.field.type?.startsWith("CustomField") ? (
|
|
2867
|
+
e.field.type?.startsWith("CustomField") ? (H(), A(q(e.field.type), {
|
|
2865
2868
|
key: 49,
|
|
2866
2869
|
label: e.labelModel,
|
|
2867
2870
|
"onUpdate:label": t[58] ||= (t) => e.labelModel = t,
|
|
@@ -2891,9 +2894,9 @@ function gt(e, t, n, r, i, a) {
|
|
|
2891
2894
|
_: 2
|
|
2892
2895
|
}, [e.is_show_label ? {
|
|
2893
2896
|
name: "label",
|
|
2894
|
-
fn:
|
|
2895
|
-
F(
|
|
2896
|
-
e.is_show_edit ? (
|
|
2897
|
+
fn: X(() => [
|
|
2898
|
+
F(J(e.is_show_label ? e.field.label_i18n == null ? e.field.label : e.t(e.field.label_i18n) : null) + " ", 1),
|
|
2899
|
+
e.is_show_edit ? (H(), A(o, {
|
|
2897
2900
|
key: 0,
|
|
2898
2901
|
checked: e.self_is_edit,
|
|
2899
2902
|
"onUpdate:checked": t[0] ||= (t) => e.self_is_edit = t,
|
|
@@ -2902,27 +2905,27 @@ function gt(e, t, n, r, i, a) {
|
|
|
2902
2905
|
"checked-children": "表单",
|
|
2903
2906
|
"un-checked-children": "列表"
|
|
2904
2907
|
}, null, 8, ["checked", "onChange"])) : j("", !0),
|
|
2905
|
-
e.is_show_edit && e.self_is_edit ? (
|
|
2908
|
+
e.is_show_edit && e.self_is_edit ? (H(), A(c, {
|
|
2906
2909
|
key: 1,
|
|
2907
2910
|
size: "small",
|
|
2908
2911
|
type: "primary",
|
|
2909
2912
|
onClick: e.handleAdd
|
|
2910
2913
|
}, {
|
|
2911
|
-
icon:
|
|
2912
|
-
default:
|
|
2914
|
+
icon: X(() => [I(s)]),
|
|
2915
|
+
default: X(() => [t[61] ||= F(" 添加分组 ")]),
|
|
2913
2916
|
_: 1
|
|
2914
2917
|
}, 8, ["onClick"])) : j("", !0)
|
|
2915
2918
|
]),
|
|
2916
2919
|
key: "0"
|
|
2917
2920
|
} : void 0]), 1040, ["extra", "name"])) : j("", !0),
|
|
2918
|
-
e.field.type === "divider" ? (
|
|
2921
|
+
e.field.type === "divider" ? (H(), A(Z, {
|
|
2919
2922
|
key: 1,
|
|
2920
2923
|
orientation: e.field.orientation
|
|
2921
2924
|
}, {
|
|
2922
|
-
default:
|
|
2925
|
+
default: X(() => [F(J(e.field.label), 1)]),
|
|
2923
2926
|
_: 1
|
|
2924
2927
|
}, 8, ["orientation"])) : j("", !0),
|
|
2925
|
-
e.field.type === "button" ? (
|
|
2928
|
+
e.field.type === "button" ? (H(), A(xe, {
|
|
2926
2929
|
key: 2,
|
|
2927
2930
|
value: e.model,
|
|
2928
2931
|
"onUpdate:value": t[60] ||= (t) => e.model = t,
|
|
@@ -2947,6 +2950,6 @@ function gt(e, t, n, r, i, a) {
|
|
|
2947
2950
|
])) : j("", !0)
|
|
2948
2951
|
], 64);
|
|
2949
2952
|
}
|
|
2950
|
-
var
|
|
2953
|
+
var vt = /*#__PURE__*/ t(ut, [["render", _t], ["__scopeId", "data-v-4d903c12"]]);
|
|
2951
2954
|
//#endregion
|
|
2952
|
-
export {
|
|
2955
|
+
export { vt as t };
|