act-plus 1.1.44 → 1.1.46

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