act-plus 1.1.45 → 1.1.47
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/act-plus.js +1 -1
- package/act-plus.umd.cjs +68 -68
- package/lib/{dialogAddField-f0b1b2a2.js → dialogAddField-d98f117c.js} +206 -185
- package/lib/{dialogConfigBtn-87a49042.js → dialogConfigBtn-d2f39e31.js} +2 -2
- package/lib/{dialogSiteComponentsParams-35632c53.js → dialogSiteComponentsParams-680354b0.js} +1 -1
- package/lib/{index-ba4155ed.js → index-1b503cfa.js} +1 -1
- package/lib/index-4e179352.js +291 -0
- package/lib/{index-b75b11aa.js → index-56bc95ef.js} +31789 -31750
- package/lib/index-5b45c0ed.js +406 -0
- package/lib/{index-5c0bcdbd.js → index-aede2df5.js} +1 -1
- package/lib/{index-2b85dc1d.js → index-bfbf9bcd.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/lib/index-76ff33c1.js +0 -283
- package/lib/index-f556ad58.js +0 -406
package/lib/index-f556ad58.js
DELETED
|
@@ -1,406 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as A, inject as T, ref as K, watch as Te, resolveComponent as v, resolveDirective as ee, openBlock as u, createBlock as m, withCtx as C, createElementVNode as le, createVNode as ae, createTextVNode as W, toDisplayString as O, unref as d, withDirectives as oe, createElementBlock as P, Fragment as q, renderList as G, mergeProps as V, createCommentVNode as te, resolveDynamicComponent as De, toRaw as Ke } from "vue";
|
|
2
|
-
import { _ as we, u as Ue, P as Ne, a as Pe, b as ke } from "./index-b75b11aa.js";
|
|
3
|
-
import { ElNotification as Se } from "element-plus";
|
|
4
|
-
import "vue-router";
|
|
5
|
-
import "js-base64";
|
|
6
|
-
import "monaco-editor";
|
|
7
|
-
const Le = { class: "no-config-field" }, Re = { class: "dialog-footer" }, $e = {
|
|
8
|
-
__name: "index",
|
|
9
|
-
props: {
|
|
10
|
-
visible: { type: Boolean, default: !1 },
|
|
11
|
-
title: { type: String, default: "" },
|
|
12
|
-
data: { type: Object, default: () => ({}) }
|
|
13
|
-
},
|
|
14
|
-
emits: ["update:visible", "refresh"],
|
|
15
|
-
setup(w, { emit: se }) {
|
|
16
|
-
const re = A(() => import("./index-b75b11aa.js").then((l) => l.t)), de = A(() => import("./index-5c0bcdbd.js")), ie = A(() => import("./index-b75b11aa.js").then((l) => l.s)), ne = A(() => import("./index-b75b11aa.js").then((l) => l.r)), { t: y } = Ue(), x = T("request"), ue = T("loadComponents"), k = T("formatDataType"), J = T("globalProps"), ce = T("stringToBoolean"), h = T("getFieldUiProps"), fe = T("disposeRequestData"), Q = se, f = w, S = K(!1), L = K(!1), M = K(null), R = K([]), o = K({}), E = K({}), pe = (l) => l.formColumnCol == null ? 24 : l.formColumnCol ? l.formColumnCol : 24 / l.formRow, me = (l) => ["input", "textarea"].includes(l.fieldType) ? "blur" : (["select", "multipleSelect", "datetimerange", "treeSelect", "provinceCascade"].includes(l.fieldType), "change"), ye = async ({ node: l, resolve: c }, a) => {
|
|
17
|
-
const r = h(a), { label: p, value: i, children: g, isLeaf: t } = { ...ke, ...r.treeProps || {} };
|
|
18
|
-
if (l[t])
|
|
19
|
-
return c([]);
|
|
20
|
-
const n = a.postRequestParams.filter((b) => b.submitType === "default").reduce((b, D) => (b[D.submitName] = k(D.paramsType, D.submitValue), b), {}), F = a.postRequestParams.filter((b) => b.submitType === "dynamic").map((b) => ({
|
|
21
|
-
field: b.submitName,
|
|
22
|
-
operate: b.submitMatchType,
|
|
23
|
-
value: r.loadCode ? l == null ? void 0 : l.data.value : k(b.paramsType, b.submitValue)
|
|
24
|
-
}));
|
|
25
|
-
let _ = {};
|
|
26
|
-
Object.keys(n).length && (_ = { ..._, ...n }), F.length && (_.dynamicFilters = F), r.loadCode && Reflect.has(_, r.loadCode) && (_[r.loadCode] = l == null ? void 0 : l.data.value);
|
|
27
|
-
const { data: U } = await x({
|
|
28
|
-
url: a.fieldRequestUrl,
|
|
29
|
-
method: a.fieldRequestType || "GET",
|
|
30
|
-
data: _
|
|
31
|
-
}), B = (U || []).map((b) => ({ label: b[p], value: b[i], children: [], isLeaf: b[t] }));
|
|
32
|
-
c(B);
|
|
33
|
-
}, j = (l) => {
|
|
34
|
-
if (!["input", "textarea"].includes(l)) {
|
|
35
|
-
if (["multipleSelect", "dateRange"].includes(l))
|
|
36
|
-
return [];
|
|
37
|
-
if (["switch"].includes(l))
|
|
38
|
-
return !1;
|
|
39
|
-
}
|
|
40
|
-
}, $ = (l, c) => {
|
|
41
|
-
if (typeof l == "string" && ["string"].includes(c))
|
|
42
|
-
return l.toString();
|
|
43
|
-
if (["string"].includes(c))
|
|
44
|
-
return l.sort((a, r) => a.sort - r.sort).join(";");
|
|
45
|
-
if (["number"].includes(c))
|
|
46
|
-
return Number(l);
|
|
47
|
-
if (["array"].includes(c))
|
|
48
|
-
return l.sort((a, r) => a.sort - r.sort);
|
|
49
|
-
}, Y = (l, c = !1) => {
|
|
50
|
-
if (["multipleSelect"].includes(l.fieldType))
|
|
51
|
-
return f.data.rowData[l.fieldKey] ? f.data.rowData[l.fieldKey].split(";").map((r) => c ? { value: r } : r) : [];
|
|
52
|
-
if (["virtualizedMultipleSelect"].includes(l.fieldType))
|
|
53
|
-
return f.data.rowData[l.fieldKey] ? f.data.rowData[l.fieldKey].split(";") : [];
|
|
54
|
-
if (["dateRange", "provinceCascade"].includes(l.fieldType)) {
|
|
55
|
-
const r = l.fieldKey.split("&");
|
|
56
|
-
return f.data.rowData[l.fieldKey] = r.map((p) => f.data.rowData[p]), f.data.rowData[l.fieldKey];
|
|
57
|
-
}
|
|
58
|
-
let a = f.data.rowData[l.fieldKey];
|
|
59
|
-
if (["select"].includes(l.fieldType)) {
|
|
60
|
-
const r = h(l);
|
|
61
|
-
l.dataList && typeof l.dataList[0][r["value-key"] ? r["value-key"] : "value"] == "string" && a !== null && (a = c ? { value: a.toString() } : a.toString());
|
|
62
|
-
}
|
|
63
|
-
if (["virtualizedSelect"].includes(l.fieldType)) {
|
|
64
|
-
const r = h(l);
|
|
65
|
-
l.dataList && typeof l.dataList[0][r["value-key"] ? r["value-key"] : "value"] == "string" && a !== null && (a = a.toString());
|
|
66
|
-
}
|
|
67
|
-
return (a === "true" || a === "false") && (a = ce(a)), a;
|
|
68
|
-
}, be = (l) => x({ url: f.data.dataItem.requestUrl, method: "post", data: l });
|
|
69
|
-
Te(
|
|
70
|
-
() => f.visible,
|
|
71
|
-
async (l, c) => {
|
|
72
|
-
var a, r;
|
|
73
|
-
if (l)
|
|
74
|
-
try {
|
|
75
|
-
S.value = !0;
|
|
76
|
-
const p = await fe(f.data.formList, f.data.rowData, !1, !0);
|
|
77
|
-
console.log("formList", (a = f.data) == null ? void 0 : a.formList), R.value = await Promise.all(
|
|
78
|
-
(((r = f.data) == null ? void 0 : r.formList) ?? []).sort((i, g) => i.sort - g.sort).map(async (i) => {
|
|
79
|
-
const g = p.find((_) => i.fieldName == _.fieldName && i.fieldKey == _.fieldKey);
|
|
80
|
-
g && (i.dataList = (g == null ? void 0 : g.dataList) ?? []), ["select", "multipleSelect"].includes(i.fieldType) && (o.value[`${i.fieldKey}ActImplicit`] = Object.keys(f.data.rowData).length && i.isFormSetValue ? Y(i, !0) : j(i.fieldType)), o.value[i.fieldKey] = Object.keys(f.data.rowData).length && i.isFormSetValue ? Y(i) : j(i.fieldType);
|
|
81
|
-
const { isFieldCustom: t, customComponentName: n, customComponentUrl: F } = i.customFiledsComponentes;
|
|
82
|
-
if (t && !i.customFiledsComponentes[n]) {
|
|
83
|
-
const _ = await ue(F, n);
|
|
84
|
-
i.customFiledsComponentes[n] = _;
|
|
85
|
-
}
|
|
86
|
-
return i;
|
|
87
|
-
})
|
|
88
|
-
), S.value = !1;
|
|
89
|
-
} catch (p) {
|
|
90
|
-
console.error(p), S.value = !1;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
);
|
|
94
|
-
const he = (l) => {
|
|
95
|
-
z(), l();
|
|
96
|
-
}, z = () => {
|
|
97
|
-
R.value = [], M.value.resetFields(), Q("update:visible", !1);
|
|
98
|
-
}, _e = (l, c) => {
|
|
99
|
-
const a = h(c), { fieldKey: r, fieldType: p } = c;
|
|
100
|
-
if (p === "multipleSelect") {
|
|
101
|
-
const i = l.filter((t) => typeof t == "string"), g = l.filter((t) => typeof t != "string").map((t) => t.value);
|
|
102
|
-
o.value[a.createFieldKey] = i.length ? $(i, "string") : void 0, o.value[r] = g.length ? $(g, "string") : void 0;
|
|
103
|
-
} else
|
|
104
|
-
typeof l == "string" ? (o.value[a.createFieldKey] = l, o.value[r] = void 0) : (o.value[r] = l.value, delete o.value[a.createFieldKey]);
|
|
105
|
-
}, ge = (l) => {
|
|
106
|
-
l && l.validate((c) => {
|
|
107
|
-
if (c) {
|
|
108
|
-
const { dataItem: a, rowData: r } = f.data;
|
|
109
|
-
let p = { ...Ke(o.value) };
|
|
110
|
-
Object.keys(p).forEach((t) => {
|
|
111
|
-
if (t.includes("ActImplicit")) {
|
|
112
|
-
delete p[t];
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
const n = R.value.find((F) => F.fieldKey === t);
|
|
116
|
-
t.includes("&") ? t.split("&").forEach((_, U) => {
|
|
117
|
-
p[_] = p[t] ? $(p[t][U], n.fieldSubmitType) : p[t];
|
|
118
|
-
}) : Array.isArray(p[t]) && n.fieldSubmitType == "string" && (p[t] = $(p[t], "string"));
|
|
119
|
-
});
|
|
120
|
-
const i = a.submitFields.filter((t) => t.matchType == "default").reduce((t, n) => (n.submitFieldType === "string" && (t[n.submitFieldName] = n.matchFieldName.toString()), t), {}), g = a.submitFields.filter((t) => t.matchType == "match").reduce((t, n) => (Reflect.has(n, "submitFieldMatchOrigin") && n.submitFieldMatchOrigin != "rowData" ? Reflect.has(J.matchData, n.submitFieldMatchOrigin) && (t[n.submitFieldName] = k(n.submitFieldType, J.matchData[n.submitFieldMatchOrigin][n.matchFieldName])) : t[n.submitFieldName] = k(n.submitFieldType, r[n.matchFieldName]), t), {});
|
|
121
|
-
be({
|
|
122
|
-
...p,
|
|
123
|
-
...i,
|
|
124
|
-
...g
|
|
125
|
-
}).then((t) => {
|
|
126
|
-
try {
|
|
127
|
-
Se({ title: y("act.tip"), message: y("act.saveSuccessfully"), type: "success", duration: 2500 }), z(), Q("refresh");
|
|
128
|
-
} catch (n) {
|
|
129
|
-
console.error(n);
|
|
130
|
-
}
|
|
131
|
-
L.value = !1;
|
|
132
|
-
}).catch((t) => {
|
|
133
|
-
console.error(t), L.value = !1;
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
});
|
|
137
|
-
}, ve = (l) => {
|
|
138
|
-
const c = Object.keys(E.value).map((a) => {
|
|
139
|
-
var r;
|
|
140
|
-
return (r = E.value[a]) == null ? void 0 : r.updateFormData(o.value);
|
|
141
|
-
}).filter((a) => a);
|
|
142
|
-
Promise.all([l.validate(), ...c]).then((a) => {
|
|
143
|
-
a.every((r) => r) && ge(l);
|
|
144
|
-
}).catch((a) => (console.error(a), a));
|
|
145
|
-
};
|
|
146
|
-
return (l, c) => {
|
|
147
|
-
var X;
|
|
148
|
-
const a = v("el-input"), r = v("el-option"), p = v("el-select"), i = v("el-select-v2"), g = v("el-tree-select"), t = v("el-date-picker"), n = v("el-cascader"), F = v("el-switch"), _ = v("el-form-item"), U = v("el-col"), B = v("el-row"), b = v("el-form"), D = v("el-button"), Ve = v("el-dialog"), Ce = ee("loading"), Fe = ee("debounce");
|
|
149
|
-
return u(), m(Ve, {
|
|
150
|
-
"model-value": f.visible,
|
|
151
|
-
title: f.title,
|
|
152
|
-
top: "5vh",
|
|
153
|
-
width: (X = w.data.formConfig) == null ? void 0 : X.dialogWidth,
|
|
154
|
-
draggable: "",
|
|
155
|
-
overflow: "",
|
|
156
|
-
"append-to-body": "",
|
|
157
|
-
"destroy-on-close": "",
|
|
158
|
-
"close-on-click-modal": !1,
|
|
159
|
-
"before-close": he
|
|
160
|
-
}, {
|
|
161
|
-
footer: C(() => [
|
|
162
|
-
le("span", Re, [
|
|
163
|
-
ae(D, {
|
|
164
|
-
loading: L.value,
|
|
165
|
-
onClick: z
|
|
166
|
-
}, {
|
|
167
|
-
default: C(() => [
|
|
168
|
-
W(O(d(y)("act.cancel")), 1)
|
|
169
|
-
]),
|
|
170
|
-
_: 1
|
|
171
|
-
}, 8, ["loading"]),
|
|
172
|
-
oe((u(), m(D, {
|
|
173
|
-
type: "primary",
|
|
174
|
-
loading: L.value,
|
|
175
|
-
onClick: c[1] || (c[1] = (H) => ve(M.value))
|
|
176
|
-
}, {
|
|
177
|
-
default: C(() => [
|
|
178
|
-
W(O(d(y)("act.save")), 1)
|
|
179
|
-
]),
|
|
180
|
-
_: 1
|
|
181
|
-
}, 8, ["loading"])), [
|
|
182
|
-
[Fe]
|
|
183
|
-
])
|
|
184
|
-
])
|
|
185
|
-
]),
|
|
186
|
-
default: C(() => {
|
|
187
|
-
var H, Z;
|
|
188
|
-
return [
|
|
189
|
-
oe((u(), m(b, {
|
|
190
|
-
class: "a-form",
|
|
191
|
-
ref_key: "formRef",
|
|
192
|
-
ref: M,
|
|
193
|
-
model: o.value,
|
|
194
|
-
"label-suffix": ":",
|
|
195
|
-
"label-width": (H = w.data.formConfig) == null ? void 0 : H.formLabelWidth,
|
|
196
|
-
"label-position": (Z = w.data.formConfig) == null ? void 0 : Z.formLabelPosition
|
|
197
|
-
}, {
|
|
198
|
-
default: C(() => [
|
|
199
|
-
ae(B, { gutter: 40 }, {
|
|
200
|
-
default: C(() => [
|
|
201
|
-
(u(!0), P(q, null, G(R.value, (e, I) => (u(), m(U, {
|
|
202
|
-
span: pe(e),
|
|
203
|
-
key: I
|
|
204
|
-
}, {
|
|
205
|
-
default: C(() => [
|
|
206
|
-
e.customFiledsComponentes.isFieldCustom ? (u(), P(q, { key: 1 }, [
|
|
207
|
-
e.customFiledsComponentes[e.customFiledsComponentes.customComponentName] ? (u(), m(De(e.customFiledsComponentes[e.customFiledsComponentes.customComponentName]), {
|
|
208
|
-
key: 0,
|
|
209
|
-
ref_for: !0,
|
|
210
|
-
ref: (s) => E.value[e.customFiledsComponentes.customComponentName] = s,
|
|
211
|
-
formConfig: w.data.formConfig,
|
|
212
|
-
item: e,
|
|
213
|
-
rowData: f.data.rowData,
|
|
214
|
-
visible: f.visible,
|
|
215
|
-
form: o.value,
|
|
216
|
-
"onUpdate:form": c[0] || (c[0] = (s) => o.value = s)
|
|
217
|
-
}, null, 40, ["formConfig", "item", "rowData", "visible", "form"])) : (u(), P("div", {
|
|
218
|
-
class: "no-config",
|
|
219
|
-
key: I
|
|
220
|
-
}, [
|
|
221
|
-
le("span", Le, "【" + O(e.fieldName) + "】", 1),
|
|
222
|
-
W(O(d(y)("act.fieldCustom")), 1)
|
|
223
|
-
]))
|
|
224
|
-
], 64)) : (u(), m(_, {
|
|
225
|
-
key: 0,
|
|
226
|
-
label: e.fieldName,
|
|
227
|
-
prop: ["select", "multipleSelect"].includes(e.fieldType) ? `${e.fieldKey}ActImplicit` : e.fieldKey,
|
|
228
|
-
rules: [{ required: e.isFormFieldRequired, message: d(y)("act.requiredMessage"), trigger: me(e) }]
|
|
229
|
-
}, {
|
|
230
|
-
default: C(() => [
|
|
231
|
-
e.fieldType === "input" ? (u(), m(a, V({
|
|
232
|
-
key: 0,
|
|
233
|
-
modelValue: o.value[e.fieldKey],
|
|
234
|
-
"onUpdate:modelValue": (s) => o.value[e.fieldKey] = s,
|
|
235
|
-
placeholder: `${d(y)("act.inputPlaceholder")}${e.fieldName}`,
|
|
236
|
-
clearable: "",
|
|
237
|
-
ref_for: !0
|
|
238
|
-
}, d(h)(e), {
|
|
239
|
-
disabled: e.isFormDisabled
|
|
240
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : te("", !0),
|
|
241
|
-
e.fieldType === "inputNumber" ? (u(), m(d(re), V({
|
|
242
|
-
key: 1,
|
|
243
|
-
modelValue: o.value[e.fieldKey],
|
|
244
|
-
"onUpdate:modelValue": (s) => o.value[e.fieldKey] = s,
|
|
245
|
-
placeholder: `${d(y)("act.inputPlaceholder")}${e.fieldName}`,
|
|
246
|
-
clearable: "",
|
|
247
|
-
ref_for: !0
|
|
248
|
-
}, d(h)(e), {
|
|
249
|
-
disabled: e.isFormDisabled
|
|
250
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "textarea" ? (u(), m(a, V({
|
|
251
|
-
key: 2,
|
|
252
|
-
modelValue: o.value[e.fieldKey],
|
|
253
|
-
"onUpdate:modelValue": (s) => o.value[e.fieldKey] = s,
|
|
254
|
-
placeholder: `${d(y)("act.inputPlaceholder")}${e.fieldName}`,
|
|
255
|
-
rows: 4,
|
|
256
|
-
ref_for: !0
|
|
257
|
-
}, d(h)(e), {
|
|
258
|
-
type: "textarea",
|
|
259
|
-
disabled: e.isFormDisabled
|
|
260
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "selectIcon" ? (u(), m(d(de), V({
|
|
261
|
-
key: 3,
|
|
262
|
-
modelValue: o.value[e.fieldKey],
|
|
263
|
-
"onUpdate:modelValue": (s) => o.value[e.fieldKey] = s,
|
|
264
|
-
icons: e.dataList,
|
|
265
|
-
placeholder: `${d(y)("act.selectPlaceholder")}${e.fieldName}`,
|
|
266
|
-
ref_for: !0
|
|
267
|
-
}, d(h)(e), {
|
|
268
|
-
disabled: e.isFormDisabled
|
|
269
|
-
}), {
|
|
270
|
-
default: C(() => [
|
|
271
|
-
(u(!0), P(q, null, G(e.dataList, (s, N) => (u(), m(r, {
|
|
272
|
-
key: N,
|
|
273
|
-
label: s.key,
|
|
274
|
-
value: s.value
|
|
275
|
-
}, null, 8, ["label", "value"]))), 128))
|
|
276
|
-
]),
|
|
277
|
-
_: 2
|
|
278
|
-
}, 1040, ["modelValue", "onUpdate:modelValue", "icons", "placeholder", "disabled"])) : ["select", "multipleSelect"].includes(e.fieldType) ? (u(), m(p, V({
|
|
279
|
-
key: 4,
|
|
280
|
-
modelValue: o.value[`${e.fieldKey}ActImplicit`],
|
|
281
|
-
"onUpdate:modelValue": (s) => o.value[`${e.fieldKey}ActImplicit`] = s,
|
|
282
|
-
placeholder: `${d(y)("act.selectPlaceholder")}${e.fieldName}`,
|
|
283
|
-
clearable: "",
|
|
284
|
-
filterable: "",
|
|
285
|
-
"value-key": "value",
|
|
286
|
-
ref_for: !0
|
|
287
|
-
}, d(h)(e), {
|
|
288
|
-
multiple: e.fieldType === "multipleSelect",
|
|
289
|
-
disabled: e.isFormDisabled,
|
|
290
|
-
onChange: (s) => _e(s, e)
|
|
291
|
-
}), {
|
|
292
|
-
default: C(() => [
|
|
293
|
-
(u(!0), P(q, null, G(e.dataList, (s, N) => (u(), m(r, {
|
|
294
|
-
key: N,
|
|
295
|
-
label: s.key,
|
|
296
|
-
value: s
|
|
297
|
-
}, null, 8, ["label", "value"]))), 128))
|
|
298
|
-
]),
|
|
299
|
-
_: 2
|
|
300
|
-
}, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "disabled", "onChange"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (u(), m(i, V({
|
|
301
|
-
key: 5,
|
|
302
|
-
modelValue: o.value[e.fieldKey],
|
|
303
|
-
"onUpdate:modelValue": (s) => o.value[e.fieldKey] = s,
|
|
304
|
-
options: e.dataList,
|
|
305
|
-
props: { ...d(Ne) },
|
|
306
|
-
placeholder: `${d(y)("act.selectPlaceholder")}${e.fieldName}`,
|
|
307
|
-
clearable: "",
|
|
308
|
-
filterable: "",
|
|
309
|
-
ref_for: !0
|
|
310
|
-
}, d(h)(e), {
|
|
311
|
-
disabled: e.isFormDisabled,
|
|
312
|
-
multiple: e.fieldType === "virtualizedMultipleSelect"
|
|
313
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled", "multiple"])) : e.fieldType === "treeSelect" ? (u(), m(g, V({
|
|
314
|
-
key: 6,
|
|
315
|
-
modelValue: o.value[e.fieldKey],
|
|
316
|
-
"onUpdate:modelValue": (s) => o.value[e.fieldKey] = s,
|
|
317
|
-
placeholder: `请选择${e.fieldName}`,
|
|
318
|
-
props: { isLeaf: "isLeaf" },
|
|
319
|
-
"render-after-expand": !1,
|
|
320
|
-
"collapse-tags": "",
|
|
321
|
-
"collapse-tags-tooltip": "",
|
|
322
|
-
multiple: "",
|
|
323
|
-
"show-checkbox": "",
|
|
324
|
-
clearable: "",
|
|
325
|
-
filterable: "",
|
|
326
|
-
lazy: "",
|
|
327
|
-
load: (s, N) => ye({ node: s, resolve: N }, e),
|
|
328
|
-
ref_for: !0
|
|
329
|
-
}, d(h)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "load"])) : e.fieldType === "date" ? (u(), m(t, V({
|
|
330
|
-
key: 7,
|
|
331
|
-
modelValue: o.value[e.fieldKey],
|
|
332
|
-
"onUpdate:modelValue": (s) => o.value[e.fieldKey] = s,
|
|
333
|
-
type: "date",
|
|
334
|
-
placeholder: `${d(y)("act.selectPlaceholder")}${d(y)("act.time")}`,
|
|
335
|
-
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
336
|
-
ref_for: !0
|
|
337
|
-
}, d(h)(e), {
|
|
338
|
-
disabled: e.isFormDisabled
|
|
339
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "dateRange" ? (u(), m(t, V({
|
|
340
|
-
key: 8,
|
|
341
|
-
modelValue: o.value[e.fieldKey],
|
|
342
|
-
"onUpdate:modelValue": (s) => o.value[e.fieldKey] = s,
|
|
343
|
-
type: "daterange",
|
|
344
|
-
"start-placeholder": d(y)("act.startTime"),
|
|
345
|
-
"end-placeholder": d(y)("act.endTime"),
|
|
346
|
-
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
347
|
-
ref_for: !0
|
|
348
|
-
}, d(h)(e), {
|
|
349
|
-
disabled: e.isFormDisabled
|
|
350
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled"])) : e.fieldType === "provinceCascade" ? (u(), m(n, V({
|
|
351
|
-
key: 9,
|
|
352
|
-
modelValue: o.value[e.fieldKey],
|
|
353
|
-
"onUpdate:modelValue": (s) => o.value[e.fieldKey] = s,
|
|
354
|
-
options: e.dataList,
|
|
355
|
-
props: d(Pe),
|
|
356
|
-
clearable: "",
|
|
357
|
-
filterable: "",
|
|
358
|
-
placeholder: `${d(y)("act.selectPlaceholder")}${e.fieldName}`,
|
|
359
|
-
ref_for: !0
|
|
360
|
-
}, d(h)(e), {
|
|
361
|
-
disabled: e.isFormDisabled
|
|
362
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (u(), m(F, {
|
|
363
|
-
key: 10,
|
|
364
|
-
modelValue: o.value[e.fieldKey],
|
|
365
|
-
"onUpdate:modelValue": (s) => o.value[e.fieldKey] = s,
|
|
366
|
-
"active-value": !0,
|
|
367
|
-
"inactive-value": !1
|
|
368
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : e.fieldType === "upload" ? (u(), m(d(ie), V({
|
|
369
|
-
key: 11,
|
|
370
|
-
class: "form-upload",
|
|
371
|
-
modelValue: o.value[e.fieldKey],
|
|
372
|
-
"onUpdate:modelValue": (s) => o.value[e.fieldKey] = s,
|
|
373
|
-
request: d(x),
|
|
374
|
-
ref_for: !0
|
|
375
|
-
}, d(h)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "request"])) : e.fieldType === "editor" ? (u(), m(d(ne), V({
|
|
376
|
-
key: 12,
|
|
377
|
-
modelValue: o.value[e.fieldKey],
|
|
378
|
-
"onUpdate:modelValue": (s) => o.value[e.fieldKey] = s,
|
|
379
|
-
disabled: e.isFormDisabled,
|
|
380
|
-
placeholder: `${d(y)("act.inputPlaceholder")}${e.fieldName}`,
|
|
381
|
-
ref_for: !0
|
|
382
|
-
}, d(h)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : te("", !0)
|
|
383
|
-
]),
|
|
384
|
-
_: 2
|
|
385
|
-
}, 1032, ["label", "prop", "rules"]))
|
|
386
|
-
]),
|
|
387
|
-
_: 2
|
|
388
|
-
}, 1032, ["span"]))), 128))
|
|
389
|
-
]),
|
|
390
|
-
_: 1
|
|
391
|
-
})
|
|
392
|
-
]),
|
|
393
|
-
_: 1
|
|
394
|
-
}, 8, ["model", "label-width", "label-position"])), [
|
|
395
|
-
[Ce, S.value]
|
|
396
|
-
])
|
|
397
|
-
];
|
|
398
|
-
}),
|
|
399
|
-
_: 1
|
|
400
|
-
}, 8, ["model-value", "title", "width"]);
|
|
401
|
-
};
|
|
402
|
-
}
|
|
403
|
-
}, je = /* @__PURE__ */ we($e, [["__scopeId", "data-v-498aa674"]]);
|
|
404
|
-
export {
|
|
405
|
-
je as default
|
|
406
|
-
};
|