liyu-pc-base 1.0.829 → 1.0.833
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{FieldRender2-DXkt6Dbo.js → FieldRender2-XECJuImX.js} +538 -423
- package/dist/FieldRender2-XECJuImX.js.map +1 -0
- package/dist/{FormRender3-Coihr6aF.js → FormRender3-BVGWy_z7.js} +1 -1
- package/dist/{FormRender3-Coihr6aF.js.map → FormRender3-BVGWy_z7.js.map} +1 -1
- package/dist/{SearchRender-Cw770Ovx.js → SearchRender-DHfvN2ga.js} +1 -1
- package/dist/{SearchRender-Cw770Ovx.js.map → SearchRender-DHfvN2ga.js.map} +1 -1
- package/dist/components/index.js +3 -3
- package/dist/index.js +1 -1
- package/dist/liyu-pc-base.css +1 -1
- package/package.json +1 -1
- package/dist/FieldRender2-DXkt6Dbo.js.map +0 -1
|
@@ -11,21 +11,21 @@ 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
13
|
import { t as y } from "./JsonStr-JwOPdAYW.js";
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { resolveContextValue as
|
|
18
|
-
import { exportJsonToExcelByTokenHeader as
|
|
19
|
-
import { a as
|
|
20
|
-
import { Fragment as
|
|
21
|
-
import { Modal as
|
|
22
|
-
import { debounce as
|
|
23
|
-
import
|
|
24
|
-
import { ExclamationCircleOutlined as
|
|
25
|
-
import { useI18n as
|
|
26
|
-
import
|
|
14
|
+
import { t as ee } from "./JsonObj-CmylW4Or.js";
|
|
15
|
+
import { t as te } from "./RemoteText-DwRLI0xq.js";
|
|
16
|
+
import { t as b } from "./modal-tools-CrXdI5sg.js";
|
|
17
|
+
import { resolveContextValue as x } from "./components/FormRender/utils.js";
|
|
18
|
+
import { exportJsonToExcelByTokenHeader as ne } from "./utils/excel.js";
|
|
19
|
+
import { a as S, c as re, d as C, f as ie, i as ae, l as oe, n as w, o as se, r as T, s as ce, t as le, u as ue } from "./TinymceEditor-C_nD6tb-.js";
|
|
20
|
+
import { Fragment as E, computed as D, createBlock as O, createCommentVNode as k, createElementBlock as A, createElementVNode as j, createSlots as M, createTextVNode as N, createVNode as P, defineAsyncComponent as de, defineComponent as F, h as fe, inject as pe, mergeModels as I, mergeProps as L, normalizeClass as me, normalizeStyle as he, onMounted as R, onUnmounted as ge, openBlock as z, reactive as B, ref as V, renderList as H, renderSlot as _e, resolveComponent as U, resolveDynamicComponent as W, toDisplayString as G, unref as ve, useModel as ye, vShow as be, watch as K, withCtx as q, withDirectives as xe } from "vue";
|
|
21
|
+
import { Modal as Se, message as Ce } from "ant-design-vue";
|
|
22
|
+
import { cloneDeep as we, debounce as Te, isArray as Ee } from "lodash-es";
|
|
23
|
+
import J from "moment";
|
|
24
|
+
import { ExclamationCircleOutlined as De, PlusOutlined as Oe } from "@ant-design/icons-vue";
|
|
25
|
+
import { useI18n as ke } from "vue-i18n";
|
|
26
|
+
import Ae from "mitt";
|
|
27
27
|
//#region src/components/FormRender/FormTemplate/FormItem.vue?vue&type=script&lang.ts
|
|
28
|
-
var
|
|
28
|
+
var je = F({
|
|
29
29
|
name: "FormTemplate",
|
|
30
30
|
components: {},
|
|
31
31
|
props: {
|
|
@@ -85,12 +85,16 @@ var ke = L({
|
|
|
85
85
|
default: !1
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
|
-
emits: [
|
|
88
|
+
emits: [
|
|
89
|
+
"update:value",
|
|
90
|
+
"remove",
|
|
91
|
+
"copy"
|
|
92
|
+
],
|
|
89
93
|
setup(e, { emit: t }) {
|
|
90
|
-
let n =
|
|
94
|
+
let n = B({ ...e.field.form.rules }), r = V({}), i = de(() => import("./FormRender3-BVGWy_z7.js").then((e) => e.n)), a, o = () => {
|
|
91
95
|
let e = /* @__PURE__ */ new Uint8Array(16);
|
|
92
96
|
return window.crypto.getRandomValues(e), Array.from(e, (e) => e.toString(16).padStart(2, "0")).join("");
|
|
93
|
-
}, s =
|
|
97
|
+
}, s = V([]), c = o(), l = ([t, i]) => {
|
|
94
98
|
let o = {};
|
|
95
99
|
Object.keys(n).forEach((e) => {
|
|
96
100
|
e in t && !i[e] && (o[e] = n[e]);
|
|
@@ -98,12 +102,12 @@ var ke = L({
|
|
|
98
102
|
let s = d(t, o);
|
|
99
103
|
a = s.validate, r.value = s.validateInfos, e.nestValidate && (e.nestValidate[c] = a);
|
|
100
104
|
};
|
|
101
|
-
return
|
|
105
|
+
return K(() => e.value, (e) => {
|
|
102
106
|
l([e, s.value]);
|
|
103
107
|
}, {
|
|
104
108
|
deep: !0,
|
|
105
109
|
immediate: !0
|
|
106
|
-
}),
|
|
110
|
+
}), R(() => {}), ge(() => {
|
|
107
111
|
e.nestValidate && delete e.nestValidate[c];
|
|
108
112
|
}), {
|
|
109
113
|
FormRender3Async: i,
|
|
@@ -113,19 +117,22 @@ var ke = L({
|
|
|
113
117
|
},
|
|
114
118
|
removeFormItem: () => {
|
|
115
119
|
e.nestValidate && delete e.nestValidate[c], t("remove");
|
|
120
|
+
},
|
|
121
|
+
copyFormItem: () => {
|
|
122
|
+
t("copy");
|
|
116
123
|
}
|
|
117
124
|
};
|
|
118
125
|
},
|
|
119
126
|
data() {
|
|
120
127
|
return { model: this.value };
|
|
121
128
|
}
|
|
122
|
-
}),
|
|
129
|
+
}), Me = { class: "form-wrap" }, Ne = { class: "form-content" }, Pe = {
|
|
123
130
|
key: 0,
|
|
124
131
|
class: "form-action"
|
|
125
132
|
};
|
|
126
|
-
function
|
|
127
|
-
let o =
|
|
128
|
-
return
|
|
133
|
+
function Fe(e, t, n, r, i, a) {
|
|
134
|
+
let o = U("CopyOutlined"), s = U("a-button"), c = U("DeleteOutlined");
|
|
135
|
+
return z(), A("div", Me, [j("div", Ne, [(z(), O(W(e.FormRender3Async), {
|
|
129
136
|
form: e.field.form,
|
|
130
137
|
model: e.value,
|
|
131
138
|
"onUpdate:model": t[0] ||= (t) => e.value = t,
|
|
@@ -158,18 +165,26 @@ function Ne(e, t, n, r, i, a) {
|
|
|
158
165
|
"base-key-path",
|
|
159
166
|
"worker-host-functions",
|
|
160
167
|
"lock-structure"
|
|
161
|
-
]))]), e.field.max_count !== e.min_count && !e.lockStructure ? (
|
|
168
|
+
]))]), e.field.max_count !== e.min_count && !e.lockStructure ? (z(), A("div", Pe, [P(s, {
|
|
169
|
+
onClick: e.copyFormItem,
|
|
170
|
+
size: "small",
|
|
171
|
+
type: "link",
|
|
172
|
+
disabled: e.field.max_count && e.listLength >= e.field.max_count
|
|
173
|
+
}, {
|
|
174
|
+
icon: q(() => [P(o)]),
|
|
175
|
+
_: 1
|
|
176
|
+
}, 8, ["onClick", "disabled"]), P(s, {
|
|
162
177
|
onClick: e.removeFormItem,
|
|
163
178
|
size: "small",
|
|
164
179
|
type: "link",
|
|
165
180
|
danger: "",
|
|
166
181
|
disabled: e.listLength <= e.min_count
|
|
167
182
|
}, {
|
|
168
|
-
icon:
|
|
183
|
+
icon: q(() => [P(c)]),
|
|
169
184
|
_: 1
|
|
170
|
-
}, 8, ["onClick", "disabled"])])) :
|
|
185
|
+
}, 8, ["onClick", "disabled"])])) : k("", !0)]);
|
|
171
186
|
}
|
|
172
|
-
var
|
|
187
|
+
var Ie = /*#__PURE__*/ n(je, [["render", Fe], ["__scopeId", "data-v-ac57aef6"]]), Le = { key: 1 }, Re = /*#__PURE__*/ n(/* @__PURE__ */ F({
|
|
173
188
|
__name: "TableCell",
|
|
174
189
|
props: {
|
|
175
190
|
field: {
|
|
@@ -217,22 +232,22 @@ var Pe = /*#__PURE__*/ n(ke, [["render", Ne], ["__scopeId", "data-v-eef02fa2"]])
|
|
|
217
232
|
},
|
|
218
233
|
emits: ["update_model", "update_name2"],
|
|
219
234
|
setup(e, { emit: t }) {
|
|
220
|
-
let n = e, r = t, i =
|
|
235
|
+
let n = e, r = t, i = V(!0), a = (e) => {
|
|
221
236
|
r("update_model", e);
|
|
222
237
|
}, o = (e) => {
|
|
223
238
|
r("update_name2", e);
|
|
224
|
-
}, s =
|
|
239
|
+
}, s = D(() => i.value && !n.field.disabled && n.field.type !== "dynamicvaluefield");
|
|
225
240
|
return (t, n) => {
|
|
226
|
-
let r =
|
|
227
|
-
return
|
|
241
|
+
let r = U("a-form");
|
|
242
|
+
return z(), O(r, {
|
|
228
243
|
model: e.model,
|
|
229
244
|
layout: "inline",
|
|
230
245
|
class: "table-cell-form"
|
|
231
246
|
}, {
|
|
232
|
-
default:
|
|
247
|
+
default: q(() => [xe(j("div", { class: me(["field-cell-item", {
|
|
233
248
|
editable: s.value,
|
|
234
249
|
"item-required": e.has_reqrired
|
|
235
|
-
}]) }, [e.field.type === "dynamicvaluefield" ? (
|
|
250
|
+
}]) }, [e.field.type === "dynamicvaluefield" ? (z(), A("span", Le, G(e.model[e.field.name]), 1)) : (z(), O(Ut, {
|
|
236
251
|
is_show_label: !1,
|
|
237
252
|
value: e.model[e.field.name],
|
|
238
253
|
"onUpdate:value": n[0] ||= (t) => e.model[e.field.name] = t,
|
|
@@ -269,12 +284,12 @@ var Pe = /*#__PURE__*/ n(ke, [["render", Ne], ["__scopeId", "data-v-eef02fa2"]])
|
|
|
269
284
|
"base-key-path",
|
|
270
285
|
"worker-host-functions",
|
|
271
286
|
"is_form_design"
|
|
272
|
-
]))], 2), [[
|
|
287
|
+
]))], 2), [[be, i.value]])]),
|
|
273
288
|
_: 1
|
|
274
289
|
}, 8, ["model"]);
|
|
275
290
|
};
|
|
276
291
|
}
|
|
277
|
-
}), [["__scopeId", "data-v-00188241"]]),
|
|
292
|
+
}), [["__scopeId", "data-v-00188241"]]), ze = { key: 0 }, Be = { key: 1 }, Ve = /* @__PURE__ */ F({
|
|
278
293
|
__name: "TableSummary",
|
|
279
294
|
props: {
|
|
280
295
|
summaryParams: {
|
|
@@ -287,7 +302,7 @@ var Pe = /*#__PURE__*/ n(ke, [["render", Ne], ["__scopeId", "data-v-eef02fa2"]])
|
|
|
287
302
|
}
|
|
288
303
|
},
|
|
289
304
|
setup(e) {
|
|
290
|
-
let t = e, n =
|
|
305
|
+
let t = e, n = D(() => {
|
|
291
306
|
let e = 0;
|
|
292
307
|
for (let n of t.tableDataSource) {
|
|
293
308
|
let r = n[t.summaryParams.column.dataIndex];
|
|
@@ -310,19 +325,19 @@ var Pe = /*#__PURE__*/ n(ke, [["render", Ne], ["__scopeId", "data-v-eef02fa2"]])
|
|
|
310
325
|
return parseFloat((e + t).toFixed(n));
|
|
311
326
|
}
|
|
312
327
|
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);
|
|
313
|
-
return (t, r) => (
|
|
314
|
-
e.summaryParams?.column?.field?.addonBefore ? (
|
|
315
|
-
|
|
316
|
-
e.summaryParams?.column?.field?.addonAfter ? (
|
|
328
|
+
return (t, r) => (z(), A(E, null, [
|
|
329
|
+
e.summaryParams?.column?.field?.addonBefore ? (z(), A("span", ze, G(e.summaryParams.column.field.addonBefore), 1)) : k("", !0),
|
|
330
|
+
N(" " + G(n.value) + " ", 1),
|
|
331
|
+
e.summaryParams?.column?.field?.addonAfter ? (z(), A("span", Be, G(e.summaryParams.column.field.addonAfter), 1)) : k("", !0)
|
|
317
332
|
], 64));
|
|
318
333
|
}
|
|
319
|
-
}),
|
|
334
|
+
}), Y = (e) => e.valueKey || "id", He = (e) => e.labelKey || "name", Ue = (e) => {
|
|
320
335
|
let t = [], n = e.labelKeyList || [];
|
|
321
|
-
return n.length > 0 && e.labelKeyType !== 1 ? t.push(
|
|
322
|
-
},
|
|
336
|
+
return n.length > 0 && e.labelKeyType !== 1 ? t.push(Y(e), ...n) : t.push(Y(e), He(e)), e.extendedFields && e.extendedFields.length > 0 && t.push(...e.extendedFields), [...new Set(t)];
|
|
337
|
+
}, We = (e) => {
|
|
323
338
|
let t = e.labelKeyList || [];
|
|
324
|
-
return t.length > 0 && e.labelKeyType !== 1 ? [...t] : [
|
|
325
|
-
},
|
|
339
|
+
return t.length > 0 && e.labelKeyType !== 1 ? [...t] : [He(e)];
|
|
340
|
+
}, X = (e, t, n) => {
|
|
326
341
|
if (n.operator === "not_blank_not_null") t.push({
|
|
327
342
|
field_name: n.field_name,
|
|
328
343
|
operator: n.operator,
|
|
@@ -349,7 +364,7 @@ var Pe = /*#__PURE__*/ n(ke, [["render", Ne], ["__scopeId", "data-v-eef02fa2"]])
|
|
|
349
364
|
class_name: n.class_name
|
|
350
365
|
});
|
|
351
366
|
}
|
|
352
|
-
},
|
|
367
|
+
}, Ge = (t) => {
|
|
353
368
|
let n = t.required_condition, r = {};
|
|
354
369
|
if (n) {
|
|
355
370
|
let t = e();
|
|
@@ -359,7 +374,7 @@ var Pe = /*#__PURE__*/ n(ke, [["render", Ne], ["__scopeId", "data-v-eef02fa2"]])
|
|
|
359
374
|
});
|
|
360
375
|
}
|
|
361
376
|
return r;
|
|
362
|
-
},
|
|
377
|
+
}, Ke = (e, t, n, r, i) => {
|
|
363
378
|
let a = [], o = [[{
|
|
364
379
|
searchType: 3,
|
|
365
380
|
field_name: "is_active",
|
|
@@ -372,22 +387,22 @@ var Pe = /*#__PURE__*/ n(ke, [["render", Ne], ["__scopeId", "data-v-eef02fa2"]])
|
|
|
372
387
|
let o = [];
|
|
373
388
|
e.forEach((e) => {
|
|
374
389
|
e.searchType === 1 ? Object.keys(n || t).forEach((r) => {
|
|
375
|
-
e.select_name == r &&
|
|
390
|
+
e.select_name == r && X((n || t)[r], o, e);
|
|
376
391
|
}) : e.searchType === 2 ? Object.keys(t).forEach((n) => {
|
|
377
|
-
e.select_name == n &&
|
|
378
|
-
}) : e.searchType === 3 ?
|
|
392
|
+
e.select_name == n && X(t[n], o, e);
|
|
393
|
+
}) : e.searchType === 3 ? X(e.value, o, e) : e.searchType === 4 ? X(x(e.select_name, r, ["formModel", ...i]), o, e) : X(e.value, o, e);
|
|
379
394
|
}), a.push(o);
|
|
380
395
|
}), a;
|
|
381
|
-
},
|
|
396
|
+
}, qe = (e, t, n, r, i) => {
|
|
382
397
|
let a = {};
|
|
383
398
|
return e.simpleSearchConditions && e.simpleSearchConditions.forEach((e) => {
|
|
384
399
|
e.searchType === 1 ? Object.keys(n || t).forEach((r) => {
|
|
385
400
|
e.select_name == r && (a[e.field_name] = (n || t)[r]);
|
|
386
401
|
}) : e.searchType === 2 ? Object.keys(t).forEach((n) => {
|
|
387
402
|
e.select_name == n && (a[e.field_name] = t[n]);
|
|
388
|
-
}) : e.searchType === 3 ? a[e.field_name] = e.value : e.searchType === 4 && (a[e.field_name] =
|
|
403
|
+
}) : e.searchType === 3 ? a[e.field_name] = e.value : e.searchType === 4 && (a[e.field_name] = x(e.select_name, r, ["formModel", ...i]));
|
|
389
404
|
}), a;
|
|
390
|
-
},
|
|
405
|
+
}, Je = (e, t, n, r, i) => {
|
|
391
406
|
let a = {
|
|
392
407
|
current: 1,
|
|
393
408
|
pageSize: 200,
|
|
@@ -395,38 +410,38 @@ var Pe = /*#__PURE__*/ n(ke, [["render", Ne], ["__scopeId", "data-v-eef02fa2"]])
|
|
|
395
410
|
request_source: "strict",
|
|
396
411
|
is_active: !0,
|
|
397
412
|
...e.init_model || {},
|
|
398
|
-
column_fields:
|
|
399
|
-
sort_fields: e.init_model?.sort_fields ||
|
|
413
|
+
column_fields: Ue(e),
|
|
414
|
+
sort_fields: e.init_model?.sort_fields || We(e),
|
|
400
415
|
conditions: [],
|
|
401
416
|
simpleSearchParams: {}
|
|
402
|
-
}, o =
|
|
417
|
+
}, o = Ge(e);
|
|
403
418
|
if (e.queryType === "simple") {
|
|
404
|
-
let s =
|
|
419
|
+
let s = qe(e, t, n, r, i), c = {
|
|
405
420
|
...a,
|
|
406
421
|
...s,
|
|
407
422
|
required_condition: o
|
|
408
423
|
};
|
|
409
424
|
return delete c.conditions, delete c.simpleSearchParams, c;
|
|
410
425
|
}
|
|
411
|
-
let s =
|
|
426
|
+
let s = Ke(e, t, n, r, i), c = {
|
|
412
427
|
...a,
|
|
413
428
|
conditions: s,
|
|
414
429
|
required_condition: o
|
|
415
430
|
};
|
|
416
431
|
return delete c.simpleSearchParams, c;
|
|
417
|
-
},
|
|
432
|
+
}, Ye = (e, t, n) => {
|
|
418
433
|
let r = n.every((e) => typeof e == "number" || typeof e == "string" && e.trim() !== "" && !isNaN(Number(e))) ? "int" : "str";
|
|
419
|
-
return t.queryType === "simple" ? e[
|
|
434
|
+
return t.queryType === "simple" ? e[Y(t)] = n.length > 0 ? n.join(",") : "" : (e.conditions && e.conditions.length > 0 || (e.conditions = [[]]), e.conditions[0].push({
|
|
420
435
|
class_name: r,
|
|
421
436
|
operator: "in",
|
|
422
437
|
value: n,
|
|
423
438
|
format: "remote",
|
|
424
|
-
field_name:
|
|
439
|
+
field_name: Y(t)
|
|
425
440
|
})), e;
|
|
426
|
-
},
|
|
427
|
-
let n = (e) =>
|
|
441
|
+
}, Xe = (e, t) => {
|
|
442
|
+
let n = (e) => Y(t) === "id" ? isNaN(Number(e)) ? e : Number(e) : e;
|
|
428
443
|
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)];
|
|
429
|
-
},
|
|
444
|
+
}, Ze = (e, t) => {
|
|
430
445
|
if (e.labelKeyList && e.labelKeyList.length > 0 && e.labelKeyType !== 1) {
|
|
431
446
|
let n = [];
|
|
432
447
|
for (let r of e.labelKeyList) {
|
|
@@ -435,15 +450,15 @@ var Pe = /*#__PURE__*/ n(ke, [["render", Ne], ["__scopeId", "data-v-eef02fa2"]])
|
|
|
435
450
|
}
|
|
436
451
|
return n.join(e.labelSpace || "-");
|
|
437
452
|
}
|
|
438
|
-
let n = t[
|
|
453
|
+
let n = t[He(e)];
|
|
439
454
|
return n == null ? "" : String(n);
|
|
440
455
|
};
|
|
441
|
-
async function
|
|
456
|
+
async function Qe(e) {
|
|
442
457
|
let { field: t, targets: n, baseKeyPath: r, context: i } = e;
|
|
443
458
|
if (!t.postUrl || !n || n.length === 0) return {};
|
|
444
459
|
let o = /* @__PURE__ */ new Map();
|
|
445
460
|
for (let e of n) {
|
|
446
|
-
let n = [...r, e.rowIndex], a =
|
|
461
|
+
let n = [...r, e.rowIndex], a = Je(t, e.row || {}, {}, i, n), s = Xe(e.row?.[t.name], t);
|
|
447
462
|
if (s.length === 0) continue;
|
|
448
463
|
let c = JSON.stringify(a);
|
|
449
464
|
o.has(c) || o.set(c, {
|
|
@@ -460,7 +475,7 @@ async function Xe(e) {
|
|
|
460
475
|
if (n.length !== 0) {
|
|
461
476
|
for (let r = 0; r < n.length; r += 100) {
|
|
462
477
|
let i = n.slice(r, r + 100), o = JSON.parse(JSON.stringify(e.params));
|
|
463
|
-
|
|
478
|
+
Ye(o, t, i);
|
|
464
479
|
let s = [];
|
|
465
480
|
try {
|
|
466
481
|
s = (await a(o, t.postUrl, !1, { skip_error: !0 }))?.data || [];
|
|
@@ -468,9 +483,9 @@ async function Xe(e) {
|
|
|
468
483
|
console.error("resolveRemoteSelectProLabels fetch error:", t.name, e);
|
|
469
484
|
}
|
|
470
485
|
for (let e of s) {
|
|
471
|
-
let n = e[
|
|
486
|
+
let n = e[Y(t)], r = String(n);
|
|
472
487
|
c.has(r) || c.set(r, {
|
|
473
|
-
label:
|
|
488
|
+
label: Ze(t, e),
|
|
474
489
|
option: e
|
|
475
490
|
});
|
|
476
491
|
}
|
|
@@ -498,16 +513,16 @@ async function Xe(e) {
|
|
|
498
513
|
}
|
|
499
514
|
//#endregion
|
|
500
515
|
//#region src/components/FormRender/FormTemplate/FormTemplateTable.vue?vue&type=script&setup=true&lang.ts
|
|
501
|
-
var
|
|
516
|
+
var $e = {
|
|
502
517
|
key: 0,
|
|
503
518
|
class: "required-star"
|
|
504
|
-
},
|
|
519
|
+
}, et = {
|
|
505
520
|
key: 0,
|
|
506
|
-
class: "cell-item"
|
|
507
|
-
},
|
|
521
|
+
class: "cell-item action-cell"
|
|
522
|
+
}, tt = {
|
|
508
523
|
key: 1,
|
|
509
524
|
class: "cell-item"
|
|
510
|
-
},
|
|
525
|
+
}, nt = /*#__PURE__*/ n(/* @__PURE__ */ F({
|
|
511
526
|
__name: "FormTemplateTable",
|
|
512
527
|
props: {
|
|
513
528
|
value: {},
|
|
@@ -523,18 +538,22 @@ var Ze = {
|
|
|
523
538
|
formModel: {},
|
|
524
539
|
lockStructure: { type: Boolean }
|
|
525
540
|
},
|
|
526
|
-
emits: [
|
|
541
|
+
emits: [
|
|
542
|
+
"remove",
|
|
543
|
+
"copy",
|
|
544
|
+
"labels_resolved"
|
|
545
|
+
],
|
|
527
546
|
setup(e, { emit: t }) {
|
|
528
|
-
let n =
|
|
547
|
+
let n = V({
|
|
529
548
|
showQuickJumper: !0,
|
|
530
549
|
showSizeChanger: !1,
|
|
531
550
|
showTotal: (e) => `共 ${e} 条记录`,
|
|
532
551
|
pageSize: 5,
|
|
533
552
|
current: 1
|
|
534
|
-
}), r = e, i = t, a =
|
|
553
|
+
}), r = e, i = t, a = B({ ...r.field.form?.rules || {} }), o = V([]), s = V([]), c = V([]), l = (() => {
|
|
535
554
|
let e = /* @__PURE__ */ new Uint8Array(16);
|
|
536
555
|
return window.crypto.getRandomValues(e), Array.from(e, (e) => e.toString(16).padStart(2, "0")).join("");
|
|
537
|
-
})(), f =
|
|
556
|
+
})(), f = V([]), p = () => {
|
|
538
557
|
let e = [], t = [];
|
|
539
558
|
(r.value || []).forEach((n, r) => {
|
|
540
559
|
c.value[r] || (c.value[r] = {});
|
|
@@ -551,28 +570,28 @@ var Ze = {
|
|
|
551
570
|
}, m = (e, t) => {
|
|
552
571
|
c.value[e] || (c.value[e] = {}), t.add_key ? (delete c.value[e][t.add_key], p()) : t.remove_key && (c.value[e][t.remove_key] = !0, p());
|
|
553
572
|
};
|
|
554
|
-
|
|
573
|
+
K(() => r.value, () => {
|
|
555
574
|
p();
|
|
556
575
|
}, {
|
|
557
576
|
deep: !0,
|
|
558
577
|
immediate: !0
|
|
559
|
-
}),
|
|
578
|
+
}), K(() => r.field, () => {
|
|
560
579
|
v();
|
|
561
|
-
}, { deep: !0 }),
|
|
580
|
+
}, { deep: !0 }), K(() => r.formModel, () => {
|
|
562
581
|
v();
|
|
563
|
-
}, { deep: !0 }),
|
|
582
|
+
}, { deep: !0 }), K(() => r.context, () => {
|
|
564
583
|
v();
|
|
565
|
-
}, { deep: !0 }),
|
|
584
|
+
}, { deep: !0 }), R(() => {
|
|
566
585
|
v(), x();
|
|
567
|
-
}),
|
|
586
|
+
}), ge(() => {
|
|
568
587
|
r.nestValidate && delete r.nestValidate[l], x.cancel(), i("labels_resolved");
|
|
569
588
|
});
|
|
570
|
-
let h =
|
|
589
|
+
let h = D(() => {
|
|
571
590
|
let e = 0;
|
|
572
591
|
return f.value.forEach((t) => {
|
|
573
592
|
e += t._width || 150;
|
|
574
593
|
}), e;
|
|
575
|
-
}), g =
|
|
594
|
+
}), g = D(() => (r.value || []).map((e, t) => ({
|
|
576
595
|
...e,
|
|
577
596
|
_key: t
|
|
578
597
|
}))), _ = (e) => {
|
|
@@ -615,8 +634,8 @@ var Ze = {
|
|
|
615
634
|
title: "操作",
|
|
616
635
|
key: "action",
|
|
617
636
|
dataIndex: "action",
|
|
618
|
-
width:
|
|
619
|
-
_width:
|
|
637
|
+
width: 90,
|
|
638
|
+
_width: 90,
|
|
620
639
|
fixed: "right"
|
|
621
640
|
}), r.field.dynamicTitle?.enable) {
|
|
622
641
|
let t = r.field.dynamicTitle.code;
|
|
@@ -639,14 +658,16 @@ var Ze = {
|
|
|
639
658
|
f.value = e;
|
|
640
659
|
}, y = (e) => {
|
|
641
660
|
c.value.splice(e, 1), i("remove", e);
|
|
642
|
-
},
|
|
661
|
+
}, ee = (e) => {
|
|
662
|
+
c.value.splice(e + 1, 0, we(c.value[e] || {})), i("copy", e);
|
|
663
|
+
}, te = () => {
|
|
643
664
|
let e = [];
|
|
644
665
|
return r.field?.form?.dynamicFieldList?.forEach((t) => {
|
|
645
666
|
t.children instanceof Array && t.children.forEach((t) => {
|
|
646
667
|
t.type === "remoteselectpro" && t.postUrl && !t.is_table_hide_column && e.push(t);
|
|
647
668
|
});
|
|
648
669
|
}), e;
|
|
649
|
-
},
|
|
670
|
+
}, b = (e, t, n) => {
|
|
650
671
|
if (!e) return !1;
|
|
651
672
|
let i = e[t.name];
|
|
652
673
|
if (!(i != null && i !== "" && !(i instanceof Array && i.length === 0))) return !1;
|
|
@@ -654,20 +675,20 @@ var Ze = {
|
|
|
654
675
|
if (a == null || a === "" || a instanceof Array && a.length === 0) return !0;
|
|
655
676
|
let o = r.innerModel?.[r.field.name]?.[n];
|
|
656
677
|
return !o || o[t.name] === void 0 || o[t.name] === null;
|
|
657
|
-
}, x =
|
|
678
|
+
}, x = Te(async () => {
|
|
658
679
|
if (!r.is_form_design) try {
|
|
659
|
-
let e =
|
|
680
|
+
let e = te();
|
|
660
681
|
if (e.length === 0 || !r.value || r.value.length === 0) return;
|
|
661
682
|
let t = r.value;
|
|
662
683
|
for (let n of e) {
|
|
663
684
|
let e = [];
|
|
664
685
|
if (t.forEach((t, r) => {
|
|
665
|
-
|
|
686
|
+
b(t, n, r) && e.push({
|
|
666
687
|
rowIndex: r,
|
|
667
688
|
row: t
|
|
668
689
|
});
|
|
669
690
|
}), e.length === 0) continue;
|
|
670
|
-
let i = await
|
|
691
|
+
let i = await Qe({
|
|
671
692
|
field: n,
|
|
672
693
|
targets: e,
|
|
673
694
|
baseKeyPath: [...r.baseKeyPath || [], r.field.name],
|
|
@@ -687,31 +708,31 @@ var Ze = {
|
|
|
687
708
|
i("labels_resolved");
|
|
688
709
|
}
|
|
689
710
|
}, 300);
|
|
690
|
-
|
|
711
|
+
K(() => [
|
|
691
712
|
r.value,
|
|
692
713
|
r.field,
|
|
693
714
|
r.context
|
|
694
715
|
], () => {
|
|
695
716
|
x();
|
|
696
717
|
}, { deep: !0 });
|
|
697
|
-
let
|
|
718
|
+
let ne = D(() => {
|
|
698
719
|
if (r.innerModel) {
|
|
699
720
|
let e = r.innerModel[r.field.name] || [];
|
|
700
721
|
return (r.value || []).map((t, n) => e[n] || {});
|
|
701
722
|
}
|
|
702
723
|
return [];
|
|
703
|
-
}),
|
|
724
|
+
}), S = D(() => {
|
|
704
725
|
let e = [], t = 0;
|
|
705
726
|
for (let n of f.value) n.is_summary && e.push({ index: t }), t++;
|
|
706
727
|
return e;
|
|
707
728
|
});
|
|
708
729
|
return (e, t) => {
|
|
709
|
-
let r =
|
|
710
|
-
return
|
|
730
|
+
let r = U("CopyOutlined"), i = U("a-button"), a = U("DeleteOutlined"), s = U("s-table-summary-cell"), c = U("s-table-summary-row"), l = U("s-table");
|
|
731
|
+
return z(), O(C, {
|
|
711
732
|
"dynamic-title": e.field.dynamicTitle,
|
|
712
733
|
"onUpdate:dynamicTitle": t[1] ||= (t) => e.field.dynamicTitle = t
|
|
713
734
|
}, {
|
|
714
|
-
default:
|
|
735
|
+
default: q(() => [(z(), O(l, {
|
|
715
736
|
dataSource: g.value,
|
|
716
737
|
columns: f.value,
|
|
717
738
|
autoRowHeight: !0,
|
|
@@ -725,25 +746,33 @@ var Ze = {
|
|
|
725
746
|
pagination: n.value,
|
|
726
747
|
"onUpdate:pagination": t[0] ||= (e) => n.value = e,
|
|
727
748
|
rangeSelection: !1
|
|
728
|
-
},
|
|
729
|
-
headerCell:
|
|
730
|
-
bodyCell:
|
|
749
|
+
}, M({
|
|
750
|
+
headerCell: q(({ column: e }) => [j("span", null, G(e.title), 1), e.has_reqrired ? (z(), A("span", $e, " * ")) : k("", !0)]),
|
|
751
|
+
bodyCell: q(({ column: t, record: n }) => [t.key === "action" ? (z(), A(E, { key: 0 }, [e.lockStructure ? k("", !0) : (z(), A("div", et, [P(i, {
|
|
752
|
+
onClick: (e) => ee(n._key),
|
|
753
|
+
size: "small",
|
|
754
|
+
type: "link",
|
|
755
|
+
disabled: e.field.max_count && e.value.length >= e.field.max_count
|
|
756
|
+
}, {
|
|
757
|
+
icon: q(() => [P(r)]),
|
|
758
|
+
_: 2
|
|
759
|
+
}, 1032, ["onClick", "disabled"]), P(i, {
|
|
731
760
|
onClick: (e) => y(n._key),
|
|
732
761
|
size: "small",
|
|
733
762
|
type: "link",
|
|
734
763
|
danger: "",
|
|
735
764
|
disabled: e.value.length <= e.min_count
|
|
736
765
|
}, {
|
|
737
|
-
icon:
|
|
766
|
+
icon: q(() => [P(a)]),
|
|
738
767
|
_: 2
|
|
739
|
-
}, 1032, ["onClick", "disabled"])]))], 64)) : t.key === "index" ? (
|
|
768
|
+
}, 1032, ["onClick", "disabled"])]))], 64)) : t.key === "index" ? (z(), A("div", tt, G(n._key + 1), 1)) : t.field ? (z(), O(Re, {
|
|
740
769
|
key: `${n._key}_${t.dataIndex}`,
|
|
741
770
|
field: t.field,
|
|
742
771
|
model: e.value[n._key],
|
|
743
772
|
validateInfos: o.value[n._key] || {},
|
|
744
773
|
options: e.field.form?.options || {},
|
|
745
774
|
context: e.context,
|
|
746
|
-
innerModel:
|
|
775
|
+
innerModel: ne.value[n._key],
|
|
747
776
|
globalInnerModel: e.globalInnerModel,
|
|
748
777
|
nestValidate: e.nestValidate,
|
|
749
778
|
baseKeyPath: [
|
|
@@ -769,19 +798,19 @@ var Ze = {
|
|
|
769
798
|
"is_form_design",
|
|
770
799
|
"has_reqrired",
|
|
771
800
|
"onUpdate_model"
|
|
772
|
-
])) :
|
|
801
|
+
])) : k("", !0)]),
|
|
773
802
|
_: 2
|
|
774
|
-
}, [
|
|
803
|
+
}, [S.value.length > 0 ? {
|
|
775
804
|
name: "summary",
|
|
776
|
-
fn:
|
|
777
|
-
default:
|
|
778
|
-
default:
|
|
805
|
+
fn: q(() => [P(c, null, {
|
|
806
|
+
default: q(() => [P(s, { index: 0 }, {
|
|
807
|
+
default: q(() => t[2] ||= [N("合计")]),
|
|
779
808
|
_: 1
|
|
780
|
-
}), (
|
|
809
|
+
}), (z(!0), A(E, null, H(S.value, (e) => (z(), O(s, {
|
|
781
810
|
key: e.index,
|
|
782
811
|
index: e.index
|
|
783
812
|
}, {
|
|
784
|
-
default:
|
|
813
|
+
default: q((e) => [P(Ve, {
|
|
785
814
|
"summary-params": e,
|
|
786
815
|
tableDataSource: g.value
|
|
787
816
|
}, null, 8, ["summary-params", "tableDataSource"])]),
|
|
@@ -800,11 +829,34 @@ var Ze = {
|
|
|
800
829
|
}, 8, ["dynamic-title"]);
|
|
801
830
|
};
|
|
802
831
|
}
|
|
803
|
-
}), [["__scopeId", "data-v-
|
|
804
|
-
function
|
|
832
|
+
}), [["__scopeId", "data-v-8fe39450"]]), Z = /* @__PURE__ */ new Set();
|
|
833
|
+
function rt(e, t = []) {
|
|
805
834
|
return [...t, e.name || e.code || "field"].join("__");
|
|
806
835
|
}
|
|
807
|
-
|
|
836
|
+
function it(e) {
|
|
837
|
+
return Z.has(e);
|
|
838
|
+
}
|
|
839
|
+
function at(e) {
|
|
840
|
+
return e.some((e) => Z.has(e)) ? !1 : (e.forEach((e) => Z.add(e)), !0);
|
|
841
|
+
}
|
|
842
|
+
function ot(e) {
|
|
843
|
+
e.forEach((e) => Z.delete(e));
|
|
844
|
+
}
|
|
845
|
+
async function st(e, t) {
|
|
846
|
+
let n = e.serialConfig || {};
|
|
847
|
+
try {
|
|
848
|
+
let e = await a({
|
|
849
|
+
org_id: c(),
|
|
850
|
+
mode: n.mode || "M1",
|
|
851
|
+
kwargs: JSON.stringify(n),
|
|
852
|
+
count: t
|
|
853
|
+
}, "/approve/get_approve_serial_number", !1), r = (Array.isArray(e) ? e : [e]).filter((e) => e != null && e !== "");
|
|
854
|
+
return r.length === t ? { codes: r } : { error: "流水号批量分配返回数量不符" };
|
|
855
|
+
} catch (e) {
|
|
856
|
+
return console.error(e), { error: e?.message || "流水号批量分配失败" };
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
async function ct(e) {
|
|
808
860
|
try {
|
|
809
861
|
let t = e.serialConfig || {};
|
|
810
862
|
return { value: await a({
|
|
@@ -820,7 +872,7 @@ async function rt(e) {
|
|
|
820
872
|
};
|
|
821
873
|
}
|
|
822
874
|
}
|
|
823
|
-
async function
|
|
875
|
+
async function lt(e) {
|
|
824
876
|
let { field: t, currentValue: n, innerModel: r, globalInnerModel: i, formModel: o, context: s, baseKeyPath: l = [], workerHostFunctions: d = {}, is_form_design: f = !1, lock_structure: p = !1 } = e;
|
|
825
877
|
if (t.watchType === "scoped") {
|
|
826
878
|
if (t.valueType === "single") {
|
|
@@ -851,7 +903,7 @@ async function it(e) {
|
|
|
851
903
|
}
|
|
852
904
|
}
|
|
853
905
|
} else if (t.watchType === "context") {
|
|
854
|
-
let e =
|
|
906
|
+
let e = x(t.fieldName || "", s, ["formModel", ...l]);
|
|
855
907
|
if (t.valueType === "single") {
|
|
856
908
|
let r = e;
|
|
857
909
|
if (t.valueKey && (r = r?.[t.valueKey]), r === void 0 && n !== void 0) return { value: "" };
|
|
@@ -885,11 +937,11 @@ async function it(e) {
|
|
|
885
937
|
else if (t.watchType === "serial") {
|
|
886
938
|
let e = t.serialConfig || {};
|
|
887
939
|
if (p && e.mode === "M5") return null;
|
|
888
|
-
if (f) return await
|
|
940
|
+
if (f) return await ct(t);
|
|
889
941
|
if (n != null && n !== "") return null;
|
|
890
|
-
let r =
|
|
891
|
-
if (
|
|
892
|
-
|
|
942
|
+
let r = rt(t, l);
|
|
943
|
+
if (Z.has(r)) return null;
|
|
944
|
+
Z.add(r);
|
|
893
945
|
try {
|
|
894
946
|
let t = await a({
|
|
895
947
|
org_id: c(),
|
|
@@ -903,23 +955,23 @@ async function it(e) {
|
|
|
903
955
|
error: e?.message || "流水号分配失败"
|
|
904
956
|
};
|
|
905
957
|
} finally {
|
|
906
|
-
|
|
958
|
+
Z.delete(r);
|
|
907
959
|
}
|
|
908
960
|
}
|
|
909
961
|
return null;
|
|
910
962
|
}
|
|
911
963
|
//#endregion
|
|
912
964
|
//#region src/components/FormRender/addonValue.ts
|
|
913
|
-
var
|
|
914
|
-
if (!
|
|
965
|
+
var ut = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, dt = (e, t) => t && e.endsWith(t) ? e.slice(0, -t.length) : e, ft = (e) => e != null && !(e instanceof Array) && typeof e != "object", pt = (e, t) => {
|
|
966
|
+
if (!ft(t)) return t;
|
|
915
967
|
let n = `${t}`;
|
|
916
|
-
return e?.extraAddonAfter && e?.addonAfter && (n =
|
|
917
|
-
},
|
|
918
|
-
let n =
|
|
919
|
-
if (!
|
|
968
|
+
return e?.extraAddonAfter && e?.addonAfter && (n = dt(n, e.addonAfter)), e?.extraAddonBefore && e?.addonBefore && (n = ut(n, e.addonBefore)), n;
|
|
969
|
+
}, mt = (e, t) => {
|
|
970
|
+
let n = pt(e, t);
|
|
971
|
+
if (!ft(n) || n === "") return n;
|
|
920
972
|
let r = `${n}`;
|
|
921
973
|
return e?.extraAddonBefore && e?.addonBefore && (r = `${e.addonBefore}${r}`), e?.extraAddonAfter && e?.addonAfter && (r = `${r}${e.addonAfter}`), r;
|
|
922
|
-
}, Q = i(),
|
|
974
|
+
}, Q = i(), ht = { class: "top_btn" }, gt = /*#__PURE__*/ n(/* @__PURE__ */ F({
|
|
923
975
|
__name: "FormTemplate",
|
|
924
976
|
props: {
|
|
925
977
|
field: {},
|
|
@@ -942,16 +994,16 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
942
994
|
},
|
|
943
995
|
emits: ["update:value"],
|
|
944
996
|
setup(e, { emit: t }) {
|
|
945
|
-
let n = e, r =
|
|
997
|
+
let n = e, r = pe("FORM_LOCK_STRUCTURE", V(!1)), i = D(() => !!n.lockStructure || !!ve(r)), a = t, o = V(0), s = Ae(), c = [{
|
|
946
998
|
label: "添加(add)",
|
|
947
999
|
value: "add"
|
|
948
1000
|
}, {
|
|
949
1001
|
label: "整体更新(update)",
|
|
950
1002
|
value: "update"
|
|
951
|
-
}], l =
|
|
952
|
-
|
|
1003
|
+
}], l = de(() => import("./ImportExcelModal-Dds857L2.js")), d = D(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("download"))), f = D(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("import"))), p = () => {
|
|
1004
|
+
Se.confirm({
|
|
953
1005
|
title: "确认清空吗?",
|
|
954
|
-
icon:
|
|
1006
|
+
icon: P(De),
|
|
955
1007
|
content: "清空后将无法恢复",
|
|
956
1008
|
okText: "确认",
|
|
957
1009
|
cancelText: "取消",
|
|
@@ -959,7 +1011,7 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
959
1011
|
a("update:value", []);
|
|
960
1012
|
}
|
|
961
1013
|
});
|
|
962
|
-
}, m =
|
|
1014
|
+
}, m = D(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("clear"))), h = D(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("add"))), g = {}, _ = {}, v = () => {
|
|
963
1015
|
let e = [], t = n.field.form?.dynamicFieldList || [];
|
|
964
1016
|
t.forEach((t) => {
|
|
965
1017
|
t.children instanceof Array && t.children.forEach((t) => {
|
|
@@ -974,7 +1026,7 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
974
1026
|
].includes(t.type) && (r.options = n.field.form?.options?.[t.name] || t.options), e.push(r);
|
|
975
1027
|
});
|
|
976
1028
|
});
|
|
977
|
-
let r =
|
|
1029
|
+
let r = B({
|
|
978
1030
|
open: !0,
|
|
979
1031
|
loading: !1,
|
|
980
1032
|
component: l,
|
|
@@ -985,7 +1037,7 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
985
1037
|
e.forEach((e) => {
|
|
986
1038
|
let r = (0, Q.cloneDeep)(n.field.form.model || {});
|
|
987
1039
|
Object.keys(e).forEach((t) => {
|
|
988
|
-
e[t].error && i.push(
|
|
1040
|
+
e[t].error && i.push(fe("li", e[t].error + "(" + e[t].excel_position + ")")), r[t] = e[t].value, g[t] && (r[g[t]] = e[t].raw_value);
|
|
989
1041
|
let n = _[t];
|
|
990
1042
|
if (n) {
|
|
991
1043
|
let i = e[t].raw_value;
|
|
@@ -996,18 +1048,18 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
996
1048
|
e.type === "dynamicvaluefield" && delete r[e.name];
|
|
997
1049
|
});
|
|
998
1050
|
}), o.push(r);
|
|
999
|
-
}), i.length > 0 ?
|
|
1051
|
+
}), i.length > 0 ? Se.warning({
|
|
1000
1052
|
title: "导入Excel报错, 请改正后再尝试导入",
|
|
1001
|
-
content:
|
|
1002
|
-
icon:
|
|
1053
|
+
content: fe("ol", i),
|
|
1054
|
+
icon: P(De)
|
|
1003
1055
|
}) : a("update:value", [...n.value || [], ...o]), r.open = !1;
|
|
1004
1056
|
},
|
|
1005
1057
|
onCancel: () => {
|
|
1006
1058
|
r.open = !1;
|
|
1007
1059
|
}
|
|
1008
1060
|
});
|
|
1009
|
-
|
|
1010
|
-
}, y =
|
|
1061
|
+
b(r);
|
|
1062
|
+
}, y = V(!1), ee = (e) => {
|
|
1011
1063
|
if (n.field?.form?.rules) {
|
|
1012
1064
|
let t = n.field?.form?.rules[e];
|
|
1013
1065
|
if (t) {
|
|
@@ -1015,17 +1067,17 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1015
1067
|
}
|
|
1016
1068
|
}
|
|
1017
1069
|
return !1;
|
|
1018
|
-
},
|
|
1070
|
+
}, te = () => {
|
|
1019
1071
|
y.value = !0;
|
|
1020
1072
|
let e = [], t = [];
|
|
1021
1073
|
(n.field.form?.dynamicFieldList || []).forEach((r) => {
|
|
1022
1074
|
r.children instanceof Array && r.children.forEach((r) => {
|
|
1023
|
-
r.is_hide || r.is_table_hide_column || r.type !== "dynamicvaluefield" && (e.push(
|
|
1075
|
+
r.is_hide || r.is_table_hide_column || r.type !== "dynamicvaluefield" && (e.push(ee(r.name) ? { title: [r.label, {
|
|
1024
1076
|
text: "[必填]",
|
|
1025
1077
|
color: "FFFF0000"
|
|
1026
1078
|
}] } : { title: [r.label] }), n.value && n.value.length > 0 ? t.push(n.value[0][r.name] ? n.value[0][r.name].toString() : "") : t.push(""));
|
|
1027
1079
|
});
|
|
1028
|
-
}),
|
|
1080
|
+
}), ne({
|
|
1029
1081
|
data: [t],
|
|
1030
1082
|
autoWidth: !0,
|
|
1031
1083
|
filename: n.field.label || "导入模板",
|
|
@@ -1033,7 +1085,7 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1033
1085
|
}), setTimeout(() => {
|
|
1034
1086
|
y.value = !1;
|
|
1035
1087
|
}, 1500);
|
|
1036
|
-
},
|
|
1088
|
+
}, x = D(() => n.field.min_count ?? 0), S = D(() => {
|
|
1037
1089
|
if (n.innerModel) {
|
|
1038
1090
|
n.innerModel[n.field.name] || (n.innerModel[n.field.name] = []);
|
|
1039
1091
|
for (let e = 0; e < n.value.length; e++) n.innerModel[n.field.name][e] || (n.innerModel[n.field.name][e] = {});
|
|
@@ -1050,7 +1102,7 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1050
1102
|
keyPath: [...n.baseKeyPath, n.field.name]
|
|
1051
1103
|
}, n.workerHostFunctions || {});
|
|
1052
1104
|
} catch (e) {
|
|
1053
|
-
|
|
1105
|
+
Ce.error(e.message);
|
|
1054
1106
|
return;
|
|
1055
1107
|
}
|
|
1056
1108
|
if (e.action == "add") {
|
|
@@ -1075,10 +1127,24 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1075
1127
|
}, ae = (e) => {
|
|
1076
1128
|
let t = n.value || [];
|
|
1077
1129
|
t.splice(e, 1), a("update:value", t);
|
|
1130
|
+
}, oe = (e) => {
|
|
1131
|
+
let t = n.value || [], r = t[e];
|
|
1132
|
+
if (!r || n.field.max_count && t.length >= n.field.max_count) return;
|
|
1133
|
+
let i = (0, Q.cloneDeep)(r);
|
|
1134
|
+
for (let e of T.value) e.watchType === "serial" && delete i[e.name];
|
|
1135
|
+
t.splice(e + 1, 0, i);
|
|
1136
|
+
let o = /* @__PURE__ */ new Set();
|
|
1137
|
+
for (let e of [n.innerModel, n.globalInnerModel]) {
|
|
1138
|
+
let t = e?.[n.field.name];
|
|
1139
|
+
t instanceof Array && o.add(t);
|
|
1140
|
+
}
|
|
1141
|
+
o.forEach((t) => {
|
|
1142
|
+
t.splice(e + 1, 0, (0, Q.cloneDeep)(t[e] || {}));
|
|
1143
|
+
}), a("update:value", t);
|
|
1078
1144
|
}, w = (0, Q.debounce)(() => {
|
|
1079
1145
|
o.value = window.innerHeight - 165;
|
|
1080
|
-
}, 200),
|
|
1081
|
-
|
|
1146
|
+
}, 200), se = () => {
|
|
1147
|
+
b(B({
|
|
1082
1148
|
open: !0,
|
|
1083
1149
|
loading: !1,
|
|
1084
1150
|
component: "InnerFormDesignModal",
|
|
@@ -1097,44 +1163,90 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1097
1163
|
}
|
|
1098
1164
|
}));
|
|
1099
1165
|
};
|
|
1100
|
-
|
|
1101
|
-
if (!(e instanceof Array) || e.length <
|
|
1166
|
+
K(() => n.value, (e) => {
|
|
1167
|
+
if (!(e instanceof Array) || e.length < x.value) {
|
|
1102
1168
|
let t = [...e || []];
|
|
1103
|
-
for (; t.length <
|
|
1169
|
+
for (; t.length < x.value;) t.push((0, Q.cloneDeep)(n.field.form.model || {}));
|
|
1104
1170
|
a("update:value", t);
|
|
1105
1171
|
}
|
|
1106
1172
|
});
|
|
1107
|
-
let
|
|
1173
|
+
let T = D(() => {
|
|
1108
1174
|
let e = [];
|
|
1109
1175
|
return (n.field?.form?.dynamicFieldList || []).forEach((t) => {
|
|
1110
1176
|
t.children instanceof Array && t.children.forEach((t) => {
|
|
1111
1177
|
t.type === "dynamicvaluefield" && e.push(t);
|
|
1112
1178
|
});
|
|
1113
1179
|
}), e;
|
|
1114
|
-
}),
|
|
1180
|
+
}), ce = D(() => {
|
|
1115
1181
|
let e = [];
|
|
1116
1182
|
return (n.field?.form?.dynamicFieldList || []).forEach((t) => {
|
|
1117
1183
|
t.children instanceof Array && t.children.forEach((t) => {
|
|
1118
1184
|
(t.extraAddonBefore && t.addonBefore || t.extraAddonAfter && t.addonAfter) && e.push(t);
|
|
1119
1185
|
});
|
|
1120
1186
|
}), e;
|
|
1121
|
-
}),
|
|
1122
|
-
|
|
1123
|
-
},
|
|
1124
|
-
if (!
|
|
1125
|
-
|
|
1187
|
+
}), le = V(!1), ue = D(() => 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))), M = V(!1), F = () => {
|
|
1188
|
+
M.value = !1, I(), L();
|
|
1189
|
+
}, I = (0, Q.debounce)(async () => {
|
|
1190
|
+
if (!le.value && !M.value) {
|
|
1191
|
+
le.value = !0;
|
|
1126
1192
|
try {
|
|
1127
1193
|
let e = n.value;
|
|
1128
|
-
if (!e || e.length === 0 ||
|
|
1194
|
+
if (!e || e.length === 0 || T.value.length === 0) return;
|
|
1129
1195
|
let t = !1, r = [...e];
|
|
1196
|
+
for (let e of T.value) {
|
|
1197
|
+
if (e.watchType !== "serial" || i.value && e.serialConfig?.mode === "M5") continue;
|
|
1198
|
+
let a = [];
|
|
1199
|
+
for (let t = 0; t < r.length; t++) {
|
|
1200
|
+
let n = r[t]?.[e.name];
|
|
1201
|
+
(n == null || n === "") && a.push(t);
|
|
1202
|
+
}
|
|
1203
|
+
if (a.length === 0) continue;
|
|
1204
|
+
if (n.is_form_design) {
|
|
1205
|
+
let o = await lt({
|
|
1206
|
+
field: e,
|
|
1207
|
+
currentValue: void 0,
|
|
1208
|
+
innerModel: null,
|
|
1209
|
+
globalInnerModel: n.globalInnerModel,
|
|
1210
|
+
formModel: null,
|
|
1211
|
+
context: n.context,
|
|
1212
|
+
baseKeyPath: [...n.baseKeyPath || [], n.field.name],
|
|
1213
|
+
workerHostFunctions: n.workerHostFunctions || {},
|
|
1214
|
+
is_form_design: !0,
|
|
1215
|
+
lock_structure: i.value
|
|
1216
|
+
});
|
|
1217
|
+
if (o && o.value !== void 0 && o.value !== null) for (let n of a) r[n] = {
|
|
1218
|
+
...r[n],
|
|
1219
|
+
[e.name]: o.value
|
|
1220
|
+
}, t = !0;
|
|
1221
|
+
continue;
|
|
1222
|
+
}
|
|
1223
|
+
let o = [...n.baseKeyPath || [], n.field.name], s = a.map((t) => ({
|
|
1224
|
+
row: t,
|
|
1225
|
+
key: rt(e, [...o, t])
|
|
1226
|
+
})).filter((e) => !it(e.key));
|
|
1227
|
+
if (s.length === 0) continue;
|
|
1228
|
+
let c = s.map((e) => e.key);
|
|
1229
|
+
if (at(c)) try {
|
|
1230
|
+
let { codes: n, error: i } = await st(e, s.length);
|
|
1231
|
+
i || !n ? console.error("流水号批量分配失败:", i) : s.forEach((i, a) => {
|
|
1232
|
+
r[i.row] = {
|
|
1233
|
+
...r[i.row],
|
|
1234
|
+
[e.name]: n[a]
|
|
1235
|
+
}, t = !0;
|
|
1236
|
+
});
|
|
1237
|
+
} finally {
|
|
1238
|
+
ot(c);
|
|
1239
|
+
}
|
|
1240
|
+
}
|
|
1130
1241
|
for (let e = 0; e < r.length; e++) {
|
|
1131
|
-
let a =
|
|
1242
|
+
let a = S.value[e], o = [
|
|
1132
1243
|
...n.baseKeyPath || [],
|
|
1133
1244
|
n.field.name,
|
|
1134
1245
|
e
|
|
1135
1246
|
];
|
|
1136
|
-
for (let s of
|
|
1137
|
-
|
|
1247
|
+
for (let s of T.value) {
|
|
1248
|
+
if (s.watchType === "serial") continue;
|
|
1249
|
+
let c = r[e]?.[s.name], l = await lt({
|
|
1138
1250
|
field: s,
|
|
1139
1251
|
currentValue: c,
|
|
1140
1252
|
innerModel: a,
|
|
@@ -1154,98 +1266,98 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1154
1266
|
}
|
|
1155
1267
|
t && a("update:value", r);
|
|
1156
1268
|
} finally {
|
|
1157
|
-
|
|
1269
|
+
le.value = !1;
|
|
1158
1270
|
}
|
|
1159
1271
|
}
|
|
1160
|
-
}, 200),
|
|
1272
|
+
}, 200), L = (0, Q.debounce)(() => {
|
|
1161
1273
|
let e = n.value;
|
|
1162
|
-
if (!e || e.length === 0 ||
|
|
1274
|
+
if (!e || e.length === 0 || ce.value.length === 0) return;
|
|
1163
1275
|
let t = !1, r = [...e];
|
|
1164
1276
|
for (let e = 0; e < r.length; e++) {
|
|
1165
1277
|
let n = r[e];
|
|
1166
1278
|
if (!n || typeof n != "object") continue;
|
|
1167
1279
|
let i = n;
|
|
1168
|
-
for (let e of
|
|
1169
|
-
let r = i[e.name], a =
|
|
1280
|
+
for (let e of ce.value) {
|
|
1281
|
+
let r = i[e.name], a = mt(e, r);
|
|
1170
1282
|
a !== r && (i === n && (i = { ...n }), i[e.name] = a, t = !0);
|
|
1171
1283
|
}
|
|
1172
1284
|
r[e] = i;
|
|
1173
1285
|
}
|
|
1174
1286
|
t && a("update:value", r);
|
|
1175
1287
|
}, 200);
|
|
1176
|
-
return
|
|
1288
|
+
return K(() => [
|
|
1177
1289
|
n.value,
|
|
1178
1290
|
n.context,
|
|
1179
1291
|
n.field
|
|
1180
1292
|
], () => {
|
|
1181
|
-
|
|
1293
|
+
ue.value ? M.value = !0 : M.value = !1, I(), L();
|
|
1182
1294
|
}, {
|
|
1183
1295
|
deep: !0,
|
|
1184
1296
|
immediate: !0
|
|
1185
|
-
}),
|
|
1186
|
-
|
|
1187
|
-
}, { deep: !0 }),
|
|
1188
|
-
if (window.addEventListener("resize", w), w(), !(n.value instanceof Array) || n.value.length <
|
|
1297
|
+
}), K(() => [n.innerModel, n.globalInnerModel], () => {
|
|
1298
|
+
I(), L();
|
|
1299
|
+
}, { deep: !0 }), R(() => {
|
|
1300
|
+
if (window.addEventListener("resize", w), w(), !(n.value instanceof Array) || n.value.length < x.value) {
|
|
1189
1301
|
let e = [...n.value || []];
|
|
1190
|
-
for (; e.length <
|
|
1302
|
+
for (; e.length < x.value;) e.push((0, Q.cloneDeep)(n.field.form.model || {}));
|
|
1191
1303
|
a("update:value", e);
|
|
1192
1304
|
}
|
|
1193
|
-
}),
|
|
1194
|
-
window.removeEventListener("resize", w), w.cancel(),
|
|
1305
|
+
}), ge(() => {
|
|
1306
|
+
window.removeEventListener("resize", w), w.cancel(), I.cancel(), L.cancel();
|
|
1195
1307
|
}), (e, t) => {
|
|
1196
|
-
let n =
|
|
1197
|
-
return
|
|
1198
|
-
e.is_form_design ? (
|
|
1308
|
+
let n = U("a-button");
|
|
1309
|
+
return z(), A(E, null, [j("div", ht, [
|
|
1310
|
+
e.is_form_design ? (z(), O(n, {
|
|
1199
1311
|
key: 0,
|
|
1200
1312
|
type: "primary",
|
|
1201
1313
|
size: "small",
|
|
1202
|
-
onClick:
|
|
1314
|
+
onClick: se,
|
|
1203
1315
|
ghost: !0
|
|
1204
1316
|
}, {
|
|
1205
|
-
default:
|
|
1317
|
+
default: q(() => t[0] ||= [N(" 编辑表单 ")]),
|
|
1206
1318
|
_: 1
|
|
1207
|
-
})) :
|
|
1208
|
-
m.value && !i.value ? (
|
|
1319
|
+
})) : k("", !0),
|
|
1320
|
+
m.value && !i.value ? (z(), O(n, {
|
|
1209
1321
|
key: 1,
|
|
1210
1322
|
size: "small",
|
|
1211
1323
|
type: "primary",
|
|
1212
1324
|
onClick: p,
|
|
1213
1325
|
danger: !0
|
|
1214
1326
|
}, {
|
|
1215
|
-
default:
|
|
1327
|
+
default: q(() => t[1] ||= [N(" 清空 ")]),
|
|
1216
1328
|
_: 1
|
|
1217
|
-
})) :
|
|
1218
|
-
d.value && !i.value ? (
|
|
1329
|
+
})) : k("", !0),
|
|
1330
|
+
d.value && !i.value ? (z(), O(n, {
|
|
1219
1331
|
key: 2,
|
|
1220
1332
|
size: "small",
|
|
1221
1333
|
type: "primary",
|
|
1222
1334
|
loading: y.value,
|
|
1223
|
-
onClick:
|
|
1335
|
+
onClick: te
|
|
1224
1336
|
}, {
|
|
1225
|
-
default:
|
|
1337
|
+
default: q(() => t[2] ||= [N(" 下载导入模版 ")]),
|
|
1226
1338
|
_: 1
|
|
1227
|
-
}, 8, ["loading"])) :
|
|
1228
|
-
f.value && !i.value ? (
|
|
1339
|
+
}, 8, ["loading"])) : k("", !0),
|
|
1340
|
+
f.value && !i.value ? (z(), O(n, {
|
|
1229
1341
|
key: 3,
|
|
1230
1342
|
size: "small",
|
|
1231
1343
|
type: "primary",
|
|
1232
1344
|
onClick: v
|
|
1233
1345
|
}, {
|
|
1234
|
-
default:
|
|
1346
|
+
default: q(() => t[3] ||= [N(" 导入Excel数据 ")]),
|
|
1235
1347
|
_: 1
|
|
1236
|
-
})) :
|
|
1237
|
-
h.value && (!e.field.custom_btn_list?.length || e.field.max_count !==
|
|
1348
|
+
})) : k("", !0),
|
|
1349
|
+
h.value && (!e.field.custom_btn_list?.length || e.field.max_count !== x.value) && !i.value ? (z(), O(n, {
|
|
1238
1350
|
key: 4,
|
|
1239
1351
|
type: "primary",
|
|
1240
1352
|
size: "small",
|
|
1241
1353
|
onClick: ie,
|
|
1242
1354
|
disabled: e.field.max_count && e.value.length >= e.field.max_count
|
|
1243
1355
|
}, {
|
|
1244
|
-
icon:
|
|
1245
|
-
default:
|
|
1356
|
+
icon: q(() => [P(ve(Oe))]),
|
|
1357
|
+
default: q(() => [N(" " + G(e.field.btn_title || "添加"), 1)]),
|
|
1246
1358
|
_: 1
|
|
1247
|
-
}, 8, ["disabled"])) :
|
|
1248
|
-
(
|
|
1359
|
+
}, 8, ["disabled"])) : k("", !0),
|
|
1360
|
+
(z(!0), A(E, null, H(e.field.custom_btn_list, (t) => (z(), O(C, {
|
|
1249
1361
|
action_code_id: t.action_code_id,
|
|
1250
1362
|
code: t.code,
|
|
1251
1363
|
"onUpdate:code": (e) => t.code = e,
|
|
@@ -1253,7 +1365,7 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1253
1365
|
"onUpdate:action": (e) => t.action = e,
|
|
1254
1366
|
options: c
|
|
1255
1367
|
}, {
|
|
1256
|
-
default:
|
|
1368
|
+
default: q(() => [!i.value || t.show_on_modify ? (z(), O(n, {
|
|
1257
1369
|
key: 0,
|
|
1258
1370
|
size: "small",
|
|
1259
1371
|
type: t.type,
|
|
@@ -1261,14 +1373,14 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1261
1373
|
onClick: (e) => re(t),
|
|
1262
1374
|
disabled: e.field.max_count && e.value.length >= e.field.max_count && t.action === "add"
|
|
1263
1375
|
}, {
|
|
1264
|
-
default:
|
|
1376
|
+
default: q(() => [N(G(t.label), 1)]),
|
|
1265
1377
|
_: 2
|
|
1266
1378
|
}, 1032, [
|
|
1267
1379
|
"type",
|
|
1268
1380
|
"danger",
|
|
1269
1381
|
"onClick",
|
|
1270
1382
|
"disabled"
|
|
1271
|
-
])) :
|
|
1383
|
+
])) : k("", !0)]),
|
|
1272
1384
|
_: 2
|
|
1273
1385
|
}, 1032, [
|
|
1274
1386
|
"action_code_id",
|
|
@@ -1277,7 +1389,7 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1277
1389
|
"action",
|
|
1278
1390
|
"onUpdate:action"
|
|
1279
1391
|
]))), 256))
|
|
1280
|
-
]), e.field.showType === "table" ? (
|
|
1392
|
+
]), e.field.showType === "table" ? (z(), O(nt, {
|
|
1281
1393
|
key: 0,
|
|
1282
1394
|
value: e.value,
|
|
1283
1395
|
field: e.field,
|
|
@@ -1288,11 +1400,12 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1288
1400
|
nestValidate: e.nestValidate,
|
|
1289
1401
|
"base-key-path": e.baseKeyPath,
|
|
1290
1402
|
"worker-host-functions": e.workerHostFunctions,
|
|
1291
|
-
min_count:
|
|
1403
|
+
min_count: x.value,
|
|
1292
1404
|
"lock-structure": i.value,
|
|
1293
1405
|
formModel: e.formModel,
|
|
1294
1406
|
onRemove: ae,
|
|
1295
|
-
|
|
1407
|
+
onCopy: oe,
|
|
1408
|
+
onLabels_resolved: F
|
|
1296
1409
|
}, null, 8, [
|
|
1297
1410
|
"value",
|
|
1298
1411
|
"field",
|
|
@@ -1306,7 +1419,7 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1306
1419
|
"min_count",
|
|
1307
1420
|
"lock-structure",
|
|
1308
1421
|
"formModel"
|
|
1309
|
-
])) : (
|
|
1422
|
+
])) : (z(!0), A(E, { key: 1 }, H(e.value, (t, n) => (z(), O(Ie, {
|
|
1310
1423
|
form: e.field.form,
|
|
1311
1424
|
field: e.field,
|
|
1312
1425
|
value: e.value[n],
|
|
@@ -1314,16 +1427,17 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1314
1427
|
options: e.field.form?.options,
|
|
1315
1428
|
alwaysShowGroup: e.alwaysShowGroup,
|
|
1316
1429
|
is_form_design: e.is_form_design,
|
|
1317
|
-
"inner-model":
|
|
1430
|
+
"inner-model": S.value[n],
|
|
1318
1431
|
"global-inner-model": e.globalInnerModel,
|
|
1319
1432
|
modalTypeList: e.modalTypeList,
|
|
1320
1433
|
modalType: e.modalType,
|
|
1321
1434
|
nestValidate: e.nestValidate,
|
|
1322
|
-
min_count:
|
|
1435
|
+
min_count: x.value,
|
|
1323
1436
|
listLength: e.value.length,
|
|
1324
1437
|
context: e.context,
|
|
1325
1438
|
"lock-structure": i.value,
|
|
1326
1439
|
onRemove: (e) => ae(n),
|
|
1440
|
+
onCopy: (e) => oe(n),
|
|
1327
1441
|
"base-key-path": [
|
|
1328
1442
|
...e.baseKeyPath,
|
|
1329
1443
|
e.field.name,
|
|
@@ -1348,15 +1462,16 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1348
1462
|
"context",
|
|
1349
1463
|
"lock-structure",
|
|
1350
1464
|
"onRemove",
|
|
1465
|
+
"onCopy",
|
|
1351
1466
|
"base-key-path",
|
|
1352
1467
|
"worker-host-functions"
|
|
1353
1468
|
]))), 256))], 64);
|
|
1354
1469
|
};
|
|
1355
1470
|
}
|
|
1356
|
-
}), [["__scopeId", "data-v-
|
|
1471
|
+
}), [["__scopeId", "data-v-35d5d64d"]]), _t = {
|
|
1357
1472
|
key: 0,
|
|
1358
1473
|
class: "error-msg"
|
|
1359
|
-
},
|
|
1474
|
+
}, vt = /*#__PURE__*/ n(/* @__PURE__ */ F({
|
|
1360
1475
|
name: "DynamicValueField",
|
|
1361
1476
|
__name: "DynamicValueField",
|
|
1362
1477
|
props: {
|
|
@@ -1396,8 +1511,8 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1396
1511
|
},
|
|
1397
1512
|
emits: ["update:value"],
|
|
1398
1513
|
setup(e, { emit: t }) {
|
|
1399
|
-
let n = e, r = t, i =
|
|
1400
|
-
let u = await
|
|
1514
|
+
let n = e, r = t, i = pe("FORM_LOCK_STRUCTURE", V(!1)), a = D(() => !!ve(i)), o = V(null), s = V(n.value || ""), c = D(() => n.is_form_design ? s.value : n.value), l = (0, Q.debounce)(async (e, t, i, l) => {
|
|
1515
|
+
let u = await lt({
|
|
1401
1516
|
field: i,
|
|
1402
1517
|
currentValue: c.value,
|
|
1403
1518
|
innerModel: e,
|
|
@@ -1411,7 +1526,7 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1411
1526
|
});
|
|
1412
1527
|
u && (n.is_form_design ? s.value = u.value ?? "" : u.value !== void 0 && u.value !== null && r("update:value", u.value), (i.watchType === "code" || i.watchType === "serial") && (o.value = u.error || null));
|
|
1413
1528
|
}, 200);
|
|
1414
|
-
return
|
|
1529
|
+
return K(() => [
|
|
1415
1530
|
n.innerModel,
|
|
1416
1531
|
n.globalInnerModel,
|
|
1417
1532
|
n.field,
|
|
@@ -1423,22 +1538,22 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1423
1538
|
immediate: !0,
|
|
1424
1539
|
deep: !0
|
|
1425
1540
|
}), (t, n) => {
|
|
1426
|
-
let r =
|
|
1427
|
-
return
|
|
1541
|
+
let r = U("a-input");
|
|
1542
|
+
return z(), A(E, null, [P(C, {
|
|
1428
1543
|
"value-code": e.field,
|
|
1429
1544
|
"show-debug-code": e.field.watchType === "code"
|
|
1430
1545
|
}, {
|
|
1431
|
-
default:
|
|
1546
|
+
default: q(() => [P(r, {
|
|
1432
1547
|
value: c.value,
|
|
1433
1548
|
readonly: "",
|
|
1434
1549
|
size: "small",
|
|
1435
1550
|
style: { "background-color": "#f5f5f5" }
|
|
1436
1551
|
}, null, 8, ["value"])]),
|
|
1437
1552
|
_: 1
|
|
1438
|
-
}, 8, ["value-code", "show-debug-code"]), o.value ? (
|
|
1553
|
+
}, 8, ["value-code", "show-debug-code"]), o.value ? (z(), A("span", _t, G(o.value), 1)) : k("", !0)], 64);
|
|
1439
1554
|
};
|
|
1440
1555
|
}
|
|
1441
|
-
}), [["__scopeId", "data-v-b40513b5"]]),
|
|
1556
|
+
}), [["__scopeId", "data-v-b40513b5"]]), yt = F({
|
|
1442
1557
|
name: "FormButton",
|
|
1443
1558
|
components: { debugCode: C },
|
|
1444
1559
|
props: {
|
|
@@ -1493,7 +1608,7 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1493
1608
|
keyPath: [...e.baseKeyPath, e.field.name]
|
|
1494
1609
|
}, e.workerHostFunctions || {});
|
|
1495
1610
|
} catch (e) {
|
|
1496
|
-
|
|
1611
|
+
Ce.error(e.message);
|
|
1497
1612
|
return;
|
|
1498
1613
|
}
|
|
1499
1614
|
t && Object.assign(e.formModel, t);
|
|
@@ -1506,21 +1621,21 @@ var at = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, ot = (e, t) =>
|
|
|
1506
1621
|
});
|
|
1507
1622
|
//#endregion
|
|
1508
1623
|
//#region src/components/FormRender/FormButton/FormButton.vue
|
|
1509
|
-
function
|
|
1510
|
-
let o =
|
|
1511
|
-
return
|
|
1624
|
+
function bt(e, t, n, r, i, a) {
|
|
1625
|
+
let o = U("a-button"), s = U("debug-code");
|
|
1626
|
+
return z(), O(s, {
|
|
1512
1627
|
action_code_id: e.field.action_code_id,
|
|
1513
1628
|
code: e.field.code,
|
|
1514
1629
|
"onUpdate:code": t[0] ||= (t) => e.field.code = t
|
|
1515
1630
|
}, {
|
|
1516
|
-
default:
|
|
1631
|
+
default: q(() => [P(o, {
|
|
1517
1632
|
danger: e.field.danger,
|
|
1518
1633
|
type: e.field.btn_type,
|
|
1519
1634
|
disabled: e.field.disabled,
|
|
1520
1635
|
size: "small",
|
|
1521
1636
|
onClick: e.handlClick
|
|
1522
1637
|
}, {
|
|
1523
|
-
default:
|
|
1638
|
+
default: q(() => [N(G(e.field.label), 1)]),
|
|
1524
1639
|
_: 1
|
|
1525
1640
|
}, 8, [
|
|
1526
1641
|
"danger",
|
|
@@ -1531,7 +1646,7 @@ function ht(e, t, n, r, i, a) {
|
|
|
1531
1646
|
_: 1
|
|
1532
1647
|
}, 8, ["action_code_id", "code"]);
|
|
1533
1648
|
}
|
|
1534
|
-
var
|
|
1649
|
+
var xt = /*#__PURE__*/ n(yt, [["render", bt]]), St = F({
|
|
1535
1650
|
name: "InputNumberPro",
|
|
1536
1651
|
props: {
|
|
1537
1652
|
field: {
|
|
@@ -1548,18 +1663,18 @@ var gt = /*#__PURE__*/ n(mt, [["render", ht]]), _t = L({
|
|
|
1548
1663
|
setup(e, { emit: t }) {
|
|
1549
1664
|
return {
|
|
1550
1665
|
update: (n) => {
|
|
1551
|
-
t("update:value",
|
|
1666
|
+
t("update:value", mt(e.field, n));
|
|
1552
1667
|
},
|
|
1553
|
-
innerValue:
|
|
1554
|
-
let t =
|
|
1668
|
+
innerValue: D(() => {
|
|
1669
|
+
let t = pt(e.field, e.value);
|
|
1555
1670
|
return typeof t == "string" && (t = parseFloat(t), isNaN(t) && (t = null)), t;
|
|
1556
1671
|
})
|
|
1557
1672
|
};
|
|
1558
1673
|
}
|
|
1559
|
-
}),
|
|
1560
|
-
function
|
|
1561
|
-
let o =
|
|
1562
|
-
return
|
|
1674
|
+
}), Ct = { key: 0 }, wt = { key: 0 }, Tt = { key: 0 };
|
|
1675
|
+
function Et(e, t, n, r, i, a) {
|
|
1676
|
+
let o = U("a-input-number");
|
|
1677
|
+
return z(), O(o, {
|
|
1563
1678
|
value: e.innerValue,
|
|
1564
1679
|
autocomplete: e.field.autocomplete == null ? "off" : e.field.autocomplete,
|
|
1565
1680
|
"default-value": e.field.defaultValue,
|
|
@@ -1572,20 +1687,20 @@ function xt(e, t, n, r, i, a) {
|
|
|
1572
1687
|
step: e.field.step,
|
|
1573
1688
|
size: "small",
|
|
1574
1689
|
"onUpdate:value": e.update
|
|
1575
|
-
},
|
|
1690
|
+
}, M({ _: 2 }, [
|
|
1576
1691
|
e.field?.prefix || e.field?.prefixIcon ? {
|
|
1577
1692
|
name: "prefix",
|
|
1578
|
-
fn:
|
|
1693
|
+
fn: q(() => [e.field?.prefix ? (z(), A("span", Ct, G(e.field.prefix), 1)) : k("", !0), e.field?.prefixIcon ? (z(), O(W(e.field?.prefixIcon), { key: 1 })) : k("", !0)]),
|
|
1579
1694
|
key: "0"
|
|
1580
1695
|
} : void 0,
|
|
1581
1696
|
e.field?.addonBefore || e.field?.addonBeforeIcon ? {
|
|
1582
1697
|
name: "addonBefore",
|
|
1583
|
-
fn:
|
|
1698
|
+
fn: q(() => [e.field?.addonBefore ? (z(), A("span", wt, G(e.field.addonBefore), 1)) : k("", !0), e.field?.addonBeforeIcon ? (z(), O(W(e.field?.addonBeforeIcon), { key: 1 })) : k("", !0)]),
|
|
1584
1699
|
key: "1"
|
|
1585
1700
|
} : void 0,
|
|
1586
1701
|
e.field?.addonAfter || e.field?.addonAfterIcon ? {
|
|
1587
1702
|
name: "addonAfter",
|
|
1588
|
-
fn:
|
|
1703
|
+
fn: q(() => [e.field?.addonAfter ? (z(), A("span", Tt, G(e.field.addonAfter), 1)) : k("", !0), e.field?.addonAfterIcon ? (z(), O(W(e.field?.addonAfterIcon), { key: 1 })) : k("", !0)]),
|
|
1589
1704
|
key: "2"
|
|
1590
1705
|
} : void 0
|
|
1591
1706
|
]), 1032, [
|
|
@@ -1602,9 +1717,9 @@ function xt(e, t, n, r, i, a) {
|
|
|
1602
1717
|
"onUpdate:value"
|
|
1603
1718
|
]);
|
|
1604
1719
|
}
|
|
1605
|
-
var
|
|
1720
|
+
var Dt = /*#__PURE__*/ n(St, [["render", Et], ["__scopeId", "data-v-f97da831"]]), Ot = { key: 0 }, kt = { key: 0 }, At = { key: 0 }, jt = { key: 0 }, Mt = /*#__PURE__*/ n(/* @__PURE__ */ F({
|
|
1606
1721
|
__name: "InputPro",
|
|
1607
|
-
props: /*@__PURE__*/
|
|
1722
|
+
props: /*@__PURE__*/ I({ field: {
|
|
1608
1723
|
type: Object,
|
|
1609
1724
|
required: !0
|
|
1610
1725
|
} }, {
|
|
@@ -1613,17 +1728,17 @@ var St = /*#__PURE__*/ n(_t, [["render", xt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1613
1728
|
}),
|
|
1614
1729
|
emits: ["update:value"],
|
|
1615
1730
|
setup(e) {
|
|
1616
|
-
let t =
|
|
1617
|
-
get: () =>
|
|
1731
|
+
let t = ye(e, "value"), n = e, r = D({
|
|
1732
|
+
get: () => pt(n.field, t.value),
|
|
1618
1733
|
set: (e) => {
|
|
1619
|
-
t.value =
|
|
1734
|
+
t.value = mt(n.field, e);
|
|
1620
1735
|
}
|
|
1621
1736
|
}), i = (e) => {
|
|
1622
1737
|
r.value = e;
|
|
1623
1738
|
};
|
|
1624
1739
|
return (t, n) => {
|
|
1625
|
-
let a =
|
|
1626
|
-
return
|
|
1740
|
+
let a = U("a-input");
|
|
1741
|
+
return z(), O(a, {
|
|
1627
1742
|
value: r.value,
|
|
1628
1743
|
"onUpdate:value": [n[0] ||= (e) => r.value = e, i],
|
|
1629
1744
|
"allow-clear": e.field.allowClear == null ? !0 : e.field.allowClear,
|
|
@@ -1634,25 +1749,25 @@ var St = /*#__PURE__*/ n(_t, [["render", xt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1634
1749
|
placeholder: e.field.placeholder ? e.field.placeholder : t.$t("请输入") + e.field.label,
|
|
1635
1750
|
type: e.field.inputType ? e.field.inputType : "text",
|
|
1636
1751
|
size: "small"
|
|
1637
|
-
},
|
|
1752
|
+
}, M({ _: 2 }, [
|
|
1638
1753
|
e.field?.prefix || e.field?.prefixIcon ? {
|
|
1639
1754
|
name: "prefix",
|
|
1640
|
-
fn:
|
|
1755
|
+
fn: q(() => [e.field?.prefix ? (z(), A("span", Ot, G(e.field.prefix), 1)) : k("", !0), e.field?.prefixIcon ? (z(), O(W(e.field?.prefixIcon), { key: 1 })) : k("", !0)]),
|
|
1641
1756
|
key: "0"
|
|
1642
1757
|
} : void 0,
|
|
1643
1758
|
e.field?.suffix || e.field?.suffixIcon ? {
|
|
1644
1759
|
name: "suffix",
|
|
1645
|
-
fn:
|
|
1760
|
+
fn: q(() => [e.field?.suffix ? (z(), A("span", kt, G(e.field.suffix), 1)) : k("", !0), e.field?.suffixIcon ? (z(), O(W(e.field?.suffixIcon), { key: 1 })) : k("", !0)]),
|
|
1646
1761
|
key: "1"
|
|
1647
1762
|
} : void 0,
|
|
1648
1763
|
e.field?.addonBefore || e.field?.addonBeforeIcon ? {
|
|
1649
1764
|
name: "addonBefore",
|
|
1650
|
-
fn:
|
|
1765
|
+
fn: q(() => [e.field?.addonBefore ? (z(), A("span", At, G(e.field.addonBefore), 1)) : k("", !0), e.field?.addonBeforeIcon ? (z(), O(W(e.field?.addonBeforeIcon), { key: 1 })) : k("", !0)]),
|
|
1651
1766
|
key: "2"
|
|
1652
1767
|
} : void 0,
|
|
1653
1768
|
e.field?.addonAfter || e.field?.addonAfterIcon ? {
|
|
1654
1769
|
name: "addonAfter",
|
|
1655
|
-
fn:
|
|
1770
|
+
fn: q(() => [e.field?.addonAfter ? (z(), A("span", jt, G(e.field.addonAfter), 1)) : k("", !0), e.field?.addonAfterIcon ? (z(), O(W(e.field?.addonAfterIcon), { key: 1 })) : k("", !0)]),
|
|
1656
1771
|
key: "3"
|
|
1657
1772
|
} : void 0
|
|
1658
1773
|
]), 1032, [
|
|
@@ -1667,9 +1782,9 @@ var St = /*#__PURE__*/ n(_t, [["render", xt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1667
1782
|
]);
|
|
1668
1783
|
};
|
|
1669
1784
|
}
|
|
1670
|
-
}), [["__scopeId", "data-v-d9fd59f5"]]), $ = (e, t = "YYYY-MM-DD") =>
|
|
1785
|
+
}), [["__scopeId", "data-v-d9fd59f5"]]), $ = (e, t = "YYYY-MM-DD") => J(e, t, !0).isValid(), Nt = (e, t = "YYYY-MM-DD HH:mm:ss") => J(e, t, !0).isValid(), Pt = (e, t = "HH:mm:ss") => J(e, t, !0).isValid(), Ft = F({
|
|
1671
1786
|
name: "FieldRender2",
|
|
1672
|
-
methods: { isArray:
|
|
1787
|
+
methods: { isArray: Ee },
|
|
1673
1788
|
props: {
|
|
1674
1789
|
field: {
|
|
1675
1790
|
type: Object,
|
|
@@ -1767,28 +1882,28 @@ var St = /*#__PURE__*/ n(_t, [["render", xt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1767
1882
|
"update_name2"
|
|
1768
1883
|
],
|
|
1769
1884
|
setup(e, { emit: t }) {
|
|
1770
|
-
let n =
|
|
1885
|
+
let n = V({ ...e.formModel }), r = (e) => typeof e == "string" && e.indexOf(",") >= 0 ? e.split(",") : e, i = (e, t) => {
|
|
1771
1886
|
let n;
|
|
1772
1887
|
return t == "int" ? s(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1773
1888
|
s(e) && typeof e == "string" ? n.push(Number(e)) : n.push(e);
|
|
1774
1889
|
})) : n = s(e) && typeof e == "string" ? Number(e) : e : t == "str" ? s(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1775
1890
|
s(e) && typeof e == "number" ? n.push(e.toString()) : n.push(e);
|
|
1776
1891
|
})) : n = s(e) && typeof e == "number" ? e.toString() : e : t == "date" ? s(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1777
|
-
$(e) && typeof e == "string" ? n.push(
|
|
1892
|
+
$(e) && typeof e == "string" ? n.push(J(e, "YYYY-MM-DD")) : n.push(e);
|
|
1778
1893
|
})) : n = $(e) && typeof e == "string" ? e.toString() : e : t == "datetime" ? s(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1779
|
-
|
|
1780
|
-
})) : n =
|
|
1781
|
-
|
|
1782
|
-
})) : n =
|
|
1894
|
+
Nt(e) && typeof e == "string" ? n.push(J(e, "YYYY-MM-DD HH:mm:ss")) : n.push(e);
|
|
1895
|
+
})) : n = Nt(e) && typeof e == "string" ? J(e, "YYYY-MM-DD HH:mm:ss") : e : t == "time" ? s(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1896
|
+
Pt(e) && typeof e == "string" ? n.push(J(e, "HH:mm:ss")) : n.push(e);
|
|
1897
|
+
})) : n = Pt(e) && typeof e == "string" ? J(e, "HH:mm:ss") : e : t == "float" ? s(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1783
1898
|
s(e) && typeof e == "string" ? n.push(Number(e)) : n.push(e);
|
|
1784
1899
|
})) : n = s(e) && typeof e == "string" ? Number(e) : e : t == "bool" && (s(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
1785
1900
|
s(e) && typeof e == "string" ? n.push(!!e) : n.push(e);
|
|
1786
1901
|
})) : n = s(e) && typeof e == "string" ? !!e : e), n;
|
|
1787
|
-
}, a =
|
|
1902
|
+
}, a = V(e.is_show_field), c = V(!1), l = D(() => e.is_form_design && e.field.type === "remotetablepro"), u = () => {
|
|
1788
1903
|
t("update:is_edit", c.value);
|
|
1789
1904
|
}, d = () => {
|
|
1790
1905
|
t("add");
|
|
1791
|
-
}, f =
|
|
1906
|
+
}, f = Te(() => {
|
|
1792
1907
|
let r = a.value;
|
|
1793
1908
|
e.field?.is_hide && (a.value = !1, a.value !== r && (a.value ? (n.value[e.field.name] = null, t("update_model", {
|
|
1794
1909
|
add_key: e.field.name,
|
|
@@ -1801,7 +1916,7 @@ var St = /*#__PURE__*/ n(_t, [["render", xt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1801
1916
|
let a = n[t], s = e.formModel[a.watchKey], c;
|
|
1802
1917
|
c = a.class_name ? i(a.value, a.class_name) : a.value;
|
|
1803
1918
|
let l, u;
|
|
1804
|
-
c instanceof Array && ([l, u] = c), a.operator == "lt" ? typeof l == "number" ? o(s) ? r.push(!1) : s < l ? r.push(!0) : r.push(!1) : $(l) && (o(s) ? r.push(!1) :
|
|
1919
|
+
c instanceof Array && ([l, u] = c), a.operator == "lt" ? typeof l == "number" ? o(s) ? r.push(!1) : s < l ? r.push(!0) : r.push(!1) : $(l) && (o(s) ? r.push(!1) : J(s).isBefore(J(l)) ? r.push(!0) : r.push(!1)) : a.operator == "lte" ? typeof l == "number" ? o(s) ? r.push(!1) : s <= l ? r.push(!0) : r.push(!1) : $(l) && (o(s) ? r.push(!1) : J(s).isBefore(J(l)) || J(s).isSame(J(l)) ? r.push(!0) : r.push(!1)) : a.operator == "gt" ? typeof l == "number" ? o(s) ? r.push(!1) : s > l ? r.push(!0) : r.push(!1) : $(l) && (o(s) ? r.push(!1) : J(s).isAfter(J(l)) ? r.push(!0) : r.push(!1)) : a.operator == "gte" ? typeof l == "number" ? o(s) ? r.push(!1) : s >= l ? r.push(!0) : r.push(!1) : $(l) && (o(s) ? r.push(!1) : J(s).isAfter(J(l)) || J(s).isSame(J(l)) ? r.push(!0) : r.push(!1)) : a.operator == "between" ? typeof l == "number" && typeof u == "number" && l && u ? o(s) ? r.push(!1) : s >= l && s <= u ? r.push(!0) : r.push(!1) : $(l) && (o(s) ? r.push(!1) : (J(s).isAfter(J(l)) || J(s).isSame(J(l))) && (J(s).isBefore(J(u)) || J(s).isSame(J(u))) ? r.push(!0) : r.push(!1)) : a.operator == "notbetween" ? typeof l == "number" && typeof u == "number" && l && u ? o(s) ? r.push(!1) : s < l || s > u ? r.push(!0) : r.push(!1) : $(l) && (o(s) ? r.push(!1) : J(s).isBefore(J(l)) || J(s).isAfter(J(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" || o(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" || o(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)));
|
|
1805
1920
|
}
|
|
1806
1921
|
s.push(r);
|
|
1807
1922
|
}
|
|
@@ -1815,8 +1930,8 @@ var St = /*#__PURE__*/ n(_t, [["render", xt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1815
1930
|
add_key: e.field.name,
|
|
1816
1931
|
value: null
|
|
1817
1932
|
})) : (delete n.value[e.field.name], t("update_model", { remove_key: e.field.name })));
|
|
1818
|
-
}, 300), p =
|
|
1819
|
-
|
|
1933
|
+
}, 300), p = V(""), m = V(e.label);
|
|
1934
|
+
K(() => p.value, (n) => {
|
|
1820
1935
|
if (t("update:value", n), e.field.name2) {
|
|
1821
1936
|
let r;
|
|
1822
1937
|
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"];
|
|
@@ -1827,7 +1942,7 @@ var St = /*#__PURE__*/ n(_t, [["render", xt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1827
1942
|
n == r?.[e.field.valueKey ? e.field.valueKey : "value"] && t.push(r?.[e.field.labelKey ? e.field.labelKey : "label"]);
|
|
1828
1943
|
});
|
|
1829
1944
|
}), r = t.toString();
|
|
1830
|
-
} else if (e.field.type === "select") if (
|
|
1945
|
+
} else if (e.field.type === "select") if (Ee(n)) {
|
|
1831
1946
|
let t = [];
|
|
1832
1947
|
e.options.forEach((r) => {
|
|
1833
1948
|
n.forEach((n) => {
|
|
@@ -1840,27 +1955,27 @@ var St = /*#__PURE__*/ n(_t, [["render", xt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1840
1955
|
value: r
|
|
1841
1956
|
});
|
|
1842
1957
|
}
|
|
1843
|
-
}, { deep: !0 }),
|
|
1958
|
+
}, { deep: !0 }), K(() => e.value, (t) => {
|
|
1844
1959
|
let n = t;
|
|
1845
1960
|
e.field.type === "rangepicker" && n ? n = r(n) : e.field.type === "input" && n && (n = n.toString().replace(/(^\s*)|(\s*$)/g, "")), a.value && (p.value = n);
|
|
1846
|
-
}, { immediate: !0 }),
|
|
1961
|
+
}, { immediate: !0 }), K(() => m.value, (n) => {
|
|
1847
1962
|
t("update:label", n), "name2" in e.field && t("update_name2", {
|
|
1848
1963
|
key: e.field.name2,
|
|
1849
1964
|
value: n.toString()
|
|
1850
1965
|
});
|
|
1851
|
-
}, { deep: !0 }),
|
|
1966
|
+
}, { deep: !0 }), K(() => e.label, (e) => {
|
|
1852
1967
|
m.value = e;
|
|
1853
|
-
}),
|
|
1968
|
+
}), K(() => e.formModel, (e) => {
|
|
1854
1969
|
n.value = { ...e };
|
|
1855
|
-
}, { deep: !0 }),
|
|
1970
|
+
}, { deep: !0 }), K(() => n.value, (t, n) => {
|
|
1856
1971
|
e.field?.conditions && e.field?.conditions.forEach((e) => {
|
|
1857
1972
|
e.forEach((e) => {
|
|
1858
1973
|
n[e.watchKey] != t[e.watchKey] && f();
|
|
1859
1974
|
});
|
|
1860
1975
|
});
|
|
1861
|
-
}, { deep: !0 }),
|
|
1976
|
+
}, { deep: !0 }), K(() => [e.conditionsVisibleNum, e.isUseConditions], () => {
|
|
1862
1977
|
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));
|
|
1863
|
-
}),
|
|
1978
|
+
}), R(() => {
|
|
1864
1979
|
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 });
|
|
1865
1980
|
else {
|
|
1866
1981
|
let r = n.value[e.field.name];
|
|
@@ -1871,7 +1986,7 @@ var St = /*#__PURE__*/ n(_t, [["render", xt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1871
1986
|
}
|
|
1872
1987
|
l.value && t("update:is_edit", c.value);
|
|
1873
1988
|
});
|
|
1874
|
-
let { t: h } =
|
|
1989
|
+
let { t: h } = ke();
|
|
1875
1990
|
return {
|
|
1876
1991
|
t: h,
|
|
1877
1992
|
is_show_field: a,
|
|
@@ -1886,12 +2001,12 @@ var St = /*#__PURE__*/ n(_t, [["render", xt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1886
2001
|
},
|
|
1887
2002
|
components: {
|
|
1888
2003
|
IconSelect: ae,
|
|
1889
|
-
RichTextEditor:
|
|
2004
|
+
RichTextEditor: S,
|
|
1890
2005
|
Upload: se,
|
|
1891
|
-
RemoteCascaderPro:
|
|
2006
|
+
RemoteCascaderPro: ce,
|
|
1892
2007
|
RemoteTreeSelectPro: re,
|
|
1893
2008
|
RemoteSelectPro: h,
|
|
1894
|
-
RemoteComplete:
|
|
2009
|
+
RemoteComplete: oe,
|
|
1895
2010
|
AttributeTable: v,
|
|
1896
2011
|
AttributeNomTable: _,
|
|
1897
2012
|
RemoteFilterSelect: g,
|
|
@@ -1901,33 +2016,33 @@ var St = /*#__PURE__*/ n(_t, [["render", xt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1901
2016
|
RemoteTreeSelect: m,
|
|
1902
2017
|
RemoteTable: p,
|
|
1903
2018
|
JsonStr: y,
|
|
1904
|
-
JsonObj:
|
|
1905
|
-
RemoteText:
|
|
1906
|
-
RemoteTablePro:
|
|
1907
|
-
FormTemplate:
|
|
1908
|
-
DynamicValueField:
|
|
1909
|
-
FormButton:
|
|
1910
|
-
PlusOutlined:
|
|
2019
|
+
JsonObj: ee,
|
|
2020
|
+
RemoteText: te,
|
|
2021
|
+
RemoteTablePro: ue,
|
|
2022
|
+
FormTemplate: gt,
|
|
2023
|
+
DynamicValueField: vt,
|
|
2024
|
+
FormButton: xt,
|
|
2025
|
+
PlusOutlined: Oe,
|
|
1911
2026
|
MonthPicker: T,
|
|
1912
|
-
MonthRangePicker:
|
|
2027
|
+
MonthRangePicker: w,
|
|
1913
2028
|
CodeEditor: ie,
|
|
1914
|
-
TinymceEditor:
|
|
1915
|
-
InputNumberPro:
|
|
1916
|
-
InputPro:
|
|
2029
|
+
TinymceEditor: le,
|
|
2030
|
+
InputNumberPro: Dt,
|
|
2031
|
+
InputPro: Mt
|
|
1917
2032
|
}
|
|
1918
|
-
}),
|
|
2033
|
+
}), It = {
|
|
1919
2034
|
key: 0,
|
|
1920
2035
|
style: {
|
|
1921
2036
|
height: "62px",
|
|
1922
2037
|
width: "100%"
|
|
1923
2038
|
}
|
|
1924
|
-
},
|
|
2039
|
+
}, Lt = { key: 1 }, Rt = { key: 0 }, zt = { key: 1 }, Bt = {
|
|
1925
2040
|
key: 3,
|
|
1926
2041
|
style: {
|
|
1927
2042
|
height: "30px",
|
|
1928
2043
|
position: "relative"
|
|
1929
2044
|
}
|
|
1930
|
-
},
|
|
2045
|
+
}, Vt = { style: {
|
|
1931
2046
|
position: "absolute",
|
|
1932
2047
|
bottom: "0",
|
|
1933
2048
|
padding: "0",
|
|
@@ -1935,39 +2050,39 @@ var St = /*#__PURE__*/ n(_t, [["render", xt], ["__scopeId", "data-v-f97da831"]])
|
|
|
1935
2050
|
"font-weight": "bolder",
|
|
1936
2051
|
"font-size": "17px"
|
|
1937
2052
|
} };
|
|
1938
|
-
function
|
|
1939
|
-
let o =
|
|
1940
|
-
return
|
|
1941
|
-
e.field.type !== "divider" && e.field.type !== "button" && (e.field?.is_search_show !== !1 || e.field_render_show) ? (
|
|
2053
|
+
function Ht(e, t, n, r, i, a) {
|
|
2054
|
+
let o = U("a-switch"), s = U("plus-outlined"), c = U("a-button"), l = U("a-tag"), u = U("a-rate"), d = U("InputPro"), f = U("a-input-number"), p = U("InputNumberPro"), m = U("a-input"), h = U("attribute-table"), g = U("attribute-nom-table"), _ = U("a-textarea"), v = U("json-str"), y = U("json-obj"), ee = U("rich-text-editor"), te = U("a-input-password"), b = U("a-select-option"), x = U("a-select"), ne = U("a-cascader"), S = U("remote-cascader"), re = U("remote-cascader-pro"), C = U("month-picker"), ie = U("a-date-picker"), ae = U("a-range-picker"), oe = U("month-range-picker"), w = U("a-time-picker"), se = U("a-time-range-picker"), T = U("a-radio"), ce = U("a-radio-group"), le = U("a-checkbox"), ue = U("a-checkbox-group"), D = U("a-tree-select"), de = U("remote-filter-select"), F = U("remote-select"), fe = U("remote-select-pro"), pe = U("remote-complete"), I = U("remote-tree-select"), me = U("remote-tree-select-pro"), R = U("remote-modal"), ge = U("remote-table"), B = U("remote-table-pro"), V = U("FormTemplate"), ve = U("DynamicValueField"), ye = U("remote-text"), be = U("upload"), K = U("code-editor"), xe = U("TinymceEditor"), Se = U("icon-select"), Ce = U("a-form-item"), we = U("a-divider"), Te = U("FormButton");
|
|
2055
|
+
return z(), A(E, null, [
|
|
2056
|
+
e.field.type !== "divider" && e.field.type !== "button" && (e.field?.is_search_show !== !1 || e.field_render_show) ? (z(), O(Ce, L({
|
|
1942
2057
|
key: 0,
|
|
1943
2058
|
extra: e.field.extra,
|
|
1944
2059
|
name: e.field.name
|
|
1945
|
-
}, e.validateInfos ? e.validateInfos[e.field.name] : null),
|
|
1946
|
-
default:
|
|
1947
|
-
|
|
1948
|
-
e.field.type === "kong" ? (
|
|
1949
|
-
e.field.type === "tag" ? (
|
|
2060
|
+
}, e.validateInfos ? e.validateInfos[e.field.name] : null), M({
|
|
2061
|
+
default: q(() => [
|
|
2062
|
+
_e(e.$slots, "default", {}, void 0, !0),
|
|
2063
|
+
e.field.type === "kong" ? (z(), A("div", It)) : k("", !0),
|
|
2064
|
+
e.field.type === "tag" ? (z(), A("div", Lt, [e.field.content && e.field.content(e.field, e.model) || e.model ? (z(), O(l, {
|
|
1950
2065
|
key: 0,
|
|
1951
2066
|
color: e.field.color ? e.field.color(e.field, e.model) : "green",
|
|
1952
|
-
style:
|
|
2067
|
+
style: he(e.field.style),
|
|
1953
2068
|
onClick: t[1] ||= (t) => e.field.cb ? e.field.cb(e.field, e.model) : ""
|
|
1954
2069
|
}, {
|
|
1955
|
-
default:
|
|
2070
|
+
default: q(() => [e.field.content ? (z(), A("span", Rt, G(e.field.content(e.field, e.model)), 1)) : (z(), A("span", zt, G(e.model), 1))]),
|
|
1956
2071
|
_: 1
|
|
1957
|
-
}, 8, ["color", "style"])) :
|
|
1958
|
-
e.field.type === "kong_title" ? (
|
|
2072
|
+
}, 8, ["color", "style"])) : k("", !0)])) : k("", !0),
|
|
2073
|
+
e.field.type === "kong_title" ? (z(), A("div", {
|
|
1959
2074
|
key: 2,
|
|
1960
|
-
style:
|
|
1961
|
-
}, null, 4)) :
|
|
1962
|
-
e.field.type === "title" ? (
|
|
1963
|
-
e.field.type === "rate" ? (
|
|
2075
|
+
style: he("height: " + e.field.height + "px")
|
|
2076
|
+
}, null, 4)) : k("", !0),
|
|
2077
|
+
e.field.type === "title" ? (z(), A("div", Bt, [j("span", Vt, G(e.field.name), 1)])) : k("", !0),
|
|
2078
|
+
e.field.type === "rate" ? (z(), O(u, {
|
|
1964
2079
|
key: 4,
|
|
1965
2080
|
value: e.model,
|
|
1966
2081
|
"onUpdate:value": t[2] ||= (t) => e.model = t,
|
|
1967
2082
|
disabled: e.field.disabled,
|
|
1968
2083
|
"allow-half": ""
|
|
1969
|
-
}, null, 8, ["value", "disabled"])) :
|
|
1970
|
-
e.field.type === "input" ? (
|
|
2084
|
+
}, null, 8, ["value", "disabled"])) : k("", !0),
|
|
2085
|
+
e.field.type === "input" ? (z(), O(d, {
|
|
1971
2086
|
key: 5,
|
|
1972
2087
|
field: e.field,
|
|
1973
2088
|
value: e.model,
|
|
@@ -1979,8 +2094,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
1979
2094
|
"value",
|
|
1980
2095
|
"base-key-path",
|
|
1981
2096
|
"worker-host-functions"
|
|
1982
|
-
])) :
|
|
1983
|
-
e.field.type === "money" ? (
|
|
2097
|
+
])) : k("", !0),
|
|
2098
|
+
e.field.type === "money" ? (z(), O(f, {
|
|
1984
2099
|
key: 6,
|
|
1985
2100
|
size: "small",
|
|
1986
2101
|
value: e.model,
|
|
@@ -2006,8 +2121,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2006
2121
|
"precision",
|
|
2007
2122
|
"step",
|
|
2008
2123
|
"placeholder"
|
|
2009
|
-
])) :
|
|
2010
|
-
e.field.type === "number" ? (
|
|
2124
|
+
])) : k("", !0),
|
|
2125
|
+
e.field.type === "number" ? (z(), O(p, {
|
|
2011
2126
|
key: 7,
|
|
2012
2127
|
value: e.model,
|
|
2013
2128
|
"onUpdate:value": t[5] ||= (t) => e.model = t,
|
|
@@ -2020,8 +2135,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2020
2135
|
"field",
|
|
2021
2136
|
"base-key-path",
|
|
2022
2137
|
"worker-host-functions"
|
|
2023
|
-
])) :
|
|
2024
|
-
e.field.type === "volume" ? (
|
|
2138
|
+
])) : k("", !0),
|
|
2139
|
+
e.field.type === "volume" ? (z(), O(m, {
|
|
2025
2140
|
key: 8,
|
|
2026
2141
|
value: e.model,
|
|
2027
2142
|
"onUpdate:value": t[6] ||= (t) => e.model = t,
|
|
@@ -2042,8 +2157,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2042
2157
|
"disabled",
|
|
2043
2158
|
"maxlength",
|
|
2044
2159
|
"placeholder"
|
|
2045
|
-
])) :
|
|
2046
|
-
e.field.type === "weight" ? (
|
|
2160
|
+
])) : k("", !0),
|
|
2161
|
+
e.field.type === "weight" ? (z(), O(m, {
|
|
2047
2162
|
key: 9,
|
|
2048
2163
|
value: e.model,
|
|
2049
2164
|
"onUpdate:value": t[7] ||= (t) => e.model = t,
|
|
@@ -2064,8 +2179,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2064
2179
|
"disabled",
|
|
2065
2180
|
"maxlength",
|
|
2066
2181
|
"placeholder"
|
|
2067
|
-
])) :
|
|
2068
|
-
e.field.type === "attributetable" ? (
|
|
2182
|
+
])) : k("", !0),
|
|
2183
|
+
e.field.type === "attributetable" ? (z(), O(h, {
|
|
2069
2184
|
key: 10,
|
|
2070
2185
|
value: e.model,
|
|
2071
2186
|
"onUpdate:value": t[8] ||= (t) => e.model = t,
|
|
@@ -2082,8 +2197,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2082
2197
|
"init_model",
|
|
2083
2198
|
"base-key-path",
|
|
2084
2199
|
"worker-host-functions"
|
|
2085
|
-
])) :
|
|
2086
|
-
e.field.type === "attributenomtable" ? (
|
|
2200
|
+
])) : k("", !0),
|
|
2201
|
+
e.field.type === "attributenomtable" ? (z(), O(g, {
|
|
2087
2202
|
key: 11,
|
|
2088
2203
|
size: "small",
|
|
2089
2204
|
value: e.model,
|
|
@@ -2100,8 +2215,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2100
2215
|
"init_model",
|
|
2101
2216
|
"base-key-path",
|
|
2102
2217
|
"worker-host-functions"
|
|
2103
|
-
])) :
|
|
2104
|
-
e.field.type === "textarea" ? (
|
|
2218
|
+
])) : k("", !0),
|
|
2219
|
+
e.field.type === "textarea" ? (z(), O(_, {
|
|
2105
2220
|
key: 12,
|
|
2106
2221
|
value: e.model,
|
|
2107
2222
|
"onUpdate:value": t[10] ||= (t) => e.model = t,
|
|
@@ -2120,8 +2235,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2120
2235
|
"autocomplete",
|
|
2121
2236
|
"disabled",
|
|
2122
2237
|
"placeholder"
|
|
2123
|
-
])) :
|
|
2124
|
-
e.field.type === "jsonstr" ? (
|
|
2238
|
+
])) : k("", !0),
|
|
2239
|
+
e.field.type === "jsonstr" ? (z(), O(v, {
|
|
2125
2240
|
key: 13,
|
|
2126
2241
|
value: e.model,
|
|
2127
2242
|
"onUpdate:value": t[11] ||= (t) => e.model = t,
|
|
@@ -2135,8 +2250,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2135
2250
|
"disabled",
|
|
2136
2251
|
"rows",
|
|
2137
2252
|
"placeholder"
|
|
2138
|
-
])) :
|
|
2139
|
-
e.field.type === "jsonobj" ? (
|
|
2253
|
+
])) : k("", !0),
|
|
2254
|
+
e.field.type === "jsonobj" ? (z(), O(y, {
|
|
2140
2255
|
key: 14,
|
|
2141
2256
|
value: e.model,
|
|
2142
2257
|
"onUpdate:value": t[12] ||= (t) => e.model = t,
|
|
@@ -2152,8 +2267,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2152
2267
|
"mode",
|
|
2153
2268
|
"fullWidthButton",
|
|
2154
2269
|
"darkTheme"
|
|
2155
|
-
])) :
|
|
2156
|
-
e.field.type === "richtexteditor" ? (
|
|
2270
|
+
])) : k("", !0),
|
|
2271
|
+
e.field.type === "richtexteditor" ? (z(), O(ee, {
|
|
2157
2272
|
key: 15,
|
|
2158
2273
|
value: e.model,
|
|
2159
2274
|
"onUpdate:value": t[13] ||= (t) => e.model = t,
|
|
@@ -2163,8 +2278,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2163
2278
|
"value",
|
|
2164
2279
|
"readOnly",
|
|
2165
2280
|
"placeholder"
|
|
2166
|
-
])) :
|
|
2167
|
-
e.field.type === "password" ? (
|
|
2281
|
+
])) : k("", !0),
|
|
2282
|
+
e.field.type === "password" ? (z(), O(te, {
|
|
2168
2283
|
key: 16,
|
|
2169
2284
|
value: e.model,
|
|
2170
2285
|
"onUpdate:value": t[14] ||= (t) => e.model = t,
|
|
@@ -2195,8 +2310,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2195
2310
|
"precision",
|
|
2196
2311
|
"step",
|
|
2197
2312
|
"visibilityToggle"
|
|
2198
|
-
])) :
|
|
2199
|
-
e.field.type === "select" ? (
|
|
2313
|
+
])) : k("", !0),
|
|
2314
|
+
e.field.type === "select" ? (z(), A(E, { key: 17 }, [e.field.mode === "default" ? (z(), O(x, {
|
|
2200
2315
|
key: 0,
|
|
2201
2316
|
value: e.model,
|
|
2202
2317
|
"onUpdate:value": t[16] ||= (t) => e.model = t,
|
|
@@ -2211,11 +2326,11 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2211
2326
|
size: "small",
|
|
2212
2327
|
style: { width: "100%" }
|
|
2213
2328
|
}, {
|
|
2214
|
-
default:
|
|
2329
|
+
default: q(() => [(z(!0), A(E, null, H(e.options, (t) => (z(), O(b, {
|
|
2215
2330
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2216
2331
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2217
2332
|
}, {
|
|
2218
|
-
default:
|
|
2333
|
+
default: q(() => [N(G(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
2219
2334
|
_: 2
|
|
2220
2335
|
}, 1032, ["value"]))), 128))]),
|
|
2221
2336
|
_: 1
|
|
@@ -2228,7 +2343,7 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2228
2343
|
"maxTagCount",
|
|
2229
2344
|
"placeholder",
|
|
2230
2345
|
"show-search"
|
|
2231
|
-
])) : (
|
|
2346
|
+
])) : (z(), O(x, {
|
|
2232
2347
|
key: 1,
|
|
2233
2348
|
value: e.model,
|
|
2234
2349
|
"onUpdate:value": t[17] ||= (t) => e.model = t,
|
|
@@ -2243,11 +2358,11 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2243
2358
|
size: "small",
|
|
2244
2359
|
style: { "min-width": "150px" }
|
|
2245
2360
|
}, {
|
|
2246
|
-
default:
|
|
2361
|
+
default: q(() => [(z(!0), A(E, null, H(e.options, (t, n) => (z(), O(b, {
|
|
2247
2362
|
key: n,
|
|
2248
2363
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2249
2364
|
}, {
|
|
2250
|
-
default:
|
|
2365
|
+
default: q(() => [N(G(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
2251
2366
|
_: 2
|
|
2252
2367
|
}, 1032, ["value"]))), 128))]),
|
|
2253
2368
|
_: 1
|
|
@@ -2260,8 +2375,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2260
2375
|
"mode",
|
|
2261
2376
|
"placeholder",
|
|
2262
2377
|
"show-search"
|
|
2263
|
-
]))], 64)) :
|
|
2264
|
-
e.field.type === "groupselect" ? (
|
|
2378
|
+
]))], 64)) : k("", !0),
|
|
2379
|
+
e.field.type === "groupselect" ? (z(), A(E, { key: 18 }, [e.field.mode === "default" ? (z(), O(x, {
|
|
2265
2380
|
key: 0,
|
|
2266
2381
|
value: e.model,
|
|
2267
2382
|
"onUpdate:value": t[18] ||= (t) => e.model = t,
|
|
@@ -2290,7 +2405,7 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2290
2405
|
"options",
|
|
2291
2406
|
"placeholder",
|
|
2292
2407
|
"show-search"
|
|
2293
|
-
])) : (
|
|
2408
|
+
])) : (z(), O(x, {
|
|
2294
2409
|
key: 1,
|
|
2295
2410
|
value: e.model,
|
|
2296
2411
|
"onUpdate:value": t[19] ||= (t) => e.model = t,
|
|
@@ -2319,8 +2434,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2319
2434
|
"options",
|
|
2320
2435
|
"placeholder",
|
|
2321
2436
|
"show-search"
|
|
2322
|
-
]))], 64)) :
|
|
2323
|
-
e.field.type === "cascader" ? (
|
|
2437
|
+
]))], 64)) : k("", !0),
|
|
2438
|
+
e.field.type === "cascader" ? (z(), O(ne, {
|
|
2324
2439
|
key: 19,
|
|
2325
2440
|
value: e.model,
|
|
2326
2441
|
"onUpdate:value": t[20] ||= (t) => e.model = t,
|
|
@@ -2343,8 +2458,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2343
2458
|
"changeOnSelect",
|
|
2344
2459
|
"options",
|
|
2345
2460
|
"placeholder"
|
|
2346
|
-
])) :
|
|
2347
|
-
e.field.type === "remotecascader" ? (
|
|
2461
|
+
])) : k("", !0),
|
|
2462
|
+
e.field.type === "remotecascader" ? (z(), O(S, {
|
|
2348
2463
|
key: 20,
|
|
2349
2464
|
value: e.model,
|
|
2350
2465
|
"onUpdate:value": t[21] ||= (t) => e.model = t,
|
|
@@ -2369,8 +2484,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2369
2484
|
"label-space",
|
|
2370
2485
|
"search_config",
|
|
2371
2486
|
"value-key"
|
|
2372
|
-
])) :
|
|
2373
|
-
e.field.type === "remotecascaderpro" ? (
|
|
2487
|
+
])) : k("", !0),
|
|
2488
|
+
e.field.type === "remotecascaderpro" ? (z(), O(re, {
|
|
2374
2489
|
key: 21,
|
|
2375
2490
|
label: e.labelModel,
|
|
2376
2491
|
"onUpdate:label": t[23] ||= (t) => e.labelModel = t,
|
|
@@ -2417,8 +2532,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2417
2532
|
"init_watch",
|
|
2418
2533
|
"is_form_design",
|
|
2419
2534
|
"placeholder"
|
|
2420
|
-
])) :
|
|
2421
|
-
e.field.type === "monthpicker" ? (
|
|
2535
|
+
])) : k("", !0),
|
|
2536
|
+
e.field.type === "monthpicker" ? (z(), O(C, {
|
|
2422
2537
|
key: 22,
|
|
2423
2538
|
value: e.model,
|
|
2424
2539
|
"onUpdate:value": t[25] ||= (t) => e.model = t,
|
|
@@ -2446,8 +2561,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2446
2561
|
"start_offset_day",
|
|
2447
2562
|
"end_offset_day",
|
|
2448
2563
|
"fix_day"
|
|
2449
|
-
])) :
|
|
2450
|
-
e.field.type === "datepicker" ? (
|
|
2564
|
+
])) : k("", !0),
|
|
2565
|
+
e.field.type === "datepicker" ? (z(), O(ie, {
|
|
2451
2566
|
key: 23,
|
|
2452
2567
|
value: e.model,
|
|
2453
2568
|
"onUpdate:value": t[26] ||= (t) => e.model = t,
|
|
@@ -2473,8 +2588,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2473
2588
|
"placeholder",
|
|
2474
2589
|
"show-time",
|
|
2475
2590
|
"value-format"
|
|
2476
|
-
])) :
|
|
2477
|
-
e.field.type === "rangepicker" ? (
|
|
2591
|
+
])) : k("", !0),
|
|
2592
|
+
e.field.type === "rangepicker" ? (z(), O(ae, {
|
|
2478
2593
|
key: 24,
|
|
2479
2594
|
value: e.model,
|
|
2480
2595
|
"onUpdate:value": t[27] ||= (t) => e.model = t,
|
|
@@ -2498,8 +2613,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2498
2613
|
"show-time",
|
|
2499
2614
|
"value-format",
|
|
2500
2615
|
"picker"
|
|
2501
|
-
])) :
|
|
2502
|
-
e.field.type === "monthrangepicker" ? (
|
|
2616
|
+
])) : k("", !0),
|
|
2617
|
+
e.field.type === "monthrangepicker" ? (z(), O(oe, {
|
|
2503
2618
|
key: 25,
|
|
2504
2619
|
value: e.model,
|
|
2505
2620
|
"onUpdate:value": t[28] ||= (t) => e.model = t,
|
|
@@ -2525,8 +2640,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2525
2640
|
"start_offset_day",
|
|
2526
2641
|
"end_offset_day",
|
|
2527
2642
|
"fix_day"
|
|
2528
|
-
])) :
|
|
2529
|
-
e.field.type === "timepicker" ? (
|
|
2643
|
+
])) : k("", !0),
|
|
2644
|
+
e.field.type === "timepicker" ? (z(), O(w, {
|
|
2530
2645
|
key: 26,
|
|
2531
2646
|
value: e.model,
|
|
2532
2647
|
"onUpdate:value": t[29] ||= (t) => e.model = t,
|
|
@@ -2546,8 +2661,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2546
2661
|
"format",
|
|
2547
2662
|
"placeholder",
|
|
2548
2663
|
"value-format"
|
|
2549
|
-
])) :
|
|
2550
|
-
e.field.type === "timerangepicker" ? (
|
|
2664
|
+
])) : k("", !0),
|
|
2665
|
+
e.field.type === "timerangepicker" ? (z(), O(se, {
|
|
2551
2666
|
key: 27,
|
|
2552
2667
|
value: e.model,
|
|
2553
2668
|
"onUpdate:value": t[30] ||= (t) => e.model = t,
|
|
@@ -2567,8 +2682,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2567
2682
|
"format",
|
|
2568
2683
|
"placeholder",
|
|
2569
2684
|
"value-format"
|
|
2570
|
-
])) :
|
|
2571
|
-
e.field.type === "radio" ? (
|
|
2685
|
+
])) : k("", !0),
|
|
2686
|
+
e.field.type === "radio" ? (z(), O(ce, {
|
|
2572
2687
|
key: 28,
|
|
2573
2688
|
value: e.model,
|
|
2574
2689
|
"onUpdate:value": t[31] ||= (t) => e.model = t,
|
|
@@ -2576,12 +2691,12 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2576
2691
|
disabled: e.field.disabled,
|
|
2577
2692
|
size: "small"
|
|
2578
2693
|
}, {
|
|
2579
|
-
default:
|
|
2694
|
+
default: q(() => [(z(!0), A(E, null, H(e.options, (t) => (z(), O(T, {
|
|
2580
2695
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2581
2696
|
disabled: t.disabled,
|
|
2582
2697
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2583
2698
|
}, {
|
|
2584
|
-
default:
|
|
2699
|
+
default: q(() => [N(G(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
2585
2700
|
_: 2
|
|
2586
2701
|
}, 1032, ["disabled", "value"]))), 128))]),
|
|
2587
2702
|
_: 1
|
|
@@ -2589,8 +2704,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2589
2704
|
"value",
|
|
2590
2705
|
"default-value",
|
|
2591
2706
|
"disabled"
|
|
2592
|
-
])) :
|
|
2593
|
-
e.field.type === "checkbox" ? (
|
|
2707
|
+
])) : k("", !0),
|
|
2708
|
+
e.field.type === "checkbox" ? (z(), O(ue, {
|
|
2594
2709
|
key: 29,
|
|
2595
2710
|
value: e.model,
|
|
2596
2711
|
"onUpdate:value": t[32] ||= (t) => e.model = t,
|
|
@@ -2598,12 +2713,12 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2598
2713
|
disabled: e.field.disabled,
|
|
2599
2714
|
size: "small"
|
|
2600
2715
|
}, {
|
|
2601
|
-
default:
|
|
2716
|
+
default: q(() => [(z(!0), A(E, null, H(e.options, (t) => (z(), O(le, {
|
|
2602
2717
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2603
2718
|
disabled: t.disabled,
|
|
2604
2719
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2605
2720
|
}, {
|
|
2606
|
-
default:
|
|
2721
|
+
default: q(() => [N(G(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
2607
2722
|
_: 2
|
|
2608
2723
|
}, 1032, ["disabled", "value"]))), 128))]),
|
|
2609
2724
|
_: 1
|
|
@@ -2611,8 +2726,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2611
2726
|
"value",
|
|
2612
2727
|
"default-value",
|
|
2613
2728
|
"disabled"
|
|
2614
|
-
])) :
|
|
2615
|
-
e.field.type === "treeselect" ? (
|
|
2729
|
+
])) : k("", !0),
|
|
2730
|
+
e.field.type === "treeselect" ? (z(), O(D, {
|
|
2616
2731
|
key: 30,
|
|
2617
2732
|
value: e.model,
|
|
2618
2733
|
"onUpdate:value": t[33] ||= (t) => e.model = t,
|
|
@@ -2638,8 +2753,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2638
2753
|
"tree-data",
|
|
2639
2754
|
"tree-label-prop",
|
|
2640
2755
|
"tree-node-filter-prop"
|
|
2641
|
-
])) :
|
|
2642
|
-
e.field.type === "remotefilterselect" ? (
|
|
2756
|
+
])) : k("", !0),
|
|
2757
|
+
e.field.type === "remotefilterselect" ? (z(), O(de, {
|
|
2643
2758
|
key: 31,
|
|
2644
2759
|
label: e.labelModel,
|
|
2645
2760
|
"onUpdate:label": t[34] ||= (t) => e.labelModel = t,
|
|
@@ -2666,8 +2781,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2666
2781
|
"label-space",
|
|
2667
2782
|
"search_config",
|
|
2668
2783
|
"value-key"
|
|
2669
|
-
])) :
|
|
2670
|
-
e.field.type === "remoteselect" ? (
|
|
2784
|
+
])) : k("", !0),
|
|
2785
|
+
e.field.type === "remoteselect" ? (z(), O(F, {
|
|
2671
2786
|
key: 32,
|
|
2672
2787
|
label: e.labelModel,
|
|
2673
2788
|
"onUpdate:label": t[36] ||= (t) => e.labelModel = t,
|
|
@@ -2694,8 +2809,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2694
2809
|
"label-space",
|
|
2695
2810
|
"search_config",
|
|
2696
2811
|
"value-key"
|
|
2697
|
-
])) :
|
|
2698
|
-
e.field.type === "remoteselectpro" ? (
|
|
2812
|
+
])) : k("", !0),
|
|
2813
|
+
e.field.type === "remoteselectpro" ? (z(), O(fe, {
|
|
2699
2814
|
key: 33,
|
|
2700
2815
|
label: e.labelModel,
|
|
2701
2816
|
"onUpdate:label": t[38] ||= (t) => e.labelModel = t,
|
|
@@ -2742,8 +2857,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2742
2857
|
"context",
|
|
2743
2858
|
"base-key-path",
|
|
2744
2859
|
"placeholder"
|
|
2745
|
-
])) :
|
|
2746
|
-
e.field.type === "remotecomplete" ? (
|
|
2860
|
+
])) : k("", !0),
|
|
2861
|
+
e.field.type === "remotecomplete" ? (z(), O(pe, {
|
|
2747
2862
|
key: 34,
|
|
2748
2863
|
value: e.model,
|
|
2749
2864
|
"onUpdate:value": t[40] ||= (t) => e.model = t,
|
|
@@ -2781,8 +2896,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2781
2896
|
"is_input",
|
|
2782
2897
|
"is_form_design",
|
|
2783
2898
|
"placeholder"
|
|
2784
|
-
])) :
|
|
2785
|
-
e.field.type === "remotetreeselect" ? (
|
|
2899
|
+
])) : k("", !0),
|
|
2900
|
+
e.field.type === "remotetreeselect" ? (z(), O(I, {
|
|
2786
2901
|
key: 35,
|
|
2787
2902
|
label: e.labelModel,
|
|
2788
2903
|
"onUpdate:label": t[41] ||= (t) => e.labelModel = t,
|
|
@@ -2809,8 +2924,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2809
2924
|
"label-key",
|
|
2810
2925
|
"search_config",
|
|
2811
2926
|
"value-key"
|
|
2812
|
-
])) :
|
|
2813
|
-
e.field.type === "remotetreeselectpro" ? (
|
|
2927
|
+
])) : k("", !0),
|
|
2928
|
+
e.field.type === "remotetreeselectpro" ? (z(), O(me, {
|
|
2814
2929
|
key: 36,
|
|
2815
2930
|
label: e.labelModel,
|
|
2816
2931
|
"onUpdate:label": t[43] ||= (t) => e.labelModel = t,
|
|
@@ -2855,8 +2970,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2855
2970
|
"init_watch",
|
|
2856
2971
|
"is_form_design",
|
|
2857
2972
|
"placeholder"
|
|
2858
|
-
])) :
|
|
2859
|
-
e.field.type === "remotemodal" ? (
|
|
2973
|
+
])) : k("", !0),
|
|
2974
|
+
e.field.type === "remotemodal" ? (z(), O(R, {
|
|
2860
2975
|
key: 37,
|
|
2861
2976
|
label: e.labelModel,
|
|
2862
2977
|
"onUpdate:label": t[45] ||= (t) => e.labelModel = t,
|
|
@@ -2881,8 +2996,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2881
2996
|
"modalType",
|
|
2882
2997
|
"search_config",
|
|
2883
2998
|
"watch"
|
|
2884
|
-
])) :
|
|
2885
|
-
e.field.type === "remotetable" ? (
|
|
2999
|
+
])) : k("", !0),
|
|
3000
|
+
e.field.type === "remotetable" ? (z(), O(ge, {
|
|
2886
3001
|
key: 38,
|
|
2887
3002
|
value: e.model,
|
|
2888
3003
|
"onUpdate:value": t[47] ||= (t) => e.model = t,
|
|
@@ -2910,8 +3025,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2910
3025
|
"watch",
|
|
2911
3026
|
"base-key-path",
|
|
2912
3027
|
"worker-host-functions"
|
|
2913
|
-
])) :
|
|
2914
|
-
e.field.type === "remotetablepro" && !e.self_is_edit ? (
|
|
3028
|
+
])) : k("", !0),
|
|
3029
|
+
e.field.type === "remotetablepro" && !e.self_is_edit ? (z(), O(B, {
|
|
2915
3030
|
key: 39,
|
|
2916
3031
|
value: e.model,
|
|
2917
3032
|
"onUpdate:value": t[48] ||= (t) => e.model = t,
|
|
@@ -2945,8 +3060,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2945
3060
|
"global-inner-model",
|
|
2946
3061
|
"base-key-path",
|
|
2947
3062
|
"worker-host-functions"
|
|
2948
|
-
])) :
|
|
2949
|
-
e.field.type === "formtemplate" ? (
|
|
3063
|
+
])) : k("", !0),
|
|
3064
|
+
e.field.type === "formtemplate" ? (z(), O(V, {
|
|
2950
3065
|
key: 40,
|
|
2951
3066
|
value: e.model,
|
|
2952
3067
|
"onUpdate:value": t[49] ||= (t) => e.model = t,
|
|
@@ -2990,8 +3105,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
2990
3105
|
"base-key-path",
|
|
2991
3106
|
"worker-host-functions",
|
|
2992
3107
|
"contextOptions"
|
|
2993
|
-
])) :
|
|
2994
|
-
e.field.type === "dynamicvaluefield" ? (
|
|
3108
|
+
])) : k("", !0),
|
|
3109
|
+
e.field.type === "dynamicvaluefield" ? (z(), O(ve, {
|
|
2995
3110
|
key: 41,
|
|
2996
3111
|
value: e.model,
|
|
2997
3112
|
"onUpdate:value": t[50] ||= (t) => e.model = t,
|
|
@@ -3029,8 +3144,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
3029
3144
|
"context",
|
|
3030
3145
|
"base-key-path",
|
|
3031
3146
|
"worker-host-functions"
|
|
3032
|
-
])) :
|
|
3033
|
-
e.field.type === "remotetext" ? (
|
|
3147
|
+
])) : k("", !0),
|
|
3148
|
+
e.field.type === "remotetext" ? (z(), O(ye, {
|
|
3034
3149
|
key: 42,
|
|
3035
3150
|
value: e.model,
|
|
3036
3151
|
"onUpdate:value": t[51] ||= (t) => e.model = t,
|
|
@@ -3052,8 +3167,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
3052
3167
|
"modalType",
|
|
3053
3168
|
"search_config",
|
|
3054
3169
|
"watch"
|
|
3055
|
-
])) :
|
|
3056
|
-
e.field.type === "upload" ? (
|
|
3170
|
+
])) : k("", !0),
|
|
3171
|
+
e.field.type === "upload" ? (z(), O(be, {
|
|
3057
3172
|
key: 43,
|
|
3058
3173
|
value: e.model,
|
|
3059
3174
|
"onUpdate:value": t[52] ||= (t) => e.model = t,
|
|
@@ -3069,8 +3184,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
3069
3184
|
"listType",
|
|
3070
3185
|
"maxCount",
|
|
3071
3186
|
"acceptList"
|
|
3072
|
-
])) :
|
|
3073
|
-
e.field.type === "codeeditor" ? (
|
|
3187
|
+
])) : k("", !0),
|
|
3188
|
+
e.field.type === "codeeditor" ? (z(), O(K, {
|
|
3074
3189
|
key: 44,
|
|
3075
3190
|
editorValue: e.model,
|
|
3076
3191
|
"onUpdate:editorValue": t[53] ||= (t) => e.model = t,
|
|
@@ -3082,8 +3197,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
3082
3197
|
"options",
|
|
3083
3198
|
"mode",
|
|
3084
3199
|
"lineWrapping"
|
|
3085
|
-
])) :
|
|
3086
|
-
e.field.type === "tinymceeditor" ? (
|
|
3200
|
+
])) : k("", !0),
|
|
3201
|
+
e.field.type === "tinymceeditor" ? (z(), O(xe, {
|
|
3087
3202
|
key: 45,
|
|
3088
3203
|
modelValue: e.model,
|
|
3089
3204
|
"onUpdate:modelValue": t[54] ||= (t) => e.model = t,
|
|
@@ -3093,14 +3208,14 @@ function Lt(e, t, n, r, i, a) {
|
|
|
3093
3208
|
"modelValue",
|
|
3094
3209
|
"options",
|
|
3095
3210
|
"mode"
|
|
3096
|
-
])) :
|
|
3097
|
-
e.field.type === "iconselect" ? (
|
|
3211
|
+
])) : k("", !0),
|
|
3212
|
+
e.field.type === "iconselect" ? (z(), O(Se, {
|
|
3098
3213
|
key: 46,
|
|
3099
3214
|
value: e.model,
|
|
3100
3215
|
"onUpdate:value": t[55] ||= (t) => e.model = t,
|
|
3101
3216
|
placeholder: e.field.placeholder_i18n == null ? e.field.placeholder ? e.field.placeholder : e.$t("请选择") + e.field.label : e.t(e.field.placeholder_i18n)
|
|
3102
|
-
}, null, 8, ["value", "placeholder"])) :
|
|
3103
|
-
e.field.type === "rate" ? (
|
|
3217
|
+
}, null, 8, ["value", "placeholder"])) : k("", !0),
|
|
3218
|
+
e.field.type === "rate" ? (z(), O(u, {
|
|
3104
3219
|
key: 47,
|
|
3105
3220
|
value: e.model,
|
|
3106
3221
|
"onUpdate:value": t[56] ||= (t) => e.model = t,
|
|
@@ -3110,8 +3225,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
3110
3225
|
"value",
|
|
3111
3226
|
"count",
|
|
3112
3227
|
"allow-half"
|
|
3113
|
-
])) :
|
|
3114
|
-
e.field.type === "radio-color" ? (
|
|
3228
|
+
])) : k("", !0),
|
|
3229
|
+
e.field.type === "radio-color" ? (z(), O(ce, {
|
|
3115
3230
|
key: 48,
|
|
3116
3231
|
value: e.model,
|
|
3117
3232
|
"onUpdate:value": t[57] ||= (t) => e.model = t,
|
|
@@ -3119,12 +3234,12 @@ function Lt(e, t, n, r, i, a) {
|
|
|
3119
3234
|
disabled: e.field.disabled,
|
|
3120
3235
|
size: "small"
|
|
3121
3236
|
}, {
|
|
3122
|
-
default:
|
|
3237
|
+
default: q(() => [(z(!0), A(E, null, H(e.options, (t) => (z(), O(T, {
|
|
3123
3238
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
3124
3239
|
disabled: t.disabled,
|
|
3125
3240
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
3126
3241
|
}, {
|
|
3127
|
-
default:
|
|
3242
|
+
default: q(() => [j("div", { style: he({
|
|
3128
3243
|
width: "20px",
|
|
3129
3244
|
height: "20px",
|
|
3130
3245
|
backgroundColor: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
@@ -3136,8 +3251,8 @@ function Lt(e, t, n, r, i, a) {
|
|
|
3136
3251
|
"value",
|
|
3137
3252
|
"default-value",
|
|
3138
3253
|
"disabled"
|
|
3139
|
-
])) :
|
|
3140
|
-
e.field.type?.startsWith("CustomField") ? (
|
|
3254
|
+
])) : k("", !0),
|
|
3255
|
+
e.field.type?.startsWith("CustomField") ? (z(), O(W(e.field.type), {
|
|
3141
3256
|
key: 49,
|
|
3142
3257
|
label: e.labelModel,
|
|
3143
3258
|
"onUpdate:label": t[58] ||= (t) => e.labelModel = t,
|
|
@@ -3162,14 +3277,14 @@ function Lt(e, t, n, r, i, a) {
|
|
|
3162
3277
|
"init_watch",
|
|
3163
3278
|
"is_form_design",
|
|
3164
3279
|
"placeholder"
|
|
3165
|
-
])) :
|
|
3280
|
+
])) : k("", !0)
|
|
3166
3281
|
]),
|
|
3167
3282
|
_: 2
|
|
3168
3283
|
}, [e.is_show_label ? {
|
|
3169
3284
|
name: "label",
|
|
3170
|
-
fn:
|
|
3171
|
-
|
|
3172
|
-
e.is_show_edit ? (
|
|
3285
|
+
fn: q(() => [
|
|
3286
|
+
N(G(e.is_show_label ? e.field.label_i18n == null ? e.field.label : e.t(e.field.label_i18n) : null) + " ", 1),
|
|
3287
|
+
e.is_show_edit ? (z(), O(o, {
|
|
3173
3288
|
key: 0,
|
|
3174
3289
|
checked: e.self_is_edit,
|
|
3175
3290
|
"onUpdate:checked": t[0] ||= (t) => e.self_is_edit = t,
|
|
@@ -3177,28 +3292,28 @@ function Lt(e, t, n, r, i, a) {
|
|
|
3177
3292
|
onChange: e.handleToggleEdit,
|
|
3178
3293
|
"checked-children": "表单",
|
|
3179
3294
|
"un-checked-children": "列表"
|
|
3180
|
-
}, null, 8, ["checked", "onChange"])) :
|
|
3181
|
-
e.is_show_edit && e.self_is_edit ? (
|
|
3295
|
+
}, null, 8, ["checked", "onChange"])) : k("", !0),
|
|
3296
|
+
e.is_show_edit && e.self_is_edit ? (z(), O(c, {
|
|
3182
3297
|
key: 1,
|
|
3183
3298
|
size: "small",
|
|
3184
3299
|
type: "primary",
|
|
3185
3300
|
onClick: e.handleAdd
|
|
3186
3301
|
}, {
|
|
3187
|
-
icon:
|
|
3188
|
-
default:
|
|
3302
|
+
icon: q(() => [P(s)]),
|
|
3303
|
+
default: q(() => [t[61] ||= N(" 添加分组 ")]),
|
|
3189
3304
|
_: 1
|
|
3190
|
-
}, 8, ["onClick"])) :
|
|
3305
|
+
}, 8, ["onClick"])) : k("", !0)
|
|
3191
3306
|
]),
|
|
3192
3307
|
key: "0"
|
|
3193
|
-
} : void 0]), 1040, ["extra", "name"])) :
|
|
3194
|
-
e.field.type === "divider" ? (
|
|
3308
|
+
} : void 0]), 1040, ["extra", "name"])) : k("", !0),
|
|
3309
|
+
e.field.type === "divider" ? (z(), O(we, {
|
|
3195
3310
|
key: 1,
|
|
3196
3311
|
orientation: e.field.orientation
|
|
3197
3312
|
}, {
|
|
3198
|
-
default:
|
|
3313
|
+
default: q(() => [N(G(e.field.label), 1)]),
|
|
3199
3314
|
_: 1
|
|
3200
|
-
}, 8, ["orientation"])) :
|
|
3201
|
-
e.field.type === "button" ? (
|
|
3315
|
+
}, 8, ["orientation"])) : k("", !0),
|
|
3316
|
+
e.field.type === "button" ? (z(), O(Te, {
|
|
3202
3317
|
key: 2,
|
|
3203
3318
|
value: e.model,
|
|
3204
3319
|
"onUpdate:value": t[60] ||= (t) => e.model = t,
|
|
@@ -3220,9 +3335,9 @@ function Lt(e, t, n, r, i, a) {
|
|
|
3220
3335
|
"context",
|
|
3221
3336
|
"base-key-path",
|
|
3222
3337
|
"worker-host-functions"
|
|
3223
|
-
])) :
|
|
3338
|
+
])) : k("", !0)
|
|
3224
3339
|
], 64);
|
|
3225
3340
|
}
|
|
3226
|
-
var
|
|
3341
|
+
var Ut = /*#__PURE__*/ n(Ft, [["render", Ht], ["__scopeId", "data-v-4d903c12"]]);
|
|
3227
3342
|
//#endregion
|
|
3228
|
-
export {
|
|
3343
|
+
export { Ut as t };
|