liyu-pc-base 1.0.818 → 1.0.821
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-C6m69Zxf.js → FieldRender-CWf1lmO2.js} +1 -1
- package/dist/{FieldRender-C6m69Zxf.js.map → FieldRender-CWf1lmO2.js.map} +1 -1
- package/dist/{FieldRender2-l-ad2mIS.js → FieldRender2-DS1HanOb.js} +275 -262
- package/dist/FieldRender2-DS1HanOb.js.map +1 -0
- package/dist/{FormRender3-DkW4dr2H.js → FormRender3-ByeYf048.js} +38 -33
- package/dist/FormRender3-ByeYf048.js.map +1 -0
- package/dist/{RemoteSelectPro-JEL25YVi.js → RemoteSelectPro-UGspfCN0.js} +1 -1
- package/dist/{RemoteSelectPro-JEL25YVi.js.map → RemoteSelectPro-UGspfCN0.js.map} +1 -1
- package/dist/{SearchRender-kNDl65gX.js → SearchRender-A9FKXeDW.js} +1 -1
- package/dist/{SearchRender-kNDl65gX.js.map → SearchRender-A9FKXeDW.js.map} +1 -1
- package/dist/{TinymceEditor-q2sEUESr.js → TinymceEditor-C_nD6tb-.js} +14 -8
- package/dist/TinymceEditor-C_nD6tb-.js.map +1 -0
- package/dist/components/index.js +7 -7
- package/dist/index.js +1 -1
- package/dist/liyu-pc-base.css +1 -1
- package/dist/{tableModal-B22wvuYk.js → tableModal-Bhqi_JEq.js} +1 -1
- package/dist/{tableModal-B22wvuYk.js.map → tableModal-Bhqi_JEq.js.map} +1 -1
- package/dist/{tablePro-Djf-Kq-X.js → tablePro-B4f5lZnM.js} +2 -2
- package/dist/{tablePro-Djf-Kq-X.js.map → tablePro-B4f5lZnM.js.map} +1 -1
- package/package.json +1 -1
- package/dist/FieldRender2-l-ad2mIS.js.map +0 -1
- package/dist/FormRender3-DkW4dr2H.js.map +0 -1
- package/dist/TinymceEditor-q2sEUESr.js.map +0 -1
|
@@ -6,26 +6,26 @@ import { t as i } from "./lodash-CMVwnWxD.js";
|
|
|
6
6
|
import { getApiData as a } from "./api/api-model.js";
|
|
7
7
|
import { N as o, P as s, k as c, n as l, s as u } from "./function-aZC5WIb7.js";
|
|
8
8
|
import { i as d, t as f } from "./RemoteModal-B7gZHfEy.js";
|
|
9
|
-
import { n as p, r as m, t as h } from "./RemoteSelectPro-
|
|
9
|
+
import { n as p, r as m, t as h } from "./RemoteSelectPro-UGspfCN0.js";
|
|
10
10
|
import { t as g } from "./RemoteFilterSelect-BthY6Fyt.js";
|
|
11
11
|
import { t as _ } from "./AttributeNomTable-DHED22ju.js";
|
|
12
12
|
import { t as v } from "./AttributeTable-muxdKpWW.js";
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
13
|
+
import { t as y } from "./JsonStr-JwOPdAYW.js";
|
|
14
|
+
import { t as b } from "./JsonObj-CmylW4Or.js";
|
|
15
|
+
import { t as ee } from "./RemoteText-DwRLI0xq.js";
|
|
16
16
|
import { t as x } from "./modal-tools-CrXdI5sg.js";
|
|
17
17
|
import { resolveContextValue as S } from "./components/FormRender/utils.js";
|
|
18
18
|
import { exportJsonToExcelByTokenHeader as te } from "./utils/excel.js";
|
|
19
|
-
import { a as ne, c as re, d as C, f as
|
|
20
|
-
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 le, defineComponent as L, h as ue,
|
|
21
|
-
import { Modal as
|
|
22
|
-
import { debounce as
|
|
19
|
+
import { a as ne, c as re, d as C, f as ie, i as ae, l as w, n as oe, o as se, r as T, s as E, t as ce, u as D } from "./TinymceEditor-C_nD6tb-.js";
|
|
20
|
+
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 le, defineComponent as L, h as ue, inject as de, mergeModels as R, mergeProps as fe, normalizeClass as pe, normalizeStyle as me, onMounted as z, onUnmounted as he, openBlock as B, reactive as V, ref as H, renderList as U, renderSlot as ge, resolveComponent as W, resolveDynamicComponent as G, toDisplayString as K, unref as _e, useModel as ve, vShow as ye, watch as q, withCtx as J, withDirectives as be } from "vue";
|
|
21
|
+
import { Modal as xe, message as Se } from "ant-design-vue";
|
|
22
|
+
import { debounce as Ce, isArray as we } from "lodash-es";
|
|
23
23
|
import Y from "moment";
|
|
24
|
-
import { ExclamationCircleOutlined as
|
|
25
|
-
import { useI18n as
|
|
26
|
-
import
|
|
24
|
+
import { ExclamationCircleOutlined as Te, PlusOutlined as Ee } from "@ant-design/icons-vue";
|
|
25
|
+
import { useI18n as De } from "vue-i18n";
|
|
26
|
+
import Oe from "mitt";
|
|
27
27
|
//#region src/components/FormRender/FormTemplate/FormItem.vue?vue&type=script&lang.ts
|
|
28
|
-
var
|
|
28
|
+
var ke = L({
|
|
29
29
|
name: "FormTemplate",
|
|
30
30
|
components: {},
|
|
31
31
|
props: {
|
|
@@ -79,11 +79,15 @@ var Oe = L({
|
|
|
79
79
|
workerHostFunctions: {
|
|
80
80
|
type: Object,
|
|
81
81
|
default: () => {}
|
|
82
|
+
},
|
|
83
|
+
lockStructure: {
|
|
84
|
+
type: Boolean,
|
|
85
|
+
default: !1
|
|
82
86
|
}
|
|
83
87
|
},
|
|
84
88
|
emits: ["update:value", "remove"],
|
|
85
89
|
setup(e, { emit: t }) {
|
|
86
|
-
let n = V({ ...e.field.form.rules }), r = H({}), i = le(() => import("./FormRender3-
|
|
90
|
+
let n = V({ ...e.field.form.rules }), r = H({}), i = le(() => import("./FormRender3-ByeYf048.js").then((e) => e.n)), a, o = () => {
|
|
87
91
|
let e = /* @__PURE__ */ new Uint8Array(16);
|
|
88
92
|
return window.crypto.getRandomValues(e), Array.from(e, (e) => e.toString(16).padStart(2, "0")).join("");
|
|
89
93
|
}, s = H([]), c = o(), l = ([t, i]) => {
|
|
@@ -99,7 +103,7 @@ var Oe = L({
|
|
|
99
103
|
}, {
|
|
100
104
|
deep: !0,
|
|
101
105
|
immediate: !0
|
|
102
|
-
}),
|
|
106
|
+
}), z(() => {}), he(() => {
|
|
103
107
|
e.nestValidate && delete e.nestValidate[c];
|
|
104
108
|
}), {
|
|
105
109
|
FormRender3Async: i,
|
|
@@ -115,13 +119,13 @@ var Oe = L({
|
|
|
115
119
|
data() {
|
|
116
120
|
return { model: this.value };
|
|
117
121
|
}
|
|
118
|
-
}),
|
|
122
|
+
}), Ae = { class: "form-wrap" }, je = { class: "form-content" }, Me = {
|
|
119
123
|
key: 0,
|
|
120
124
|
class: "form-action"
|
|
121
125
|
};
|
|
122
|
-
function
|
|
126
|
+
function Ne(e, t, n, r, i, a) {
|
|
123
127
|
let o = W("DeleteOutlined"), s = W("a-button");
|
|
124
|
-
return B(), M("div",
|
|
128
|
+
return B(), M("div", Ae, [N("div", je, [(B(), A(G(e.FormRender3Async), {
|
|
125
129
|
form: e.field.form,
|
|
126
130
|
model: e.value,
|
|
127
131
|
"onUpdate:model": t[0] ||= (t) => e.value = t,
|
|
@@ -136,7 +140,8 @@ function Me(e, t, n, r, i, a) {
|
|
|
136
140
|
context: e.context,
|
|
137
141
|
modalType: e.modalType,
|
|
138
142
|
"base-key-path": e.baseKeyPath,
|
|
139
|
-
"worker-host-functions": e.workerHostFunctions
|
|
143
|
+
"worker-host-functions": e.workerHostFunctions,
|
|
144
|
+
"lock-structure": e.lockStructure
|
|
140
145
|
}, null, 40, [
|
|
141
146
|
"form",
|
|
142
147
|
"model",
|
|
@@ -151,8 +156,9 @@ function Me(e, t, n, r, i, a) {
|
|
|
151
156
|
"context",
|
|
152
157
|
"modalType",
|
|
153
158
|
"base-key-path",
|
|
154
|
-
"worker-host-functions"
|
|
155
|
-
|
|
159
|
+
"worker-host-functions",
|
|
160
|
+
"lock-structure"
|
|
161
|
+
]))]), e.field.max_count !== e.min_count && !e.lockStructure ? (B(), M("div", Me, [I(s, {
|
|
156
162
|
onClick: e.removeFormItem,
|
|
157
163
|
size: "small",
|
|
158
164
|
type: "link",
|
|
@@ -161,9 +167,9 @@ function Me(e, t, n, r, i, a) {
|
|
|
161
167
|
}, {
|
|
162
168
|
icon: J(() => [I(o)]),
|
|
163
169
|
_: 1
|
|
164
|
-
}, 8, ["onClick", "disabled"])]))]);
|
|
170
|
+
}, 8, ["onClick", "disabled"])])) : j("", !0)]);
|
|
165
171
|
}
|
|
166
|
-
var
|
|
172
|
+
var Pe = /*#__PURE__*/ n(ke, [["render", Ne], ["__scopeId", "data-v-eef02fa2"]]), Fe = { key: 1 }, Ie = /*#__PURE__*/ n(/* @__PURE__ */ L({
|
|
167
173
|
__name: "TableCell",
|
|
168
174
|
props: {
|
|
169
175
|
field: {
|
|
@@ -223,10 +229,10 @@ var Ne = /*#__PURE__*/ n(Oe, [["render", Me], ["__scopeId", "data-v-d6626b20"]])
|
|
|
223
229
|
layout: "inline",
|
|
224
230
|
class: "table-cell-form"
|
|
225
231
|
}, {
|
|
226
|
-
default: J(() => [
|
|
232
|
+
default: J(() => [be(N("div", { class: pe(["field-cell-item", {
|
|
227
233
|
editable: s.value,
|
|
228
234
|
"item-required": e.has_reqrired
|
|
229
|
-
}]) }, [e.field.type === "dynamicvaluefield" ? (B(), M("span",
|
|
235
|
+
}]) }, [e.field.type === "dynamicvaluefield" ? (B(), M("span", Fe, K(e.model[e.field.name]), 1)) : (B(), A(Rt, {
|
|
230
236
|
is_show_label: !1,
|
|
231
237
|
value: e.model[e.field.name],
|
|
232
238
|
"onUpdate:value": n[0] ||= (t) => e.model[e.field.name] = t,
|
|
@@ -263,12 +269,12 @@ var Ne = /*#__PURE__*/ n(Oe, [["render", Me], ["__scopeId", "data-v-d6626b20"]])
|
|
|
263
269
|
"base-key-path",
|
|
264
270
|
"worker-host-functions",
|
|
265
271
|
"is_form_design"
|
|
266
|
-
]))], 2), [[
|
|
272
|
+
]))], 2), [[ye, i.value]])]),
|
|
267
273
|
_: 1
|
|
268
274
|
}, 8, ["model"]);
|
|
269
275
|
};
|
|
270
276
|
}
|
|
271
|
-
}), [["__scopeId", "data-v-00188241"]]),
|
|
277
|
+
}), [["__scopeId", "data-v-00188241"]]), Le = { key: 0 }, Re = { key: 1 }, ze = /* @__PURE__ */ L({
|
|
272
278
|
__name: "TableSummary",
|
|
273
279
|
props: {
|
|
274
280
|
summaryParams: {
|
|
@@ -305,17 +311,17 @@ var Ne = /*#__PURE__*/ n(Oe, [["render", Me], ["__scopeId", "data-v-d6626b20"]])
|
|
|
305
311
|
}
|
|
306
312
|
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);
|
|
307
313
|
return (t, r) => (B(), M(O, null, [
|
|
308
|
-
e.summaryParams?.column?.field?.addonBefore ? (B(), M("span",
|
|
314
|
+
e.summaryParams?.column?.field?.addonBefore ? (B(), M("span", Le, K(e.summaryParams.column.field.addonBefore), 1)) : j("", !0),
|
|
309
315
|
F(" " + K(n.value) + " ", 1),
|
|
310
|
-
e.summaryParams?.column?.field?.addonAfter ? (B(), M("span",
|
|
316
|
+
e.summaryParams?.column?.field?.addonAfter ? (B(), M("span", Re, K(e.summaryParams.column.field.addonAfter), 1)) : j("", !0)
|
|
311
317
|
], 64));
|
|
312
318
|
}
|
|
313
|
-
}), X = (e) => e.valueKey || "id",
|
|
319
|
+
}), X = (e) => e.valueKey || "id", Be = (e) => e.labelKey || "name", Ve = (e) => {
|
|
314
320
|
let t = [], n = e.labelKeyList || [];
|
|
315
|
-
return n.length > 0 && e.labelKeyType !== 1 ? t.push(X(e), ...n) : t.push(X(e),
|
|
316
|
-
},
|
|
321
|
+
return n.length > 0 && e.labelKeyType !== 1 ? t.push(X(e), ...n) : t.push(X(e), Be(e)), e.extendedFields && e.extendedFields.length > 0 && t.push(...e.extendedFields), [...new Set(t)];
|
|
322
|
+
}, He = (e) => {
|
|
317
323
|
let t = e.labelKeyList || [];
|
|
318
|
-
return t.length > 0 && e.labelKeyType !== 1 ? [...t] : [
|
|
324
|
+
return t.length > 0 && e.labelKeyType !== 1 ? [...t] : [Be(e)];
|
|
319
325
|
}, Z = (e, t, n) => {
|
|
320
326
|
if (n.operator === "not_blank_not_null") t.push({
|
|
321
327
|
field_name: n.field_name,
|
|
@@ -343,7 +349,7 @@ var Ne = /*#__PURE__*/ n(Oe, [["render", Me], ["__scopeId", "data-v-d6626b20"]])
|
|
|
343
349
|
class_name: n.class_name
|
|
344
350
|
});
|
|
345
351
|
}
|
|
346
|
-
},
|
|
352
|
+
}, Ue = (t) => {
|
|
347
353
|
let n = t.required_condition, r = {};
|
|
348
354
|
if (n) {
|
|
349
355
|
let t = e();
|
|
@@ -353,7 +359,7 @@ var Ne = /*#__PURE__*/ n(Oe, [["render", Me], ["__scopeId", "data-v-d6626b20"]])
|
|
|
353
359
|
});
|
|
354
360
|
}
|
|
355
361
|
return r;
|
|
356
|
-
},
|
|
362
|
+
}, We = (e, t, n, r, i) => {
|
|
357
363
|
let a = [], o = [[{
|
|
358
364
|
searchType: 3,
|
|
359
365
|
field_name: "is_active",
|
|
@@ -372,7 +378,7 @@ var Ne = /*#__PURE__*/ n(Oe, [["render", Me], ["__scopeId", "data-v-d6626b20"]])
|
|
|
372
378
|
}) : e.searchType === 3 ? Z(e.value, o, e) : e.searchType === 4 ? Z(S(e.select_name, r, ["formModel", ...i]), o, e) : Z(e.value, o, e);
|
|
373
379
|
}), a.push(o);
|
|
374
380
|
}), a;
|
|
375
|
-
},
|
|
381
|
+
}, Ge = (e, t, n, r, i) => {
|
|
376
382
|
let a = {};
|
|
377
383
|
return e.simpleSearchConditions && e.simpleSearchConditions.forEach((e) => {
|
|
378
384
|
e.searchType === 1 ? Object.keys(n || t).forEach((r) => {
|
|
@@ -381,7 +387,7 @@ var Ne = /*#__PURE__*/ n(Oe, [["render", Me], ["__scopeId", "data-v-d6626b20"]])
|
|
|
381
387
|
e.select_name == n && (a[e.field_name] = t[n]);
|
|
382
388
|
}) : e.searchType === 3 ? a[e.field_name] = e.value : e.searchType === 4 && (a[e.field_name] = S(e.select_name, r, ["formModel", ...i]));
|
|
383
389
|
}), a;
|
|
384
|
-
},
|
|
390
|
+
}, Ke = (e, t, n, r, i) => {
|
|
385
391
|
let a = {
|
|
386
392
|
current: 1,
|
|
387
393
|
pageSize: 200,
|
|
@@ -389,26 +395,26 @@ var Ne = /*#__PURE__*/ n(Oe, [["render", Me], ["__scopeId", "data-v-d6626b20"]])
|
|
|
389
395
|
request_source: "strict",
|
|
390
396
|
is_active: !0,
|
|
391
397
|
...e.init_model || {},
|
|
392
|
-
column_fields:
|
|
393
|
-
sort_fields: e.init_model?.sort_fields ||
|
|
398
|
+
column_fields: Ve(e),
|
|
399
|
+
sort_fields: e.init_model?.sort_fields || He(e),
|
|
394
400
|
conditions: [],
|
|
395
401
|
simpleSearchParams: {}
|
|
396
|
-
}, o =
|
|
402
|
+
}, o = Ue(e);
|
|
397
403
|
if (e.queryType === "simple") {
|
|
398
|
-
let s =
|
|
404
|
+
let s = Ge(e, t, n, r, i), c = {
|
|
399
405
|
...a,
|
|
400
406
|
...s,
|
|
401
407
|
required_condition: o
|
|
402
408
|
};
|
|
403
409
|
return delete c.conditions, delete c.simpleSearchParams, c;
|
|
404
410
|
}
|
|
405
|
-
let s =
|
|
411
|
+
let s = We(e, t, n, r, i), c = {
|
|
406
412
|
...a,
|
|
407
413
|
conditions: s,
|
|
408
414
|
required_condition: o
|
|
409
415
|
};
|
|
410
416
|
return delete c.simpleSearchParams, c;
|
|
411
|
-
},
|
|
417
|
+
}, qe = (e, t, n) => {
|
|
412
418
|
let r = n.every((e) => typeof e == "number" || typeof e == "string" && e.trim() !== "" && !isNaN(Number(e))) ? "int" : "str";
|
|
413
419
|
return t.queryType === "simple" ? e[X(t)] = n.length > 0 ? n.join(",") : "" : (e.conditions && e.conditions.length > 0 || (e.conditions = [[]]), e.conditions[0].push({
|
|
414
420
|
class_name: r,
|
|
@@ -417,10 +423,10 @@ var Ne = /*#__PURE__*/ n(Oe, [["render", Me], ["__scopeId", "data-v-d6626b20"]])
|
|
|
417
423
|
format: "remote",
|
|
418
424
|
field_name: X(t)
|
|
419
425
|
})), e;
|
|
420
|
-
},
|
|
426
|
+
}, Je = (e, t) => {
|
|
421
427
|
let n = (e) => X(t) === "id" ? isNaN(Number(e)) ? e : Number(e) : e;
|
|
422
428
|
return t.mode === "default" || !t.mode ? e || e === 0 ? [n(e)] : [] : typeof e == "string" ? e.split(",").map(n) : e instanceof Array ? e.map(n) : e == null ? [] : [n(e)];
|
|
423
|
-
},
|
|
429
|
+
}, Ye = (e, t) => {
|
|
424
430
|
if (e.labelKeyList && e.labelKeyList.length > 0 && e.labelKeyType !== 1) {
|
|
425
431
|
let n = [];
|
|
426
432
|
for (let r of e.labelKeyList) {
|
|
@@ -429,15 +435,15 @@ var Ne = /*#__PURE__*/ n(Oe, [["render", Me], ["__scopeId", "data-v-d6626b20"]])
|
|
|
429
435
|
}
|
|
430
436
|
return n.join(e.labelSpace || "-");
|
|
431
437
|
}
|
|
432
|
-
let n = t[
|
|
438
|
+
let n = t[Be(e)];
|
|
433
439
|
return n == null ? "" : String(n);
|
|
434
440
|
};
|
|
435
|
-
async function
|
|
441
|
+
async function Xe(e) {
|
|
436
442
|
let { field: t, targets: n, baseKeyPath: r, context: i } = e;
|
|
437
443
|
if (!t.postUrl || !n || n.length === 0) return {};
|
|
438
444
|
let o = /* @__PURE__ */ new Map();
|
|
439
445
|
for (let e of n) {
|
|
440
|
-
let n = [...r, e.rowIndex], a =
|
|
446
|
+
let n = [...r, e.rowIndex], a = Ke(t, e.row || {}, {}, i, n), s = Je(e.row?.[t.name], t);
|
|
441
447
|
if (s.length === 0) continue;
|
|
442
448
|
let c = JSON.stringify(a);
|
|
443
449
|
o.has(c) || o.set(c, {
|
|
@@ -454,7 +460,7 @@ async function Ye(e) {
|
|
|
454
460
|
if (n.length !== 0) {
|
|
455
461
|
for (let r = 0; r < n.length; r += 100) {
|
|
456
462
|
let i = n.slice(r, r + 100), o = JSON.parse(JSON.stringify(e.params));
|
|
457
|
-
|
|
463
|
+
qe(o, t, i);
|
|
458
464
|
let s = [];
|
|
459
465
|
try {
|
|
460
466
|
s = (await a(o, t.postUrl, !1, { skip_error: !0 }))?.data || [];
|
|
@@ -464,7 +470,7 @@ async function Ye(e) {
|
|
|
464
470
|
for (let e of s) {
|
|
465
471
|
let n = e[X(t)], r = String(n);
|
|
466
472
|
c.has(r) || c.set(r, {
|
|
467
|
-
label:
|
|
473
|
+
label: Ye(t, e),
|
|
468
474
|
option: e
|
|
469
475
|
});
|
|
470
476
|
}
|
|
@@ -492,16 +498,16 @@ async function Ye(e) {
|
|
|
492
498
|
}
|
|
493
499
|
//#endregion
|
|
494
500
|
//#region src/components/FormRender/FormTemplate/FormTemplateTable.vue?vue&type=script&setup=true&lang.ts
|
|
495
|
-
var
|
|
501
|
+
var Ze = {
|
|
496
502
|
key: 0,
|
|
497
503
|
class: "required-star"
|
|
498
|
-
},
|
|
504
|
+
}, Qe = {
|
|
499
505
|
key: 0,
|
|
500
506
|
class: "cell-item"
|
|
501
|
-
},
|
|
507
|
+
}, $e = {
|
|
502
508
|
key: 1,
|
|
503
509
|
class: "cell-item"
|
|
504
|
-
},
|
|
510
|
+
}, et = /*#__PURE__*/ n(/* @__PURE__ */ L({
|
|
505
511
|
__name: "FormTemplateTable",
|
|
506
512
|
props: {
|
|
507
513
|
value: {},
|
|
@@ -514,7 +520,8 @@ var Xe = {
|
|
|
514
520
|
workerHostFunctions: {},
|
|
515
521
|
is_form_design: { type: Boolean },
|
|
516
522
|
min_count: {},
|
|
517
|
-
formModel: {}
|
|
523
|
+
formModel: {},
|
|
524
|
+
lockStructure: { type: Boolean }
|
|
518
525
|
},
|
|
519
526
|
emits: ["remove", "labels_resolved"],
|
|
520
527
|
setup(e, { emit: t }) {
|
|
@@ -555,9 +562,9 @@ var Xe = {
|
|
|
555
562
|
v();
|
|
556
563
|
}, { deep: !0 }), q(() => r.context, () => {
|
|
557
564
|
v();
|
|
558
|
-
}, { deep: !0 }),
|
|
565
|
+
}, { deep: !0 }), z(() => {
|
|
559
566
|
v(), x();
|
|
560
|
-
}),
|
|
567
|
+
}), he(() => {
|
|
561
568
|
r.nestValidate && delete r.nestValidate[l], x.cancel(), i("labels_resolved");
|
|
562
569
|
});
|
|
563
570
|
let h = k(() => {
|
|
@@ -630,16 +637,16 @@ var Xe = {
|
|
|
630
637
|
}
|
|
631
638
|
}
|
|
632
639
|
f.value = e;
|
|
633
|
-
},
|
|
640
|
+
}, y = (e) => {
|
|
634
641
|
c.value.splice(e, 1), i("remove", e);
|
|
635
|
-
},
|
|
642
|
+
}, b = () => {
|
|
636
643
|
let e = [];
|
|
637
644
|
return r.field?.form?.dynamicFieldList?.forEach((t) => {
|
|
638
645
|
t.children instanceof Array && t.children.forEach((t) => {
|
|
639
646
|
t.type === "remoteselectpro" && t.postUrl && !t.is_table_hide_column && e.push(t);
|
|
640
647
|
});
|
|
641
648
|
}), e;
|
|
642
|
-
},
|
|
649
|
+
}, ee = (e, t, n) => {
|
|
643
650
|
if (!e) return !1;
|
|
644
651
|
let i = e[t.name];
|
|
645
652
|
if (!(i != null && i !== "" && !(i instanceof Array && i.length === 0))) return !1;
|
|
@@ -647,20 +654,20 @@ var Xe = {
|
|
|
647
654
|
if (a == null || a === "" || a instanceof Array && a.length === 0) return !0;
|
|
648
655
|
let o = r.innerModel?.[r.field.name]?.[n];
|
|
649
656
|
return !o || o[t.name] === void 0 || o[t.name] === null;
|
|
650
|
-
}, x =
|
|
657
|
+
}, x = Ce(async () => {
|
|
651
658
|
if (!r.is_form_design) try {
|
|
652
|
-
let e =
|
|
659
|
+
let e = b();
|
|
653
660
|
if (e.length === 0 || !r.value || r.value.length === 0) return;
|
|
654
661
|
let t = r.value;
|
|
655
662
|
for (let n of e) {
|
|
656
663
|
let e = [];
|
|
657
664
|
if (t.forEach((t, r) => {
|
|
658
|
-
|
|
665
|
+
ee(t, n, r) && e.push({
|
|
659
666
|
rowIndex: r,
|
|
660
667
|
row: t
|
|
661
668
|
});
|
|
662
669
|
}), e.length === 0) continue;
|
|
663
|
-
let i = await
|
|
670
|
+
let i = await Xe({
|
|
664
671
|
field: n,
|
|
665
672
|
targets: e,
|
|
666
673
|
baseKeyPath: [...r.baseKeyPath || [], r.field.name],
|
|
@@ -719,9 +726,9 @@ var Xe = {
|
|
|
719
726
|
"onUpdate:pagination": t[0] ||= (e) => n.value = e,
|
|
720
727
|
rangeSelection: !1
|
|
721
728
|
}, P({
|
|
722
|
-
headerCell: J(({ column: e }) => [N("span", null, K(e.title), 1), e.has_reqrired ? (B(), M("span",
|
|
723
|
-
bodyCell: J(({ column: t, record: n }) => [t.key === "action" ? (B(), M("div",
|
|
724
|
-
onClick: (e) =>
|
|
729
|
+
headerCell: J(({ column: e }) => [N("span", null, K(e.title), 1), e.has_reqrired ? (B(), M("span", Ze, " * ")) : j("", !0)]),
|
|
730
|
+
bodyCell: J(({ column: t, record: n }) => [t.key === "action" ? (B(), M(O, { key: 0 }, [e.lockStructure ? j("", !0) : (B(), M("div", Qe, [I(i, {
|
|
731
|
+
onClick: (e) => y(n._key),
|
|
725
732
|
size: "small",
|
|
726
733
|
type: "link",
|
|
727
734
|
danger: "",
|
|
@@ -729,7 +736,7 @@ var Xe = {
|
|
|
729
736
|
}, {
|
|
730
737
|
icon: J(() => [I(r)]),
|
|
731
738
|
_: 2
|
|
732
|
-
}, 1032, ["onClick", "disabled"])])) : t.key === "index" ? (B(), M("div",
|
|
739
|
+
}, 1032, ["onClick", "disabled"])]))], 64)) : t.key === "index" ? (B(), M("div", $e, K(n._key + 1), 1)) : t.field ? (B(), A(Ie, {
|
|
733
740
|
key: `${n._key}_${t.dataIndex}`,
|
|
734
741
|
field: t.field,
|
|
735
742
|
model: e.value[n._key],
|
|
@@ -774,7 +781,7 @@ var Xe = {
|
|
|
774
781
|
key: e.index,
|
|
775
782
|
index: e.index
|
|
776
783
|
}, {
|
|
777
|
-
default: J((e) => [I(
|
|
784
|
+
default: J((e) => [I(ze, {
|
|
778
785
|
"summary-params": e,
|
|
779
786
|
tableDataSource: g.value
|
|
780
787
|
}, null, 8, ["summary-params", "tableDataSource"])]),
|
|
@@ -793,11 +800,11 @@ var Xe = {
|
|
|
793
800
|
}, 8, ["dynamic-title"]);
|
|
794
801
|
};
|
|
795
802
|
}
|
|
796
|
-
}), [["__scopeId", "data-v-
|
|
797
|
-
function
|
|
803
|
+
}), [["__scopeId", "data-v-45a6db00"]]), tt = /* @__PURE__ */ new Set();
|
|
804
|
+
function nt(e, t = []) {
|
|
798
805
|
return [...t, e.name || e.code || "field"].join("__");
|
|
799
806
|
}
|
|
800
|
-
async function
|
|
807
|
+
async function rt(e) {
|
|
801
808
|
try {
|
|
802
809
|
let t = e.serialConfig || {};
|
|
803
810
|
return { value: await a({
|
|
@@ -813,7 +820,7 @@ async function nt(e) {
|
|
|
813
820
|
};
|
|
814
821
|
}
|
|
815
822
|
}
|
|
816
|
-
async function
|
|
823
|
+
async function it(e) {
|
|
817
824
|
let { field: t, currentValue: n, innerModel: r, globalInnerModel: i, formModel: o, context: s, baseKeyPath: l = [], workerHostFunctions: d = {}, is_form_design: f = !1 } = e;
|
|
818
825
|
if (t.watchType === "scoped") {
|
|
819
826
|
if (t.valueType === "single") {
|
|
@@ -876,11 +883,11 @@ async function rt(e) {
|
|
|
876
883
|
};
|
|
877
884
|
}
|
|
878
885
|
else if (t.watchType === "serial") {
|
|
879
|
-
if (f) return await
|
|
886
|
+
if (f) return await rt(t);
|
|
880
887
|
if (n != null && n !== "") return null;
|
|
881
|
-
let e =
|
|
882
|
-
if (
|
|
883
|
-
|
|
888
|
+
let e = nt(t, l);
|
|
889
|
+
if (tt.has(e)) return null;
|
|
890
|
+
tt.add(e);
|
|
884
891
|
try {
|
|
885
892
|
let e = t.serialConfig || {}, r = await a({
|
|
886
893
|
org_id: c(),
|
|
@@ -894,23 +901,23 @@ async function rt(e) {
|
|
|
894
901
|
error: e?.message || "流水号分配失败"
|
|
895
902
|
};
|
|
896
903
|
} finally {
|
|
897
|
-
|
|
904
|
+
tt.delete(e);
|
|
898
905
|
}
|
|
899
906
|
}
|
|
900
907
|
return null;
|
|
901
908
|
}
|
|
902
909
|
//#endregion
|
|
903
910
|
//#region src/components/FormRender/addonValue.ts
|
|
904
|
-
var
|
|
905
|
-
if (!
|
|
911
|
+
var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) => t && e.endsWith(t) ? e.slice(0, -t.length) : e, st = (e) => e != null && !(e instanceof Array) && typeof e != "object", ct = (e, t) => {
|
|
912
|
+
if (!st(t)) return t;
|
|
906
913
|
let n = `${t}`;
|
|
907
|
-
return e?.extraAddonAfter && e?.addonAfter && (n =
|
|
908
|
-
},
|
|
909
|
-
let n =
|
|
910
|
-
if (!
|
|
914
|
+
return e?.extraAddonAfter && e?.addonAfter && (n = ot(n, e.addonAfter)), e?.extraAddonBefore && e?.addonBefore && (n = at(n, e.addonBefore)), n;
|
|
915
|
+
}, lt = (e, t) => {
|
|
916
|
+
let n = ct(e, t);
|
|
917
|
+
if (!st(n) || n === "") return n;
|
|
911
918
|
let r = `${n}`;
|
|
912
919
|
return e?.extraAddonBefore && e?.addonBefore && (r = `${e.addonBefore}${r}`), e?.extraAddonAfter && e?.addonAfter && (r = `${r}${e.addonAfter}`), r;
|
|
913
|
-
}, Q = i(),
|
|
920
|
+
}, Q = i(), ut = { class: "top_btn" }, dt = /*#__PURE__*/ n(/* @__PURE__ */ L({
|
|
914
921
|
__name: "FormTemplate",
|
|
915
922
|
props: {
|
|
916
923
|
field: {},
|
|
@@ -928,34 +935,35 @@ var it = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, at = (e, t) =>
|
|
|
928
935
|
context: {},
|
|
929
936
|
baseKeyPath: {},
|
|
930
937
|
workerHostFunctions: {},
|
|
931
|
-
contextOptions: {}
|
|
938
|
+
contextOptions: {},
|
|
939
|
+
lockStructure: { type: Boolean }
|
|
932
940
|
},
|
|
933
941
|
emits: ["update:value"],
|
|
934
942
|
setup(e, { emit: t }) {
|
|
935
|
-
let n = e, r =
|
|
943
|
+
let n = e, r = de("FORM_LOCK_STRUCTURE", H(!1)), i = k(() => !!n.lockStructure || !!_e(r)), a = t, o = H(0), s = Oe(), c = [{
|
|
936
944
|
label: "添加(add)",
|
|
937
945
|
value: "add"
|
|
938
946
|
}, {
|
|
939
947
|
label: "整体更新(update)",
|
|
940
948
|
value: "update"
|
|
941
|
-
}],
|
|
942
|
-
|
|
949
|
+
}], l = le(() => import("./ImportExcelModal-Dds857L2.js")), d = k(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("download"))), f = k(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("import"))), p = () => {
|
|
950
|
+
xe.confirm({
|
|
943
951
|
title: "确认清空吗?",
|
|
944
|
-
icon: I(
|
|
952
|
+
icon: I(Te),
|
|
945
953
|
content: "清空后将无法恢复",
|
|
946
954
|
okText: "确认",
|
|
947
955
|
cancelText: "取消",
|
|
948
956
|
onOk: () => {
|
|
949
|
-
|
|
957
|
+
a("update:value", []);
|
|
950
958
|
}
|
|
951
959
|
});
|
|
952
|
-
},
|
|
960
|
+
}, m = k(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("clear"))), h = k(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("add"))), g = {}, _ = {}, v = () => {
|
|
953
961
|
let e = [], t = n.field.form?.dynamicFieldList || [];
|
|
954
962
|
t.forEach((t) => {
|
|
955
963
|
t.children instanceof Array && t.children.forEach((t) => {
|
|
956
964
|
if (t.is_table_hide_column || t.type === "dynamicvaluefield") return;
|
|
957
965
|
let r = { ...t };
|
|
958
|
-
t?.name2 && (
|
|
966
|
+
t?.name2 && (g[t.name] = t?.name2), t.type === "remoteselectpro" && (_[t.name] = t), [
|
|
959
967
|
"select",
|
|
960
968
|
"radio",
|
|
961
969
|
"checkbox",
|
|
@@ -964,19 +972,19 @@ var it = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, at = (e, t) =>
|
|
|
964
972
|
].includes(t.type) && (r.options = n.field.form?.options?.[t.name] || t.options), e.push(r);
|
|
965
973
|
});
|
|
966
974
|
});
|
|
967
|
-
let
|
|
975
|
+
let r = V({
|
|
968
976
|
open: !0,
|
|
969
977
|
loading: !1,
|
|
970
|
-
component:
|
|
978
|
+
component: l,
|
|
971
979
|
title: "导入Excel数据",
|
|
972
980
|
configList: e,
|
|
973
981
|
ok: (e) => {
|
|
974
|
-
let
|
|
982
|
+
let i = [], o = [];
|
|
975
983
|
e.forEach((e) => {
|
|
976
984
|
let r = (0, Q.cloneDeep)(n.field.form.model || {});
|
|
977
985
|
Object.keys(e).forEach((t) => {
|
|
978
|
-
e[t].error &&
|
|
979
|
-
let n =
|
|
986
|
+
e[t].error && i.push(ue("li", e[t].error + "(" + e[t].excel_position + ")")), r[t] = e[t].value, g[t] && (r[g[t]] = e[t].raw_value);
|
|
987
|
+
let n = _[t];
|
|
980
988
|
if (n) {
|
|
981
989
|
let i = e[t].raw_value;
|
|
982
990
|
i != null && i !== "" && (n.mode === "default" || !n.mode) && (r[t + ".label"] = i);
|
|
@@ -986,18 +994,18 @@ var it = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, at = (e, t) =>
|
|
|
986
994
|
e.type === "dynamicvaluefield" && delete r[e.name];
|
|
987
995
|
});
|
|
988
996
|
}), o.push(r);
|
|
989
|
-
}),
|
|
997
|
+
}), i.length > 0 ? xe.warning({
|
|
990
998
|
title: "导入Excel报错, 请改正后再尝试导入",
|
|
991
|
-
content: ue("ol",
|
|
992
|
-
icon: I(
|
|
993
|
-
}) :
|
|
999
|
+
content: ue("ol", i),
|
|
1000
|
+
icon: I(Te)
|
|
1001
|
+
}) : a("update:value", [...n.value || [], ...o]), r.open = !1;
|
|
994
1002
|
},
|
|
995
1003
|
onCancel: () => {
|
|
996
|
-
|
|
1004
|
+
r.open = !1;
|
|
997
1005
|
}
|
|
998
1006
|
});
|
|
999
|
-
x(
|
|
1000
|
-
},
|
|
1007
|
+
x(r);
|
|
1008
|
+
}, y = H(!1), b = (e) => {
|
|
1001
1009
|
if (n.field?.form?.rules) {
|
|
1002
1010
|
let t = n.field?.form?.rules[e];
|
|
1003
1011
|
if (t) {
|
|
@@ -1006,11 +1014,11 @@ var it = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, at = (e, t) =>
|
|
|
1006
1014
|
}
|
|
1007
1015
|
return !1;
|
|
1008
1016
|
}, ee = () => {
|
|
1009
|
-
|
|
1017
|
+
y.value = !0;
|
|
1010
1018
|
let e = [], t = [];
|
|
1011
1019
|
(n.field.form?.dynamicFieldList || []).forEach((r) => {
|
|
1012
1020
|
r.children instanceof Array && r.children.forEach((r) => {
|
|
1013
|
-
r.is_hide || r.is_table_hide_column || r.type !== "dynamicvaluefield" && (e.push(
|
|
1021
|
+
r.is_hide || r.is_table_hide_column || r.type !== "dynamicvaluefield" && (e.push(b(r.name) ? { title: [r.label, {
|
|
1014
1022
|
text: "[必填]",
|
|
1015
1023
|
color: "FFFF0000"
|
|
1016
1024
|
}] } : { title: [r.label] }), n.value && n.value.length > 0 ? t.push(n.value[0][r.name] ? n.value[0][r.name].toString() : "") : t.push(""));
|
|
@@ -1021,16 +1029,16 @@ var it = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, at = (e, t) =>
|
|
|
1021
1029
|
filename: n.field.label || "导入模板",
|
|
1022
1030
|
header: e
|
|
1023
1031
|
}), setTimeout(() => {
|
|
1024
|
-
|
|
1032
|
+
y.value = !1;
|
|
1025
1033
|
}, 1500);
|
|
1026
|
-
},
|
|
1034
|
+
}, S = k(() => n.field.min_count ?? 0), ne = k(() => {
|
|
1027
1035
|
if (n.innerModel) {
|
|
1028
1036
|
n.innerModel[n.field.name] || (n.innerModel[n.field.name] = []);
|
|
1029
1037
|
for (let e = 0; e < n.value.length; e++) n.innerModel[n.field.name][e] || (n.innerModel[n.field.name][e] = {});
|
|
1030
1038
|
return n.innerModel[n.field.name];
|
|
1031
1039
|
}
|
|
1032
1040
|
return [];
|
|
1033
|
-
}),
|
|
1041
|
+
}), re = async (e) => {
|
|
1034
1042
|
if (e.code) {
|
|
1035
1043
|
let t;
|
|
1036
1044
|
try {
|
|
@@ -1040,15 +1048,15 @@ var it = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, at = (e, t) =>
|
|
|
1040
1048
|
keyPath: [...n.baseKeyPath, n.field.name]
|
|
1041
1049
|
}, n.workerHostFunctions || {});
|
|
1042
1050
|
} catch (e) {
|
|
1043
|
-
|
|
1051
|
+
Se.error(e.message);
|
|
1044
1052
|
return;
|
|
1045
1053
|
}
|
|
1046
1054
|
if (e.action == "add") {
|
|
1047
1055
|
if (t) {
|
|
1048
1056
|
let e = (0, Q.cloneDeep)(n.field.form.model || {});
|
|
1049
1057
|
Object.assign(e, t);
|
|
1050
|
-
let
|
|
1051
|
-
|
|
1058
|
+
let r = JSON.parse(JSON.stringify(n.value)) || [];
|
|
1059
|
+
r.push(e), a("update:value", r);
|
|
1052
1060
|
}
|
|
1053
1061
|
} else if (e.action == "update" && t instanceof Array) {
|
|
1054
1062
|
let e = [];
|
|
@@ -1056,28 +1064,28 @@ var it = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, at = (e, t) =>
|
|
|
1056
1064
|
let t = (0, Q.cloneDeep)(n.field.form.model || {});
|
|
1057
1065
|
Object.assign(t, r), e.push(t);
|
|
1058
1066
|
}
|
|
1059
|
-
|
|
1067
|
+
a("update:value", e);
|
|
1060
1068
|
}
|
|
1061
1069
|
}
|
|
1062
|
-
},
|
|
1070
|
+
}, ie = () => {
|
|
1063
1071
|
let e = n.value || [];
|
|
1064
|
-
e.push((0, Q.cloneDeep)(n.field.form.model || {})),
|
|
1065
|
-
},
|
|
1072
|
+
e.push((0, Q.cloneDeep)(n.field.form.model || {})), a("update:value", e);
|
|
1073
|
+
}, ae = (e) => {
|
|
1066
1074
|
let t = n.value || [];
|
|
1067
|
-
t.splice(e, 1),
|
|
1075
|
+
t.splice(e, 1), a("update:value", t);
|
|
1068
1076
|
}, w = (0, Q.debounce)(() => {
|
|
1069
|
-
|
|
1070
|
-
}, 200),
|
|
1077
|
+
o.value = window.innerHeight - 165;
|
|
1078
|
+
}, 200), oe = () => {
|
|
1071
1079
|
x(V({
|
|
1072
1080
|
open: !0,
|
|
1073
1081
|
loading: !1,
|
|
1074
1082
|
component: "InnerFormDesignModal",
|
|
1075
1083
|
record: { value: n.field.form || {} },
|
|
1076
|
-
height:
|
|
1084
|
+
height: o.value,
|
|
1077
1085
|
enableBatchAdd: !0,
|
|
1078
1086
|
modalTypeList: n.modalTypeList,
|
|
1079
1087
|
modalType: n.modalType,
|
|
1080
|
-
eventBus:
|
|
1088
|
+
eventBus: s,
|
|
1081
1089
|
contextOptions: n.contextOptions,
|
|
1082
1090
|
ok: (e) => {
|
|
1083
1091
|
n.field.form = e;
|
|
@@ -1088,149 +1096,149 @@ var it = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, at = (e, t) =>
|
|
|
1088
1096
|
}));
|
|
1089
1097
|
};
|
|
1090
1098
|
q(() => n.value, (e) => {
|
|
1091
|
-
if (!(e instanceof Array) || e.length <
|
|
1099
|
+
if (!(e instanceof Array) || e.length < S.value) {
|
|
1092
1100
|
let t = [...e || []];
|
|
1093
|
-
for (; t.length <
|
|
1094
|
-
|
|
1101
|
+
for (; t.length < S.value;) t.push((0, Q.cloneDeep)(n.field.form.model || {}));
|
|
1102
|
+
a("update:value", t);
|
|
1095
1103
|
}
|
|
1096
1104
|
});
|
|
1097
|
-
let
|
|
1105
|
+
let se = k(() => {
|
|
1098
1106
|
let e = [];
|
|
1099
1107
|
return (n.field?.form?.dynamicFieldList || []).forEach((t) => {
|
|
1100
1108
|
t.children instanceof Array && t.children.forEach((t) => {
|
|
1101
1109
|
t.type === "dynamicvaluefield" && e.push(t);
|
|
1102
1110
|
});
|
|
1103
1111
|
}), e;
|
|
1104
|
-
}),
|
|
1112
|
+
}), T = k(() => {
|
|
1105
1113
|
let e = [];
|
|
1106
1114
|
return (n.field?.form?.dynamicFieldList || []).forEach((t) => {
|
|
1107
1115
|
t.children instanceof Array && t.children.forEach((t) => {
|
|
1108
1116
|
(t.extraAddonBefore && t.addonBefore || t.extraAddonAfter && t.addonAfter) && e.push(t);
|
|
1109
1117
|
});
|
|
1110
1118
|
}), e;
|
|
1111
|
-
}),
|
|
1112
|
-
|
|
1113
|
-
},
|
|
1114
|
-
if (!
|
|
1115
|
-
|
|
1119
|
+
}), E = H(!1), ce = k(() => n.field?.showType !== "table" || n.is_form_design ? !1 : (n.field?.form?.dynamicFieldList || []).some((e) => e.children instanceof Array && e.children.some((e) => e.type === "remoteselectpro" && e.postUrl && !e.is_table_hide_column))), D = H(!1), P = () => {
|
|
1120
|
+
D.value = !1, L(), R();
|
|
1121
|
+
}, L = (0, Q.debounce)(async () => {
|
|
1122
|
+
if (!E.value && !D.value) {
|
|
1123
|
+
E.value = !0;
|
|
1116
1124
|
try {
|
|
1117
1125
|
let e = n.value;
|
|
1118
|
-
if (!e || e.length === 0 ||
|
|
1119
|
-
let t = !1,
|
|
1120
|
-
for (let e = 0; e <
|
|
1121
|
-
let
|
|
1126
|
+
if (!e || e.length === 0 || se.value.length === 0) return;
|
|
1127
|
+
let t = !1, r = [...e];
|
|
1128
|
+
for (let e = 0; e < r.length; e++) {
|
|
1129
|
+
let i = ne.value[e], a = [
|
|
1122
1130
|
...n.baseKeyPath || [],
|
|
1123
1131
|
n.field.name,
|
|
1124
1132
|
e
|
|
1125
1133
|
];
|
|
1126
|
-
for (let o of
|
|
1127
|
-
let s =
|
|
1134
|
+
for (let o of se.value) {
|
|
1135
|
+
let s = r[e]?.[o.name], c = await it({
|
|
1128
1136
|
field: o,
|
|
1129
1137
|
currentValue: s,
|
|
1130
|
-
innerModel:
|
|
1138
|
+
innerModel: i,
|
|
1131
1139
|
globalInnerModel: n.globalInnerModel,
|
|
1132
|
-
formModel:
|
|
1140
|
+
formModel: r[e],
|
|
1133
1141
|
context: n.context,
|
|
1134
1142
|
baseKeyPath: a,
|
|
1135
1143
|
workerHostFunctions: n.workerHostFunctions || {},
|
|
1136
1144
|
is_form_design: n.is_form_design
|
|
1137
1145
|
});
|
|
1138
|
-
c && c.value !== void 0 && c.value !== null && (
|
|
1139
|
-
...
|
|
1146
|
+
c && c.value !== void 0 && c.value !== null && (r[e] = {
|
|
1147
|
+
...r[e],
|
|
1140
1148
|
[o.name]: c.value
|
|
1141
1149
|
}, t = !0);
|
|
1142
1150
|
}
|
|
1143
1151
|
}
|
|
1144
|
-
t &&
|
|
1152
|
+
t && a("update:value", r);
|
|
1145
1153
|
} finally {
|
|
1146
|
-
|
|
1154
|
+
E.value = !1;
|
|
1147
1155
|
}
|
|
1148
1156
|
}
|
|
1149
|
-
}, 200),
|
|
1157
|
+
}, 200), R = (0, Q.debounce)(() => {
|
|
1150
1158
|
let e = n.value;
|
|
1151
|
-
if (!e || e.length === 0 ||
|
|
1152
|
-
let t = !1,
|
|
1153
|
-
for (let e = 0; e <
|
|
1154
|
-
let n =
|
|
1159
|
+
if (!e || e.length === 0 || T.value.length === 0) return;
|
|
1160
|
+
let t = !1, r = [...e];
|
|
1161
|
+
for (let e = 0; e < r.length; e++) {
|
|
1162
|
+
let n = r[e];
|
|
1155
1163
|
if (!n || typeof n != "object") continue;
|
|
1156
|
-
let
|
|
1157
|
-
for (let e of
|
|
1158
|
-
let
|
|
1159
|
-
a !==
|
|
1164
|
+
let i = n;
|
|
1165
|
+
for (let e of T.value) {
|
|
1166
|
+
let r = i[e.name], a = lt(e, r);
|
|
1167
|
+
a !== r && (i === n && (i = { ...n }), i[e.name] = a, t = !0);
|
|
1160
1168
|
}
|
|
1161
|
-
|
|
1169
|
+
r[e] = i;
|
|
1162
1170
|
}
|
|
1163
|
-
t &&
|
|
1171
|
+
t && a("update:value", r);
|
|
1164
1172
|
}, 200);
|
|
1165
1173
|
return q(() => [
|
|
1166
1174
|
n.value,
|
|
1167
1175
|
n.context,
|
|
1168
1176
|
n.field
|
|
1169
1177
|
], () => {
|
|
1170
|
-
|
|
1178
|
+
ce.value ? D.value = !0 : D.value = !1, L(), R();
|
|
1171
1179
|
}, {
|
|
1172
1180
|
deep: !0,
|
|
1173
1181
|
immediate: !0
|
|
1174
1182
|
}), q(() => [n.innerModel, n.globalInnerModel], () => {
|
|
1175
|
-
|
|
1176
|
-
}, { deep: !0 }),
|
|
1177
|
-
if (window.addEventListener("resize", w), w(), !(n.value instanceof Array) || n.value.length <
|
|
1183
|
+
L(), R();
|
|
1184
|
+
}, { deep: !0 }), z(() => {
|
|
1185
|
+
if (window.addEventListener("resize", w), w(), !(n.value instanceof Array) || n.value.length < S.value) {
|
|
1178
1186
|
let e = [...n.value || []];
|
|
1179
|
-
for (; e.length <
|
|
1180
|
-
|
|
1187
|
+
for (; e.length < S.value;) e.push((0, Q.cloneDeep)(n.field.form.model || {}));
|
|
1188
|
+
a("update:value", e);
|
|
1181
1189
|
}
|
|
1182
|
-
}),
|
|
1183
|
-
window.removeEventListener("resize", w), w.cancel(),
|
|
1190
|
+
}), he(() => {
|
|
1191
|
+
window.removeEventListener("resize", w), w.cancel(), L.cancel(), R.cancel();
|
|
1184
1192
|
}), (e, t) => {
|
|
1185
1193
|
let n = W("a-button");
|
|
1186
|
-
return B(), M(O, null, [N("div",
|
|
1194
|
+
return B(), M(O, null, [N("div", ut, [
|
|
1187
1195
|
e.is_form_design ? (B(), A(n, {
|
|
1188
1196
|
key: 0,
|
|
1189
1197
|
type: "primary",
|
|
1190
1198
|
size: "small",
|
|
1191
|
-
onClick:
|
|
1199
|
+
onClick: oe,
|
|
1192
1200
|
ghost: !0
|
|
1193
1201
|
}, {
|
|
1194
1202
|
default: J(() => t[0] ||= [F(" 编辑表单 ")]),
|
|
1195
1203
|
_: 1
|
|
1196
1204
|
})) : j("", !0),
|
|
1197
|
-
|
|
1205
|
+
m.value && !i.value ? (B(), A(n, {
|
|
1198
1206
|
key: 1,
|
|
1199
1207
|
size: "small",
|
|
1200
1208
|
type: "primary",
|
|
1201
|
-
onClick:
|
|
1209
|
+
onClick: p,
|
|
1202
1210
|
danger: !0
|
|
1203
1211
|
}, {
|
|
1204
1212
|
default: J(() => t[1] ||= [F(" 清空 ")]),
|
|
1205
1213
|
_: 1
|
|
1206
1214
|
})) : j("", !0),
|
|
1207
|
-
|
|
1215
|
+
d.value && !i.value ? (B(), A(n, {
|
|
1208
1216
|
key: 2,
|
|
1209
1217
|
size: "small",
|
|
1210
1218
|
type: "primary",
|
|
1211
|
-
loading:
|
|
1219
|
+
loading: y.value,
|
|
1212
1220
|
onClick: ee
|
|
1213
1221
|
}, {
|
|
1214
1222
|
default: J(() => t[2] ||= [F(" 下载导入模版 ")]),
|
|
1215
1223
|
_: 1
|
|
1216
1224
|
}, 8, ["loading"])) : j("", !0),
|
|
1217
|
-
|
|
1225
|
+
f.value && !i.value ? (B(), A(n, {
|
|
1218
1226
|
key: 3,
|
|
1219
1227
|
size: "small",
|
|
1220
1228
|
type: "primary",
|
|
1221
|
-
onClick:
|
|
1229
|
+
onClick: v
|
|
1222
1230
|
}, {
|
|
1223
1231
|
default: J(() => t[3] ||= [F(" 导入Excel数据 ")]),
|
|
1224
1232
|
_: 1
|
|
1225
1233
|
})) : j("", !0),
|
|
1226
|
-
|
|
1234
|
+
h.value && (!e.field.custom_btn_list?.length || e.field.max_count !== S.value) && !i.value ? (B(), A(n, {
|
|
1227
1235
|
key: 4,
|
|
1228
1236
|
type: "primary",
|
|
1229
1237
|
size: "small",
|
|
1230
|
-
onClick:
|
|
1238
|
+
onClick: ie,
|
|
1231
1239
|
disabled: e.field.max_count && e.value.length >= e.field.max_count
|
|
1232
1240
|
}, {
|
|
1233
|
-
icon: J(() => [I(
|
|
1241
|
+
icon: J(() => [I(_e(Ee))]),
|
|
1234
1242
|
default: J(() => [F(" " + K(e.field.btn_title || "添加"), 1)]),
|
|
1235
1243
|
_: 1
|
|
1236
1244
|
}, 8, ["disabled"])) : j("", !0),
|
|
@@ -1240,13 +1248,14 @@ var it = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, at = (e, t) =>
|
|
|
1240
1248
|
"onUpdate:code": (e) => t.code = e,
|
|
1241
1249
|
action: t.action,
|
|
1242
1250
|
"onUpdate:action": (e) => t.action = e,
|
|
1243
|
-
options:
|
|
1251
|
+
options: c
|
|
1244
1252
|
}, {
|
|
1245
|
-
default: J(() => [
|
|
1253
|
+
default: J(() => [!i.value || t.show_on_modify ? (B(), A(n, {
|
|
1254
|
+
key: 0,
|
|
1246
1255
|
size: "small",
|
|
1247
1256
|
type: t.type,
|
|
1248
1257
|
danger: t.danger,
|
|
1249
|
-
onClick: (e) =>
|
|
1258
|
+
onClick: (e) => re(t),
|
|
1250
1259
|
disabled: e.field.max_count && e.value.length >= e.field.max_count && t.action === "add"
|
|
1251
1260
|
}, {
|
|
1252
1261
|
default: J(() => [F(K(t.label), 1)]),
|
|
@@ -1256,7 +1265,7 @@ var it = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, at = (e, t) =>
|
|
|
1256
1265
|
"danger",
|
|
1257
1266
|
"onClick",
|
|
1258
1267
|
"disabled"
|
|
1259
|
-
])]),
|
|
1268
|
+
])) : j("", !0)]),
|
|
1260
1269
|
_: 2
|
|
1261
1270
|
}, 1032, [
|
|
1262
1271
|
"action_code_id",
|
|
@@ -1265,7 +1274,7 @@ var it = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, at = (e, t) =>
|
|
|
1265
1274
|
"action",
|
|
1266
1275
|
"onUpdate:action"
|
|
1267
1276
|
]))), 256))
|
|
1268
|
-
]), e.field.showType === "table" ? (B(), A(
|
|
1277
|
+
]), e.field.showType === "table" ? (B(), A(et, {
|
|
1269
1278
|
key: 0,
|
|
1270
1279
|
value: e.value,
|
|
1271
1280
|
field: e.field,
|
|
@@ -1276,10 +1285,11 @@ var it = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, at = (e, t) =>
|
|
|
1276
1285
|
nestValidate: e.nestValidate,
|
|
1277
1286
|
"base-key-path": e.baseKeyPath,
|
|
1278
1287
|
"worker-host-functions": e.workerHostFunctions,
|
|
1279
|
-
min_count:
|
|
1288
|
+
min_count: S.value,
|
|
1289
|
+
"lock-structure": i.value,
|
|
1280
1290
|
formModel: e.formModel,
|
|
1281
|
-
onRemove:
|
|
1282
|
-
onLabels_resolved:
|
|
1291
|
+
onRemove: ae,
|
|
1292
|
+
onLabels_resolved: P
|
|
1283
1293
|
}, null, 8, [
|
|
1284
1294
|
"value",
|
|
1285
1295
|
"field",
|
|
@@ -1291,8 +1301,9 @@ var it = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, at = (e, t) =>
|
|
|
1291
1301
|
"base-key-path",
|
|
1292
1302
|
"worker-host-functions",
|
|
1293
1303
|
"min_count",
|
|
1304
|
+
"lock-structure",
|
|
1294
1305
|
"formModel"
|
|
1295
|
-
])) : (B(!0), M(O, { key: 1 }, U(e.value, (t, n) => (B(), A(
|
|
1306
|
+
])) : (B(!0), M(O, { key: 1 }, U(e.value, (t, n) => (B(), A(Pe, {
|
|
1296
1307
|
form: e.field.form,
|
|
1297
1308
|
field: e.field,
|
|
1298
1309
|
value: e.value[n],
|
|
@@ -1300,15 +1311,16 @@ var it = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, at = (e, t) =>
|
|
|
1300
1311
|
options: e.field.form?.options,
|
|
1301
1312
|
alwaysShowGroup: e.alwaysShowGroup,
|
|
1302
1313
|
is_form_design: e.is_form_design,
|
|
1303
|
-
"inner-model":
|
|
1314
|
+
"inner-model": ne.value[n],
|
|
1304
1315
|
"global-inner-model": e.globalInnerModel,
|
|
1305
1316
|
modalTypeList: e.modalTypeList,
|
|
1306
1317
|
modalType: e.modalType,
|
|
1307
1318
|
nestValidate: e.nestValidate,
|
|
1308
|
-
min_count:
|
|
1319
|
+
min_count: S.value,
|
|
1309
1320
|
listLength: e.value.length,
|
|
1310
1321
|
context: e.context,
|
|
1311
|
-
|
|
1322
|
+
"lock-structure": i.value,
|
|
1323
|
+
onRemove: (e) => ae(n),
|
|
1312
1324
|
"base-key-path": [
|
|
1313
1325
|
...e.baseKeyPath,
|
|
1314
1326
|
e.field.name,
|
|
@@ -1331,16 +1343,17 @@ var it = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, at = (e, t) =>
|
|
|
1331
1343
|
"min_count",
|
|
1332
1344
|
"listLength",
|
|
1333
1345
|
"context",
|
|
1346
|
+
"lock-structure",
|
|
1334
1347
|
"onRemove",
|
|
1335
1348
|
"base-key-path",
|
|
1336
1349
|
"worker-host-functions"
|
|
1337
1350
|
]))), 256))], 64);
|
|
1338
1351
|
};
|
|
1339
1352
|
}
|
|
1340
|
-
}), [["__scopeId", "data-v-
|
|
1353
|
+
}), [["__scopeId", "data-v-f18bb311"]]), ft = {
|
|
1341
1354
|
key: 0,
|
|
1342
1355
|
class: "error-msg"
|
|
1343
|
-
},
|
|
1356
|
+
}, pt = /*#__PURE__*/ n(/* @__PURE__ */ L({
|
|
1344
1357
|
name: "DynamicValueField",
|
|
1345
1358
|
__name: "DynamicValueField",
|
|
1346
1359
|
props: {
|
|
@@ -1381,7 +1394,7 @@ var it = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, at = (e, t) =>
|
|
|
1381
1394
|
emits: ["update:value"],
|
|
1382
1395
|
setup(e, { emit: t }) {
|
|
1383
1396
|
let n = e, r = t, i = H(null), a = H(n.value || ""), o = k(() => n.is_form_design ? a.value : n.value), s = (0, Q.debounce)(async (e, t, s, c) => {
|
|
1384
|
-
let l = await
|
|
1397
|
+
let l = await it({
|
|
1385
1398
|
field: s,
|
|
1386
1399
|
currentValue: o.value,
|
|
1387
1400
|
innerModel: e,
|
|
@@ -1418,10 +1431,10 @@ var it = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, at = (e, t) =>
|
|
|
1418
1431
|
style: { "background-color": "#f5f5f5" }
|
|
1419
1432
|
}, null, 8, ["value"])]),
|
|
1420
1433
|
_: 1
|
|
1421
|
-
}, 8, ["value-code", "show-debug-code"]), i.value ? (B(), M("span",
|
|
1434
|
+
}, 8, ["value-code", "show-debug-code"]), i.value ? (B(), M("span", ft, K(i.value), 1)) : j("", !0)], 64);
|
|
1422
1435
|
};
|
|
1423
1436
|
}
|
|
1424
|
-
}), [["__scopeId", "data-v-f7dbd183"]]),
|
|
1437
|
+
}), [["__scopeId", "data-v-f7dbd183"]]), mt = L({
|
|
1425
1438
|
name: "FormButton",
|
|
1426
1439
|
components: { debugCode: C },
|
|
1427
1440
|
props: {
|
|
@@ -1476,7 +1489,7 @@ var it = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, at = (e, t) =>
|
|
|
1476
1489
|
keyPath: [...e.baseKeyPath, e.field.name]
|
|
1477
1490
|
}, e.workerHostFunctions || {});
|
|
1478
1491
|
} catch (e) {
|
|
1479
|
-
|
|
1492
|
+
Se.error(e.message);
|
|
1480
1493
|
return;
|
|
1481
1494
|
}
|
|
1482
1495
|
t && Object.assign(e.formModel, t);
|
|
@@ -1489,7 +1502,7 @@ var it = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, at = (e, t) =>
|
|
|
1489
1502
|
});
|
|
1490
1503
|
//#endregion
|
|
1491
1504
|
//#region src/components/FormRender/FormButton/FormButton.vue
|
|
1492
|
-
function
|
|
1505
|
+
function ht(e, t, n, r, i, a) {
|
|
1493
1506
|
let o = W("a-button"), s = W("debug-code");
|
|
1494
1507
|
return B(), A(s, {
|
|
1495
1508
|
action_code_id: e.field.action_code_id,
|
|
@@ -1514,7 +1527,7 @@ function mt(e, t, n, r, i, a) {
|
|
|
1514
1527
|
_: 1
|
|
1515
1528
|
}, 8, ["action_code_id", "code"]);
|
|
1516
1529
|
}
|
|
1517
|
-
var
|
|
1530
|
+
var gt = /*#__PURE__*/ n(mt, [["render", ht]]), _t = L({
|
|
1518
1531
|
name: "InputNumberPro",
|
|
1519
1532
|
props: {
|
|
1520
1533
|
field: {
|
|
@@ -1531,16 +1544,16 @@ var ht = /*#__PURE__*/ n(pt, [["render", mt]]), gt = L({
|
|
|
1531
1544
|
setup(e, { emit: t }) {
|
|
1532
1545
|
return {
|
|
1533
1546
|
update: (n) => {
|
|
1534
|
-
t("update:value",
|
|
1547
|
+
t("update:value", lt(e.field, n));
|
|
1535
1548
|
},
|
|
1536
1549
|
innerValue: k(() => {
|
|
1537
|
-
let t =
|
|
1550
|
+
let t = ct(e.field, e.value);
|
|
1538
1551
|
return typeof t == "string" && (t = parseFloat(t), isNaN(t) && (t = null)), t;
|
|
1539
1552
|
})
|
|
1540
1553
|
};
|
|
1541
1554
|
}
|
|
1542
|
-
}),
|
|
1543
|
-
function
|
|
1555
|
+
}), vt = { key: 0 }, yt = { key: 0 }, bt = { key: 0 };
|
|
1556
|
+
function xt(e, t, n, r, i, a) {
|
|
1544
1557
|
let o = W("a-input-number");
|
|
1545
1558
|
return B(), A(o, {
|
|
1546
1559
|
value: e.innerValue,
|
|
@@ -1558,17 +1571,17 @@ function bt(e, t, n, r, i, a) {
|
|
|
1558
1571
|
}, P({ _: 2 }, [
|
|
1559
1572
|
e.field?.prefix || e.field?.prefixIcon ? {
|
|
1560
1573
|
name: "prefix",
|
|
1561
|
-
fn: J(() => [e.field?.prefix ? (B(), M("span",
|
|
1574
|
+
fn: J(() => [e.field?.prefix ? (B(), M("span", vt, K(e.field.prefix), 1)) : j("", !0), e.field?.prefixIcon ? (B(), A(G(e.field?.prefixIcon), { key: 1 })) : j("", !0)]),
|
|
1562
1575
|
key: "0"
|
|
1563
1576
|
} : void 0,
|
|
1564
1577
|
e.field?.addonBefore || e.field?.addonBeforeIcon ? {
|
|
1565
1578
|
name: "addonBefore",
|
|
1566
|
-
fn: J(() => [e.field?.addonBefore ? (B(), M("span",
|
|
1579
|
+
fn: J(() => [e.field?.addonBefore ? (B(), M("span", yt, K(e.field.addonBefore), 1)) : j("", !0), e.field?.addonBeforeIcon ? (B(), A(G(e.field?.addonBeforeIcon), { key: 1 })) : j("", !0)]),
|
|
1567
1580
|
key: "1"
|
|
1568
1581
|
} : void 0,
|
|
1569
1582
|
e.field?.addonAfter || e.field?.addonAfterIcon ? {
|
|
1570
1583
|
name: "addonAfter",
|
|
1571
|
-
fn: J(() => [e.field?.addonAfter ? (B(), M("span",
|
|
1584
|
+
fn: J(() => [e.field?.addonAfter ? (B(), M("span", bt, K(e.field.addonAfter), 1)) : j("", !0), e.field?.addonAfterIcon ? (B(), A(G(e.field?.addonAfterIcon), { key: 1 })) : j("", !0)]),
|
|
1572
1585
|
key: "2"
|
|
1573
1586
|
} : void 0
|
|
1574
1587
|
]), 1032, [
|
|
@@ -1585,9 +1598,9 @@ function bt(e, t, n, r, i, a) {
|
|
|
1585
1598
|
"onUpdate:value"
|
|
1586
1599
|
]);
|
|
1587
1600
|
}
|
|
1588
|
-
var
|
|
1601
|
+
var St = /*#__PURE__*/ n(_t, [["render", xt], ["__scopeId", "data-v-f97da831"]]), Ct = { key: 0 }, wt = { key: 0 }, Tt = { key: 0 }, Et = { key: 0 }, Dt = /*#__PURE__*/ n(/* @__PURE__ */ L({
|
|
1589
1602
|
__name: "InputPro",
|
|
1590
|
-
props: /*@__PURE__*/
|
|
1603
|
+
props: /*@__PURE__*/ R({ field: {
|
|
1591
1604
|
type: Object,
|
|
1592
1605
|
required: !0
|
|
1593
1606
|
} }, {
|
|
@@ -1596,10 +1609,10 @@ var xt = /*#__PURE__*/ n(gt, [["render", bt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1596
1609
|
}),
|
|
1597
1610
|
emits: ["update:value"],
|
|
1598
1611
|
setup(e) {
|
|
1599
|
-
let t =
|
|
1600
|
-
get: () =>
|
|
1612
|
+
let t = ve(e, "value"), n = e, r = k({
|
|
1613
|
+
get: () => ct(n.field, t.value),
|
|
1601
1614
|
set: (e) => {
|
|
1602
|
-
t.value =
|
|
1615
|
+
t.value = lt(n.field, e);
|
|
1603
1616
|
}
|
|
1604
1617
|
}), i = (e) => {
|
|
1605
1618
|
r.value = e;
|
|
@@ -1620,22 +1633,22 @@ var xt = /*#__PURE__*/ n(gt, [["render", bt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1620
1633
|
}, P({ _: 2 }, [
|
|
1621
1634
|
e.field?.prefix || e.field?.prefixIcon ? {
|
|
1622
1635
|
name: "prefix",
|
|
1623
|
-
fn: J(() => [e.field?.prefix ? (B(), M("span",
|
|
1636
|
+
fn: J(() => [e.field?.prefix ? (B(), M("span", Ct, K(e.field.prefix), 1)) : j("", !0), e.field?.prefixIcon ? (B(), A(G(e.field?.prefixIcon), { key: 1 })) : j("", !0)]),
|
|
1624
1637
|
key: "0"
|
|
1625
1638
|
} : void 0,
|
|
1626
1639
|
e.field?.suffix || e.field?.suffixIcon ? {
|
|
1627
1640
|
name: "suffix",
|
|
1628
|
-
fn: J(() => [e.field?.suffix ? (B(), M("span",
|
|
1641
|
+
fn: J(() => [e.field?.suffix ? (B(), M("span", wt, K(e.field.suffix), 1)) : j("", !0), e.field?.suffixIcon ? (B(), A(G(e.field?.suffixIcon), { key: 1 })) : j("", !0)]),
|
|
1629
1642
|
key: "1"
|
|
1630
1643
|
} : void 0,
|
|
1631
1644
|
e.field?.addonBefore || e.field?.addonBeforeIcon ? {
|
|
1632
1645
|
name: "addonBefore",
|
|
1633
|
-
fn: J(() => [e.field?.addonBefore ? (B(), M("span",
|
|
1646
|
+
fn: J(() => [e.field?.addonBefore ? (B(), M("span", Tt, K(e.field.addonBefore), 1)) : j("", !0), e.field?.addonBeforeIcon ? (B(), A(G(e.field?.addonBeforeIcon), { key: 1 })) : j("", !0)]),
|
|
1634
1647
|
key: "2"
|
|
1635
1648
|
} : void 0,
|
|
1636
1649
|
e.field?.addonAfter || e.field?.addonAfterIcon ? {
|
|
1637
1650
|
name: "addonAfter",
|
|
1638
|
-
fn: J(() => [e.field?.addonAfter ? (B(), M("span",
|
|
1651
|
+
fn: J(() => [e.field?.addonAfter ? (B(), M("span", Et, K(e.field.addonAfter), 1)) : j("", !0), e.field?.addonAfterIcon ? (B(), A(G(e.field?.addonAfterIcon), { key: 1 })) : j("", !0)]),
|
|
1639
1652
|
key: "3"
|
|
1640
1653
|
} : void 0
|
|
1641
1654
|
]), 1032, [
|
|
@@ -1650,9 +1663,9 @@ var xt = /*#__PURE__*/ n(gt, [["render", bt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1650
1663
|
]);
|
|
1651
1664
|
};
|
|
1652
1665
|
}
|
|
1653
|
-
}), [["__scopeId", "data-v-d9fd59f5"]]), $ = (e, t = "YYYY-MM-DD") => Y(e, t, !0).isValid(),
|
|
1666
|
+
}), [["__scopeId", "data-v-d9fd59f5"]]), $ = (e, t = "YYYY-MM-DD") => Y(e, t, !0).isValid(), Ot = (e, t = "YYYY-MM-DD HH:mm:ss") => Y(e, t, !0).isValid(), kt = (e, t = "HH:mm:ss") => Y(e, t, !0).isValid(), At = L({
|
|
1654
1667
|
name: "FieldRender2",
|
|
1655
|
-
methods: { isArray:
|
|
1668
|
+
methods: { isArray: we },
|
|
1656
1669
|
props: {
|
|
1657
1670
|
field: {
|
|
1658
1671
|
type: Object,
|
|
@@ -1759,10 +1772,10 @@ var xt = /*#__PURE__*/ n(gt, [["render", bt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1759
1772
|
})) : n = s(e) && typeof e == "number" ? e.toString() : e : t == "date" ? s(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1760
1773
|
$(e) && typeof e == "string" ? n.push(Y(e, "YYYY-MM-DD")) : n.push(e);
|
|
1761
1774
|
})) : n = $(e) && typeof e == "string" ? e.toString() : e : t == "datetime" ? s(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1762
|
-
|
|
1763
|
-
})) : n =
|
|
1764
|
-
|
|
1765
|
-
})) : n =
|
|
1775
|
+
Ot(e) && typeof e == "string" ? n.push(Y(e, "YYYY-MM-DD HH:mm:ss")) : n.push(e);
|
|
1776
|
+
})) : n = Ot(e) && typeof e == "string" ? Y(e, "YYYY-MM-DD HH:mm:ss") : e : t == "time" ? s(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1777
|
+
kt(e) && typeof e == "string" ? n.push(Y(e, "HH:mm:ss")) : n.push(e);
|
|
1778
|
+
})) : n = kt(e) && typeof e == "string" ? Y(e, "HH:mm:ss") : e : t == "float" ? s(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1766
1779
|
s(e) && typeof e == "string" ? n.push(Number(e)) : n.push(e);
|
|
1767
1780
|
})) : n = s(e) && typeof e == "string" ? Number(e) : e : t == "bool" && (s(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1768
1781
|
s(e) && typeof e == "string" ? n.push(!!e) : n.push(e);
|
|
@@ -1771,7 +1784,7 @@ var xt = /*#__PURE__*/ n(gt, [["render", bt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1771
1784
|
t("update:is_edit", c.value);
|
|
1772
1785
|
}, d = () => {
|
|
1773
1786
|
t("add");
|
|
1774
|
-
}, f =
|
|
1787
|
+
}, f = Ce(() => {
|
|
1775
1788
|
let r = a.value;
|
|
1776
1789
|
e.field?.is_hide && (a.value = !1, a.value !== r && (a.value ? (n.value[e.field.name] = null, t("update_model", {
|
|
1777
1790
|
add_key: e.field.name,
|
|
@@ -1810,7 +1823,7 @@ var xt = /*#__PURE__*/ n(gt, [["render", bt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1810
1823
|
n == r?.[e.field.valueKey ? e.field.valueKey : "value"] && t.push(r?.[e.field.labelKey ? e.field.labelKey : "label"]);
|
|
1811
1824
|
});
|
|
1812
1825
|
}), r = t.toString();
|
|
1813
|
-
} else if (e.field.type === "select") if (
|
|
1826
|
+
} else if (e.field.type === "select") if (we(n)) {
|
|
1814
1827
|
let t = [];
|
|
1815
1828
|
e.options.forEach((r) => {
|
|
1816
1829
|
n.forEach((n) => {
|
|
@@ -1843,7 +1856,7 @@ var xt = /*#__PURE__*/ n(gt, [["render", bt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1843
1856
|
});
|
|
1844
1857
|
}, { deep: !0 }), q(() => [e.conditionsVisibleNum, e.isUseConditions], () => {
|
|
1845
1858
|
e.field?.is_hide ? (a.value = !1, t("update:is_show_field", a.value)) : e.field?.conditions && e.isUseConditions ? f() : (a.value = !0, t("update:is_show_field", a.value));
|
|
1846
|
-
}),
|
|
1859
|
+
}), z(() => {
|
|
1847
1860
|
if (e.field?.is_hide ? (a.value = !1, t("update:is_show_field", a.value)) : e.field?.conditions instanceof Array && e.field?.conditions.length > 0 ? f() : (a.value = !0, t("update:is_show_field", a.value)), !a.value) delete n.value[e.field.name], t("update_model", { remove_key: e.field.name });
|
|
1848
1861
|
else {
|
|
1849
1862
|
let r = n.value[e.field.name];
|
|
@@ -1854,7 +1867,7 @@ var xt = /*#__PURE__*/ n(gt, [["render", bt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1854
1867
|
}
|
|
1855
1868
|
l.value && t("update:is_edit", c.value);
|
|
1856
1869
|
});
|
|
1857
|
-
let { t: h } =
|
|
1870
|
+
let { t: h } = De();
|
|
1858
1871
|
return {
|
|
1859
1872
|
t: h,
|
|
1860
1873
|
is_show_field: a,
|
|
@@ -1868,13 +1881,13 @@ var xt = /*#__PURE__*/ n(gt, [["render", bt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1868
1881
|
};
|
|
1869
1882
|
},
|
|
1870
1883
|
components: {
|
|
1871
|
-
IconSelect:
|
|
1884
|
+
IconSelect: ae,
|
|
1872
1885
|
RichTextEditor: ne,
|
|
1873
|
-
Upload:
|
|
1886
|
+
Upload: se,
|
|
1874
1887
|
RemoteCascaderPro: E,
|
|
1875
1888
|
RemoteTreeSelectPro: re,
|
|
1876
1889
|
RemoteSelectPro: h,
|
|
1877
|
-
RemoteComplete:
|
|
1890
|
+
RemoteComplete: w,
|
|
1878
1891
|
AttributeTable: v,
|
|
1879
1892
|
AttributeNomTable: _,
|
|
1880
1893
|
RemoteFilterSelect: g,
|
|
@@ -1883,34 +1896,34 @@ var xt = /*#__PURE__*/ n(gt, [["render", bt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1883
1896
|
RemoteCascader: r,
|
|
1884
1897
|
RemoteTreeSelect: m,
|
|
1885
1898
|
RemoteTable: p,
|
|
1886
|
-
JsonStr:
|
|
1887
|
-
JsonObj:
|
|
1888
|
-
RemoteText:
|
|
1899
|
+
JsonStr: y,
|
|
1900
|
+
JsonObj: b,
|
|
1901
|
+
RemoteText: ee,
|
|
1889
1902
|
RemoteTablePro: D,
|
|
1890
|
-
FormTemplate:
|
|
1891
|
-
DynamicValueField:
|
|
1892
|
-
FormButton:
|
|
1893
|
-
PlusOutlined:
|
|
1894
|
-
MonthPicker:
|
|
1903
|
+
FormTemplate: dt,
|
|
1904
|
+
DynamicValueField: pt,
|
|
1905
|
+
FormButton: gt,
|
|
1906
|
+
PlusOutlined: Ee,
|
|
1907
|
+
MonthPicker: T,
|
|
1895
1908
|
MonthRangePicker: oe,
|
|
1896
|
-
CodeEditor:
|
|
1909
|
+
CodeEditor: ie,
|
|
1897
1910
|
TinymceEditor: ce,
|
|
1898
|
-
InputNumberPro:
|
|
1899
|
-
InputPro:
|
|
1911
|
+
InputNumberPro: St,
|
|
1912
|
+
InputPro: Dt
|
|
1900
1913
|
}
|
|
1901
|
-
}),
|
|
1914
|
+
}), jt = {
|
|
1902
1915
|
key: 0,
|
|
1903
1916
|
style: {
|
|
1904
1917
|
height: "62px",
|
|
1905
1918
|
width: "100%"
|
|
1906
1919
|
}
|
|
1907
|
-
},
|
|
1920
|
+
}, Mt = { key: 1 }, Nt = { key: 0 }, Pt = { key: 1 }, Ft = {
|
|
1908
1921
|
key: 3,
|
|
1909
1922
|
style: {
|
|
1910
1923
|
height: "30px",
|
|
1911
1924
|
position: "relative"
|
|
1912
1925
|
}
|
|
1913
|
-
},
|
|
1926
|
+
}, It = { style: {
|
|
1914
1927
|
position: "absolute",
|
|
1915
1928
|
bottom: "0",
|
|
1916
1929
|
padding: "0",
|
|
@@ -1918,8 +1931,8 @@ var xt = /*#__PURE__*/ n(gt, [["render", bt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1918
1931
|
"font-weight": "bolder",
|
|
1919
1932
|
"font-size": "17px"
|
|
1920
1933
|
} };
|
|
1921
|
-
function
|
|
1922
|
-
let o = W("a-switch"), s = W("plus-outlined"), c = W("a-button"), l = W("a-tag"), u = W("a-rate"), d = W("InputPro"), f = W("a-input-number"), p = W("InputNumberPro"), m = W("a-input"), h = W("attribute-table"), g = W("attribute-nom-table"), _ = W("a-textarea"), v = W("json-str"),
|
|
1934
|
+
function Lt(e, t, n, r, i, a) {
|
|
1935
|
+
let o = W("a-switch"), s = W("plus-outlined"), c = W("a-button"), l = W("a-tag"), u = W("a-rate"), d = W("InputPro"), f = W("a-input-number"), p = W("InputNumberPro"), m = W("a-input"), h = W("attribute-table"), g = W("attribute-nom-table"), _ = W("a-textarea"), v = W("json-str"), y = W("json-obj"), b = W("rich-text-editor"), ee = W("a-input-password"), x = W("a-select-option"), S = W("a-select"), te = W("a-cascader"), ne = W("remote-cascader"), re = W("remote-cascader-pro"), C = W("month-picker"), ie = W("a-date-picker"), ae = W("a-range-picker"), w = W("month-range-picker"), oe = W("a-time-picker"), se = W("a-time-range-picker"), T = W("a-radio"), E = W("a-radio-group"), ce = W("a-checkbox"), D = W("a-checkbox-group"), k = W("a-tree-select"), le = W("remote-filter-select"), L = W("remote-select"), ue = W("remote-select-pro"), de = W("remote-complete"), R = W("remote-tree-select"), pe = W("remote-tree-select-pro"), z = W("remote-modal"), he = W("remote-table"), V = W("remote-table-pro"), H = W("FormTemplate"), _e = W("DynamicValueField"), ve = W("remote-text"), ye = W("upload"), q = W("code-editor"), be = W("TinymceEditor"), xe = W("icon-select"), Se = W("a-form-item"), Ce = W("a-divider"), we = W("FormButton");
|
|
1923
1936
|
return B(), M(O, null, [
|
|
1924
1937
|
e.field.type !== "divider" && e.field.type !== "button" && (e.field?.is_search_show !== !1 || e.field_render_show) ? (B(), A(Se, fe({
|
|
1925
1938
|
key: 0,
|
|
@@ -1927,22 +1940,22 @@ function It(e, t, n, r, i, a) {
|
|
|
1927
1940
|
name: e.field.name
|
|
1928
1941
|
}, e.validateInfos ? e.validateInfos[e.field.name] : null), P({
|
|
1929
1942
|
default: J(() => [
|
|
1930
|
-
|
|
1931
|
-
e.field.type === "kong" ? (B(), M("div",
|
|
1932
|
-
e.field.type === "tag" ? (B(), M("div",
|
|
1943
|
+
ge(e.$slots, "default", {}, void 0, !0),
|
|
1944
|
+
e.field.type === "kong" ? (B(), M("div", jt)) : j("", !0),
|
|
1945
|
+
e.field.type === "tag" ? (B(), M("div", Mt, [e.field.content && e.field.content(e.field, e.model) || e.model ? (B(), A(l, {
|
|
1933
1946
|
key: 0,
|
|
1934
1947
|
color: e.field.color ? e.field.color(e.field, e.model) : "green",
|
|
1935
1948
|
style: me(e.field.style),
|
|
1936
1949
|
onClick: t[1] ||= (t) => e.field.cb ? e.field.cb(e.field, e.model) : ""
|
|
1937
1950
|
}, {
|
|
1938
|
-
default: J(() => [e.field.content ? (B(), M("span",
|
|
1951
|
+
default: J(() => [e.field.content ? (B(), M("span", Nt, K(e.field.content(e.field, e.model)), 1)) : (B(), M("span", Pt, K(e.model), 1))]),
|
|
1939
1952
|
_: 1
|
|
1940
1953
|
}, 8, ["color", "style"])) : j("", !0)])) : j("", !0),
|
|
1941
1954
|
e.field.type === "kong_title" ? (B(), M("div", {
|
|
1942
1955
|
key: 2,
|
|
1943
1956
|
style: me("height: " + e.field.height + "px")
|
|
1944
1957
|
}, null, 4)) : j("", !0),
|
|
1945
|
-
e.field.type === "title" ? (B(), M("div",
|
|
1958
|
+
e.field.type === "title" ? (B(), M("div", Ft, [N("span", It, K(e.field.name), 1)])) : j("", !0),
|
|
1946
1959
|
e.field.type === "rate" ? (B(), A(u, {
|
|
1947
1960
|
key: 4,
|
|
1948
1961
|
value: e.model,
|
|
@@ -2119,7 +2132,7 @@ function It(e, t, n, r, i, a) {
|
|
|
2119
2132
|
"rows",
|
|
2120
2133
|
"placeholder"
|
|
2121
2134
|
])) : j("", !0),
|
|
2122
|
-
e.field.type === "jsonobj" ? (B(), A(
|
|
2135
|
+
e.field.type === "jsonobj" ? (B(), A(y, {
|
|
2123
2136
|
key: 14,
|
|
2124
2137
|
value: e.model,
|
|
2125
2138
|
"onUpdate:value": t[12] ||= (t) => e.model = t,
|
|
@@ -2136,7 +2149,7 @@ function It(e, t, n, r, i, a) {
|
|
|
2136
2149
|
"fullWidthButton",
|
|
2137
2150
|
"darkTheme"
|
|
2138
2151
|
])) : j("", !0),
|
|
2139
|
-
e.field.type === "richtexteditor" ? (B(), A(
|
|
2152
|
+
e.field.type === "richtexteditor" ? (B(), A(b, {
|
|
2140
2153
|
key: 15,
|
|
2141
2154
|
value: e.model,
|
|
2142
2155
|
"onUpdate:value": t[13] ||= (t) => e.model = t,
|
|
@@ -2147,7 +2160,7 @@ function It(e, t, n, r, i, a) {
|
|
|
2147
2160
|
"readOnly",
|
|
2148
2161
|
"placeholder"
|
|
2149
2162
|
])) : j("", !0),
|
|
2150
|
-
e.field.type === "password" ? (B(), A(
|
|
2163
|
+
e.field.type === "password" ? (B(), A(ee, {
|
|
2151
2164
|
key: 16,
|
|
2152
2165
|
value: e.model,
|
|
2153
2166
|
"onUpdate:value": t[14] ||= (t) => e.model = t,
|
|
@@ -2430,7 +2443,7 @@ function It(e, t, n, r, i, a) {
|
|
|
2430
2443
|
"end_offset_day",
|
|
2431
2444
|
"fix_day"
|
|
2432
2445
|
])) : j("", !0),
|
|
2433
|
-
e.field.type === "datepicker" ? (B(), A(
|
|
2446
|
+
e.field.type === "datepicker" ? (B(), A(ie, {
|
|
2434
2447
|
key: 23,
|
|
2435
2448
|
value: e.model,
|
|
2436
2449
|
"onUpdate:value": t[26] ||= (t) => e.model = t,
|
|
@@ -2457,7 +2470,7 @@ function It(e, t, n, r, i, a) {
|
|
|
2457
2470
|
"show-time",
|
|
2458
2471
|
"value-format"
|
|
2459
2472
|
])) : j("", !0),
|
|
2460
|
-
e.field.type === "rangepicker" ? (B(), A(
|
|
2473
|
+
e.field.type === "rangepicker" ? (B(), A(ae, {
|
|
2461
2474
|
key: 24,
|
|
2462
2475
|
value: e.model,
|
|
2463
2476
|
"onUpdate:value": t[27] ||= (t) => e.model = t,
|
|
@@ -2482,7 +2495,7 @@ function It(e, t, n, r, i, a) {
|
|
|
2482
2495
|
"value-format",
|
|
2483
2496
|
"picker"
|
|
2484
2497
|
])) : j("", !0),
|
|
2485
|
-
e.field.type === "monthrangepicker" ? (B(), A(
|
|
2498
|
+
e.field.type === "monthrangepicker" ? (B(), A(w, {
|
|
2486
2499
|
key: 25,
|
|
2487
2500
|
value: e.model,
|
|
2488
2501
|
"onUpdate:value": t[28] ||= (t) => e.model = t,
|
|
@@ -2530,7 +2543,7 @@ function It(e, t, n, r, i, a) {
|
|
|
2530
2543
|
"placeholder",
|
|
2531
2544
|
"value-format"
|
|
2532
2545
|
])) : j("", !0),
|
|
2533
|
-
e.field.type === "timerangepicker" ? (B(), A(
|
|
2546
|
+
e.field.type === "timerangepicker" ? (B(), A(se, {
|
|
2534
2547
|
key: 27,
|
|
2535
2548
|
value: e.model,
|
|
2536
2549
|
"onUpdate:value": t[30] ||= (t) => e.model = t,
|
|
@@ -2559,7 +2572,7 @@ function It(e, t, n, r, i, a) {
|
|
|
2559
2572
|
disabled: e.field.disabled,
|
|
2560
2573
|
size: "small"
|
|
2561
2574
|
}, {
|
|
2562
|
-
default: J(() => [(B(!0), M(O, null, U(e.options, (t) => (B(), A(
|
|
2575
|
+
default: J(() => [(B(!0), M(O, null, U(e.options, (t) => (B(), A(T, {
|
|
2563
2576
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2564
2577
|
disabled: t.disabled,
|
|
2565
2578
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
@@ -2765,7 +2778,7 @@ function It(e, t, n, r, i, a) {
|
|
|
2765
2778
|
"is_form_design",
|
|
2766
2779
|
"placeholder"
|
|
2767
2780
|
])) : j("", !0),
|
|
2768
|
-
e.field.type === "remotetreeselect" ? (B(), A(
|
|
2781
|
+
e.field.type === "remotetreeselect" ? (B(), A(R, {
|
|
2769
2782
|
key: 35,
|
|
2770
2783
|
label: e.labelModel,
|
|
2771
2784
|
"onUpdate:label": t[41] ||= (t) => e.labelModel = t,
|
|
@@ -2793,7 +2806,7 @@ function It(e, t, n, r, i, a) {
|
|
|
2793
2806
|
"search_config",
|
|
2794
2807
|
"value-key"
|
|
2795
2808
|
])) : j("", !0),
|
|
2796
|
-
e.field.type === "remotetreeselectpro" ? (B(), A(
|
|
2809
|
+
e.field.type === "remotetreeselectpro" ? (B(), A(pe, {
|
|
2797
2810
|
key: 36,
|
|
2798
2811
|
label: e.labelModel,
|
|
2799
2812
|
"onUpdate:label": t[43] ||= (t) => e.labelModel = t,
|
|
@@ -2865,7 +2878,7 @@ function It(e, t, n, r, i, a) {
|
|
|
2865
2878
|
"search_config",
|
|
2866
2879
|
"watch"
|
|
2867
2880
|
])) : j("", !0),
|
|
2868
|
-
e.field.type === "remotetable" ? (B(), A(
|
|
2881
|
+
e.field.type === "remotetable" ? (B(), A(he, {
|
|
2869
2882
|
key: 38,
|
|
2870
2883
|
value: e.model,
|
|
2871
2884
|
"onUpdate:value": t[47] ||= (t) => e.model = t,
|
|
@@ -2894,7 +2907,7 @@ function It(e, t, n, r, i, a) {
|
|
|
2894
2907
|
"base-key-path",
|
|
2895
2908
|
"worker-host-functions"
|
|
2896
2909
|
])) : j("", !0),
|
|
2897
|
-
e.field.type === "remotetablepro" && !e.self_is_edit ? (B(), A(
|
|
2910
|
+
e.field.type === "remotetablepro" && !e.self_is_edit ? (B(), A(V, {
|
|
2898
2911
|
key: 39,
|
|
2899
2912
|
value: e.model,
|
|
2900
2913
|
"onUpdate:value": t[48] ||= (t) => e.model = t,
|
|
@@ -2929,7 +2942,7 @@ function It(e, t, n, r, i, a) {
|
|
|
2929
2942
|
"base-key-path",
|
|
2930
2943
|
"worker-host-functions"
|
|
2931
2944
|
])) : j("", !0),
|
|
2932
|
-
e.field.type === "formtemplate" ? (B(), A(
|
|
2945
|
+
e.field.type === "formtemplate" ? (B(), A(H, {
|
|
2933
2946
|
key: 40,
|
|
2934
2947
|
value: e.model,
|
|
2935
2948
|
"onUpdate:value": t[49] ||= (t) => e.model = t,
|
|
@@ -3036,7 +3049,7 @@ function It(e, t, n, r, i, a) {
|
|
|
3036
3049
|
"search_config",
|
|
3037
3050
|
"watch"
|
|
3038
3051
|
])) : j("", !0),
|
|
3039
|
-
e.field.type === "upload" ? (B(), A(
|
|
3052
|
+
e.field.type === "upload" ? (B(), A(ye, {
|
|
3040
3053
|
key: 43,
|
|
3041
3054
|
value: e.model,
|
|
3042
3055
|
"onUpdate:value": t[52] ||= (t) => e.model = t,
|
|
@@ -3053,7 +3066,7 @@ function It(e, t, n, r, i, a) {
|
|
|
3053
3066
|
"maxCount",
|
|
3054
3067
|
"acceptList"
|
|
3055
3068
|
])) : j("", !0),
|
|
3056
|
-
e.field.type === "codeeditor" ? (B(), A(
|
|
3069
|
+
e.field.type === "codeeditor" ? (B(), A(q, {
|
|
3057
3070
|
key: 44,
|
|
3058
3071
|
editorValue: e.model,
|
|
3059
3072
|
"onUpdate:editorValue": t[53] ||= (t) => e.model = t,
|
|
@@ -3102,7 +3115,7 @@ function It(e, t, n, r, i, a) {
|
|
|
3102
3115
|
disabled: e.field.disabled,
|
|
3103
3116
|
size: "small"
|
|
3104
3117
|
}, {
|
|
3105
|
-
default: J(() => [(B(!0), M(O, null, U(e.options, (t) => (B(), A(
|
|
3118
|
+
default: J(() => [(B(!0), M(O, null, U(e.options, (t) => (B(), A(T, {
|
|
3106
3119
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
3107
3120
|
disabled: t.disabled,
|
|
3108
3121
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
@@ -3181,7 +3194,7 @@ function It(e, t, n, r, i, a) {
|
|
|
3181
3194
|
default: J(() => [F(K(e.field.label), 1)]),
|
|
3182
3195
|
_: 1
|
|
3183
3196
|
}, 8, ["orientation"])) : j("", !0),
|
|
3184
|
-
e.field.type === "button" ? (B(), A(
|
|
3197
|
+
e.field.type === "button" ? (B(), A(we, {
|
|
3185
3198
|
key: 2,
|
|
3186
3199
|
value: e.model,
|
|
3187
3200
|
"onUpdate:value": t[60] ||= (t) => e.model = t,
|
|
@@ -3206,6 +3219,6 @@ function It(e, t, n, r, i, a) {
|
|
|
3206
3219
|
])) : j("", !0)
|
|
3207
3220
|
], 64);
|
|
3208
3221
|
}
|
|
3209
|
-
var
|
|
3222
|
+
var Rt = /*#__PURE__*/ n(At, [["render", Lt], ["__scopeId", "data-v-4d903c12"]]);
|
|
3210
3223
|
//#endregion
|
|
3211
|
-
export {
|
|
3224
|
+
export { Rt as t };
|