act-plus 1.1.55 → 1.1.56

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