liyu-pc-base 1.0.694 → 1.0.709
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/{FieldRender-BbKYSJCn.js → FieldRender-_Q75X-lX.js} +8 -4
- package/dist/FieldRender-_Q75X-lX.js.map +1 -0
- package/dist/{FieldRender2-zrZDX9_D.js → FieldRender2-D-0-7Z4g.js} +215 -202
- package/dist/FieldRender2-D-0-7Z4g.js.map +1 -0
- package/dist/{FormRender3-BPGoX7BP.js → FormRender3-Ds6-LtUm.js} +1 -1
- package/dist/{FormRender3-BPGoX7BP.js.map → FormRender3-Ds6-LtUm.js.map} +1 -1
- package/dist/RemoteSelectPro-DX8g-uWm.js +775 -0
- package/dist/RemoteSelectPro-DX8g-uWm.js.map +1 -0
- package/dist/{SearchRender-CJAyx6XH.js → SearchRender-SbB-5vAn.js} +1 -1
- package/dist/{SearchRender-CJAyx6XH.js.map → SearchRender-SbB-5vAn.js.map} +1 -1
- package/dist/components/FormRender/utils.js +35 -5
- package/dist/components/FormRender/utils.js.map +1 -1
- package/dist/components/index.js +6 -6
- package/dist/index.js +1 -1
- package/dist/liyu-pc-base.css +1 -1
- package/dist/{tableModal-CK36tg4I.js → tableModal-BGCM8gSy.js} +1 -1
- package/dist/{tableModal-CK36tg4I.js.map → tableModal-BGCM8gSy.js.map} +1 -1
- package/dist/{tablePro-CxHPwyms.js → tablePro-DKz-cHX3.js} +1 -1
- package/dist/{tablePro-CxHPwyms.js.map → tablePro-DKz-cHX3.js.map} +1 -1
- package/package.json +1 -1
- package/dist/FieldRender-BbKYSJCn.js.map +0 -1
- package/dist/FieldRender2-zrZDX9_D.js.map +0 -1
- package/dist/RemoteSelectPro-CHgvSg4V.js +0 -834
- package/dist/RemoteSelectPro-CHgvSg4V.js.map +0 -1
|
@@ -4,7 +4,7 @@ import { t as n } from "./RemoteCascader-CGdD6rUw.js";
|
|
|
4
4
|
import { t as r } from "./lodash-CC0qDxjV.js";
|
|
5
5
|
import { N as i, P as a, s as o } from "./function-BPdgB84k.js";
|
|
6
6
|
import { i as s, t as c } from "./RemoteModal-LBD1h5AF.js";
|
|
7
|
-
import { n as l, r as u, t as d } from "./RemoteSelectPro-
|
|
7
|
+
import { n as l, r as u, t as d } from "./RemoteSelectPro-DX8g-uWm.js";
|
|
8
8
|
import { t as f } from "./RemoteFilterSelect-BCv2zIHS.js";
|
|
9
9
|
import { t as p } from "./AttributeNomTable-HiLsOuv9.js";
|
|
10
10
|
import { t as m } from "./AttributeTable-BeZnyj9P.js";
|
|
@@ -12,17 +12,18 @@ import { t as h } from "./JsonStr-Bx2WI6jK.js";
|
|
|
12
12
|
import { t as g } from "./JsonObj-DIlhMCbj.js";
|
|
13
13
|
import { t as _ } from "./RemoteText-BVqSMfSl.js";
|
|
14
14
|
import { t as v } from "./modal-tools-CrXdI5sg.js";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
15
|
+
import { resolveContextValue as y } from "./components/FormRender/utils.js";
|
|
16
|
+
import { exportJsonToExcelByTokenHeader as b } from "./utils/excel.js";
|
|
17
|
+
import { a as x, c as S, d as C, f as w, i as T, l as E, n as D, o as ee, r as te, s as ne, t as re, u as ie } from "./TinymceEditor-VlIMhy_4.js";
|
|
18
|
+
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 ae, mergeModels as oe, mergeProps as se, normalizeClass as ce, normalizeStyle as le, onMounted as z, onUnmounted as B, openBlock as V, reactive as H, ref as U, renderList as W, renderSlot as ue, resolveComponent as G, resolveDynamicComponent as K, toDisplayString as q, unref as de, useModel as fe, vShow as pe, watch as J, withCtx as Y, withDirectives as me } from "vue";
|
|
19
|
+
import { Modal as he, message as ge } from "ant-design-vue";
|
|
20
|
+
import { debounce as _e, isArray as X } from "lodash-es";
|
|
20
21
|
import Z from "moment";
|
|
21
|
-
import { ExclamationCircleOutlined as
|
|
22
|
-
import { useI18n as
|
|
23
|
-
import
|
|
22
|
+
import { ExclamationCircleOutlined as ve, PlusOutlined as ye } from "@ant-design/icons-vue";
|
|
23
|
+
import { useI18n as be } from "vue-i18n";
|
|
24
|
+
import xe from "mitt";
|
|
24
25
|
//#region src/components/FormRender/FormTemplate/FormItem.vue?vue&type=script&lang.ts
|
|
25
|
-
var
|
|
26
|
+
var Se = R({
|
|
26
27
|
name: "FormTemplate",
|
|
27
28
|
components: {},
|
|
28
29
|
props: {
|
|
@@ -80,7 +81,7 @@ var xe = R({
|
|
|
80
81
|
},
|
|
81
82
|
emits: ["update:value", "remove"],
|
|
82
83
|
setup(e, { emit: t }) {
|
|
83
|
-
let n = H({ ...e.field.form.rules }), r = U({}), i = L(() => import("./FormRender3-
|
|
84
|
+
let n = H({ ...e.field.form.rules }), r = U({}), i = L(() => import("./FormRender3-Ds6-LtUm.js").then((e) => e.n)), a, o = () => {
|
|
84
85
|
let e = /* @__PURE__ */ new Uint8Array(16);
|
|
85
86
|
return window.crypto.getRandomValues(e), Array.from(e, (e) => e.toString(16).padStart(2, "0")).join("");
|
|
86
87
|
}, c = U([]), l = o(), u = ([t, i]) => {
|
|
@@ -112,13 +113,13 @@ var xe = R({
|
|
|
112
113
|
data() {
|
|
113
114
|
return { model: this.value };
|
|
114
115
|
}
|
|
115
|
-
}),
|
|
116
|
+
}), Ce = { class: "form-wrap" }, we = { class: "form-content" }, Te = {
|
|
116
117
|
key: 0,
|
|
117
118
|
class: "form-action"
|
|
118
119
|
};
|
|
119
|
-
function
|
|
120
|
+
function Ee(e, t, n, r, i, a) {
|
|
120
121
|
let o = G("DeleteOutlined"), s = G("a-button");
|
|
121
|
-
return V(), M("div",
|
|
122
|
+
return V(), M("div", Ce, [N("div", we, [(V(), A(K(e.FormRender3Async), {
|
|
122
123
|
form: e.field.form,
|
|
123
124
|
model: e.value,
|
|
124
125
|
"onUpdate:model": t[0] ||= (t) => e.value = t,
|
|
@@ -149,7 +150,7 @@ function Te(e, t, n, r, i, a) {
|
|
|
149
150
|
"modalType",
|
|
150
151
|
"base-key-path",
|
|
151
152
|
"worker-host-functions"
|
|
152
|
-
]))]), e.field.max_count === e.min_count ? j("", !0) : (V(), M("div",
|
|
153
|
+
]))]), e.field.max_count === e.min_count ? j("", !0) : (V(), M("div", Te, [I(s, {
|
|
153
154
|
onClick: e.removeFormItem,
|
|
154
155
|
size: "small",
|
|
155
156
|
type: "link",
|
|
@@ -160,7 +161,7 @@ function Te(e, t, n, r, i, a) {
|
|
|
160
161
|
_: 1
|
|
161
162
|
}, 8, ["onClick", "disabled"])]))]);
|
|
162
163
|
}
|
|
163
|
-
var
|
|
164
|
+
var De = /*#__PURE__*/ t(Se, [["render", Ee], ["__scopeId", "data-v-d6626b20"]]), Oe = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
164
165
|
__name: "TableCell",
|
|
165
166
|
props: {
|
|
166
167
|
field: {
|
|
@@ -220,10 +221,10 @@ var Ee = /*#__PURE__*/ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]])
|
|
|
220
221
|
layout: "inline",
|
|
221
222
|
class: "table-cell-form"
|
|
222
223
|
}, {
|
|
223
|
-
default: Y(() => [
|
|
224
|
+
default: Y(() => [me(N("div", { class: ce(["field-cell-item", {
|
|
224
225
|
editable: s.value,
|
|
225
226
|
"item-required": e.has_reqrired
|
|
226
|
-
}]) }, [(V(), A(
|
|
227
|
+
}]) }, [(V(), A(ut, {
|
|
227
228
|
is_show_label: !1,
|
|
228
229
|
value: e.model[e.field.name],
|
|
229
230
|
"onUpdate:value": n[0] ||= (t) => e.model[e.field.name] = t,
|
|
@@ -260,12 +261,12 @@ var Ee = /*#__PURE__*/ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]])
|
|
|
260
261
|
"base-key-path",
|
|
261
262
|
"worker-host-functions",
|
|
262
263
|
"is_form_design"
|
|
263
|
-
]))], 2), [[
|
|
264
|
+
]))], 2), [[pe, i.value]])]),
|
|
264
265
|
_: 1
|
|
265
266
|
}, 8, ["model"]);
|
|
266
267
|
};
|
|
267
268
|
}
|
|
268
|
-
}), [["__scopeId", "data-v-03708942"]]),
|
|
269
|
+
}), [["__scopeId", "data-v-03708942"]]), ke = { key: 0 }, Ae = { key: 1 }, je = /* @__PURE__ */ R({
|
|
269
270
|
__name: "TableSummary",
|
|
270
271
|
props: {
|
|
271
272
|
summaryParams: {
|
|
@@ -302,21 +303,21 @@ var Ee = /*#__PURE__*/ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]])
|
|
|
302
303
|
}
|
|
303
304
|
let o = (e, t) => (typeof t == "string" && (e.addonAfter && (t = r(t, e.addonAfter, "")), e.addonBefore && (t = i(t, e.addonBefore, "")), t = parseFloat(t)), t);
|
|
304
305
|
return (t, r) => (V(), M(O, null, [
|
|
305
|
-
e.summaryParams?.column?.field?.addonBefore ? (V(), M("span",
|
|
306
|
+
e.summaryParams?.column?.field?.addonBefore ? (V(), M("span", ke, q(e.summaryParams.column.field.addonBefore), 1)) : j("", !0),
|
|
306
307
|
F(" " + q(n.value) + " ", 1),
|
|
307
|
-
e.summaryParams?.column?.field?.addonAfter ? (V(), M("span",
|
|
308
|
+
e.summaryParams?.column?.field?.addonAfter ? (V(), M("span", Ae, q(e.summaryParams.column.field.addonAfter), 1)) : j("", !0)
|
|
308
309
|
], 64));
|
|
309
310
|
}
|
|
310
|
-
}),
|
|
311
|
+
}), Me = {
|
|
311
312
|
key: 0,
|
|
312
313
|
class: "required-star"
|
|
313
|
-
},
|
|
314
|
+
}, Ne = {
|
|
314
315
|
key: 0,
|
|
315
316
|
class: "cell-item"
|
|
316
|
-
},
|
|
317
|
+
}, Pe = {
|
|
317
318
|
key: 1,
|
|
318
319
|
class: "cell-item"
|
|
319
|
-
},
|
|
320
|
+
}, Fe = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
320
321
|
__name: "FormTemplateTable",
|
|
321
322
|
props: {
|
|
322
323
|
value: {},
|
|
@@ -460,7 +461,7 @@ var Ee = /*#__PURE__*/ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]])
|
|
|
460
461
|
});
|
|
461
462
|
return (e, t) => {
|
|
462
463
|
let r = G("DeleteOutlined"), i = G("a-button"), a = G("s-table-summary-cell"), o = G("s-table-summary-row"), s = G("s-table");
|
|
463
|
-
return V(), A(
|
|
464
|
+
return V(), A(C, {
|
|
464
465
|
"dynamic-title": e.field.dynamicTitle,
|
|
465
466
|
"onUpdate:dynamicTitle": t[1] ||= (t) => e.field.dynamicTitle = t
|
|
466
467
|
}, {
|
|
@@ -479,8 +480,8 @@ var Ee = /*#__PURE__*/ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]])
|
|
|
479
480
|
"onUpdate:pagination": t[0] ||= (e) => n.value = e,
|
|
480
481
|
rangeSelection: !1
|
|
481
482
|
}, P({
|
|
482
|
-
headerCell: Y(({ column: e }) => [N("span", null, q(e.title), 1), e.has_reqrired ? (V(), M("span",
|
|
483
|
-
bodyCell: Y(({ column: t, record: n }) => [t.key === "action" ? (V(), M("div",
|
|
483
|
+
headerCell: Y(({ column: e }) => [N("span", null, q(e.title), 1), e.has_reqrired ? (V(), M("span", Me, " * ")) : j("", !0)]),
|
|
484
|
+
bodyCell: Y(({ column: t, record: n }) => [t.key === "action" ? (V(), M("div", Ne, [I(i, {
|
|
484
485
|
onClick: (e) => y(n._key),
|
|
485
486
|
size: "small",
|
|
486
487
|
type: "link",
|
|
@@ -489,7 +490,7 @@ var Ee = /*#__PURE__*/ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]])
|
|
|
489
490
|
}, {
|
|
490
491
|
icon: Y(() => [I(r)]),
|
|
491
492
|
_: 2
|
|
492
|
-
}, 1032, ["onClick", "disabled"])])) : t.key === "index" ? (V(), M("div",
|
|
493
|
+
}, 1032, ["onClick", "disabled"])])) : t.key === "index" ? (V(), M("div", Pe, q(n._key + 1), 1)) : t.field ? (V(), A(Oe, {
|
|
493
494
|
key: `${n._key}_${t.dataIndex}`,
|
|
494
495
|
field: t.field,
|
|
495
496
|
model: e.value[n._key],
|
|
@@ -534,7 +535,7 @@ var Ee = /*#__PURE__*/ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]])
|
|
|
534
535
|
key: e.index,
|
|
535
536
|
index: e.index
|
|
536
537
|
}, {
|
|
537
|
-
default: Y((e) => [I(
|
|
538
|
+
default: Y((e) => [I(je, {
|
|
538
539
|
"summary-params": e,
|
|
539
540
|
tableDataSource: g.value
|
|
540
541
|
}, null, 8, ["summary-params", "tableDataSource"])]),
|
|
@@ -553,7 +554,7 @@ var Ee = /*#__PURE__*/ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]])
|
|
|
553
554
|
}, 8, ["dynamic-title"]);
|
|
554
555
|
};
|
|
555
556
|
}
|
|
556
|
-
}), [["__scopeId", "data-v-e695af09"]]), Q = r(),
|
|
557
|
+
}), [["__scopeId", "data-v-e695af09"]]), Q = r(), Ie = { class: "top_btn" }, Le = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
557
558
|
__name: "FormTemplate",
|
|
558
559
|
props: {
|
|
559
560
|
field: {},
|
|
@@ -575,16 +576,16 @@ var Ee = /*#__PURE__*/ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]])
|
|
|
575
576
|
},
|
|
576
577
|
emits: ["update:value"],
|
|
577
578
|
setup(e, { emit: t }) {
|
|
578
|
-
let n = e, r = t, i = U(0), a =
|
|
579
|
+
let n = e, r = t, i = U(0), a = xe(), s = [{
|
|
579
580
|
label: "添加(add)",
|
|
580
581
|
value: "add"
|
|
581
582
|
}, {
|
|
582
583
|
label: "整体更新(update)",
|
|
583
584
|
value: "update"
|
|
584
585
|
}], c = L(() => import("./ImportExcelModal-Dds857L2.js")), l = k(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("download"))), u = k(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("import"))), d = () => {
|
|
585
|
-
|
|
586
|
+
he.confirm({
|
|
586
587
|
title: "确认清空吗?",
|
|
587
|
-
icon: I(
|
|
588
|
+
icon: I(ve),
|
|
588
589
|
content: "清空后将无法恢复",
|
|
589
590
|
okText: "确认",
|
|
590
591
|
cancelText: "取消",
|
|
@@ -617,12 +618,12 @@ var Ee = /*#__PURE__*/ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]])
|
|
|
617
618
|
e.forEach((e) => {
|
|
618
619
|
let t = (0, Q.cloneDeep)(n.field.form.model || {});
|
|
619
620
|
Object.keys(e).forEach((n) => {
|
|
620
|
-
e[n].error && i.push(
|
|
621
|
+
e[n].error && i.push(ae("li", e[n].error + "(" + e[n].excel_position + ")")), t[n] = e[n].value, m[n] && (t[m[n]] = e[n].raw_value);
|
|
621
622
|
}), a.push(t);
|
|
622
|
-
}), i.length > 0 ?
|
|
623
|
+
}), i.length > 0 ? he.warning({
|
|
623
624
|
title: "导入Excel报错, 请改正后再尝试导入",
|
|
624
|
-
content:
|
|
625
|
-
icon: I(
|
|
625
|
+
content: ae("ol", i),
|
|
626
|
+
icon: I(ve)
|
|
626
627
|
}) : r("update:value", [...n.value || [], ...a]), t.open = !1;
|
|
627
628
|
},
|
|
628
629
|
onCancel: () => {
|
|
@@ -638,7 +639,7 @@ var Ee = /*#__PURE__*/ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]])
|
|
|
638
639
|
}
|
|
639
640
|
}
|
|
640
641
|
return !1;
|
|
641
|
-
},
|
|
642
|
+
}, y = () => {
|
|
642
643
|
g.value = !0;
|
|
643
644
|
let e = [], t = [];
|
|
644
645
|
(n.field.form?.dynamicFieldList || []).forEach((r) => {
|
|
@@ -648,7 +649,7 @@ var Ee = /*#__PURE__*/ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]])
|
|
|
648
649
|
color: "FFFF0000"
|
|
649
650
|
}] } : { title: [r.label] }), n.value && n.value.length > 0 ? t.push(n.value[0][r.name] ? n.value[0][r.name].toString() : "") : t.push(""));
|
|
650
651
|
});
|
|
651
|
-
}),
|
|
652
|
+
}), b({
|
|
652
653
|
data: [t],
|
|
653
654
|
autoWidth: !0,
|
|
654
655
|
filename: n.field.label || "导入模板",
|
|
@@ -656,7 +657,7 @@ var Ee = /*#__PURE__*/ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]])
|
|
|
656
657
|
}), setTimeout(() => {
|
|
657
658
|
g.value = !1;
|
|
658
659
|
}, 1500);
|
|
659
|
-
}, x = k(() => n.field.min_count ?? 0),
|
|
660
|
+
}, x = k(() => n.field.min_count ?? 0), S = k(() => {
|
|
660
661
|
if (n.innerModel) {
|
|
661
662
|
n.innerModel[n.field.name] || (n.innerModel[n.field.name] = []);
|
|
662
663
|
for (let e = 0; e < n.value.length; e++) n.innerModel[n.field.name][e] || (n.innerModel[n.field.name][e] = {});
|
|
@@ -673,7 +674,7 @@ var Ee = /*#__PURE__*/ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]])
|
|
|
673
674
|
keyPath: [...n.baseKeyPath, n.field.name]
|
|
674
675
|
}, n.workerHostFunctions || {});
|
|
675
676
|
} catch (e) {
|
|
676
|
-
|
|
677
|
+
ge.error(e.message);
|
|
677
678
|
return;
|
|
678
679
|
}
|
|
679
680
|
if (e.action == "add") {
|
|
@@ -692,15 +693,15 @@ var Ee = /*#__PURE__*/ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]])
|
|
|
692
693
|
r("update:value", e);
|
|
693
694
|
}
|
|
694
695
|
}
|
|
695
|
-
},
|
|
696
|
+
}, T = () => {
|
|
696
697
|
let e = n.value || [];
|
|
697
698
|
e.push((0, Q.cloneDeep)(n.field.form.model || {})), r("update:value", e);
|
|
698
|
-
},
|
|
699
|
+
}, E = (e) => {
|
|
699
700
|
let t = n.value || [];
|
|
700
701
|
t.splice(e, 1), r("update:value", t);
|
|
701
|
-
},
|
|
702
|
+
}, D = (0, Q.debounce)(() => {
|
|
702
703
|
i.value = window.innerHeight - 165;
|
|
703
|
-
}, 200),
|
|
704
|
+
}, 200), ee = () => {
|
|
704
705
|
v(H({
|
|
705
706
|
open: !0,
|
|
706
707
|
loading: !1,
|
|
@@ -727,21 +728,21 @@ var Ee = /*#__PURE__*/ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]])
|
|
|
727
728
|
r("update:value", t);
|
|
728
729
|
}
|
|
729
730
|
}), z(() => {
|
|
730
|
-
if (window.addEventListener("resize",
|
|
731
|
+
if (window.addEventListener("resize", D), D(), !(n.value instanceof Array) || n.value.length < x.value) {
|
|
731
732
|
let e = [...n.value || []];
|
|
732
733
|
for (; e.length < x.value;) e.push((0, Q.cloneDeep)(n.field.form.model || {}));
|
|
733
734
|
r("update:value", e);
|
|
734
735
|
}
|
|
735
736
|
}), B(() => {
|
|
736
|
-
window.removeEventListener("resize",
|
|
737
|
+
window.removeEventListener("resize", D);
|
|
737
738
|
}), (e, t) => {
|
|
738
739
|
let n = G("a-button");
|
|
739
|
-
return V(), M(O, null, [N("div",
|
|
740
|
+
return V(), M(O, null, [N("div", Ie, [
|
|
740
741
|
e.is_form_design ? (V(), A(n, {
|
|
741
742
|
key: 0,
|
|
742
743
|
type: "primary",
|
|
743
744
|
size: "small",
|
|
744
|
-
onClick:
|
|
745
|
+
onClick: ee,
|
|
745
746
|
ghost: !0
|
|
746
747
|
}, {
|
|
747
748
|
default: Y(() => t[0] ||= [F(" 编辑表单 ")]),
|
|
@@ -762,7 +763,7 @@ var Ee = /*#__PURE__*/ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]])
|
|
|
762
763
|
size: "small",
|
|
763
764
|
type: "primary",
|
|
764
765
|
loading: g.value,
|
|
765
|
-
onClick:
|
|
766
|
+
onClick: y
|
|
766
767
|
}, {
|
|
767
768
|
default: Y(() => t[2] ||= [F(" 下载导入模版 ")]),
|
|
768
769
|
_: 1
|
|
@@ -780,14 +781,14 @@ var Ee = /*#__PURE__*/ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]])
|
|
|
780
781
|
key: 4,
|
|
781
782
|
type: "primary",
|
|
782
783
|
size: "small",
|
|
783
|
-
onClick:
|
|
784
|
+
onClick: T,
|
|
784
785
|
disabled: e.field.max_count && e.value.length >= e.field.max_count
|
|
785
786
|
}, {
|
|
786
|
-
icon: Y(() => [I(
|
|
787
|
+
icon: Y(() => [I(de(ye))]),
|
|
787
788
|
default: Y(() => [F(" " + q(e.field.btn_title || "添加"), 1)]),
|
|
788
789
|
_: 1
|
|
789
790
|
}, 8, ["disabled"])) : j("", !0),
|
|
790
|
-
(V(!0), M(O, null, W(e.field.custom_btn_list, (t) => (V(), A(
|
|
791
|
+
(V(!0), M(O, null, W(e.field.custom_btn_list, (t) => (V(), A(C, {
|
|
791
792
|
action_code_id: t.action_code_id,
|
|
792
793
|
code: t.code,
|
|
793
794
|
"onUpdate:code": (e) => t.code = e,
|
|
@@ -818,7 +819,7 @@ var Ee = /*#__PURE__*/ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]])
|
|
|
818
819
|
"action",
|
|
819
820
|
"onUpdate:action"
|
|
820
821
|
]))), 256))
|
|
821
|
-
]), e.field.showType === "table" ? (V(), A(
|
|
822
|
+
]), e.field.showType === "table" ? (V(), A(Fe, {
|
|
822
823
|
key: 0,
|
|
823
824
|
value: e.value,
|
|
824
825
|
field: e.field,
|
|
@@ -831,7 +832,7 @@ var Ee = /*#__PURE__*/ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]])
|
|
|
831
832
|
"worker-host-functions": e.workerHostFunctions,
|
|
832
833
|
min_count: x.value,
|
|
833
834
|
formModel: e.formModel,
|
|
834
|
-
onRemove:
|
|
835
|
+
onRemove: E
|
|
835
836
|
}, null, 8, [
|
|
836
837
|
"value",
|
|
837
838
|
"field",
|
|
@@ -844,7 +845,7 @@ var Ee = /*#__PURE__*/ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]])
|
|
|
844
845
|
"worker-host-functions",
|
|
845
846
|
"min_count",
|
|
846
847
|
"formModel"
|
|
847
|
-
])) : (V(!0), M(O, { key: 1 }, W(e.value, (t, n) => (V(), A(
|
|
848
|
+
])) : (V(!0), M(O, { key: 1 }, W(e.value, (t, n) => (V(), A(De, {
|
|
848
849
|
form: e.field.form,
|
|
849
850
|
field: e.field,
|
|
850
851
|
value: e.value[n],
|
|
@@ -852,7 +853,7 @@ var Ee = /*#__PURE__*/ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]])
|
|
|
852
853
|
options: e.field.form?.options,
|
|
853
854
|
alwaysShowGroup: e.alwaysShowGroup,
|
|
854
855
|
is_form_design: e.is_form_design,
|
|
855
|
-
"inner-model":
|
|
856
|
+
"inner-model": S.value[n],
|
|
856
857
|
"global-inner-model": e.globalInnerModel,
|
|
857
858
|
modalTypeList: e.modalTypeList,
|
|
858
859
|
modalType: e.modalType,
|
|
@@ -860,7 +861,7 @@ var Ee = /*#__PURE__*/ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]])
|
|
|
860
861
|
min_count: x.value,
|
|
861
862
|
listLength: e.value.length,
|
|
862
863
|
context: e.context,
|
|
863
|
-
onRemove: (e) =>
|
|
864
|
+
onRemove: (e) => E(n),
|
|
864
865
|
"base-key-path": [
|
|
865
866
|
...e.baseKeyPath,
|
|
866
867
|
e.field.name,
|
|
@@ -889,9 +890,12 @@ var Ee = /*#__PURE__*/ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]])
|
|
|
889
890
|
]))), 256))], 64);
|
|
890
891
|
};
|
|
891
892
|
}
|
|
892
|
-
}), [["__scopeId", "data-v-ffaa44a9"]]),
|
|
893
|
+
}), [["__scopeId", "data-v-ffaa44a9"]]), Re = {
|
|
894
|
+
key: 0,
|
|
895
|
+
class: "error-msg"
|
|
896
|
+
}, ze = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
893
897
|
name: "DynamicValueField",
|
|
894
|
-
|
|
898
|
+
__name: "DynamicValueField",
|
|
895
899
|
props: {
|
|
896
900
|
field: {
|
|
897
901
|
type: Object,
|
|
@@ -925,89 +929,96 @@ var Ee = /*#__PURE__*/ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]])
|
|
|
925
929
|
},
|
|
926
930
|
emits: ["update:value"],
|
|
927
931
|
setup(e, { emit: t }) {
|
|
928
|
-
let n = U(null),
|
|
932
|
+
let n = e, r = t, i = U(null), a = (0, Q.debounce)(async (e, t, a, s) => {
|
|
929
933
|
let c = a.code;
|
|
930
934
|
if (a.watchType === "scoped") {
|
|
931
935
|
if (a.valueType === "single") {
|
|
932
|
-
let
|
|
933
|
-
if (
|
|
934
|
-
a.valueKey && (
|
|
936
|
+
let t = e?.[a.fieldName];
|
|
937
|
+
if (t === void 0 && n.value !== void 0) return;
|
|
938
|
+
a.valueKey && (t = t?.[a.valueKey]), t !== n.value && r("update:value", t);
|
|
935
939
|
} else if (a.valueType === "multiple") {
|
|
936
|
-
let
|
|
940
|
+
let t = e?.[a.fieldName];
|
|
937
941
|
if (a.valueKeyList && a.valueKeyList.length) {
|
|
938
|
-
let
|
|
939
|
-
for (let
|
|
940
|
-
if (
|
|
941
|
-
|
|
942
|
+
let e = [];
|
|
943
|
+
for (let n of a.valueKeyList) t?.[n] !== void 0 && e.push(t?.[n]);
|
|
944
|
+
if (e.length === 0 && n.value !== void 0) return;
|
|
945
|
+
t = e.join(a.valueSpace || ","), t !== n.value && r("update:value", t);
|
|
942
946
|
}
|
|
943
947
|
}
|
|
944
948
|
} else if (a.watchType === "global") {
|
|
945
949
|
if (a.valueType === "single") {
|
|
946
|
-
let
|
|
947
|
-
if (a.valueKey && (
|
|
948
|
-
|
|
950
|
+
let e = t?.[a.fieldName];
|
|
951
|
+
if (a.valueKey && (e = e?.[a.valueKey]), e === void 0 && n.value !== void 0) return;
|
|
952
|
+
e !== n.value && r("update:value", e);
|
|
949
953
|
} else if (a.valueType === "multiple") {
|
|
950
|
-
let
|
|
954
|
+
let e = t?.[a.fieldName];
|
|
951
955
|
if (a.valueKeyList && a.valueKeyList.length) {
|
|
952
|
-
let
|
|
953
|
-
for (let
|
|
954
|
-
if (
|
|
955
|
-
|
|
956
|
+
let t = [];
|
|
957
|
+
for (let n of a.valueKeyList) e?.[n] && t.push(e?.[n]);
|
|
958
|
+
if (t.length === 0 && n.value !== void 0) return;
|
|
959
|
+
e = t.join(a.valueSpace || ","), e !== n.value && r("update:value", e);
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
} else if (a.watchType === "context") {
|
|
963
|
+
let e = y(a.fieldName || "", n.context, ["formModel", ...n.baseKeyPath || []]);
|
|
964
|
+
if (a.valueType === "single") {
|
|
965
|
+
let t = e;
|
|
966
|
+
if (a.valueKey && (t = t?.[a.valueKey]), t === void 0 && n.value !== void 0) return;
|
|
967
|
+
t !== n.value && r("update:value", t);
|
|
968
|
+
} else if (a.valueType === "multiple") {
|
|
969
|
+
let t = e;
|
|
970
|
+
if (a.valueKeyList && a.valueKeyList.length) {
|
|
971
|
+
let e = [];
|
|
972
|
+
for (let n of a.valueKeyList) t?.[n] !== void 0 && e.push(t?.[n]);
|
|
973
|
+
if (e.length === 0 && n.value !== void 0) return;
|
|
974
|
+
t = e.join(a.valueSpace || ","), t !== n.value && r("update:value", t);
|
|
956
975
|
}
|
|
957
976
|
}
|
|
958
977
|
} else if (a.watchType === "code") try {
|
|
959
|
-
let
|
|
960
|
-
innerModel:
|
|
961
|
-
globalInnerModel:
|
|
978
|
+
let e = await o(c, {
|
|
979
|
+
innerModel: n.innerModel,
|
|
980
|
+
globalInnerModel: n.globalInnerModel,
|
|
962
981
|
field: a,
|
|
963
982
|
formModel: s,
|
|
964
|
-
context:
|
|
965
|
-
keyPath: [...
|
|
966
|
-
},
|
|
967
|
-
if (
|
|
968
|
-
|
|
983
|
+
context: n.context,
|
|
984
|
+
keyPath: [...n.baseKeyPath, a.name]
|
|
985
|
+
}, n.workerHostFunctions || {});
|
|
986
|
+
if (e === void 0 && n.value !== void 0) return;
|
|
987
|
+
e !== n.value && r("update:value", e), i.value = null;
|
|
969
988
|
} catch (e) {
|
|
970
|
-
console.error(e),
|
|
989
|
+
console.error(e), r("update:value", ""), i.value = e.message;
|
|
971
990
|
}
|
|
972
991
|
}, 200);
|
|
973
992
|
return J(() => [
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
], ([e, t, n,
|
|
980
|
-
|
|
993
|
+
n.innerModel,
|
|
994
|
+
n.globalInnerModel,
|
|
995
|
+
n.field,
|
|
996
|
+
n.formModel,
|
|
997
|
+
n.context
|
|
998
|
+
], ([e, t, n, r]) => {
|
|
999
|
+
a(e, t, n, r);
|
|
981
1000
|
}, {
|
|
982
1001
|
immediate: !0,
|
|
983
1002
|
deep: !0
|
|
984
|
-
}),
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
1003
|
+
}), (t, n) => {
|
|
1004
|
+
let r = G("a-input");
|
|
1005
|
+
return V(), M(O, null, [I(C, {
|
|
1006
|
+
"value-code": e.field,
|
|
1007
|
+
"show-debug-code": e.field.watchType === "code"
|
|
1008
|
+
}, {
|
|
1009
|
+
default: Y(() => [I(r, {
|
|
1010
|
+
value: e.value,
|
|
1011
|
+
readonly: "",
|
|
1012
|
+
size: "small",
|
|
1013
|
+
style: { "background-color": "#f5f5f5" }
|
|
1014
|
+
}, null, 8, ["value"])]),
|
|
1015
|
+
_: 1
|
|
1016
|
+
}, 8, ["value-code", "show-debug-code"]), i.value ? (V(), M("span", Re, q(i.value), 1)) : j("", !0)], 64);
|
|
1017
|
+
};
|
|
988
1018
|
}
|
|
989
|
-
}),
|
|
990
|
-
key: 0,
|
|
991
|
-
class: "error-msg"
|
|
992
|
-
};
|
|
993
|
-
function ze(e, t, n, r, i, a) {
|
|
994
|
-
let o = G("a-input"), s = G("debug-code");
|
|
995
|
-
return V(), M(O, null, [I(s, {
|
|
996
|
-
"value-code": e.field,
|
|
997
|
-
"show-debug-code": e.field.watchType === "code"
|
|
998
|
-
}, {
|
|
999
|
-
default: Y(() => [I(o, {
|
|
1000
|
-
value: e.value,
|
|
1001
|
-
readonly: "",
|
|
1002
|
-
size: "small",
|
|
1003
|
-
style: { "background-color": "#f5f5f5" }
|
|
1004
|
-
}, null, 8, ["value"])]),
|
|
1005
|
-
_: 1
|
|
1006
|
-
}, 8, ["value-code", "show-debug-code"]), e.errorMsg ? (V(), M("span", Re, q(e.errorMsg), 1)) : j("", !0)], 64);
|
|
1007
|
-
}
|
|
1008
|
-
var Be = /*#__PURE__*/ t(Le, [["render", ze], ["__scopeId", "data-v-4d36fe78"]]), Ve = R({
|
|
1019
|
+
}), [["__scopeId", "data-v-9311174e"]]), Be = R({
|
|
1009
1020
|
name: "FormButton",
|
|
1010
|
-
components: { debugCode:
|
|
1021
|
+
components: { debugCode: C },
|
|
1011
1022
|
props: {
|
|
1012
1023
|
field: {
|
|
1013
1024
|
type: Object,
|
|
@@ -1060,7 +1071,7 @@ var Be = /*#__PURE__*/ t(Le, [["render", ze], ["__scopeId", "data-v-4d36fe78"]])
|
|
|
1060
1071
|
keyPath: [...e.baseKeyPath, e.field.name]
|
|
1061
1072
|
}, e.workerHostFunctions || {});
|
|
1062
1073
|
} catch (e) {
|
|
1063
|
-
|
|
1074
|
+
ge.error(e.message);
|
|
1064
1075
|
return;
|
|
1065
1076
|
}
|
|
1066
1077
|
t && Object.assign(e.formModel, t);
|
|
@@ -1073,7 +1084,7 @@ var Be = /*#__PURE__*/ t(Le, [["render", ze], ["__scopeId", "data-v-4d36fe78"]])
|
|
|
1073
1084
|
});
|
|
1074
1085
|
//#endregion
|
|
1075
1086
|
//#region src/components/FormRender/FormButton/FormButton.vue
|
|
1076
|
-
function
|
|
1087
|
+
function Ve(e, t, n, r, i, a) {
|
|
1077
1088
|
let o = G("a-button"), s = G("debug-code");
|
|
1078
1089
|
return V(), A(s, {
|
|
1079
1090
|
action_code_id: e.field.action_code_id,
|
|
@@ -1098,7 +1109,7 @@ function He(e, t, n, r, i, a) {
|
|
|
1098
1109
|
_: 1
|
|
1099
1110
|
}, 8, ["action_code_id", "code"]);
|
|
1100
1111
|
}
|
|
1101
|
-
var
|
|
1112
|
+
var He = /*#__PURE__*/ t(Be, [["render", Ve]]), Ue = R({
|
|
1102
1113
|
name: "InputNumberPro",
|
|
1103
1114
|
components: {},
|
|
1104
1115
|
props: {
|
|
@@ -1134,8 +1145,8 @@ var Ue = /*#__PURE__*/ t(Ve, [["render", He]]), We = R({
|
|
|
1134
1145
|
data() {
|
|
1135
1146
|
return { model: this.value };
|
|
1136
1147
|
}
|
|
1137
|
-
}),
|
|
1138
|
-
function
|
|
1148
|
+
}), We = { key: 0 }, Ge = { key: 0 }, Ke = { key: 0 };
|
|
1149
|
+
function qe(e, t, n, r, i, a) {
|
|
1139
1150
|
let o = G("a-input-number");
|
|
1140
1151
|
return V(), A(o, {
|
|
1141
1152
|
value: e.innerValue,
|
|
@@ -1153,17 +1164,17 @@ function Je(e, t, n, r, i, a) {
|
|
|
1153
1164
|
}, P({ _: 2 }, [
|
|
1154
1165
|
e.field?.prefix || e.field?.prefixIcon ? {
|
|
1155
1166
|
name: "prefix",
|
|
1156
|
-
fn: Y(() => [e.field?.prefix ? (V(), M("span",
|
|
1167
|
+
fn: Y(() => [e.field?.prefix ? (V(), M("span", We, q(e.field.prefix), 1)) : j("", !0), e.field?.prefixIcon ? (V(), A(K(e.field?.prefixIcon), { key: 1 })) : j("", !0)]),
|
|
1157
1168
|
key: "0"
|
|
1158
1169
|
} : void 0,
|
|
1159
1170
|
e.field?.addonBefore || e.field?.addonBeforeIcon ? {
|
|
1160
1171
|
name: "addonBefore",
|
|
1161
|
-
fn: Y(() => [e.field?.addonBefore ? (V(), M("span",
|
|
1172
|
+
fn: Y(() => [e.field?.addonBefore ? (V(), M("span", Ge, q(e.field.addonBefore), 1)) : j("", !0), e.field?.addonBeforeIcon ? (V(), A(K(e.field?.addonBeforeIcon), { key: 1 })) : j("", !0)]),
|
|
1162
1173
|
key: "1"
|
|
1163
1174
|
} : void 0,
|
|
1164
1175
|
e.field?.addonAfter || e.field?.addonAfterIcon ? {
|
|
1165
1176
|
name: "addonAfter",
|
|
1166
|
-
fn: Y(() => [e.field?.addonAfter ? (V(), M("span",
|
|
1177
|
+
fn: Y(() => [e.field?.addonAfter ? (V(), M("span", Ke, q(e.field.addonAfter), 1)) : j("", !0), e.field?.addonAfterIcon ? (V(), A(K(e.field?.addonAfterIcon), { key: 1 })) : j("", !0)]),
|
|
1167
1178
|
key: "2"
|
|
1168
1179
|
} : void 0
|
|
1169
1180
|
]), 1032, [
|
|
@@ -1180,9 +1191,9 @@ function Je(e, t, n, r, i, a) {
|
|
|
1180
1191
|
"onUpdate:value"
|
|
1181
1192
|
]);
|
|
1182
1193
|
}
|
|
1183
|
-
var
|
|
1194
|
+
var Je = /*#__PURE__*/ t(Ue, [["render", qe], ["__scopeId", "data-v-1c2384e8"]]), Ye = { key: 0 }, Xe = { key: 0 }, Ze = { key: 0 }, Qe = { key: 0 }, $e = /*#__PURE__*/ t(/* @__PURE__ */ R({
|
|
1184
1195
|
__name: "InputPro",
|
|
1185
|
-
props: /*@__PURE__*/
|
|
1196
|
+
props: /*@__PURE__*/ oe({ field: {
|
|
1186
1197
|
type: Object,
|
|
1187
1198
|
required: !0
|
|
1188
1199
|
} }, {
|
|
@@ -1191,7 +1202,7 @@ var Ye = /*#__PURE__*/ t(We, [["render", Je], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1191
1202
|
}),
|
|
1192
1203
|
emits: ["update:value"],
|
|
1193
1204
|
setup(e) {
|
|
1194
|
-
let t =
|
|
1205
|
+
let t = fe(e, "value"), n = e, r = U("");
|
|
1195
1206
|
J(() => t.value, (e) => {
|
|
1196
1207
|
let t = e;
|
|
1197
1208
|
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;
|
|
@@ -1218,26 +1229,26 @@ var Ye = /*#__PURE__*/ t(We, [["render", Je], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1218
1229
|
placeholder: e.field.placeholder ? e.field.placeholder : t.$t("请输入") + e.field.label,
|
|
1219
1230
|
type: e.field.inputType ? e.field.inputType : "text",
|
|
1220
1231
|
size: "small",
|
|
1221
|
-
onChange: n[1] ||= (e) =>
|
|
1232
|
+
onChange: n[1] ||= (e) => de(i)(e.target.value)
|
|
1222
1233
|
}, P({ _: 2 }, [
|
|
1223
1234
|
e.field?.prefix || e.field?.prefixIcon ? {
|
|
1224
1235
|
name: "prefix",
|
|
1225
|
-
fn: Y(() => [e.field?.prefix ? (V(), M("span",
|
|
1236
|
+
fn: Y(() => [e.field?.prefix ? (V(), M("span", Ye, q(e.field.prefix), 1)) : j("", !0), e.field?.prefixIcon ? (V(), A(K(e.field?.prefixIcon), { key: 1 })) : j("", !0)]),
|
|
1226
1237
|
key: "0"
|
|
1227
1238
|
} : void 0,
|
|
1228
1239
|
e.field?.suffix || e.field?.suffixIcon ? {
|
|
1229
1240
|
name: "suffix",
|
|
1230
|
-
fn: Y(() => [e.field?.suffix ? (V(), M("span",
|
|
1241
|
+
fn: Y(() => [e.field?.suffix ? (V(), M("span", Xe, q(e.field.suffix), 1)) : j("", !0), e.field?.suffixIcon ? (V(), A(K(e.field?.suffixIcon), { key: 1 })) : j("", !0)]),
|
|
1231
1242
|
key: "1"
|
|
1232
1243
|
} : void 0,
|
|
1233
1244
|
e.field?.addonBefore || e.field?.addonBeforeIcon ? {
|
|
1234
1245
|
name: "addonBefore",
|
|
1235
|
-
fn: Y(() => [e.field?.addonBefore ? (V(), M("span",
|
|
1246
|
+
fn: Y(() => [e.field?.addonBefore ? (V(), M("span", Ze, q(e.field.addonBefore), 1)) : j("", !0), e.field?.addonBeforeIcon ? (V(), A(K(e.field?.addonBeforeIcon), { key: 1 })) : j("", !0)]),
|
|
1236
1247
|
key: "2"
|
|
1237
1248
|
} : void 0,
|
|
1238
1249
|
e.field?.addonAfter || e.field?.addonAfterIcon ? {
|
|
1239
1250
|
name: "addonAfter",
|
|
1240
|
-
fn: Y(() => [e.field?.addonAfter ? (V(), M("span",
|
|
1251
|
+
fn: Y(() => [e.field?.addonAfter ? (V(), M("span", Qe, q(e.field.addonAfter), 1)) : j("", !0), e.field?.addonAfterIcon ? (V(), A(K(e.field?.addonAfterIcon), { key: 1 })) : j("", !0)]),
|
|
1241
1252
|
key: "3"
|
|
1242
1253
|
} : void 0
|
|
1243
1254
|
]), 1032, [
|
|
@@ -1252,9 +1263,9 @@ var Ye = /*#__PURE__*/ t(We, [["render", Je], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1252
1263
|
]);
|
|
1253
1264
|
};
|
|
1254
1265
|
}
|
|
1255
|
-
}), [["__scopeId", "data-v-a5e3757b"]]), $ = (e, t = "YYYY-MM-DD") => Z(e, t, !0).isValid(),
|
|
1266
|
+
}), [["__scopeId", "data-v-a5e3757b"]]), $ = (e, t = "YYYY-MM-DD") => Z(e, t, !0).isValid(), et = (e, t = "YYYY-MM-DD HH:mm:ss") => Z(e, t, !0).isValid(), tt = (e, t = "HH:mm:ss") => Z(e, t, !0).isValid(), nt = R({
|
|
1256
1267
|
name: "FieldRender2",
|
|
1257
|
-
methods: { isArray:
|
|
1268
|
+
methods: { isArray: X },
|
|
1258
1269
|
props: {
|
|
1259
1270
|
field: {
|
|
1260
1271
|
type: Object,
|
|
@@ -1361,10 +1372,10 @@ var Ye = /*#__PURE__*/ t(We, [["render", Je], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1361
1372
|
})) : n = a(e) && typeof e == "number" ? e.toString() : e : t == "date" ? a(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1362
1373
|
$(e) && typeof e == "string" ? n.push(Z(e, "YYYY-MM-DD")) : n.push(e);
|
|
1363
1374
|
})) : n = $(e) && typeof e == "string" ? e.toString() : e : t == "datetime" ? a(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1364
|
-
|
|
1365
|
-
})) : n =
|
|
1366
|
-
|
|
1367
|
-
})) : n =
|
|
1375
|
+
et(e) && typeof e == "string" ? n.push(Z(e, "YYYY-MM-DD HH:mm:ss")) : n.push(e);
|
|
1376
|
+
})) : n = et(e) && typeof e == "string" ? Z(e, "YYYY-MM-DD HH:mm:ss") : e : t == "time" ? a(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1377
|
+
tt(e) && typeof e == "string" ? n.push(Z(e, "HH:mm:ss")) : n.push(e);
|
|
1378
|
+
})) : n = tt(e) && typeof e == "string" ? Z(e, "HH:mm:ss") : e : t == "float" ? a(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1368
1379
|
a(e) && typeof e == "string" ? n.push(Number(e)) : n.push(e);
|
|
1369
1380
|
})) : n = a(e) && typeof e == "string" ? Number(e) : e : t == "bool" && (a(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1370
1381
|
a(e) && typeof e == "string" ? n.push(!!e) : n.push(e);
|
|
@@ -1373,7 +1384,7 @@ var Ye = /*#__PURE__*/ t(We, [["render", Je], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1373
1384
|
t("update:is_edit", c.value);
|
|
1374
1385
|
}, d = () => {
|
|
1375
1386
|
t("add");
|
|
1376
|
-
}, f =
|
|
1387
|
+
}, f = _e(() => {
|
|
1377
1388
|
let r = s.value;
|
|
1378
1389
|
e.field?.is_hide && (s.value = !1, s.value !== r && (s.value ? (n.value[e.field.name] = null, t("update_model", {
|
|
1379
1390
|
add_key: e.field.name,
|
|
@@ -1412,7 +1423,7 @@ var Ye = /*#__PURE__*/ t(We, [["render", Je], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1412
1423
|
n == r?.[e.field.valueKey ? e.field.valueKey : "value"] && t.push(r?.[e.field.labelKey ? e.field.labelKey : "label"]);
|
|
1413
1424
|
});
|
|
1414
1425
|
}), r = t.toString();
|
|
1415
|
-
} else if (e.field.type === "select") if (
|
|
1426
|
+
} else if (e.field.type === "select") if (X(n)) {
|
|
1416
1427
|
let t = [];
|
|
1417
1428
|
e.options.forEach((r) => {
|
|
1418
1429
|
n.forEach((n) => {
|
|
@@ -1456,7 +1467,7 @@ var Ye = /*#__PURE__*/ t(We, [["render", Je], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1456
1467
|
}
|
|
1457
1468
|
l.value && t("update:is_edit", c.value);
|
|
1458
1469
|
});
|
|
1459
|
-
let { t: h } =
|
|
1470
|
+
let { t: h } = be();
|
|
1460
1471
|
return {
|
|
1461
1472
|
t: h,
|
|
1462
1473
|
is_show_field: s,
|
|
@@ -1470,13 +1481,13 @@ var Ye = /*#__PURE__*/ t(We, [["render", Je], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1470
1481
|
};
|
|
1471
1482
|
},
|
|
1472
1483
|
components: {
|
|
1473
|
-
IconSelect:
|
|
1474
|
-
RichTextEditor:
|
|
1475
|
-
Upload:
|
|
1476
|
-
RemoteCascaderPro:
|
|
1477
|
-
RemoteTreeSelectPro:
|
|
1484
|
+
IconSelect: T,
|
|
1485
|
+
RichTextEditor: x,
|
|
1486
|
+
Upload: ee,
|
|
1487
|
+
RemoteCascaderPro: ne,
|
|
1488
|
+
RemoteTreeSelectPro: S,
|
|
1478
1489
|
RemoteSelectPro: d,
|
|
1479
|
-
RemoteComplete:
|
|
1490
|
+
RemoteComplete: E,
|
|
1480
1491
|
AttributeTable: m,
|
|
1481
1492
|
AttributeNomTable: p,
|
|
1482
1493
|
RemoteFilterSelect: f,
|
|
@@ -1488,31 +1499,31 @@ var Ye = /*#__PURE__*/ t(We, [["render", Je], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1488
1499
|
JsonStr: h,
|
|
1489
1500
|
JsonObj: g,
|
|
1490
1501
|
RemoteText: _,
|
|
1491
|
-
RemoteTablePro:
|
|
1492
|
-
FormTemplate:
|
|
1493
|
-
DynamicValueField:
|
|
1494
|
-
FormButton:
|
|
1495
|
-
PlusOutlined:
|
|
1496
|
-
MonthPicker:
|
|
1497
|
-
MonthRangePicker:
|
|
1498
|
-
CodeEditor:
|
|
1499
|
-
TinymceEditor:
|
|
1500
|
-
InputNumberPro:
|
|
1501
|
-
InputPro:
|
|
1502
|
+
RemoteTablePro: ie,
|
|
1503
|
+
FormTemplate: Le,
|
|
1504
|
+
DynamicValueField: ze,
|
|
1505
|
+
FormButton: He,
|
|
1506
|
+
PlusOutlined: ye,
|
|
1507
|
+
MonthPicker: te,
|
|
1508
|
+
MonthRangePicker: D,
|
|
1509
|
+
CodeEditor: w,
|
|
1510
|
+
TinymceEditor: re,
|
|
1511
|
+
InputNumberPro: Je,
|
|
1512
|
+
InputPro: $e
|
|
1502
1513
|
}
|
|
1503
|
-
}),
|
|
1514
|
+
}), rt = {
|
|
1504
1515
|
key: 0,
|
|
1505
1516
|
style: {
|
|
1506
1517
|
height: "62px",
|
|
1507
1518
|
width: "100%"
|
|
1508
1519
|
}
|
|
1509
|
-
},
|
|
1520
|
+
}, it = { key: 1 }, at = { key: 0 }, ot = { key: 1 }, st = {
|
|
1510
1521
|
key: 3,
|
|
1511
1522
|
style: {
|
|
1512
1523
|
height: "30px",
|
|
1513
1524
|
position: "relative"
|
|
1514
1525
|
}
|
|
1515
|
-
},
|
|
1526
|
+
}, ct = { style: {
|
|
1516
1527
|
position: "absolute",
|
|
1517
1528
|
bottom: "0",
|
|
1518
1529
|
padding: "0",
|
|
@@ -1520,31 +1531,31 @@ var Ye = /*#__PURE__*/ t(We, [["render", Je], ["__scopeId", "data-v-1c2384e8"]])
|
|
|
1520
1531
|
"font-weight": "bolder",
|
|
1521
1532
|
"font-size": "17px"
|
|
1522
1533
|
} };
|
|
1523
|
-
function
|
|
1524
|
-
let o = G("a-switch"), s = G("plus-outlined"), c = G("a-button"), l = G("a-tag"), u = G("a-rate"), d = G("InputPro"), f = G("a-input-number"), p = G("InputNumberPro"), m = G("a-input"), h = G("attribute-table"), g = G("attribute-nom-table"), _ = G("a-textarea"), v = G("json-str"), y = G("json-obj"), b = G("rich-text-editor"), x = G("a-input-password"), S = G("a-select-option"), C = G("a-select"), w = G("a-cascader"),
|
|
1534
|
+
function lt(e, t, n, r, i, a) {
|
|
1535
|
+
let o = G("a-switch"), s = G("plus-outlined"), c = G("a-button"), l = G("a-tag"), u = G("a-rate"), d = G("InputPro"), f = G("a-input-number"), p = G("InputNumberPro"), m = G("a-input"), h = G("attribute-table"), g = G("attribute-nom-table"), _ = G("a-textarea"), v = G("json-str"), y = G("json-obj"), b = G("rich-text-editor"), x = G("a-input-password"), S = G("a-select-option"), C = G("a-select"), w = G("a-cascader"), T = G("remote-cascader"), E = G("remote-cascader-pro"), D = G("month-picker"), ee = G("a-date-picker"), te = G("a-range-picker"), ne = G("month-range-picker"), re = G("a-time-picker"), ie = G("a-time-range-picker"), k = G("a-radio"), L = G("a-radio-group"), R = G("a-checkbox"), ae = G("a-checkbox-group"), oe = G("a-tree-select"), ce = G("remote-filter-select"), z = G("remote-select"), B = G("remote-select-pro"), H = G("remote-complete"), U = G("remote-tree-select"), de = G("remote-tree-select-pro"), fe = G("remote-modal"), pe = G("remote-table"), J = G("remote-table-pro"), me = G("FormTemplate"), he = G("DynamicValueField"), ge = G("remote-text"), _e = G("upload"), X = G("code-editor"), Z = G("TinymceEditor"), ve = G("icon-select"), ye = G("a-form-item"), be = G("a-divider"), xe = G("FormButton");
|
|
1525
1536
|
return V(), M(O, null, [
|
|
1526
|
-
e.field.type !== "divider" && e.field.type !== "button" && (e.field?.is_search_show !== !1 || e.field_render_show) ? (V(), A(ye,
|
|
1537
|
+
e.field.type !== "divider" && e.field.type !== "button" && (e.field?.is_search_show !== !1 || e.field_render_show) ? (V(), A(ye, se({
|
|
1527
1538
|
key: 0,
|
|
1528
1539
|
extra: e.field.extra,
|
|
1529
1540
|
name: e.field.name
|
|
1530
1541
|
}, e.validateInfos ? e.validateInfos[e.field.name] : null), P({
|
|
1531
1542
|
default: Y(() => [
|
|
1532
|
-
|
|
1533
|
-
e.field.type === "kong" ? (V(), M("div",
|
|
1534
|
-
e.field.type === "tag" ? (V(), M("div",
|
|
1543
|
+
ue(e.$slots, "default", {}, void 0, !0),
|
|
1544
|
+
e.field.type === "kong" ? (V(), M("div", rt)) : j("", !0),
|
|
1545
|
+
e.field.type === "tag" ? (V(), M("div", it, [e.field.content && e.field.content(e.field, e.model) || e.model ? (V(), A(l, {
|
|
1535
1546
|
key: 0,
|
|
1536
1547
|
color: e.field.color ? e.field.color(e.field, e.model) : "green",
|
|
1537
|
-
style:
|
|
1548
|
+
style: le(e.field.style),
|
|
1538
1549
|
onClick: t[1] ||= (t) => e.field.cb ? e.field.cb(e.field, e.model) : ""
|
|
1539
1550
|
}, {
|
|
1540
|
-
default: Y(() => [e.field.content ? (V(), M("span",
|
|
1551
|
+
default: Y(() => [e.field.content ? (V(), M("span", at, q(e.field.content(e.field, e.model)), 1)) : (V(), M("span", ot, q(e.model), 1))]),
|
|
1541
1552
|
_: 1
|
|
1542
1553
|
}, 8, ["color", "style"])) : j("", !0)])) : j("", !0),
|
|
1543
1554
|
e.field.type === "kong_title" ? (V(), M("div", {
|
|
1544
1555
|
key: 2,
|
|
1545
|
-
style:
|
|
1556
|
+
style: le("height: " + e.field.height + "px")
|
|
1546
1557
|
}, null, 4)) : j("", !0),
|
|
1547
|
-
e.field.type === "title" ? (V(), M("div",
|
|
1558
|
+
e.field.type === "title" ? (V(), M("div", st, [N("span", ct, q(e.field.name), 1)])) : j("", !0),
|
|
1548
1559
|
e.field.type === "rate" ? (V(), A(u, {
|
|
1549
1560
|
key: 4,
|
|
1550
1561
|
value: e.model,
|
|
@@ -1929,7 +1940,7 @@ function ut(e, t, n, r, i, a) {
|
|
|
1929
1940
|
"options",
|
|
1930
1941
|
"placeholder"
|
|
1931
1942
|
])) : j("", !0),
|
|
1932
|
-
e.field.type === "remotecascader" ? (V(), A(
|
|
1943
|
+
e.field.type === "remotecascader" ? (V(), A(T, {
|
|
1933
1944
|
key: 20,
|
|
1934
1945
|
value: e.model,
|
|
1935
1946
|
"onUpdate:value": t[21] ||= (t) => e.model = t,
|
|
@@ -1955,7 +1966,7 @@ function ut(e, t, n, r, i, a) {
|
|
|
1955
1966
|
"search_config",
|
|
1956
1967
|
"value-key"
|
|
1957
1968
|
])) : j("", !0),
|
|
1958
|
-
e.field.type === "remotecascaderpro" ? (V(), A(
|
|
1969
|
+
e.field.type === "remotecascaderpro" ? (V(), A(E, {
|
|
1959
1970
|
key: 21,
|
|
1960
1971
|
label: e.labelModel,
|
|
1961
1972
|
"onUpdate:label": t[23] ||= (t) => e.labelModel = t,
|
|
@@ -2003,7 +2014,7 @@ function ut(e, t, n, r, i, a) {
|
|
|
2003
2014
|
"is_form_design",
|
|
2004
2015
|
"placeholder"
|
|
2005
2016
|
])) : j("", !0),
|
|
2006
|
-
e.field.type === "monthpicker" ? (V(), A(
|
|
2017
|
+
e.field.type === "monthpicker" ? (V(), A(D, {
|
|
2007
2018
|
key: 22,
|
|
2008
2019
|
value: e.model,
|
|
2009
2020
|
"onUpdate:value": t[25] ||= (t) => e.model = t,
|
|
@@ -2032,7 +2043,7 @@ function ut(e, t, n, r, i, a) {
|
|
|
2032
2043
|
"end_offset_day",
|
|
2033
2044
|
"fix_day"
|
|
2034
2045
|
])) : j("", !0),
|
|
2035
|
-
e.field.type === "datepicker" ? (V(), A(
|
|
2046
|
+
e.field.type === "datepicker" ? (V(), A(ee, {
|
|
2036
2047
|
key: 23,
|
|
2037
2048
|
value: e.model,
|
|
2038
2049
|
"onUpdate:value": t[26] ||= (t) => e.model = t,
|
|
@@ -2132,7 +2143,7 @@ function ut(e, t, n, r, i, a) {
|
|
|
2132
2143
|
"placeholder",
|
|
2133
2144
|
"value-format"
|
|
2134
2145
|
])) : j("", !0),
|
|
2135
|
-
e.field.type === "timerangepicker" ? (V(), A(
|
|
2146
|
+
e.field.type === "timerangepicker" ? (V(), A(ie, {
|
|
2136
2147
|
key: 27,
|
|
2137
2148
|
value: e.model,
|
|
2138
2149
|
"onUpdate:value": t[30] ||= (t) => e.model = t,
|
|
@@ -2153,7 +2164,7 @@ function ut(e, t, n, r, i, a) {
|
|
|
2153
2164
|
"placeholder",
|
|
2154
2165
|
"value-format"
|
|
2155
2166
|
])) : j("", !0),
|
|
2156
|
-
e.field.type === "radio" ? (V(), A(
|
|
2167
|
+
e.field.type === "radio" ? (V(), A(L, {
|
|
2157
2168
|
key: 28,
|
|
2158
2169
|
value: e.model,
|
|
2159
2170
|
"onUpdate:value": t[31] ||= (t) => e.model = t,
|
|
@@ -2161,7 +2172,7 @@ function ut(e, t, n, r, i, a) {
|
|
|
2161
2172
|
disabled: e.field.disabled,
|
|
2162
2173
|
size: "small"
|
|
2163
2174
|
}, {
|
|
2164
|
-
default: Y(() => [(V(!0), M(O, null, W(e.options, (t) => (V(), A(
|
|
2175
|
+
default: Y(() => [(V(!0), M(O, null, W(e.options, (t) => (V(), A(k, {
|
|
2165
2176
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2166
2177
|
disabled: t.disabled,
|
|
2167
2178
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
@@ -2183,7 +2194,7 @@ function ut(e, t, n, r, i, a) {
|
|
|
2183
2194
|
disabled: e.field.disabled,
|
|
2184
2195
|
size: "small"
|
|
2185
2196
|
}, {
|
|
2186
|
-
default: Y(() => [(V(!0), M(O, null, W(e.options, (t) => (V(), A(
|
|
2197
|
+
default: Y(() => [(V(!0), M(O, null, W(e.options, (t) => (V(), A(R, {
|
|
2187
2198
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2188
2199
|
disabled: t.disabled,
|
|
2189
2200
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
@@ -2197,7 +2208,7 @@ function ut(e, t, n, r, i, a) {
|
|
|
2197
2208
|
"default-value",
|
|
2198
2209
|
"disabled"
|
|
2199
2210
|
])) : j("", !0),
|
|
2200
|
-
e.field.type === "treeselect" ? (V(), A(
|
|
2211
|
+
e.field.type === "treeselect" ? (V(), A(oe, {
|
|
2201
2212
|
key: 30,
|
|
2202
2213
|
value: e.model,
|
|
2203
2214
|
"onUpdate:value": t[33] ||= (t) => e.model = t,
|
|
@@ -2224,7 +2235,7 @@ function ut(e, t, n, r, i, a) {
|
|
|
2224
2235
|
"tree-label-prop",
|
|
2225
2236
|
"tree-node-filter-prop"
|
|
2226
2237
|
])) : j("", !0),
|
|
2227
|
-
e.field.type === "remotefilterselect" ? (V(), A(
|
|
2238
|
+
e.field.type === "remotefilterselect" ? (V(), A(ce, {
|
|
2228
2239
|
key: 31,
|
|
2229
2240
|
label: e.labelModel,
|
|
2230
2241
|
"onUpdate:label": t[34] ||= (t) => e.labelModel = t,
|
|
@@ -2252,7 +2263,7 @@ function ut(e, t, n, r, i, a) {
|
|
|
2252
2263
|
"search_config",
|
|
2253
2264
|
"value-key"
|
|
2254
2265
|
])) : j("", !0),
|
|
2255
|
-
e.field.type === "remoteselect" ? (V(), A(
|
|
2266
|
+
e.field.type === "remoteselect" ? (V(), A(z, {
|
|
2256
2267
|
key: 32,
|
|
2257
2268
|
label: e.labelModel,
|
|
2258
2269
|
"onUpdate:label": t[36] ||= (t) => e.labelModel = t,
|
|
@@ -2280,7 +2291,7 @@ function ut(e, t, n, r, i, a) {
|
|
|
2280
2291
|
"search_config",
|
|
2281
2292
|
"value-key"
|
|
2282
2293
|
])) : j("", !0),
|
|
2283
|
-
e.field.type === "remoteselectpro" ? (V(), A(
|
|
2294
|
+
e.field.type === "remoteselectpro" ? (V(), A(B, {
|
|
2284
2295
|
key: 33,
|
|
2285
2296
|
label: e.labelModel,
|
|
2286
2297
|
"onUpdate:label": t[38] ||= (t) => e.labelModel = t,
|
|
@@ -2303,6 +2314,7 @@ function ut(e, t, n, r, i, a) {
|
|
|
2303
2314
|
"inner-model": e.innerModel,
|
|
2304
2315
|
"global-inner-model": e.globalInnerModel,
|
|
2305
2316
|
context: e.context,
|
|
2317
|
+
"base-key-path": e.baseKeyPath,
|
|
2306
2318
|
placeholder: e.field.placeholder_i18n == null ? e.field.placeholder ? e.field.placeholder : e.$t("请选择") + e.field.label : e.t(e.field.placeholder_i18n)
|
|
2307
2319
|
}, null, 8, [
|
|
2308
2320
|
"label",
|
|
@@ -2324,9 +2336,10 @@ function ut(e, t, n, r, i, a) {
|
|
|
2324
2336
|
"inner-model",
|
|
2325
2337
|
"global-inner-model",
|
|
2326
2338
|
"context",
|
|
2339
|
+
"base-key-path",
|
|
2327
2340
|
"placeholder"
|
|
2328
2341
|
])) : j("", !0),
|
|
2329
|
-
e.field.type === "remotecomplete" ? (V(), A(
|
|
2342
|
+
e.field.type === "remotecomplete" ? (V(), A(H, {
|
|
2330
2343
|
key: 34,
|
|
2331
2344
|
value: e.model,
|
|
2332
2345
|
"onUpdate:value": t[40] ||= (t) => e.model = t,
|
|
@@ -2365,7 +2378,7 @@ function ut(e, t, n, r, i, a) {
|
|
|
2365
2378
|
"is_form_design",
|
|
2366
2379
|
"placeholder"
|
|
2367
2380
|
])) : j("", !0),
|
|
2368
|
-
e.field.type === "remotetreeselect" ? (V(), A(
|
|
2381
|
+
e.field.type === "remotetreeselect" ? (V(), A(U, {
|
|
2369
2382
|
key: 35,
|
|
2370
2383
|
label: e.labelModel,
|
|
2371
2384
|
"onUpdate:label": t[41] ||= (t) => e.labelModel = t,
|
|
@@ -2465,7 +2478,7 @@ function ut(e, t, n, r, i, a) {
|
|
|
2465
2478
|
"search_config",
|
|
2466
2479
|
"watch"
|
|
2467
2480
|
])) : j("", !0),
|
|
2468
|
-
e.field.type === "remotetable" ? (V(), A(
|
|
2481
|
+
e.field.type === "remotetable" ? (V(), A(pe, {
|
|
2469
2482
|
key: 38,
|
|
2470
2483
|
value: e.model,
|
|
2471
2484
|
"onUpdate:value": t[47] ||= (t) => e.model = t,
|
|
@@ -2494,7 +2507,7 @@ function ut(e, t, n, r, i, a) {
|
|
|
2494
2507
|
"base-key-path",
|
|
2495
2508
|
"worker-host-functions"
|
|
2496
2509
|
])) : j("", !0),
|
|
2497
|
-
e.field.type === "remotetablepro" && !e.self_is_edit ? (V(), A(
|
|
2510
|
+
e.field.type === "remotetablepro" && !e.self_is_edit ? (V(), A(J, {
|
|
2498
2511
|
key: 39,
|
|
2499
2512
|
value: e.model,
|
|
2500
2513
|
"onUpdate:value": t[48] ||= (t) => e.model = t,
|
|
@@ -2529,7 +2542,7 @@ function ut(e, t, n, r, i, a) {
|
|
|
2529
2542
|
"base-key-path",
|
|
2530
2543
|
"worker-host-functions"
|
|
2531
2544
|
])) : j("", !0),
|
|
2532
|
-
e.field.type === "formtemplate" ? (V(), A(
|
|
2545
|
+
e.field.type === "formtemplate" ? (V(), A(me, {
|
|
2533
2546
|
key: 40,
|
|
2534
2547
|
value: e.model,
|
|
2535
2548
|
"onUpdate:value": t[49] ||= (t) => e.model = t,
|
|
@@ -2574,7 +2587,7 @@ function ut(e, t, n, r, i, a) {
|
|
|
2574
2587
|
"worker-host-functions",
|
|
2575
2588
|
"contextOptions"
|
|
2576
2589
|
])) : j("", !0),
|
|
2577
|
-
e.field.type === "dynamicvaluefield" ? (V(), A(
|
|
2590
|
+
e.field.type === "dynamicvaluefield" ? (V(), A(he, {
|
|
2578
2591
|
key: 41,
|
|
2579
2592
|
value: e.model,
|
|
2580
2593
|
"onUpdate:value": t[50] ||= (t) => e.model = t,
|
|
@@ -2613,7 +2626,7 @@ function ut(e, t, n, r, i, a) {
|
|
|
2613
2626
|
"base-key-path",
|
|
2614
2627
|
"worker-host-functions"
|
|
2615
2628
|
])) : j("", !0),
|
|
2616
|
-
e.field.type === "remotetext" ? (V(), A(
|
|
2629
|
+
e.field.type === "remotetext" ? (V(), A(ge, {
|
|
2617
2630
|
key: 42,
|
|
2618
2631
|
value: e.model,
|
|
2619
2632
|
"onUpdate:value": t[51] ||= (t) => e.model = t,
|
|
@@ -2636,7 +2649,7 @@ function ut(e, t, n, r, i, a) {
|
|
|
2636
2649
|
"search_config",
|
|
2637
2650
|
"watch"
|
|
2638
2651
|
])) : j("", !0),
|
|
2639
|
-
e.field.type === "upload" ? (V(), A(
|
|
2652
|
+
e.field.type === "upload" ? (V(), A(_e, {
|
|
2640
2653
|
key: 43,
|
|
2641
2654
|
value: e.model,
|
|
2642
2655
|
"onUpdate:value": t[52] ||= (t) => e.model = t,
|
|
@@ -2653,7 +2666,7 @@ function ut(e, t, n, r, i, a) {
|
|
|
2653
2666
|
"maxCount",
|
|
2654
2667
|
"acceptList"
|
|
2655
2668
|
])) : j("", !0),
|
|
2656
|
-
e.field.type === "codeeditor" ? (V(), A(
|
|
2669
|
+
e.field.type === "codeeditor" ? (V(), A(X, {
|
|
2657
2670
|
key: 44,
|
|
2658
2671
|
editorValue: e.model,
|
|
2659
2672
|
"onUpdate:editorValue": t[53] ||= (t) => e.model = t,
|
|
@@ -2666,7 +2679,7 @@ function ut(e, t, n, r, i, a) {
|
|
|
2666
2679
|
"mode",
|
|
2667
2680
|
"lineWrapping"
|
|
2668
2681
|
])) : j("", !0),
|
|
2669
|
-
e.field.type === "tinymceeditor" ? (V(), A(
|
|
2682
|
+
e.field.type === "tinymceeditor" ? (V(), A(Z, {
|
|
2670
2683
|
key: 45,
|
|
2671
2684
|
modelValue: e.model,
|
|
2672
2685
|
"onUpdate:modelValue": t[54] ||= (t) => e.model = t,
|
|
@@ -2694,7 +2707,7 @@ function ut(e, t, n, r, i, a) {
|
|
|
2694
2707
|
"count",
|
|
2695
2708
|
"allow-half"
|
|
2696
2709
|
])) : j("", !0),
|
|
2697
|
-
e.field.type === "radio-color" ? (V(), A(
|
|
2710
|
+
e.field.type === "radio-color" ? (V(), A(L, {
|
|
2698
2711
|
key: 48,
|
|
2699
2712
|
value: e.model,
|
|
2700
2713
|
"onUpdate:value": t[57] ||= (t) => e.model = t,
|
|
@@ -2702,12 +2715,12 @@ function ut(e, t, n, r, i, a) {
|
|
|
2702
2715
|
disabled: e.field.disabled,
|
|
2703
2716
|
size: "small"
|
|
2704
2717
|
}, {
|
|
2705
|
-
default: Y(() => [(V(!0), M(O, null, W(e.options, (t) => (V(), A(
|
|
2718
|
+
default: Y(() => [(V(!0), M(O, null, W(e.options, (t) => (V(), A(k, {
|
|
2706
2719
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2707
2720
|
disabled: t.disabled,
|
|
2708
2721
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2709
2722
|
}, {
|
|
2710
|
-
default: Y(() => [N("div", { style:
|
|
2723
|
+
default: Y(() => [N("div", { style: le({
|
|
2711
2724
|
width: "20px",
|
|
2712
2725
|
height: "20px",
|
|
2713
2726
|
backgroundColor: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
@@ -2806,6 +2819,6 @@ function ut(e, t, n, r, i, a) {
|
|
|
2806
2819
|
])) : j("", !0)
|
|
2807
2820
|
], 64);
|
|
2808
2821
|
}
|
|
2809
|
-
var
|
|
2822
|
+
var ut = /*#__PURE__*/ t(nt, [["render", lt], ["__scopeId", "data-v-4d903c12"]]);
|
|
2810
2823
|
//#endregion
|
|
2811
|
-
export {
|
|
2824
|
+
export { ut as t };
|