liyu-pc-base 1.0.443 → 1.0.447
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-DtPg5aL3.js +2 -0
- package/dist/{FieldRender-i8-tc3o1.js → FieldRender-h_7sWuWm.js} +2 -2
- package/dist/{FieldRender-i8-tc3o1.js.map → FieldRender-h_7sWuWm.js.map} +1 -1
- package/dist/{FieldRender2-DYV82S0i.js → FieldRender2-C2KuAjeI.js} +249 -226
- package/dist/FieldRender2-C2KuAjeI.js.map +1 -0
- package/dist/FormRender3-BrLDc6PN.js +2 -0
- package/dist/{FormRender3-dMiPooGH.js → FormRender3-DrZwlTI8.js} +3 -3
- package/dist/{FormRender3-dMiPooGH.js.map → FormRender3-DrZwlTI8.js.map} +1 -1
- package/dist/RemoteModal-B3Vw7EPw.js +2 -0
- package/dist/{RemoteModal-BWZCRQbO.js → RemoteModal-jn_BF1Qc.js} +1 -1
- package/dist/{RemoteModal-BWZCRQbO.js.map → RemoteModal-jn_BF1Qc.js.map} +1 -1
- package/dist/{RemoteSelectPro-D_ACIIV3.js → RemoteSelectPro-DXlx3__y.js} +27 -29
- package/dist/RemoteSelectPro-DXlx3__y.js.map +1 -0
- package/dist/{SearchRender-kAqagzYv.js → SearchRender-BK7TelFL.js} +1 -1
- package/dist/{SearchRender-kAqagzYv.js.map → SearchRender-BK7TelFL.js.map} +1 -1
- package/dist/SearchRender-Cx0m126U.js +2 -0
- package/dist/{TinymceEditor-7iXcNpky.js → TinymceEditor-Czp3rC1v.js} +774 -751
- package/dist/TinymceEditor-Czp3rC1v.js.map +1 -0
- package/dist/components/index.js +9 -9
- package/dist/{function-CaGMqBdj.js → function-CCxDERgN.js} +14 -22
- package/dist/{function-CaGMqBdj.js.map → function-CCxDERgN.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/liyu-pc-base.css +1 -1
- package/dist/{tableModal-6z_B5f2_.js → tableModal-CL_f8M2x.js} +1 -1
- package/dist/{tableModal-6z_B5f2_.js.map → tableModal-CL_f8M2x.js.map} +1 -1
- package/dist/{tablePro-Bw3_40RA.js → tablePro-B5bMmltZ.js} +6 -12
- package/dist/{tablePro-Bw3_40RA.js.map → tablePro-B5bMmltZ.js.map} +1 -1
- package/dist/tablePro-BiqwTUIo.js +2 -0
- package/dist/utils/function.js +1 -1
- package/dist/utils/hooks/useFetchData.js +1 -1
- package/package.json +1 -1
- package/dist/FieldRender-CIyxcSkq.js +0 -2
- package/dist/FieldRender2-DYV82S0i.js.map +0 -1
- package/dist/FormRender3-P1-PJHkZ.js +0 -2
- package/dist/RemoteModal-BYhpbVT4.js +0 -2
- package/dist/RemoteSelectPro-D_ACIIV3.js.map +0 -1
- package/dist/SearchRender-D6C4fCLy.js +0 -2
- package/dist/TinymceEditor-7iXcNpky.js.map +0 -1
- package/dist/tablePro-WeSXlhUP.js +0 -2
|
@@ -2,9 +2,9 @@ import { t as e } from "./RemoteSelect-DvptpIwS.js";
|
|
|
2
2
|
import { t } from "./_plugin-vue_export-helper-D3hKq4w_.js";
|
|
3
3
|
import { t as n } from "./RemoteCascader-DyHXstUo.js";
|
|
4
4
|
import { t as r } from "./lodash-T_IuH2iQ.js";
|
|
5
|
-
import { M as i, N as a, s as o } from "./function-
|
|
6
|
-
import { r as s, t as c } from "./RemoteModal-
|
|
7
|
-
import { n as l, r as u, t as d } from "./RemoteSelectPro-
|
|
5
|
+
import { M as i, N as a, s as o } from "./function-CCxDERgN.js";
|
|
6
|
+
import { r as s, t as c } from "./RemoteModal-jn_BF1Qc.js";
|
|
7
|
+
import { n as l, r as u, t as d } from "./RemoteSelectPro-DXlx3__y.js";
|
|
8
8
|
import { t as f } from "./RemoteFilterSelect-CapzhUOg.js";
|
|
9
9
|
import { t as p } from "./AttributeNomTable-BV3zeA9I.js";
|
|
10
10
|
import { t as m } from "./AttributeTable-Dztznjrx.js";
|
|
@@ -13,12 +13,12 @@ import { t as g } from "./JsonObj-Bq62nHPb.js";
|
|
|
13
13
|
import { t as _ } from "./RemoteText-BCKZJK52.js";
|
|
14
14
|
import { t as v } from "./modal-tools-9zfwQHxQ.js";
|
|
15
15
|
import { exportJsonToExcel as y } from "./utils/excel.js";
|
|
16
|
-
import { a as b, c as x, d as S, f as C, i as ee, l as te, n as ne, o as re, r as ie, s as ae, t as oe, u as se } from "./TinymceEditor-
|
|
17
|
-
import { Fragment as w, computed as T, createBlock as E, createCommentVNode as D, createElementBlock as O, createElementVNode as k, createSlots as A, createTextVNode as j, createVNode as M, defineAsyncComponent as N, defineComponent as P, h as F, mergeModels as ce, mergeProps as le, normalizeClass as ue, normalizeStyle as
|
|
18
|
-
import { Modal as
|
|
19
|
-
import { debounce as
|
|
20
|
-
import
|
|
21
|
-
import { ExclamationCircleOutlined as
|
|
16
|
+
import { a as b, c as x, d as S, f as C, i as ee, l as te, n as ne, o as re, r as ie, s as ae, t as oe, u as se } from "./TinymceEditor-Czp3rC1v.js";
|
|
17
|
+
import { Fragment as w, computed as T, createBlock as E, createCommentVNode as D, createElementBlock as O, createElementVNode as k, createSlots as A, createTextVNode as j, createVNode as M, defineAsyncComponent as N, defineComponent as P, h as F, mergeModels as ce, mergeProps as le, normalizeClass as ue, normalizeStyle as de, onMounted as I, onUnmounted as L, openBlock as R, reactive as z, ref as B, renderList as V, renderSlot as fe, resolveComponent as H, resolveDynamicComponent as U, toDisplayString as W, unref as pe, useModel as me, vShow as he, watch as G, withCtx as K, withDirectives as ge } from "vue";
|
|
18
|
+
import { Modal as q, message as J } from "ant-design-vue";
|
|
19
|
+
import { debounce as _e, isArray as Y } from "lodash-es";
|
|
20
|
+
import X from "moment";
|
|
21
|
+
import { ExclamationCircleOutlined as Z, PlusOutlined as ve } from "@ant-design/icons-vue";
|
|
22
22
|
import { useI18n as ye } from "vue-i18n";
|
|
23
23
|
import be from "mitt";
|
|
24
24
|
//#region src/components/FormRender/FormTemplate/FormItem.vue?vue&type=script&lang.ts
|
|
@@ -80,10 +80,10 @@ var xe = P({
|
|
|
80
80
|
},
|
|
81
81
|
emits: ["update:value", "remove"],
|
|
82
82
|
setup(e, { emit: t }) {
|
|
83
|
-
let n =
|
|
83
|
+
let n = z({ ...e.field.form.rules }), r = B({}), i = N(() => import("./FormRender3-BrLDc6PN.js")), a, o = () => {
|
|
84
84
|
let e = new Uint8Array(16);
|
|
85
85
|
return window.crypto.getRandomValues(e), Array.from(e, (e) => e.toString(16).padStart(2, "0")).join("");
|
|
86
|
-
}, c =
|
|
86
|
+
}, c = B([]), l = o(), u = ([t, i]) => {
|
|
87
87
|
let o = {};
|
|
88
88
|
Object.keys(n).forEach((e) => {
|
|
89
89
|
e in t && !i[e] && (o[e] = n[e]);
|
|
@@ -91,12 +91,12 @@ var xe = P({
|
|
|
91
91
|
let c = s(t, o);
|
|
92
92
|
a = c.validate, r.value = c.validateInfos, e.nestValidate && (e.nestValidate[l] = a);
|
|
93
93
|
};
|
|
94
|
-
return
|
|
94
|
+
return G(() => e.value, (e) => {
|
|
95
95
|
u([e, c.value]);
|
|
96
96
|
}, {
|
|
97
97
|
deep: !0,
|
|
98
98
|
immediate: !0
|
|
99
|
-
}),
|
|
99
|
+
}), I(() => {}), L(() => {
|
|
100
100
|
e.nestValidate && delete e.nestValidate[l];
|
|
101
101
|
}), {
|
|
102
102
|
FormRender3Async: i,
|
|
@@ -117,8 +117,8 @@ var xe = P({
|
|
|
117
117
|
class: "form-action"
|
|
118
118
|
};
|
|
119
119
|
function Te(e, t, n, r, i, a) {
|
|
120
|
-
let o =
|
|
121
|
-
return
|
|
120
|
+
let o = H("DeleteOutlined"), s = H("a-button");
|
|
121
|
+
return R(), O("div", Se, [k("div", Ce, [(R(), E(U(e.FormRender3Async), {
|
|
122
122
|
form: e.field.form,
|
|
123
123
|
model: e.value,
|
|
124
124
|
"onUpdate:model": t[0] ||= (t) => e.value = t,
|
|
@@ -149,14 +149,14 @@ function Te(e, t, n, r, i, a) {
|
|
|
149
149
|
"modalType",
|
|
150
150
|
"base-key-path",
|
|
151
151
|
"worker-host-functions"
|
|
152
|
-
]))]), e.field.max_count === e.min_count ? D("", !0) : (
|
|
152
|
+
]))]), e.field.max_count === e.min_count ? D("", !0) : (R(), O("div", we, [M(s, {
|
|
153
153
|
onClick: e.removeFormItem,
|
|
154
154
|
size: "small",
|
|
155
155
|
type: "link",
|
|
156
156
|
danger: "",
|
|
157
157
|
disabled: e.listLength <= e.min_count
|
|
158
158
|
}, {
|
|
159
|
-
icon:
|
|
159
|
+
icon: K(() => [M(o)]),
|
|
160
160
|
_: 1
|
|
161
161
|
}, 8, ["onClick", "disabled"])]))]);
|
|
162
162
|
}
|
|
@@ -208,22 +208,22 @@ var Ee = /* @__PURE__ */ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]
|
|
|
208
208
|
},
|
|
209
209
|
emits: ["update_model", "update_name2"],
|
|
210
210
|
setup(e, { emit: t }) {
|
|
211
|
-
let n = e, r = t, i =
|
|
211
|
+
let n = e, r = t, i = B(!0), a = (e) => {
|
|
212
212
|
r("update_model", e);
|
|
213
213
|
}, o = (e) => {
|
|
214
214
|
r("update_name2", e);
|
|
215
215
|
}, s = T(() => i.value && !n.field.disabled && n.field.type !== "dynamicvaluefield");
|
|
216
216
|
return (t, n) => {
|
|
217
|
-
let r =
|
|
218
|
-
return
|
|
217
|
+
let r = H("a-form");
|
|
218
|
+
return R(), E(r, {
|
|
219
219
|
model: e.model,
|
|
220
220
|
layout: "inline",
|
|
221
221
|
class: "table-cell-form"
|
|
222
222
|
}, {
|
|
223
|
-
default:
|
|
223
|
+
default: K(() => [ge(k("div", { class: ue(["field-cell-item", {
|
|
224
224
|
editable: s.value,
|
|
225
225
|
"item-required": e.has_reqrired
|
|
226
|
-
}]) }, [(
|
|
226
|
+
}]) }, [(R(), E(ft, {
|
|
227
227
|
is_show_label: !1,
|
|
228
228
|
value: e.model[e.field.name],
|
|
229
229
|
"onUpdate:value": n[0] ||= (t) => e.model[e.field.name] = t,
|
|
@@ -260,7 +260,7 @@ var Ee = /* @__PURE__ */ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]
|
|
|
260
260
|
"base-key-path",
|
|
261
261
|
"worker-host-functions",
|
|
262
262
|
"is_form_design"
|
|
263
|
-
]))], 2), [[
|
|
263
|
+
]))], 2), [[he, i.value]])]),
|
|
264
264
|
_: 1
|
|
265
265
|
}, 8, ["model"]);
|
|
266
266
|
};
|
|
@@ -301,10 +301,10 @@ var Ee = /* @__PURE__ */ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]
|
|
|
301
301
|
return parseFloat((e + t).toFixed(n));
|
|
302
302
|
}
|
|
303
303
|
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
|
-
return (t, r) => (
|
|
305
|
-
e.summaryParams?.column?.field?.addonBefore ? (
|
|
306
|
-
j(" " +
|
|
307
|
-
e.summaryParams?.column?.field?.addonAfter ? (
|
|
304
|
+
return (t, r) => (R(), O(w, null, [
|
|
305
|
+
e.summaryParams?.column?.field?.addonBefore ? (R(), O("span", Oe, W(e.summaryParams.column.field.addonBefore), 1)) : D("", !0),
|
|
306
|
+
j(" " + W(n.value) + " ", 1),
|
|
307
|
+
e.summaryParams?.column?.field?.addonAfter ? (R(), O("span", ke, W(e.summaryParams.column.field.addonAfter), 1)) : D("", !0)
|
|
308
308
|
], 64));
|
|
309
309
|
}
|
|
310
310
|
}), je = {
|
|
@@ -360,16 +360,16 @@ var Ee = /* @__PURE__ */ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]
|
|
|
360
360
|
},
|
|
361
361
|
emits: ["remove"],
|
|
362
362
|
setup(e, { emit: t }) {
|
|
363
|
-
let n =
|
|
363
|
+
let n = B({
|
|
364
364
|
showQuickJumper: !0,
|
|
365
365
|
showSizeChanger: !1,
|
|
366
366
|
showTotal: (e) => `共 ${e} 条记录`,
|
|
367
367
|
pageSize: 5,
|
|
368
368
|
current: 1
|
|
369
|
-
}), r = e, i = t, a =
|
|
369
|
+
}), r = e, i = t, a = z({ ...r.field.form?.rules || {} }), c = B([]), l = B([]), u = B([]), d = (() => {
|
|
370
370
|
let e = new Uint8Array(16);
|
|
371
371
|
return window.crypto.getRandomValues(e), Array.from(e, (e) => e.toString(16).padStart(2, "0")).join("");
|
|
372
|
-
})(), f =
|
|
372
|
+
})(), f = B([]), p = () => {
|
|
373
373
|
let e = [], t = [];
|
|
374
374
|
(r.value || []).forEach((n, r) => {
|
|
375
375
|
u.value[r] || (u.value[r] = {});
|
|
@@ -386,20 +386,20 @@ var Ee = /* @__PURE__ */ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]
|
|
|
386
386
|
}, m = (e, t) => {
|
|
387
387
|
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());
|
|
388
388
|
};
|
|
389
|
-
|
|
389
|
+
G(() => r.value, () => {
|
|
390
390
|
p();
|
|
391
391
|
}, {
|
|
392
392
|
deep: !0,
|
|
393
393
|
immediate: !0
|
|
394
|
-
}),
|
|
394
|
+
}), G(() => r.field, () => {
|
|
395
395
|
v();
|
|
396
|
-
}, { deep: !0 }),
|
|
396
|
+
}, { deep: !0 }), G(() => r.formModel, () => {
|
|
397
397
|
v();
|
|
398
|
-
}, { deep: !0 }),
|
|
398
|
+
}, { deep: !0 }), G(() => r.context, () => {
|
|
399
399
|
v();
|
|
400
|
-
}, { deep: !0 }),
|
|
400
|
+
}, { deep: !0 }), I(() => {
|
|
401
401
|
v();
|
|
402
|
-
}),
|
|
402
|
+
}), L(() => {
|
|
403
403
|
r.nestValidate && delete r.nestValidate[d];
|
|
404
404
|
});
|
|
405
405
|
let h = T(() => {
|
|
@@ -486,12 +486,12 @@ var Ee = /* @__PURE__ */ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]
|
|
|
486
486
|
return e;
|
|
487
487
|
});
|
|
488
488
|
return (t, r) => {
|
|
489
|
-
let i =
|
|
490
|
-
return
|
|
489
|
+
let i = H("DeleteOutlined"), a = H("a-button"), o = H("s-table-summary-cell"), s = H("s-table-summary-row"), l = H("s-table");
|
|
490
|
+
return R(), E(S, {
|
|
491
491
|
"dynamic-title": e.field.dynamicTitle,
|
|
492
492
|
"onUpdate:dynamicTitle": r[1] ||= (t) => e.field.dynamicTitle = t
|
|
493
493
|
}, {
|
|
494
|
-
default:
|
|
494
|
+
default: K(() => [(R(), E(l, {
|
|
495
495
|
dataSource: g.value,
|
|
496
496
|
columns: f.value,
|
|
497
497
|
autoRowHeight: !0,
|
|
@@ -506,16 +506,16 @@ var Ee = /* @__PURE__ */ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]
|
|
|
506
506
|
"onUpdate:pagination": r[0] ||= (e) => n.value = e,
|
|
507
507
|
rangeSelection: !1
|
|
508
508
|
}, A({
|
|
509
|
-
bodyCell:
|
|
509
|
+
bodyCell: K(({ column: t, record: n }) => [t.key === "action" ? (R(), O("div", je, [M(a, {
|
|
510
510
|
onClick: (e) => y(n._key),
|
|
511
511
|
size: "small",
|
|
512
512
|
type: "link",
|
|
513
513
|
danger: "",
|
|
514
514
|
disabled: e.value.length <= e.min_count
|
|
515
515
|
}, {
|
|
516
|
-
icon:
|
|
516
|
+
icon: K(() => [M(i)]),
|
|
517
517
|
_: 2
|
|
518
|
-
}, 1032, ["onClick", "disabled"])])) : t.key === "index" ? (
|
|
518
|
+
}, 1032, ["onClick", "disabled"])])) : t.key === "index" ? (R(), O("div", Me, W(n._key + 1), 1)) : t.field ? (R(), E(De, {
|
|
519
519
|
key: `${n._key}_${t.dataIndex}`,
|
|
520
520
|
field: t.field,
|
|
521
521
|
model: e.value[n._key],
|
|
@@ -552,15 +552,15 @@ var Ee = /* @__PURE__ */ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]
|
|
|
552
552
|
_: 2
|
|
553
553
|
}, [x.value.length > 0 ? {
|
|
554
554
|
name: "summary",
|
|
555
|
-
fn:
|
|
556
|
-
default:
|
|
557
|
-
default:
|
|
555
|
+
fn: K(() => [M(s, null, {
|
|
556
|
+
default: K(() => [M(o, { index: 0 }, {
|
|
557
|
+
default: K(() => r[2] ||= [j("合计")]),
|
|
558
558
|
_: 1
|
|
559
|
-
}), (
|
|
559
|
+
}), (R(!0), O(w, null, V(x.value, (e) => (R(), E(o, {
|
|
560
560
|
key: e.index,
|
|
561
561
|
index: e.index
|
|
562
562
|
}, {
|
|
563
|
-
default:
|
|
563
|
+
default: K((e) => [M(Ae, {
|
|
564
564
|
"summary-params": e,
|
|
565
565
|
tableDataSource: g.value
|
|
566
566
|
}, null, 8, ["summary-params", "tableDataSource"])]),
|
|
@@ -646,18 +646,29 @@ var Ee = /* @__PURE__ */ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]
|
|
|
646
646
|
},
|
|
647
647
|
emits: ["update:value"],
|
|
648
648
|
setup(e, { emit: t }) {
|
|
649
|
-
let n =
|
|
649
|
+
let n = B(0), r = be(), i = [{
|
|
650
650
|
label: "添加(add)",
|
|
651
651
|
value: "add"
|
|
652
652
|
}, {
|
|
653
653
|
label: "整体更新(update)",
|
|
654
654
|
value: "update"
|
|
655
|
-
}], a = N(() => import("./ImportExcelModal-RqLC4zwa.js")), s = T(() => !!(e.field.sys_btn_list == null || e.field.sys_btn_list.includes("download"))), c = T(() => !!(e.field.sys_btn_list == null || e.field.sys_btn_list.includes("import"))), l =
|
|
655
|
+
}], a = N(() => import("./ImportExcelModal-RqLC4zwa.js")), s = T(() => !!(e.field.sys_btn_list == null || e.field.sys_btn_list.includes("download"))), c = T(() => !!(e.field.sys_btn_list == null || e.field.sys_btn_list.includes("import"))), l = () => {
|
|
656
|
+
q.confirm({
|
|
657
|
+
title: "确认清空吗?",
|
|
658
|
+
icon: M(Z),
|
|
659
|
+
content: "清空后将无法恢复",
|
|
660
|
+
okText: "确认",
|
|
661
|
+
cancelText: "取消",
|
|
662
|
+
onOk: () => {
|
|
663
|
+
t("update:value", []);
|
|
664
|
+
}
|
|
665
|
+
});
|
|
666
|
+
}, u = T(() => !!(e.field.sys_btn_list == null || e.field.sys_btn_list.includes("clear"))), d = T(() => !!(e.field.sys_btn_list == null || e.field.sys_btn_list.includes("add"))), f = {}, p = () => {
|
|
656
667
|
let n = [];
|
|
657
668
|
(e.field.form?.dynamicFieldList || []).forEach((t) => {
|
|
658
669
|
t.children instanceof Array && t.children.forEach((t) => {
|
|
659
670
|
let r = { ...t };
|
|
660
|
-
t?.name2 && (
|
|
671
|
+
t?.name2 && (f[t.name] = t?.name2), [
|
|
661
672
|
"select",
|
|
662
673
|
"radio",
|
|
663
674
|
"checkbox",
|
|
@@ -666,7 +677,7 @@ var Ee = /* @__PURE__ */ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]
|
|
|
666
677
|
].includes(t.type) && (r.options = e.field.form?.options?.[t.name] || t.options), n.push(r);
|
|
667
678
|
});
|
|
668
679
|
});
|
|
669
|
-
let r =
|
|
680
|
+
let r = z({
|
|
670
681
|
open: !0,
|
|
671
682
|
loading: !1,
|
|
672
683
|
component: a,
|
|
@@ -677,12 +688,12 @@ var Ee = /* @__PURE__ */ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]
|
|
|
677
688
|
n.forEach((t) => {
|
|
678
689
|
let n = (0, Q.cloneDeep)(e.field.form.model || {});
|
|
679
690
|
Object.keys(t).forEach((e) => {
|
|
680
|
-
t[e].error && i.push(F("li", t[e].error + "(" + t[e].excel_position + ")")), n[e] = t[e].value,
|
|
691
|
+
t[e].error && i.push(F("li", t[e].error + "(" + t[e].excel_position + ")")), n[e] = t[e].value, f[e] && (n[f[e]] = t[e].raw_value);
|
|
681
692
|
}), a.push(n);
|
|
682
|
-
}), i.length > 0 ?
|
|
693
|
+
}), i.length > 0 ? q.warning({
|
|
683
694
|
title: "导入Excel报错, 请改正后再尝试导入",
|
|
684
695
|
content: F("ol", i),
|
|
685
|
-
icon: M(
|
|
696
|
+
icon: M(Z)
|
|
686
697
|
}) : t("update:value", [...e.value || [], ...a]), r.open = !1;
|
|
687
698
|
},
|
|
688
699
|
onCancel: () => {
|
|
@@ -690,15 +701,15 @@ var Ee = /* @__PURE__ */ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]
|
|
|
690
701
|
}
|
|
691
702
|
});
|
|
692
703
|
v(r);
|
|
693
|
-
},
|
|
694
|
-
|
|
704
|
+
}, m = B(!1), h = () => {
|
|
705
|
+
m.value = !0;
|
|
695
706
|
let t = [], n = [];
|
|
696
707
|
(e.field.form?.dynamicFieldList || []).forEach((r) => {
|
|
697
708
|
r.children instanceof Array && r.children.forEach((r) => {
|
|
698
709
|
r.is_hide || (t.push(r.label), e.value && e.value.length > 0 ? n.push(e.value[0][r.name] ? e.value[0][r.name].toString() : "") : n.push(""));
|
|
699
710
|
});
|
|
700
711
|
});
|
|
701
|
-
let r =
|
|
712
|
+
let r = B(100);
|
|
702
713
|
y({
|
|
703
714
|
data: [n],
|
|
704
715
|
autoWidth: !0,
|
|
@@ -709,16 +720,16 @@ var Ee = /* @__PURE__ */ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]
|
|
|
709
720
|
multiHeader: [],
|
|
710
721
|
percent: r
|
|
711
722
|
}), setTimeout(() => {
|
|
712
|
-
|
|
723
|
+
m.value = !1;
|
|
713
724
|
}, 1500);
|
|
714
|
-
},
|
|
725
|
+
}, g = T(() => e.field.min_count || e.field.min_count === 0 ? e.field.min_count : 1), _ = T(() => {
|
|
715
726
|
if (e.innerModel) {
|
|
716
727
|
e.innerModel[e.field.name] || (e.innerModel[e.field.name] = []);
|
|
717
728
|
for (let t = 0; t < e.value.length; t++) e.innerModel[e.field.name][t] || (e.innerModel[e.field.name][t] = {});
|
|
718
729
|
return e.innerModel[e.field.name];
|
|
719
730
|
}
|
|
720
731
|
return [];
|
|
721
|
-
}),
|
|
732
|
+
}), b = async (n) => {
|
|
722
733
|
if (n.code) {
|
|
723
734
|
let r;
|
|
724
735
|
try {
|
|
@@ -728,7 +739,7 @@ var Ee = /* @__PURE__ */ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]
|
|
|
728
739
|
keyPath: [...e.baseKeyPath, e.field.name]
|
|
729
740
|
}, e.workerHostFunctions || {});
|
|
730
741
|
} catch (e) {
|
|
731
|
-
|
|
742
|
+
J.error(e.message);
|
|
732
743
|
return;
|
|
733
744
|
}
|
|
734
745
|
if (n.action == "add") {
|
|
@@ -747,32 +758,32 @@ var Ee = /* @__PURE__ */ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]
|
|
|
747
758
|
t("update:value", n);
|
|
748
759
|
}
|
|
749
760
|
}
|
|
750
|
-
},
|
|
761
|
+
}, x = () => {
|
|
751
762
|
let n = e.value || [];
|
|
752
763
|
n.push((0, Q.cloneDeep)(e.field.form.model || {})), t("update:value", n);
|
|
753
|
-
},
|
|
764
|
+
}, S = (n) => {
|
|
754
765
|
let r = e.value || [];
|
|
755
766
|
r.splice(n, 1), t("update:value", r);
|
|
756
|
-
},
|
|
767
|
+
}, C = (0, Q.debounce)(() => {
|
|
757
768
|
n.value = window.innerHeight - 165;
|
|
758
769
|
}, 200);
|
|
759
|
-
return
|
|
760
|
-
if (!(n instanceof Array) || n.length <
|
|
770
|
+
return G(() => e.value, (n) => {
|
|
771
|
+
if (!(n instanceof Array) || n.length < g.value) {
|
|
761
772
|
let r = [...n || []];
|
|
762
|
-
for (; r.length <
|
|
773
|
+
for (; r.length < g.value;) r.push((0, Q.cloneDeep)(e.field.form.model || {}));
|
|
763
774
|
t("update:value", r);
|
|
764
775
|
}
|
|
765
|
-
}),
|
|
766
|
-
if (window.addEventListener("resize",
|
|
776
|
+
}), I(() => {
|
|
777
|
+
if (window.addEventListener("resize", C), C(), !(e.value instanceof Array) || e.value.length < g.value) {
|
|
767
778
|
let n = [...e.value || []];
|
|
768
|
-
for (; n.length <
|
|
779
|
+
for (; n.length < g.value;) n.push((0, Q.cloneDeep)(e.field.form.model || {}));
|
|
769
780
|
t("update:value", n);
|
|
770
781
|
}
|
|
771
|
-
}),
|
|
772
|
-
window.removeEventListener("resize",
|
|
782
|
+
}), L(() => {
|
|
783
|
+
window.removeEventListener("resize", C);
|
|
773
784
|
}), {
|
|
774
785
|
openModelConfig: () => {
|
|
775
|
-
v(
|
|
786
|
+
v(z({
|
|
776
787
|
open: !0,
|
|
777
788
|
loading: !1,
|
|
778
789
|
component: "InnerFormDesignModal",
|
|
@@ -790,65 +801,77 @@ var Ee = /* @__PURE__ */ t(xe, [["render", Te], ["__scopeId", "data-v-d6626b20"]
|
|
|
790
801
|
}
|
|
791
802
|
}));
|
|
792
803
|
},
|
|
793
|
-
addFormItem:
|
|
794
|
-
removeFormItem:
|
|
795
|
-
min_count:
|
|
796
|
-
_innerModel:
|
|
804
|
+
addFormItem: x,
|
|
805
|
+
removeFormItem: S,
|
|
806
|
+
min_count: g,
|
|
807
|
+
_innerModel: _,
|
|
797
808
|
actionTypes: i,
|
|
798
|
-
handleCustomBtnClick:
|
|
809
|
+
handleCustomBtnClick: b,
|
|
799
810
|
hasDownloadBtn: s,
|
|
800
811
|
hasImportBtn: c,
|
|
801
|
-
hasAddBtn:
|
|
802
|
-
handleImportExcel:
|
|
803
|
-
handleExportExcel:
|
|
804
|
-
exportExcelLoading:
|
|
812
|
+
hasAddBtn: d,
|
|
813
|
+
handleImportExcel: p,
|
|
814
|
+
handleExportExcel: h,
|
|
815
|
+
exportExcelLoading: m,
|
|
816
|
+
hasClearBtn: u,
|
|
817
|
+
handleClear: l
|
|
805
818
|
};
|
|
806
819
|
}
|
|
807
820
|
}), Fe = { class: "top_btn" };
|
|
808
821
|
function Ie(e, t, n, r, i, a) {
|
|
809
|
-
let o =
|
|
810
|
-
return
|
|
811
|
-
e.is_form_design ? (
|
|
822
|
+
let o = H("a-button"), s = H("plus-outlined"), c = H("debug-code"), l = H("FormTemplateTable"), u = H("FormItem");
|
|
823
|
+
return R(), O(w, null, [k("div", Fe, [
|
|
824
|
+
e.is_form_design ? (R(), E(o, {
|
|
812
825
|
key: 0,
|
|
813
826
|
type: "primary",
|
|
814
827
|
size: "small",
|
|
815
828
|
onClick: e.openModelConfig,
|
|
816
829
|
ghost: !0
|
|
817
830
|
}, {
|
|
818
|
-
default:
|
|
831
|
+
default: K(() => t[0] ||= [j(" 编辑表单 ")]),
|
|
819
832
|
_: 1
|
|
820
833
|
}, 8, ["onClick"])) : D("", !0),
|
|
821
|
-
e.
|
|
834
|
+
e.hasClearBtn ? (R(), E(o, {
|
|
822
835
|
key: 1,
|
|
823
836
|
size: "small",
|
|
824
837
|
type: "primary",
|
|
838
|
+
onClick: e.handleClear,
|
|
839
|
+
danger: !0
|
|
840
|
+
}, {
|
|
841
|
+
default: K(() => t[1] ||= [j(" 清空 ")]),
|
|
842
|
+
_: 1
|
|
843
|
+
}, 8, ["onClick"])) : D("", !0),
|
|
844
|
+
e.hasDownloadBtn ? (R(), E(o, {
|
|
845
|
+
key: 2,
|
|
846
|
+
size: "small",
|
|
847
|
+
type: "primary",
|
|
825
848
|
loading: e.exportExcelLoading,
|
|
826
849
|
onClick: e.handleExportExcel
|
|
827
850
|
}, {
|
|
828
|
-
default:
|
|
851
|
+
default: K(() => t[2] ||= [j(" 下载导入模版 ")]),
|
|
829
852
|
_: 1
|
|
830
853
|
}, 8, ["loading", "onClick"])) : D("", !0),
|
|
831
|
-
e.hasImportBtn ? (
|
|
832
|
-
key:
|
|
854
|
+
e.hasImportBtn ? (R(), E(o, {
|
|
855
|
+
key: 3,
|
|
833
856
|
size: "small",
|
|
834
857
|
type: "primary",
|
|
835
858
|
onClick: e.handleImportExcel
|
|
836
859
|
}, {
|
|
837
|
-
default:
|
|
860
|
+
default: K(() => t[3] ||= [j(" 导入Excel数据 ")]),
|
|
838
861
|
_: 1
|
|
839
862
|
}, 8, ["onClick"])) : D("", !0),
|
|
840
|
-
e.hasAddBtn && (!e.field.custom_btn_list?.length || e.field.max_count !== e.min_count) ? (
|
|
841
|
-
key:
|
|
863
|
+
e.hasAddBtn && (!e.field.custom_btn_list?.length || e.field.max_count !== e.min_count) ? (R(), E(o, {
|
|
864
|
+
key: 4,
|
|
842
865
|
type: "primary",
|
|
843
866
|
size: "small",
|
|
844
867
|
onClick: e.addFormItem,
|
|
845
868
|
disabled: e.field.max_count && e.value.length >= e.field.max_count
|
|
846
869
|
}, {
|
|
847
|
-
icon:
|
|
848
|
-
default:
|
|
870
|
+
icon: K(() => [M(s)]),
|
|
871
|
+
default: K(() => [j(" " + W(e.field.btn_title || "添加"), 1)]),
|
|
849
872
|
_: 1
|
|
850
873
|
}, 8, ["onClick", "disabled"])) : D("", !0),
|
|
851
|
-
(
|
|
874
|
+
(R(!0), O(w, null, V(e.field.custom_btn_list, (t) => (R(), E(c, {
|
|
852
875
|
action_code_id: t.action_code_id,
|
|
853
876
|
code: t.code,
|
|
854
877
|
"onUpdate:code": (e) => t.code = e,
|
|
@@ -856,14 +879,14 @@ function Ie(e, t, n, r, i, a) {
|
|
|
856
879
|
"onUpdate:action": (e) => t.action = e,
|
|
857
880
|
options: e.actionTypes
|
|
858
881
|
}, {
|
|
859
|
-
default:
|
|
882
|
+
default: K(() => [M(o, {
|
|
860
883
|
size: "small",
|
|
861
884
|
type: t.type,
|
|
862
885
|
danger: t.danger,
|
|
863
886
|
onClick: (n) => e.handleCustomBtnClick(t),
|
|
864
887
|
disabled: e.field.max_count && e.value.length >= e.field.max_count && t.action === "add"
|
|
865
888
|
}, {
|
|
866
|
-
default:
|
|
889
|
+
default: K(() => [j(W(t.label), 1)]),
|
|
867
890
|
_: 2
|
|
868
891
|
}, 1032, [
|
|
869
892
|
"type",
|
|
@@ -880,7 +903,7 @@ function Ie(e, t, n, r, i, a) {
|
|
|
880
903
|
"onUpdate:action",
|
|
881
904
|
"options"
|
|
882
905
|
]))), 256))
|
|
883
|
-
]), e.field.showType === "table" ? (
|
|
906
|
+
]), e.field.showType === "table" ? (R(), E(l, {
|
|
884
907
|
key: 0,
|
|
885
908
|
value: e.value,
|
|
886
909
|
field: e.field,
|
|
@@ -907,7 +930,7 @@ function Ie(e, t, n, r, i, a) {
|
|
|
907
930
|
"min_count",
|
|
908
931
|
"formModel",
|
|
909
932
|
"onRemove"
|
|
910
|
-
])) : (
|
|
933
|
+
])) : (R(!0), O(w, { key: 1 }, V(e.value, (t, n) => (R(), E(u, {
|
|
911
934
|
form: e.field.form,
|
|
912
935
|
field: e.field,
|
|
913
936
|
value: e.value[n],
|
|
@@ -951,7 +974,7 @@ function Ie(e, t, n, r, i, a) {
|
|
|
951
974
|
"worker-host-functions"
|
|
952
975
|
]))), 256))], 64);
|
|
953
976
|
}
|
|
954
|
-
var Le = /* @__PURE__ */ t(Pe, [["render", Ie], ["__scopeId", "data-v-
|
|
977
|
+
var Le = /* @__PURE__ */ t(Pe, [["render", Ie], ["__scopeId", "data-v-19d1d1ee"]]), Re = P({
|
|
955
978
|
name: "DynamicValueField",
|
|
956
979
|
components: { debugCode: S },
|
|
957
980
|
props: {
|
|
@@ -987,7 +1010,7 @@ var Le = /* @__PURE__ */ t(Pe, [["render", Ie], ["__scopeId", "data-v-6a96070b"]
|
|
|
987
1010
|
},
|
|
988
1011
|
emits: ["update:value"],
|
|
989
1012
|
setup(e, { emit: t }) {
|
|
990
|
-
let n =
|
|
1013
|
+
let n = B(null), r = (0, Q.debounce)(async (r, i, a, s) => {
|
|
991
1014
|
let c = a.code;
|
|
992
1015
|
if (a.watchType === "scoped") {
|
|
993
1016
|
if (a.valueType === "single") {
|
|
@@ -1032,7 +1055,7 @@ var Le = /* @__PURE__ */ t(Pe, [["render", Ie], ["__scopeId", "data-v-6a96070b"]
|
|
|
1032
1055
|
console.error(e), t("update:value", ""), n.value = e.message;
|
|
1033
1056
|
}
|
|
1034
1057
|
}, 200);
|
|
1035
|
-
return
|
|
1058
|
+
return G(() => [
|
|
1036
1059
|
e.innerModel,
|
|
1037
1060
|
e.globalInnerModel,
|
|
1038
1061
|
e.field,
|
|
@@ -1053,19 +1076,19 @@ var Le = /* @__PURE__ */ t(Pe, [["render", Ie], ["__scopeId", "data-v-6a96070b"]
|
|
|
1053
1076
|
class: "error-msg"
|
|
1054
1077
|
};
|
|
1055
1078
|
function Be(e, t, n, r, i, a) {
|
|
1056
|
-
let o =
|
|
1057
|
-
return
|
|
1079
|
+
let o = H("a-input"), s = H("debug-code");
|
|
1080
|
+
return R(), O(w, null, [M(s, {
|
|
1058
1081
|
"value-code": e.field,
|
|
1059
1082
|
"show-debug-code": e.field.watchType === "code"
|
|
1060
1083
|
}, {
|
|
1061
|
-
default:
|
|
1084
|
+
default: K(() => [M(o, {
|
|
1062
1085
|
value: e.value,
|
|
1063
1086
|
readonly: "",
|
|
1064
1087
|
size: "small",
|
|
1065
1088
|
style: { "background-color": "#f5f5f5" }
|
|
1066
1089
|
}, null, 8, ["value"])]),
|
|
1067
1090
|
_: 1
|
|
1068
|
-
}, 8, ["value-code", "show-debug-code"]), e.errorMsg ? (
|
|
1091
|
+
}, 8, ["value-code", "show-debug-code"]), e.errorMsg ? (R(), O("span", ze, W(e.errorMsg), 1)) : D("", !0)], 64);
|
|
1069
1092
|
}
|
|
1070
1093
|
var Ve = /* @__PURE__ */ t(Re, [["render", Be], ["__scopeId", "data-v-4d36fe78"]]), He = P({
|
|
1071
1094
|
name: "FormButton",
|
|
@@ -1122,7 +1145,7 @@ var Ve = /* @__PURE__ */ t(Re, [["render", Be], ["__scopeId", "data-v-4d36fe78"]
|
|
|
1122
1145
|
keyPath: [...e.baseKeyPath, e.field.name]
|
|
1123
1146
|
}, e.workerHostFunctions || {});
|
|
1124
1147
|
} catch (e) {
|
|
1125
|
-
|
|
1148
|
+
J.error(e.message);
|
|
1126
1149
|
return;
|
|
1127
1150
|
}
|
|
1128
1151
|
t && Object.assign(e.formModel, t);
|
|
@@ -1136,20 +1159,20 @@ var Ve = /* @__PURE__ */ t(Re, [["render", Be], ["__scopeId", "data-v-4d36fe78"]
|
|
|
1136
1159
|
//#endregion
|
|
1137
1160
|
//#region src/components/FormRender/FormButton/FormButton.vue
|
|
1138
1161
|
function Ue(e, t, n, r, i, a) {
|
|
1139
|
-
let o =
|
|
1140
|
-
return
|
|
1162
|
+
let o = H("a-button"), s = H("debug-code");
|
|
1163
|
+
return R(), E(s, {
|
|
1141
1164
|
action_code_id: e.field.action_code_id,
|
|
1142
1165
|
code: e.field.code,
|
|
1143
1166
|
"onUpdate:code": t[0] ||= (t) => e.field.code = t
|
|
1144
1167
|
}, {
|
|
1145
|
-
default:
|
|
1168
|
+
default: K(() => [M(o, {
|
|
1146
1169
|
danger: e.field.danger,
|
|
1147
1170
|
type: e.field.btn_type,
|
|
1148
1171
|
disabled: e.field.disabled,
|
|
1149
1172
|
size: "small",
|
|
1150
1173
|
onClick: e.handlClick
|
|
1151
1174
|
}, {
|
|
1152
|
-
default:
|
|
1175
|
+
default: K(() => [j(W(e.field.label), 1)]),
|
|
1153
1176
|
_: 1
|
|
1154
1177
|
}, 8, [
|
|
1155
1178
|
"danger",
|
|
@@ -1198,8 +1221,8 @@ var We = /* @__PURE__ */ t(He, [["render", Ue]]), Ge = P({
|
|
|
1198
1221
|
}
|
|
1199
1222
|
}), Ke = { key: 0 }, qe = { key: 0 }, Je = { key: 0 };
|
|
1200
1223
|
function Ye(e, t, n, r, i, a) {
|
|
1201
|
-
let o =
|
|
1202
|
-
return
|
|
1224
|
+
let o = H("a-input-number");
|
|
1225
|
+
return R(), E(o, {
|
|
1203
1226
|
value: e.innerValue,
|
|
1204
1227
|
autocomplete: e.field.autocomplete == null ? "off" : e.field.autocomplete,
|
|
1205
1228
|
"default-value": e.field.defaultValue,
|
|
@@ -1215,17 +1238,17 @@ function Ye(e, t, n, r, i, a) {
|
|
|
1215
1238
|
}, A({ _: 2 }, [
|
|
1216
1239
|
e.field?.prefix || e.field?.prefixIcon ? {
|
|
1217
1240
|
name: "prefix",
|
|
1218
|
-
fn:
|
|
1241
|
+
fn: K(() => [e.field?.prefix ? (R(), O("span", Ke, W(e.field.prefix), 1)) : D("", !0), e.field?.prefixIcon ? (R(), E(U(e.field?.prefixIcon), { key: 1 })) : D("", !0)]),
|
|
1219
1242
|
key: "0"
|
|
1220
1243
|
} : void 0,
|
|
1221
1244
|
e.field?.addonBefore || e.field?.addonBeforeIcon ? {
|
|
1222
1245
|
name: "addonBefore",
|
|
1223
|
-
fn:
|
|
1246
|
+
fn: K(() => [e.field?.addonBefore ? (R(), O("span", qe, W(e.field.addonBefore), 1)) : D("", !0), e.field?.addonBeforeIcon ? (R(), E(U(e.field?.addonBeforeIcon), { key: 1 })) : D("", !0)]),
|
|
1224
1247
|
key: "1"
|
|
1225
1248
|
} : void 0,
|
|
1226
1249
|
e.field?.addonAfter || e.field?.addonAfterIcon ? {
|
|
1227
1250
|
name: "addonAfter",
|
|
1228
|
-
fn:
|
|
1251
|
+
fn: K(() => [e.field?.addonAfter ? (R(), O("span", Je, W(e.field.addonAfter), 1)) : D("", !0), e.field?.addonAfterIcon ? (R(), E(U(e.field?.addonAfterIcon), { key: 1 })) : D("", !0)]),
|
|
1229
1252
|
key: "2"
|
|
1230
1253
|
} : void 0
|
|
1231
1254
|
]), 1032, [
|
|
@@ -1253,8 +1276,8 @@ var Xe = /* @__PURE__ */ t(Ge, [["render", Ye], ["__scopeId", "data-v-1c2384e8"]
|
|
|
1253
1276
|
}),
|
|
1254
1277
|
emits: ["update:value"],
|
|
1255
1278
|
setup(e) {
|
|
1256
|
-
let t =
|
|
1257
|
-
|
|
1279
|
+
let t = me(e, "value"), n = e, r = B("");
|
|
1280
|
+
G(() => t.value, (e) => {
|
|
1258
1281
|
let t = e;
|
|
1259
1282
|
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;
|
|
1260
1283
|
}, { immediate: !0 });
|
|
@@ -1268,8 +1291,8 @@ var Xe = /* @__PURE__ */ t(Ge, [["render", Ye], ["__scopeId", "data-v-1c2384e8"]
|
|
|
1268
1291
|
return e?.endsWith(t) ? e.slice(0, -t.length) + n : e;
|
|
1269
1292
|
}
|
|
1270
1293
|
return (t, n) => {
|
|
1271
|
-
let a =
|
|
1272
|
-
return
|
|
1294
|
+
let a = H("a-input");
|
|
1295
|
+
return R(), E(a, {
|
|
1273
1296
|
value: r.value,
|
|
1274
1297
|
"onUpdate:value": n[0] ||= (e) => r.value = e,
|
|
1275
1298
|
"allow-clear": e.field.allowClear == null ? !0 : e.field.allowClear,
|
|
@@ -1280,26 +1303,26 @@ var Xe = /* @__PURE__ */ t(Ge, [["render", Ye], ["__scopeId", "data-v-1c2384e8"]
|
|
|
1280
1303
|
placeholder: e.field.placeholder ? e.field.placeholder : t.$t("请输入") + e.field.label,
|
|
1281
1304
|
type: e.field.inputType ? e.field.inputType : "text",
|
|
1282
1305
|
size: "small",
|
|
1283
|
-
onChange: n[1] ||= (e) =>
|
|
1306
|
+
onChange: n[1] ||= (e) => pe(i)(e.target.value)
|
|
1284
1307
|
}, A({ _: 2 }, [
|
|
1285
1308
|
e.field?.prefix || e.field?.prefixIcon ? {
|
|
1286
1309
|
name: "prefix",
|
|
1287
|
-
fn:
|
|
1310
|
+
fn: K(() => [e.field?.prefix ? (R(), O("span", Ze, W(e.field.prefix), 1)) : D("", !0), e.field?.prefixIcon ? (R(), E(U(e.field?.prefixIcon), { key: 1 })) : D("", !0)]),
|
|
1288
1311
|
key: "0"
|
|
1289
1312
|
} : void 0,
|
|
1290
1313
|
e.field?.suffix || e.field?.suffixIcon ? {
|
|
1291
1314
|
name: "suffix",
|
|
1292
|
-
fn:
|
|
1315
|
+
fn: K(() => [e.field?.suffix ? (R(), O("span", Qe, W(e.field.suffix), 1)) : D("", !0), e.field?.suffixIcon ? (R(), E(U(e.field?.suffixIcon), { key: 1 })) : D("", !0)]),
|
|
1293
1316
|
key: "1"
|
|
1294
1317
|
} : void 0,
|
|
1295
1318
|
e.field?.addonBefore || e.field?.addonBeforeIcon ? {
|
|
1296
1319
|
name: "addonBefore",
|
|
1297
|
-
fn:
|
|
1320
|
+
fn: K(() => [e.field?.addonBefore ? (R(), O("span", $e, W(e.field.addonBefore), 1)) : D("", !0), e.field?.addonBeforeIcon ? (R(), E(U(e.field?.addonBeforeIcon), { key: 1 })) : D("", !0)]),
|
|
1298
1321
|
key: "2"
|
|
1299
1322
|
} : void 0,
|
|
1300
1323
|
e.field?.addonAfter || e.field?.addonAfterIcon ? {
|
|
1301
1324
|
name: "addonAfter",
|
|
1302
|
-
fn:
|
|
1325
|
+
fn: K(() => [e.field?.addonAfter ? (R(), O("span", et, W(e.field.addonAfter), 1)) : D("", !0), e.field?.addonAfterIcon ? (R(), E(U(e.field?.addonAfterIcon), { key: 1 })) : D("", !0)]),
|
|
1303
1326
|
key: "3"
|
|
1304
1327
|
} : void 0
|
|
1305
1328
|
]), 1032, [
|
|
@@ -1314,9 +1337,9 @@ var Xe = /* @__PURE__ */ t(Ge, [["render", Ye], ["__scopeId", "data-v-1c2384e8"]
|
|
|
1314
1337
|
]);
|
|
1315
1338
|
};
|
|
1316
1339
|
}
|
|
1317
|
-
}), [["__scopeId", "data-v-a5e3757b"]]), $ = (e, t = "YYYY-MM-DD") =>
|
|
1340
|
+
}), [["__scopeId", "data-v-a5e3757b"]]), $ = (e, t = "YYYY-MM-DD") => X(e, t, !0).isValid(), nt = (e, t = "YYYY-MM-DD HH:mm:ss") => X(e, t, !0).isValid(), rt = (e, t = "HH:mm:ss") => X(e, t, !0).isValid(), it = P({
|
|
1318
1341
|
name: "FieldRender2",
|
|
1319
|
-
methods: { isArray:
|
|
1342
|
+
methods: { isArray: Y },
|
|
1320
1343
|
props: {
|
|
1321
1344
|
field: {
|
|
1322
1345
|
type: Object,
|
|
@@ -1413,28 +1436,28 @@ var Xe = /* @__PURE__ */ t(Ge, [["render", Ye], ["__scopeId", "data-v-1c2384e8"]
|
|
|
1413
1436
|
"update_name2"
|
|
1414
1437
|
],
|
|
1415
1438
|
setup(e, { emit: t }) {
|
|
1416
|
-
let n =
|
|
1439
|
+
let n = B({ ...e.formModel }), r = (e) => typeof e == "string" && e.indexOf(",") >= 0 ? e.split(",") : e, o = (e, t) => {
|
|
1417
1440
|
let n;
|
|
1418
1441
|
return t == "int" ? a(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1419
1442
|
a(e) && typeof e == "string" ? n.push(Number(e)) : n.push(e);
|
|
1420
1443
|
})) : n = a(e) && typeof e == "string" ? Number(e) : e : t == "str" ? a(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1421
1444
|
a(e) && typeof e == "number" ? n.push(e.toString()) : n.push(e);
|
|
1422
1445
|
})) : n = a(e) && typeof e == "number" ? e.toString() : e : t == "date" ? a(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1423
|
-
$(e) && typeof e == "string" ? n.push(
|
|
1446
|
+
$(e) && typeof e == "string" ? n.push(X(e, "YYYY-MM-DD")) : n.push(e);
|
|
1424
1447
|
})) : n = $(e) && typeof e == "string" ? e.toString() : e : t == "datetime" ? a(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1425
|
-
nt(e) && typeof e == "string" ? n.push(
|
|
1426
|
-
})) : n = nt(e) && typeof e == "string" ?
|
|
1427
|
-
rt(e) && typeof e == "string" ? n.push(
|
|
1428
|
-
})) : n = rt(e) && typeof e == "string" ?
|
|
1448
|
+
nt(e) && typeof e == "string" ? n.push(X(e, "YYYY-MM-DD HH:mm:ss")) : n.push(e);
|
|
1449
|
+
})) : n = nt(e) && typeof e == "string" ? X(e, "YYYY-MM-DD HH:mm:ss") : e : t == "time" ? a(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1450
|
+
rt(e) && typeof e == "string" ? n.push(X(e, "HH:mm:ss")) : n.push(e);
|
|
1451
|
+
})) : n = rt(e) && typeof e == "string" ? X(e, "HH:mm:ss") : e : t == "float" ? a(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1429
1452
|
a(e) && typeof e == "string" ? n.push(Number(e)) : n.push(e);
|
|
1430
1453
|
})) : n = a(e) && typeof e == "string" ? Number(e) : e : t == "bool" && (a(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1431
1454
|
a(e) && typeof e == "string" ? n.push(!!e) : n.push(e);
|
|
1432
1455
|
})) : n = a(e) && typeof e == "string" ? !!e : e), n;
|
|
1433
|
-
}, s =
|
|
1456
|
+
}, s = B(e.is_show_field), c = B(!1), l = T(() => e.is_form_design && e.field.type === "remotetablepro"), u = () => {
|
|
1434
1457
|
t("update:is_edit", c.value);
|
|
1435
1458
|
}, d = () => {
|
|
1436
1459
|
t("add");
|
|
1437
|
-
}, f =
|
|
1460
|
+
}, f = _e(() => {
|
|
1438
1461
|
let r = s.value;
|
|
1439
1462
|
e.field?.is_hide && (s.value = !1, s.value !== r && (s.value ? (n.value[e.field.name] = null, t("update_model", {
|
|
1440
1463
|
add_key: e.field.name,
|
|
@@ -1447,7 +1470,7 @@ var Xe = /* @__PURE__ */ t(Ge, [["render", Ye], ["__scopeId", "data-v-1c2384e8"]
|
|
|
1447
1470
|
let a = n[t], s = e.formModel[a.watchKey], c;
|
|
1448
1471
|
c = a.class_name ? o(a.value, a.class_name) : a.value;
|
|
1449
1472
|
let l, u;
|
|
1450
|
-
c instanceof Array && ([l, u] = c), a.operator == "lt" ? typeof l == "number" ? i(s) ? r.push(!1) : s < l ? r.push(!0) : r.push(!1) : $(l) && (i(s) ? r.push(!1) :
|
|
1473
|
+
c instanceof Array && ([l, u] = c), a.operator == "lt" ? typeof l == "number" ? i(s) ? r.push(!1) : s < l ? r.push(!0) : r.push(!1) : $(l) && (i(s) ? r.push(!1) : X(s).isBefore(X(l)) ? r.push(!0) : r.push(!1)) : a.operator == "lte" ? typeof l == "number" ? i(s) ? r.push(!1) : s <= l ? r.push(!0) : r.push(!1) : $(l) && (i(s) ? r.push(!1) : X(s).isBefore(X(l)) || X(s).isSame(X(l)) ? r.push(!0) : r.push(!1)) : a.operator == "gt" ? typeof l == "number" ? i(s) ? r.push(!1) : s > l ? r.push(!0) : r.push(!1) : $(l) && (i(s) ? r.push(!1) : X(s).isAfter(X(l)) ? r.push(!0) : r.push(!1)) : a.operator == "gte" ? typeof l == "number" ? i(s) ? r.push(!1) : s >= l ? r.push(!0) : r.push(!1) : $(l) && (i(s) ? r.push(!1) : X(s).isAfter(X(l)) || X(s).isSame(X(l)) ? r.push(!0) : r.push(!1)) : a.operator == "between" ? typeof l == "number" && typeof u == "number" && l && u ? i(s) ? r.push(!1) : s >= l && s <= u ? r.push(!0) : r.push(!1) : $(l) && (i(s) ? r.push(!1) : (X(s).isAfter(X(l)) || X(s).isSame(X(l))) && (X(s).isBefore(X(u)) || X(s).isSame(X(u))) ? r.push(!0) : r.push(!1)) : a.operator == "notbetween" ? typeof l == "number" && typeof u == "number" && l && u ? i(s) ? r.push(!1) : s < l || s > u ? r.push(!0) : r.push(!1) : $(l) && (i(s) ? r.push(!1) : X(s).isBefore(X(l)) || X(s).isAfter(X(u)) ? r.push(!0) : r.push(!1)) : a.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" || i(s)) && (c.find((e) => s == e) ? r.push(!0) : r.push(!1)) : a.operator == "eq" ? s === l ? r.push(!0) : r.push(!1) : a.operator == "contains" ? s.toString().indexOf(l) > -1 ? r.push(!0) : r.push(!1) : a.operator == "startswith" ? s.toString().startsWith(l) ? r.push(!0) : r.push(!1) : a.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" || i(s)) && (c.find((e) => s == e) ? r.push(!1) : r.push(!0)) : a.operator == "notcontains" ? s.toString().indexOf(l) == -1 ? r.push(!0) : r.push(!1) : a.operator == "_eq" || (a.operator == "json_list_not_blank_not_null" ? s ? r.push(!0) : r.push(!1) : a.operator == "json_list_is_blank_is_null" || a.operator == "not_eq" ? s ? r.push(!1) : r.push(!0) : a.operator == "not_blank_not_null" && (s ? r.push(!0) : r.push(!1)));
|
|
1451
1474
|
}
|
|
1452
1475
|
a.push(r);
|
|
1453
1476
|
}
|
|
@@ -1461,8 +1484,8 @@ var Xe = /* @__PURE__ */ t(Ge, [["render", Ye], ["__scopeId", "data-v-1c2384e8"]
|
|
|
1461
1484
|
add_key: e.field.name,
|
|
1462
1485
|
value: null
|
|
1463
1486
|
})) : (delete n.value[e.field.name], t("update_model", { remove_key: e.field.name })));
|
|
1464
|
-
}, 300), p =
|
|
1465
|
-
|
|
1487
|
+
}, 300), p = B(""), m = B(e.label);
|
|
1488
|
+
G(() => p.value, (n) => {
|
|
1466
1489
|
if (t("update:value", n), e.field.name2) {
|
|
1467
1490
|
let r;
|
|
1468
1491
|
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"];
|
|
@@ -1473,7 +1496,7 @@ var Xe = /* @__PURE__ */ t(Ge, [["render", Ye], ["__scopeId", "data-v-1c2384e8"]
|
|
|
1473
1496
|
n == r?.[e.field.valueKey ? e.field.valueKey : "value"] && t.push(r?.[e.field.labelKey ? e.field.labelKey : "label"]);
|
|
1474
1497
|
});
|
|
1475
1498
|
}), r = t.toString();
|
|
1476
|
-
} else if (e.field.type === "select") if (
|
|
1499
|
+
} else if (e.field.type === "select") if (Y(n)) {
|
|
1477
1500
|
let t = [];
|
|
1478
1501
|
e.options.forEach((r) => {
|
|
1479
1502
|
n.forEach((n) => {
|
|
@@ -1486,27 +1509,27 @@ var Xe = /* @__PURE__ */ t(Ge, [["render", Ye], ["__scopeId", "data-v-1c2384e8"]
|
|
|
1486
1509
|
value: r
|
|
1487
1510
|
});
|
|
1488
1511
|
}
|
|
1489
|
-
}, { deep: !0 }),
|
|
1512
|
+
}, { deep: !0 }), G(() => e.value, (t) => {
|
|
1490
1513
|
let n = t;
|
|
1491
1514
|
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);
|
|
1492
|
-
}, { immediate: !0 }),
|
|
1515
|
+
}, { immediate: !0 }), G(() => m.value, (n) => {
|
|
1493
1516
|
t("update:label", n), "name2" in e.field && t("update_name2", {
|
|
1494
1517
|
key: e.field.name2,
|
|
1495
1518
|
value: n.toString()
|
|
1496
1519
|
});
|
|
1497
|
-
}, { deep: !0 }),
|
|
1520
|
+
}, { deep: !0 }), G(() => e.label, (e) => {
|
|
1498
1521
|
m.value = e;
|
|
1499
|
-
}),
|
|
1522
|
+
}), G(() => e.formModel, (e) => {
|
|
1500
1523
|
n.value = { ...e };
|
|
1501
|
-
}, { deep: !0 }),
|
|
1524
|
+
}, { deep: !0 }), G(() => n.value, (t, n) => {
|
|
1502
1525
|
e.field?.conditions && e.field?.conditions.forEach((e) => {
|
|
1503
1526
|
e.forEach((e) => {
|
|
1504
1527
|
n[e.watchKey] != t[e.watchKey] && f();
|
|
1505
1528
|
});
|
|
1506
1529
|
});
|
|
1507
|
-
}, { deep: !0 }),
|
|
1530
|
+
}, { deep: !0 }), G(() => [e.conditionsVisibleNum, e.isUseConditions], () => {
|
|
1508
1531
|
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));
|
|
1509
|
-
}),
|
|
1532
|
+
}), I(() => {
|
|
1510
1533
|
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 });
|
|
1511
1534
|
else {
|
|
1512
1535
|
let r = n.value[e.field.name];
|
|
@@ -1582,38 +1605,38 @@ var Xe = /* @__PURE__ */ t(Ge, [["render", Ye], ["__scopeId", "data-v-1c2384e8"]
|
|
|
1582
1605
|
"font-size": "17px"
|
|
1583
1606
|
} };
|
|
1584
1607
|
function dt(e, t, n, r, i, a) {
|
|
1585
|
-
let o =
|
|
1586
|
-
return
|
|
1587
|
-
e.field.type !== "divider" && e.field.type !== "button" && (e.field?.is_search_show !== !1 || e.field_render_show) ? (
|
|
1608
|
+
let o = H("a-switch"), s = H("plus-outlined"), c = H("a-button"), l = H("a-tag"), u = H("a-rate"), d = H("InputPro"), f = H("a-input-number"), p = H("InputNumberPro"), m = H("a-input"), h = H("attribute-table"), g = H("attribute-nom-table"), _ = H("a-textarea"), v = H("json-str"), y = H("json-obj"), b = H("rich-text-editor"), x = H("a-input-password"), S = H("a-select-option"), C = H("a-select"), ee = H("a-cascader"), te = H("remote-cascader"), ne = H("remote-cascader-pro"), re = H("month-picker"), ie = H("a-date-picker"), ae = H("a-range-picker"), oe = H("month-range-picker"), se = H("a-time-picker"), T = H("a-time-range-picker"), N = H("a-radio"), P = H("a-radio-group"), F = H("a-checkbox"), ce = H("a-checkbox-group"), ue = H("a-tree-select"), I = H("remote-filter-select"), L = H("remote-select"), z = H("remote-select-pro"), B = H("remote-complete"), pe = H("remote-tree-select"), me = H("remote-tree-select-pro"), he = H("remote-modal"), G = H("remote-table"), ge = H("remote-table-pro"), q = H("FormTemplate"), J = H("DynamicValueField"), _e = H("remote-text"), Y = H("upload"), X = H("code-editor"), Z = H("TinymceEditor"), ve = H("icon-select"), ye = H("a-form-item"), be = H("a-divider"), xe = H("FormButton");
|
|
1609
|
+
return R(), O(w, null, [
|
|
1610
|
+
e.field.type !== "divider" && e.field.type !== "button" && (e.field?.is_search_show !== !1 || e.field_render_show) ? (R(), E(ye, le({
|
|
1588
1611
|
key: 0,
|
|
1589
1612
|
extra: e.field.extra,
|
|
1590
1613
|
name: e.field.name
|
|
1591
1614
|
}, e.validateInfos ? e.validateInfos[e.field.name] : null), A({
|
|
1592
|
-
default:
|
|
1593
|
-
|
|
1594
|
-
e.field.type === "kong" ? (
|
|
1595
|
-
e.field.type === "tag" ? (
|
|
1615
|
+
default: K(() => [
|
|
1616
|
+
fe(e.$slots, "default", {}, void 0, !0),
|
|
1617
|
+
e.field.type === "kong" ? (R(), O("div", at)) : D("", !0),
|
|
1618
|
+
e.field.type === "tag" ? (R(), O("div", ot, [e.field.content && e.field.content(e.field, e.model) || e.model ? (R(), E(l, {
|
|
1596
1619
|
key: 0,
|
|
1597
1620
|
color: e.field.color ? e.field.color(e.field, e.model) : "green",
|
|
1598
|
-
style:
|
|
1621
|
+
style: de(e.field.style),
|
|
1599
1622
|
onClick: t[1] ||= (t) => e.field.cb ? e.field.cb(e.field, e.model) : ""
|
|
1600
1623
|
}, {
|
|
1601
|
-
default:
|
|
1624
|
+
default: K(() => [e.field.content ? (R(), O("span", st, W(e.field.content(e.field, e.model)), 1)) : (R(), O("span", ct, W(e.model), 1))]),
|
|
1602
1625
|
_: 1
|
|
1603
1626
|
}, 8, ["color", "style"])) : D("", !0)])) : D("", !0),
|
|
1604
|
-
e.field.type === "kong_title" ? (
|
|
1627
|
+
e.field.type === "kong_title" ? (R(), O("div", {
|
|
1605
1628
|
key: 2,
|
|
1606
|
-
style:
|
|
1629
|
+
style: de("height: " + e.field.height + "px")
|
|
1607
1630
|
}, null, 4)) : D("", !0),
|
|
1608
|
-
e.field.type === "title" ? (
|
|
1609
|
-
e.field.type === "rate" ? (
|
|
1631
|
+
e.field.type === "title" ? (R(), O("div", lt, [k("span", ut, W(e.field.name), 1)])) : D("", !0),
|
|
1632
|
+
e.field.type === "rate" ? (R(), E(u, {
|
|
1610
1633
|
key: 4,
|
|
1611
1634
|
value: e.model,
|
|
1612
1635
|
"onUpdate:value": t[2] ||= (t) => e.model = t,
|
|
1613
1636
|
disabled: e.field.disabled,
|
|
1614
1637
|
"allow-half": ""
|
|
1615
1638
|
}, null, 8, ["value", "disabled"])) : D("", !0),
|
|
1616
|
-
e.field.type === "input" ? (
|
|
1639
|
+
e.field.type === "input" ? (R(), E(d, {
|
|
1617
1640
|
key: 5,
|
|
1618
1641
|
field: e.field,
|
|
1619
1642
|
value: e.model,
|
|
@@ -1626,7 +1649,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
1626
1649
|
"base-key-path",
|
|
1627
1650
|
"worker-host-functions"
|
|
1628
1651
|
])) : D("", !0),
|
|
1629
|
-
e.field.type === "money" ? (
|
|
1652
|
+
e.field.type === "money" ? (R(), E(f, {
|
|
1630
1653
|
key: 6,
|
|
1631
1654
|
size: "small",
|
|
1632
1655
|
value: e.model,
|
|
@@ -1653,7 +1676,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
1653
1676
|
"step",
|
|
1654
1677
|
"placeholder"
|
|
1655
1678
|
])) : D("", !0),
|
|
1656
|
-
e.field.type === "number" ? (
|
|
1679
|
+
e.field.type === "number" ? (R(), E(p, {
|
|
1657
1680
|
key: 7,
|
|
1658
1681
|
value: e.model,
|
|
1659
1682
|
"onUpdate:value": t[5] ||= (t) => e.model = t,
|
|
@@ -1667,7 +1690,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
1667
1690
|
"base-key-path",
|
|
1668
1691
|
"worker-host-functions"
|
|
1669
1692
|
])) : D("", !0),
|
|
1670
|
-
e.field.type === "volume" ? (
|
|
1693
|
+
e.field.type === "volume" ? (R(), E(m, {
|
|
1671
1694
|
key: 8,
|
|
1672
1695
|
value: e.model,
|
|
1673
1696
|
"onUpdate:value": t[6] ||= (t) => e.model = t,
|
|
@@ -1689,7 +1712,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
1689
1712
|
"maxlength",
|
|
1690
1713
|
"placeholder"
|
|
1691
1714
|
])) : D("", !0),
|
|
1692
|
-
e.field.type === "weight" ? (
|
|
1715
|
+
e.field.type === "weight" ? (R(), E(m, {
|
|
1693
1716
|
key: 9,
|
|
1694
1717
|
value: e.model,
|
|
1695
1718
|
"onUpdate:value": t[7] ||= (t) => e.model = t,
|
|
@@ -1711,7 +1734,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
1711
1734
|
"maxlength",
|
|
1712
1735
|
"placeholder"
|
|
1713
1736
|
])) : D("", !0),
|
|
1714
|
-
e.field.type === "attributetable" ? (
|
|
1737
|
+
e.field.type === "attributetable" ? (R(), E(h, {
|
|
1715
1738
|
key: 10,
|
|
1716
1739
|
value: e.model,
|
|
1717
1740
|
"onUpdate:value": t[8] ||= (t) => e.model = t,
|
|
@@ -1729,7 +1752,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
1729
1752
|
"base-key-path",
|
|
1730
1753
|
"worker-host-functions"
|
|
1731
1754
|
])) : D("", !0),
|
|
1732
|
-
e.field.type === "attributenomtable" ? (
|
|
1755
|
+
e.field.type === "attributenomtable" ? (R(), E(g, {
|
|
1733
1756
|
key: 11,
|
|
1734
1757
|
size: "small",
|
|
1735
1758
|
value: e.model,
|
|
@@ -1747,7 +1770,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
1747
1770
|
"base-key-path",
|
|
1748
1771
|
"worker-host-functions"
|
|
1749
1772
|
])) : D("", !0),
|
|
1750
|
-
e.field.type === "textarea" ? (
|
|
1773
|
+
e.field.type === "textarea" ? (R(), E(_, {
|
|
1751
1774
|
key: 12,
|
|
1752
1775
|
value: e.model,
|
|
1753
1776
|
"onUpdate:value": t[10] ||= (t) => e.model = t,
|
|
@@ -1767,7 +1790,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
1767
1790
|
"disabled",
|
|
1768
1791
|
"placeholder"
|
|
1769
1792
|
])) : D("", !0),
|
|
1770
|
-
e.field.type === "jsonstr" ? (
|
|
1793
|
+
e.field.type === "jsonstr" ? (R(), E(v, {
|
|
1771
1794
|
key: 13,
|
|
1772
1795
|
value: e.model,
|
|
1773
1796
|
"onUpdate:value": t[11] ||= (t) => e.model = t,
|
|
@@ -1782,7 +1805,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
1782
1805
|
"rows",
|
|
1783
1806
|
"placeholder"
|
|
1784
1807
|
])) : D("", !0),
|
|
1785
|
-
e.field.type === "jsonobj" ? (
|
|
1808
|
+
e.field.type === "jsonobj" ? (R(), E(y, {
|
|
1786
1809
|
key: 14,
|
|
1787
1810
|
value: e.model,
|
|
1788
1811
|
"onUpdate:value": t[12] ||= (t) => e.model = t,
|
|
@@ -1799,7 +1822,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
1799
1822
|
"fullWidthButton",
|
|
1800
1823
|
"darkTheme"
|
|
1801
1824
|
])) : D("", !0),
|
|
1802
|
-
e.field.type === "richtexteditor" ? (
|
|
1825
|
+
e.field.type === "richtexteditor" ? (R(), E(b, {
|
|
1803
1826
|
key: 15,
|
|
1804
1827
|
value: e.model,
|
|
1805
1828
|
"onUpdate:value": t[13] ||= (t) => e.model = t,
|
|
@@ -1810,7 +1833,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
1810
1833
|
"readOnly",
|
|
1811
1834
|
"placeholder"
|
|
1812
1835
|
])) : D("", !0),
|
|
1813
|
-
e.field.type === "password" ? (
|
|
1836
|
+
e.field.type === "password" ? (R(), E(x, {
|
|
1814
1837
|
key: 16,
|
|
1815
1838
|
value: e.model,
|
|
1816
1839
|
"onUpdate:value": t[14] ||= (t) => e.model = t,
|
|
@@ -1842,7 +1865,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
1842
1865
|
"step",
|
|
1843
1866
|
"visibilityToggle"
|
|
1844
1867
|
])) : D("", !0),
|
|
1845
|
-
e.field.type === "select" ? (
|
|
1868
|
+
e.field.type === "select" ? (R(), O(w, { key: 17 }, [e.field.mode === "default" ? (R(), E(C, {
|
|
1846
1869
|
key: 0,
|
|
1847
1870
|
value: e.model,
|
|
1848
1871
|
"onUpdate:value": t[16] ||= (t) => e.model = t,
|
|
@@ -1857,11 +1880,11 @@ function dt(e, t, n, r, i, a) {
|
|
|
1857
1880
|
size: "small",
|
|
1858
1881
|
style: { width: "100%" }
|
|
1859
1882
|
}, {
|
|
1860
|
-
default:
|
|
1883
|
+
default: K(() => [(R(!0), O(w, null, V(e.options, (t) => (R(), E(S, {
|
|
1861
1884
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
1862
1885
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
1863
1886
|
}, {
|
|
1864
|
-
default:
|
|
1887
|
+
default: K(() => [j(W(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
1865
1888
|
_: 2
|
|
1866
1889
|
}, 1032, ["value"]))), 128))]),
|
|
1867
1890
|
_: 1
|
|
@@ -1874,7 +1897,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
1874
1897
|
"maxTagCount",
|
|
1875
1898
|
"placeholder",
|
|
1876
1899
|
"show-search"
|
|
1877
|
-
])) : (
|
|
1900
|
+
])) : (R(), E(C, {
|
|
1878
1901
|
key: 1,
|
|
1879
1902
|
value: e.model,
|
|
1880
1903
|
"onUpdate:value": t[17] ||= (t) => e.model = t,
|
|
@@ -1889,11 +1912,11 @@ function dt(e, t, n, r, i, a) {
|
|
|
1889
1912
|
size: "small",
|
|
1890
1913
|
style: { "min-width": "150px" }
|
|
1891
1914
|
}, {
|
|
1892
|
-
default:
|
|
1915
|
+
default: K(() => [(R(!0), O(w, null, V(e.options, (t, n) => (R(), E(S, {
|
|
1893
1916
|
key: n,
|
|
1894
1917
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
1895
1918
|
}, {
|
|
1896
|
-
default:
|
|
1919
|
+
default: K(() => [j(W(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
1897
1920
|
_: 2
|
|
1898
1921
|
}, 1032, ["value"]))), 128))]),
|
|
1899
1922
|
_: 1
|
|
@@ -1907,7 +1930,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
1907
1930
|
"placeholder",
|
|
1908
1931
|
"show-search"
|
|
1909
1932
|
]))], 64)) : D("", !0),
|
|
1910
|
-
e.field.type === "groupselect" ? (
|
|
1933
|
+
e.field.type === "groupselect" ? (R(), O(w, { key: 18 }, [e.field.mode === "default" ? (R(), E(C, {
|
|
1911
1934
|
key: 0,
|
|
1912
1935
|
value: e.model,
|
|
1913
1936
|
"onUpdate:value": t[18] ||= (t) => e.model = t,
|
|
@@ -1936,7 +1959,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
1936
1959
|
"options",
|
|
1937
1960
|
"placeholder",
|
|
1938
1961
|
"show-search"
|
|
1939
|
-
])) : (
|
|
1962
|
+
])) : (R(), E(C, {
|
|
1940
1963
|
key: 1,
|
|
1941
1964
|
value: e.model,
|
|
1942
1965
|
"onUpdate:value": t[19] ||= (t) => e.model = t,
|
|
@@ -1966,7 +1989,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
1966
1989
|
"placeholder",
|
|
1967
1990
|
"show-search"
|
|
1968
1991
|
]))], 64)) : D("", !0),
|
|
1969
|
-
e.field.type === "cascader" ? (
|
|
1992
|
+
e.field.type === "cascader" ? (R(), E(ee, {
|
|
1970
1993
|
key: 19,
|
|
1971
1994
|
value: e.model,
|
|
1972
1995
|
"onUpdate:value": t[20] ||= (t) => e.model = t,
|
|
@@ -1990,7 +2013,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
1990
2013
|
"options",
|
|
1991
2014
|
"placeholder"
|
|
1992
2015
|
])) : D("", !0),
|
|
1993
|
-
e.field.type === "remotecascader" ? (
|
|
2016
|
+
e.field.type === "remotecascader" ? (R(), E(te, {
|
|
1994
2017
|
key: 20,
|
|
1995
2018
|
value: e.model,
|
|
1996
2019
|
"onUpdate:value": t[21] ||= (t) => e.model = t,
|
|
@@ -2016,7 +2039,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
2016
2039
|
"search_config",
|
|
2017
2040
|
"value-key"
|
|
2018
2041
|
])) : D("", !0),
|
|
2019
|
-
e.field.type === "remotecascaderpro" ? (
|
|
2042
|
+
e.field.type === "remotecascaderpro" ? (R(), E(ne, {
|
|
2020
2043
|
key: 21,
|
|
2021
2044
|
label: e.labelModel,
|
|
2022
2045
|
"onUpdate:label": t[23] ||= (t) => e.labelModel = t,
|
|
@@ -2064,7 +2087,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
2064
2087
|
"is_form_design",
|
|
2065
2088
|
"placeholder"
|
|
2066
2089
|
])) : D("", !0),
|
|
2067
|
-
e.field.type === "monthpicker" ? (
|
|
2090
|
+
e.field.type === "monthpicker" ? (R(), E(re, {
|
|
2068
2091
|
key: 22,
|
|
2069
2092
|
value: e.model,
|
|
2070
2093
|
"onUpdate:value": t[25] ||= (t) => e.model = t,
|
|
@@ -2093,7 +2116,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
2093
2116
|
"end_offset_day",
|
|
2094
2117
|
"fix_day"
|
|
2095
2118
|
])) : D("", !0),
|
|
2096
|
-
e.field.type === "datepicker" ? (
|
|
2119
|
+
e.field.type === "datepicker" ? (R(), E(ie, {
|
|
2097
2120
|
key: 23,
|
|
2098
2121
|
value: e.model,
|
|
2099
2122
|
"onUpdate:value": t[26] ||= (t) => e.model = t,
|
|
@@ -2120,7 +2143,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
2120
2143
|
"show-time",
|
|
2121
2144
|
"value-format"
|
|
2122
2145
|
])) : D("", !0),
|
|
2123
|
-
e.field.type === "rangepicker" ? (
|
|
2146
|
+
e.field.type === "rangepicker" ? (R(), E(ae, {
|
|
2124
2147
|
key: 24,
|
|
2125
2148
|
value: e.model,
|
|
2126
2149
|
"onUpdate:value": t[27] ||= (t) => e.model = t,
|
|
@@ -2145,7 +2168,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
2145
2168
|
"value-format",
|
|
2146
2169
|
"picker"
|
|
2147
2170
|
])) : D("", !0),
|
|
2148
|
-
e.field.type === "monthrangepicker" ? (
|
|
2171
|
+
e.field.type === "monthrangepicker" ? (R(), E(oe, {
|
|
2149
2172
|
key: 25,
|
|
2150
2173
|
value: e.model,
|
|
2151
2174
|
"onUpdate:value": t[28] ||= (t) => e.model = t,
|
|
@@ -2172,7 +2195,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
2172
2195
|
"end_offset_day",
|
|
2173
2196
|
"fix_day"
|
|
2174
2197
|
])) : D("", !0),
|
|
2175
|
-
e.field.type === "timepicker" ? (
|
|
2198
|
+
e.field.type === "timepicker" ? (R(), E(se, {
|
|
2176
2199
|
key: 26,
|
|
2177
2200
|
value: e.model,
|
|
2178
2201
|
"onUpdate:value": t[29] ||= (t) => e.model = t,
|
|
@@ -2193,7 +2216,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
2193
2216
|
"placeholder",
|
|
2194
2217
|
"value-format"
|
|
2195
2218
|
])) : D("", !0),
|
|
2196
|
-
e.field.type === "timerangepicker" ? (
|
|
2219
|
+
e.field.type === "timerangepicker" ? (R(), E(T, {
|
|
2197
2220
|
key: 27,
|
|
2198
2221
|
value: e.model,
|
|
2199
2222
|
"onUpdate:value": t[30] ||= (t) => e.model = t,
|
|
@@ -2214,7 +2237,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
2214
2237
|
"placeholder",
|
|
2215
2238
|
"value-format"
|
|
2216
2239
|
])) : D("", !0),
|
|
2217
|
-
e.field.type === "radio" ? (
|
|
2240
|
+
e.field.type === "radio" ? (R(), E(P, {
|
|
2218
2241
|
key: 28,
|
|
2219
2242
|
value: e.model,
|
|
2220
2243
|
"onUpdate:value": t[31] ||= (t) => e.model = t,
|
|
@@ -2222,12 +2245,12 @@ function dt(e, t, n, r, i, a) {
|
|
|
2222
2245
|
disabled: e.field.disabled,
|
|
2223
2246
|
size: "small"
|
|
2224
2247
|
}, {
|
|
2225
|
-
default:
|
|
2248
|
+
default: K(() => [(R(!0), O(w, null, V(e.options, (t) => (R(), E(N, {
|
|
2226
2249
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2227
2250
|
disabled: t.disabled,
|
|
2228
2251
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2229
2252
|
}, {
|
|
2230
|
-
default:
|
|
2253
|
+
default: K(() => [j(W(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
2231
2254
|
_: 2
|
|
2232
2255
|
}, 1032, ["disabled", "value"]))), 128))]),
|
|
2233
2256
|
_: 1
|
|
@@ -2236,7 +2259,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
2236
2259
|
"default-value",
|
|
2237
2260
|
"disabled"
|
|
2238
2261
|
])) : D("", !0),
|
|
2239
|
-
e.field.type === "checkbox" ? (
|
|
2262
|
+
e.field.type === "checkbox" ? (R(), E(ce, {
|
|
2240
2263
|
key: 29,
|
|
2241
2264
|
value: e.model,
|
|
2242
2265
|
"onUpdate:value": t[32] ||= (t) => e.model = t,
|
|
@@ -2244,12 +2267,12 @@ function dt(e, t, n, r, i, a) {
|
|
|
2244
2267
|
disabled: e.field.disabled,
|
|
2245
2268
|
size: "small"
|
|
2246
2269
|
}, {
|
|
2247
|
-
default:
|
|
2270
|
+
default: K(() => [(R(!0), O(w, null, V(e.options, (t) => (R(), E(F, {
|
|
2248
2271
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2249
2272
|
disabled: t.disabled,
|
|
2250
2273
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2251
2274
|
}, {
|
|
2252
|
-
default:
|
|
2275
|
+
default: K(() => [j(W(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
2253
2276
|
_: 2
|
|
2254
2277
|
}, 1032, ["disabled", "value"]))), 128))]),
|
|
2255
2278
|
_: 1
|
|
@@ -2258,7 +2281,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
2258
2281
|
"default-value",
|
|
2259
2282
|
"disabled"
|
|
2260
2283
|
])) : D("", !0),
|
|
2261
|
-
e.field.type === "treeselect" ? (
|
|
2284
|
+
e.field.type === "treeselect" ? (R(), E(ue, {
|
|
2262
2285
|
key: 30,
|
|
2263
2286
|
value: e.model,
|
|
2264
2287
|
"onUpdate:value": t[33] ||= (t) => e.model = t,
|
|
@@ -2285,7 +2308,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
2285
2308
|
"tree-label-prop",
|
|
2286
2309
|
"tree-node-filter-prop"
|
|
2287
2310
|
])) : D("", !0),
|
|
2288
|
-
e.field.type === "remotefilterselect" ? (
|
|
2311
|
+
e.field.type === "remotefilterselect" ? (R(), E(I, {
|
|
2289
2312
|
key: 31,
|
|
2290
2313
|
label: e.labelModel,
|
|
2291
2314
|
"onUpdate:label": t[34] ||= (t) => e.labelModel = t,
|
|
@@ -2313,7 +2336,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
2313
2336
|
"search_config",
|
|
2314
2337
|
"value-key"
|
|
2315
2338
|
])) : D("", !0),
|
|
2316
|
-
e.field.type === "remoteselect" ? (
|
|
2339
|
+
e.field.type === "remoteselect" ? (R(), E(L, {
|
|
2317
2340
|
key: 32,
|
|
2318
2341
|
label: e.labelModel,
|
|
2319
2342
|
"onUpdate:label": t[36] ||= (t) => e.labelModel = t,
|
|
@@ -2341,7 +2364,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
2341
2364
|
"search_config",
|
|
2342
2365
|
"value-key"
|
|
2343
2366
|
])) : D("", !0),
|
|
2344
|
-
e.field.type === "remoteselectpro" ? (
|
|
2367
|
+
e.field.type === "remoteselectpro" ? (R(), E(z, {
|
|
2345
2368
|
key: 33,
|
|
2346
2369
|
label: e.labelModel,
|
|
2347
2370
|
"onUpdate:label": t[38] ||= (t) => e.labelModel = t,
|
|
@@ -2387,7 +2410,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
2387
2410
|
"context",
|
|
2388
2411
|
"placeholder"
|
|
2389
2412
|
])) : D("", !0),
|
|
2390
|
-
e.field.type === "remotecomplete" ? (
|
|
2413
|
+
e.field.type === "remotecomplete" ? (R(), E(B, {
|
|
2391
2414
|
key: 34,
|
|
2392
2415
|
value: e.model,
|
|
2393
2416
|
"onUpdate:value": t[40] ||= (t) => e.model = t,
|
|
@@ -2426,7 +2449,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
2426
2449
|
"is_form_design",
|
|
2427
2450
|
"placeholder"
|
|
2428
2451
|
])) : D("", !0),
|
|
2429
|
-
e.field.type === "remotetreeselect" ? (
|
|
2452
|
+
e.field.type === "remotetreeselect" ? (R(), E(pe, {
|
|
2430
2453
|
key: 35,
|
|
2431
2454
|
label: e.labelModel,
|
|
2432
2455
|
"onUpdate:label": t[41] ||= (t) => e.labelModel = t,
|
|
@@ -2454,7 +2477,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
2454
2477
|
"search_config",
|
|
2455
2478
|
"value-key"
|
|
2456
2479
|
])) : D("", !0),
|
|
2457
|
-
e.field.type === "remotetreeselectpro" ? (
|
|
2480
|
+
e.field.type === "remotetreeselectpro" ? (R(), E(me, {
|
|
2458
2481
|
key: 36,
|
|
2459
2482
|
label: e.labelModel,
|
|
2460
2483
|
"onUpdate:label": t[43] ||= (t) => e.labelModel = t,
|
|
@@ -2500,7 +2523,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
2500
2523
|
"is_form_design",
|
|
2501
2524
|
"placeholder"
|
|
2502
2525
|
])) : D("", !0),
|
|
2503
|
-
e.field.type === "remotemodal" ? (
|
|
2526
|
+
e.field.type === "remotemodal" ? (R(), E(he, {
|
|
2504
2527
|
key: 37,
|
|
2505
2528
|
label: e.labelModel,
|
|
2506
2529
|
"onUpdate:label": t[45] ||= (t) => e.labelModel = t,
|
|
@@ -2526,7 +2549,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
2526
2549
|
"search_config",
|
|
2527
2550
|
"watch"
|
|
2528
2551
|
])) : D("", !0),
|
|
2529
|
-
e.field.type === "remotetable" ? (
|
|
2552
|
+
e.field.type === "remotetable" ? (R(), E(G, {
|
|
2530
2553
|
key: 38,
|
|
2531
2554
|
value: e.model,
|
|
2532
2555
|
"onUpdate:value": t[47] ||= (t) => e.model = t,
|
|
@@ -2555,7 +2578,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
2555
2578
|
"base-key-path",
|
|
2556
2579
|
"worker-host-functions"
|
|
2557
2580
|
])) : D("", !0),
|
|
2558
|
-
e.field.type === "remotetablepro" && !e.self_is_edit ? (
|
|
2581
|
+
e.field.type === "remotetablepro" && !e.self_is_edit ? (R(), E(ge, {
|
|
2559
2582
|
key: 39,
|
|
2560
2583
|
value: e.model,
|
|
2561
2584
|
"onUpdate:value": t[48] ||= (t) => e.model = t,
|
|
@@ -2590,7 +2613,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
2590
2613
|
"base-key-path",
|
|
2591
2614
|
"worker-host-functions"
|
|
2592
2615
|
])) : D("", !0),
|
|
2593
|
-
e.field.type === "formtemplate" ? (
|
|
2616
|
+
e.field.type === "formtemplate" ? (R(), E(q, {
|
|
2594
2617
|
key: 40,
|
|
2595
2618
|
value: e.model,
|
|
2596
2619
|
"onUpdate:value": t[49] ||= (t) => e.model = t,
|
|
@@ -2633,7 +2656,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
2633
2656
|
"base-key-path",
|
|
2634
2657
|
"worker-host-functions"
|
|
2635
2658
|
])) : D("", !0),
|
|
2636
|
-
e.field.type === "dynamicvaluefield" ? (
|
|
2659
|
+
e.field.type === "dynamicvaluefield" ? (R(), E(J, {
|
|
2637
2660
|
key: 41,
|
|
2638
2661
|
value: e.model,
|
|
2639
2662
|
"onUpdate:value": t[50] ||= (t) => e.model = t,
|
|
@@ -2672,7 +2695,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
2672
2695
|
"base-key-path",
|
|
2673
2696
|
"worker-host-functions"
|
|
2674
2697
|
])) : D("", !0),
|
|
2675
|
-
e.field.type === "remotetext" ? (
|
|
2698
|
+
e.field.type === "remotetext" ? (R(), E(_e, {
|
|
2676
2699
|
key: 42,
|
|
2677
2700
|
value: e.model,
|
|
2678
2701
|
"onUpdate:value": t[51] ||= (t) => e.model = t,
|
|
@@ -2695,7 +2718,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
2695
2718
|
"search_config",
|
|
2696
2719
|
"watch"
|
|
2697
2720
|
])) : D("", !0),
|
|
2698
|
-
e.field.type === "upload" ? (
|
|
2721
|
+
e.field.type === "upload" ? (R(), E(Y, {
|
|
2699
2722
|
key: 43,
|
|
2700
2723
|
value: e.model,
|
|
2701
2724
|
"onUpdate:value": t[52] ||= (t) => e.model = t,
|
|
@@ -2712,7 +2735,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
2712
2735
|
"maxCount",
|
|
2713
2736
|
"acceptList"
|
|
2714
2737
|
])) : D("", !0),
|
|
2715
|
-
e.field.type === "codeeditor" ? (
|
|
2738
|
+
e.field.type === "codeeditor" ? (R(), E(X, {
|
|
2716
2739
|
key: 44,
|
|
2717
2740
|
editorValue: e.model,
|
|
2718
2741
|
"onUpdate:editorValue": t[53] ||= (t) => e.model = t,
|
|
@@ -2725,7 +2748,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
2725
2748
|
"mode",
|
|
2726
2749
|
"lineWrapping"
|
|
2727
2750
|
])) : D("", !0),
|
|
2728
|
-
e.field.type === "tinymceeditor" ? (
|
|
2751
|
+
e.field.type === "tinymceeditor" ? (R(), E(Z, {
|
|
2729
2752
|
key: 45,
|
|
2730
2753
|
modelValue: e.model,
|
|
2731
2754
|
"onUpdate:modelValue": t[54] ||= (t) => e.model = t,
|
|
@@ -2736,13 +2759,13 @@ function dt(e, t, n, r, i, a) {
|
|
|
2736
2759
|
"options",
|
|
2737
2760
|
"mode"
|
|
2738
2761
|
])) : D("", !0),
|
|
2739
|
-
e.field.type === "iconselect" ? (
|
|
2762
|
+
e.field.type === "iconselect" ? (R(), E(ve, {
|
|
2740
2763
|
key: 46,
|
|
2741
2764
|
value: e.model,
|
|
2742
2765
|
"onUpdate:value": t[55] ||= (t) => e.model = t,
|
|
2743
2766
|
placeholder: e.field.placeholder_i18n == null ? e.field.placeholder ? e.field.placeholder : e.$t("请选择") + e.field.label : e.t(e.field.placeholder_i18n)
|
|
2744
2767
|
}, null, 8, ["value", "placeholder"])) : D("", !0),
|
|
2745
|
-
e.field.type === "rate" ? (
|
|
2768
|
+
e.field.type === "rate" ? (R(), E(u, {
|
|
2746
2769
|
key: 47,
|
|
2747
2770
|
value: e.model,
|
|
2748
2771
|
"onUpdate:value": t[56] ||= (t) => e.model = t,
|
|
@@ -2753,7 +2776,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
2753
2776
|
"count",
|
|
2754
2777
|
"allow-half"
|
|
2755
2778
|
])) : D("", !0),
|
|
2756
|
-
e.field.type === "radio-color" ? (
|
|
2779
|
+
e.field.type === "radio-color" ? (R(), E(P, {
|
|
2757
2780
|
key: 48,
|
|
2758
2781
|
value: e.model,
|
|
2759
2782
|
"onUpdate:value": t[57] ||= (t) => e.model = t,
|
|
@@ -2761,12 +2784,12 @@ function dt(e, t, n, r, i, a) {
|
|
|
2761
2784
|
disabled: e.field.disabled,
|
|
2762
2785
|
size: "small"
|
|
2763
2786
|
}, {
|
|
2764
|
-
default:
|
|
2787
|
+
default: K(() => [(R(!0), O(w, null, V(e.options, (t) => (R(), E(N, {
|
|
2765
2788
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2766
2789
|
disabled: t.disabled,
|
|
2767
2790
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2768
2791
|
}, {
|
|
2769
|
-
default:
|
|
2792
|
+
default: K(() => [k("div", { style: de({
|
|
2770
2793
|
width: "20px",
|
|
2771
2794
|
height: "20px",
|
|
2772
2795
|
backgroundColor: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
@@ -2779,7 +2802,7 @@ function dt(e, t, n, r, i, a) {
|
|
|
2779
2802
|
"default-value",
|
|
2780
2803
|
"disabled"
|
|
2781
2804
|
])) : D("", !0),
|
|
2782
|
-
e.field.type?.startsWith("CustomField") ? (
|
|
2805
|
+
e.field.type?.startsWith("CustomField") ? (R(), E(U(e.field.type), {
|
|
2783
2806
|
key: 49,
|
|
2784
2807
|
label: e.labelModel,
|
|
2785
2808
|
"onUpdate:label": t[58] ||= (t) => e.labelModel = t,
|
|
@@ -2809,9 +2832,9 @@ function dt(e, t, n, r, i, a) {
|
|
|
2809
2832
|
_: 2
|
|
2810
2833
|
}, [e.is_show_label ? {
|
|
2811
2834
|
name: "label",
|
|
2812
|
-
fn:
|
|
2813
|
-
j(
|
|
2814
|
-
e.is_show_edit ? (
|
|
2835
|
+
fn: K(() => [
|
|
2836
|
+
j(W(e.is_show_label ? e.field.label_i18n == null ? e.field.label : e.t(e.field.label_i18n) : null) + " ", 1),
|
|
2837
|
+
e.is_show_edit ? (R(), E(o, {
|
|
2815
2838
|
key: 0,
|
|
2816
2839
|
checked: e.self_is_edit,
|
|
2817
2840
|
"onUpdate:checked": t[0] ||= (t) => e.self_is_edit = t,
|
|
@@ -2820,27 +2843,27 @@ function dt(e, t, n, r, i, a) {
|
|
|
2820
2843
|
"checked-children": "表单",
|
|
2821
2844
|
"un-checked-children": "列表"
|
|
2822
2845
|
}, null, 8, ["checked", "onChange"])) : D("", !0),
|
|
2823
|
-
e.is_show_edit && e.self_is_edit ? (
|
|
2846
|
+
e.is_show_edit && e.self_is_edit ? (R(), E(c, {
|
|
2824
2847
|
key: 1,
|
|
2825
2848
|
size: "small",
|
|
2826
2849
|
type: "primary",
|
|
2827
2850
|
onClick: e.handleAdd
|
|
2828
2851
|
}, {
|
|
2829
|
-
icon:
|
|
2830
|
-
default:
|
|
2852
|
+
icon: K(() => [M(s)]),
|
|
2853
|
+
default: K(() => [t[61] ||= j(" 添加分组 ")]),
|
|
2831
2854
|
_: 1
|
|
2832
2855
|
}, 8, ["onClick"])) : D("", !0)
|
|
2833
2856
|
]),
|
|
2834
2857
|
key: "0"
|
|
2835
2858
|
} : void 0]), 1040, ["extra", "name"])) : D("", !0),
|
|
2836
|
-
e.field.type === "divider" ? (
|
|
2859
|
+
e.field.type === "divider" ? (R(), E(be, {
|
|
2837
2860
|
key: 1,
|
|
2838
2861
|
orientation: e.field.orientation
|
|
2839
2862
|
}, {
|
|
2840
|
-
default:
|
|
2863
|
+
default: K(() => [j(W(e.field.label), 1)]),
|
|
2841
2864
|
_: 1
|
|
2842
2865
|
}, 8, ["orientation"])) : D("", !0),
|
|
2843
|
-
e.field.type === "button" ? (
|
|
2866
|
+
e.field.type === "button" ? (R(), E(xe, {
|
|
2844
2867
|
key: 2,
|
|
2845
2868
|
value: e.model,
|
|
2846
2869
|
"onUpdate:value": t[60] ||= (t) => e.model = t,
|