act-plus 1.1.35 → 1.1.37

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
1
  import { ref as d, watch as y, resolveComponent as _, openBlock as r, createElementBlock as m, 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-adf3ff12.js";
2
+ import { _ as P } from "./index-42b5a2b1.js";
3
3
  import "vue-router";
4
4
  import "js-base64";
5
5
  import "element-plus";
@@ -1,10 +1,10 @@
1
- import { defineAsyncComponent as K, inject as g, reactive as ye, ref as R, watch as be, resolveComponent as m, resolveDirective as _e, openBlock as d, createBlock as i, withCtx as h, createElementVNode as W, createVNode as x, unref as l, createTextVNode as A, toDisplayString as N, withDirectives as he, createElementBlock as D, Fragment as U, renderList as M, mergeProps as b, createCommentVNode as G, resolveDynamicComponent as Ve, isRef as ge, toRaw as Fe } from "vue";
2
- import { _ as Ce, u as De, P as Te, a as Ke } from "./index-adf3ff12.js";
3
- import { ElNotification as Ne } from "element-plus";
1
+ import { defineAsyncComponent as K, inject as F, reactive as ge, ref as $, watch as Ve, resolveComponent as y, resolveDirective as H, openBlock as d, createBlock as n, withCtx as h, createElementVNode as W, createVNode as G, unref as l, createTextVNode as x, toDisplayString as N, withDirectives as J, createElementBlock as D, Fragment as w, renderList as A, mergeProps as _, createCommentVNode as Q, resolveDynamicComponent as Fe, isRef as Ce, toRaw as De } from "vue";
2
+ import { _ as Te, u as Ke, P as Ne, a as we } from "./index-42b5a2b1.js";
3
+ import { ElNotification as Ue } from "element-plus";
4
4
  import "vue-router";
5
5
  import "js-base64";
6
6
  import "monaco-editor";
7
- const Ue = { class: "no-config-field" }, we = { class: "dialog-footer" }, ke = {
7
+ const ke = { class: "no-config-field" }, Le = { class: "dialog-footer" }, ve = {
8
8
  __name: "index",
9
9
  props: {
10
10
  visible: { type: Boolean, default: !1 },
@@ -12,296 +12,309 @@ const Ue = { class: "no-config-field" }, we = { class: "dialog-footer" }, ke = {
12
12
  data: { type: Object, default: () => ({}) }
13
13
  },
14
14
  emits: ["update:visible", "refresh"],
15
- setup(T, { emit: J }) {
16
- const Q = K(() => import("./index-adf3ff12.js").then((o) => o.f)), X = K(() => import("./index-b0157be1.js")), Z = K(() => import("./index-adf3ff12.js").then((o) => o.e)), I = K(() => import("./index-adf3ff12.js").then((o) => o.d)), { t: c } = De(), E = g("request"), ee = g("loadComponents"), O = g("formatDataType"), q = g("globalProps"), le = g("stringToBoolean"), y = g("getFieldUiProps"), Y = J, f = T;
17
- let F = ye((() => ({
15
+ setup(T, { emit: X }) {
16
+ const Z = K(() => import("./index-42b5a2b1.js").then((o) => o.f)), I = K(() => import("./index-585f3f09.js")), ee = K(() => import("./index-42b5a2b1.js").then((o) => o.e)), le = K(() => import("./index-42b5a2b1.js").then((o) => o.d)), { t: u } = Ke(), M = F("request"), oe = F("loadComponents"), q = F("formatDataType"), E = F("globalProps"), ae = F("stringToBoolean"), b = F("getFieldUiProps"), te = F("disposeRequestData"), O = X, f = T;
17
+ let g = ge((() => ({
18
+ dialogLoading: !1,
18
19
  btnLoading: !1
19
- }))()), w = R([]), t = R({}), k = R(null), oe = {};
20
- const ae = (o) => o.formColumnCol == null || o.customFiledsComponentes[o.customFiledsComponentes.customComponentName] ? 24 : o.formColumnCol ? o.formColumnCol : 24 / o.formRow, te = (o) => {
20
+ }))()), U = $([]), t = $({}), k = $(null), de = {};
21
+ const se = (o) => o.formColumnCol == null || o.customFiledsComponentes[o.customFiledsComponentes.customComponentName] ? 24 : o.formColumnCol ? o.formColumnCol : 24 / o.formRow, re = (o) => {
21
22
  if (["input", "textarea"].includes(o.fieldType))
22
23
  return "blur";
23
24
  if (["select", "multipleSelect", "datetimerange", "treeSelect", "provinceCascade"].includes(o.fieldType))
24
25
  return "change";
25
- }, de = (o) => {
26
+ }, ie = (o) => {
26
27
  if (!["input", "textarea"].includes(o) && ["multipleSelect", "dateRange"].includes(o))
27
28
  return [];
28
- }, re = (o, u) => {
29
- if (["string"].includes(u))
29
+ }, ne = (o, c) => {
30
+ if (["string"].includes(c))
30
31
  return o.join(";");
31
- if (["number"].includes(u))
32
+ if (["number"].includes(c))
32
33
  return Number(o);
33
- if (["array"].includes(u))
34
+ if (["array"].includes(c))
34
35
  return o;
35
- }, se = (o) => {
36
+ }, ce = (o) => {
36
37
  if (["multipleSelect"].includes(o.fieldType))
37
38
  return f.data.rowData[o.fieldKey] ? f.data.rowData[o.fieldKey].split(";") : [];
38
39
  if (["dateRange"].includes(o.fieldType)) {
39
- const s = o.fieldKey.split("&");
40
- return f.data.rowData[o.fieldKey] = s.map((_) => f.data.rowData[_]), f.data.rowData[o.fieldKey];
40
+ const m = o.fieldKey.split("&");
41
+ return f.data.rowData[o.fieldKey] = m.map((i) => f.data.rowData[i]), f.data.rowData[o.fieldKey];
42
+ }
43
+ let c = f.data.rowData[o.fieldKey];
44
+ if (["select", "virtualizedSelect"].includes(o.fieldType)) {
45
+ const m = b(o);
46
+ o.dataList && typeof o.dataList[0][m["value-key"] ? m["value-key"] : "value"] == "string" && (c = c.toString());
41
47
  }
42
- const u = f.data.rowData[o.fieldKey];
43
- return u === "true" || u === "false" ? le(u) : u;
44
- }, ne = (o) => E({ url: f.data.dataItem.requestUrl, method: "post", data: o });
45
- be(
48
+ return (c === "true" || c === "false") && (c = ae(c)), c;
49
+ }, ue = (o) => M({ url: f.data.dataItem.requestUrl, method: "post", data: o });
50
+ Ve(
46
51
  () => f.visible,
47
- async (o, u) => {
48
- o && (f.data.formList.sort((s, _) => s.sort - _.sort).forEach(async (s) => {
49
- oe[s.fieldKey] = { submitFieldType: s.fieldSubmitType, isFormSetValue: s.isFormSetValue }, t.value[s.fieldKey] = Object.keys(f.data.rowData).length && s.isFormSetValue ? se(s) : de(s.fieldType);
50
- const { isFiledCustom: _, customComponentName: p, customComponentUrl: C } = s.customFiledsComponentes;
51
- if (_ && !s.customFiledsComponentes[p]) {
52
- const V = await ee(C, p);
53
- s.customFiledsComponentes[p] = V;
52
+ async (o, c) => {
53
+ if (o)
54
+ try {
55
+ g.dialogLoading = !0;
56
+ const m = await te(f.data.formList, f.data.rowData, !1, !0);
57
+ f.data.formList.sort((i, p) => i.sort - p.sort).forEach(async (i) => {
58
+ const p = m.find((r) => i.fieldName == r.fieldName && i.fieldKey == r.fieldKey);
59
+ p && (i.dataList = (p == null ? void 0 : p.dataList) ?? []), de[i.fieldKey] = { submitFieldType: i.fieldSubmitType, isFormSetValue: i.isFormSetValue }, t.value[i.fieldKey] = Object.keys(f.data.rowData).length && i.isFormSetValue ? ce(i) : ie(i.fieldType);
60
+ const { isFiledCustom: C, customComponentName: V, customComponentUrl: s } = i.customFiledsComponentes;
61
+ if (C && !i.customFiledsComponentes[V]) {
62
+ const r = await oe(s, V);
63
+ i.customFiledsComponentes[V] = r;
64
+ }
65
+ }), console.log(f.data.formList), U.value = f.data.formList || [], g.dialogLoading = !1;
66
+ } catch {
67
+ g.dialogLoading = !1, ƒ;
54
68
  }
55
- }), w.value = f.data.formList || []);
56
69
  }
57
70
  );
58
- const ie = (o) => {
59
- v(), o();
60
- }, v = () => {
61
- w.value = [], k.value.resetFields(), Y("update:visible", !1);
62
- }, ce = (o) => {
63
- o && o.validate((u) => {
64
- if (u) {
65
- F.btnLoading = !0;
66
- const { dataItem: s, rowData: _ } = f.data;
67
- let p = { ...Fe(t.value) };
68
- Object.keys(p).forEach((r) => {
69
- r.includes("&") ? p[r].split("&").forEach((P, S) => {
70
- p[P] = p[r][S];
71
- }) : Array.isArray(p[r]) && (p[r] = re(p[r], "string"));
71
+ const fe = (o) => {
72
+ L(), o();
73
+ }, L = () => {
74
+ U.value = [], k.value.resetFields(), O("update:visible", !1);
75
+ }, pe = (o) => {
76
+ o && o.validate((c) => {
77
+ if (c) {
78
+ g.btnLoading = !0;
79
+ const { dataItem: m, rowData: i } = f.data;
80
+ let p = { ...De(t.value) };
81
+ Object.keys(p).forEach((s) => {
82
+ s.includes("&") ? s.split("&").forEach((v, P) => {
83
+ p[v] = p[s][P];
84
+ }) : Array.isArray(p[s]) && (p[s] = ne(p[s], "string"));
72
85
  });
73
- const C = s.submitFields.filter((r) => r.matchType == "default").reduce((r, n) => (n.submitFieldType === "string" && (r[n.submitFieldName] = n.matchFieldName.toString()), r), {}), V = s.submitFields.filter((r) => r.matchType == "match").reduce((r, n) => (Reflect.has(n, "submitFieldMatchOrigin") && n.submitFieldMatchOrigin != "rowData" ? Reflect.has(q.matchData, n.submitFieldMatchOrigin) && (r[n.submitFieldName] = O(n.submitFieldType, q.matchData[n.submitFieldMatchOrigin][n.matchFieldName])) : r[n.submitFieldName] = O(n.submitFieldType, _[n.matchFieldName]), r), {});
74
- ne({
86
+ const C = m.submitFields.filter((s) => s.matchType == "default").reduce((s, r) => (r.submitFieldType === "string" && (s[r.submitFieldName] = r.matchFieldName.toString()), s), {}), V = m.submitFields.filter((s) => s.matchType == "match").reduce((s, r) => (Reflect.has(r, "submitFieldMatchOrigin") && r.submitFieldMatchOrigin != "rowData" ? Reflect.has(E.matchData, r.submitFieldMatchOrigin) && (s[r.submitFieldName] = q(r.submitFieldType, E.matchData[r.submitFieldMatchOrigin][r.matchFieldName])) : s[r.submitFieldName] = q(r.submitFieldType, i[r.matchFieldName]), s), {});
87
+ ue({
75
88
  ...p,
76
89
  ...C,
77
90
  ...V
78
- }).then((r) => {
91
+ }).then((s) => {
79
92
  try {
80
- Ne({ title: c("act.tip"), message: c("act.saveSuccessfully"), type: "success", duration: 2500 }), v(), Y("refresh");
81
- } catch (n) {
82
- console.error(n);
93
+ Ue({ title: u("act.tip"), message: u("act.saveSuccessfully"), type: "success", duration: 2500 }), L(), O("refresh");
94
+ } catch (r) {
95
+ console.error(r);
83
96
  }
84
- F.btnLoading = !1;
85
- }).catch((r) => {
86
- console.error(r), F.btnLoading = !1;
97
+ g.btnLoading = !1;
98
+ }).catch((s) => {
99
+ console.error(s), g.btnLoading = !1;
87
100
  });
88
101
  }
89
102
  });
90
103
  };
91
- return (o, u) => {
92
- var j;
93
- const s = m("el-input"), _ = m("el-option"), p = m("el-select"), C = m("el-select-v2"), V = m("el-date-picker"), r = m("el-cascader"), n = m("el-switch"), P = m("el-form-item"), S = m("el-col"), ue = m("el-row"), fe = m("el-form"), B = m("el-button"), pe = m("el-dialog"), me = _e("debounce");
94
- return d(), i(pe, {
104
+ return (o, c) => {
105
+ var B;
106
+ const m = y("el-input"), i = y("el-option"), p = y("el-select"), C = y("el-select-v2"), V = y("el-date-picker"), s = y("el-cascader"), r = y("el-switch"), v = y("el-form-item"), P = y("el-col"), me = y("el-row"), ye = y("el-form"), Y = y("el-button"), be = y("el-dialog"), _e = H("loading"), he = H("debounce");
107
+ return d(), n(be, {
95
108
  "model-value": f.visible,
96
109
  title: f.title,
97
110
  top: "5vh",
98
- width: (j = T.data.formConfig) == null ? void 0 : j.dialogWidth,
111
+ width: (B = T.data.formConfig) == null ? void 0 : B.dialogWidth,
99
112
  draggable: "",
100
113
  overflow: "",
101
114
  "append-to-body": "",
102
115
  "destroy-on-close": "",
103
116
  "close-on-click-modal": !1,
104
- "before-close": ie
117
+ "before-close": fe
105
118
  }, {
106
119
  footer: h(() => [
107
- W("span", we, [
108
- x(B, {
109
- loading: l(F).btnLoading,
110
- onClick: v
120
+ W("span", Le, [
121
+ G(Y, {
122
+ loading: l(g).btnLoading,
123
+ onClick: L
111
124
  }, {
112
125
  default: h(() => [
113
- A(N(l(c)("act.cancel")), 1)
126
+ x(N(l(u)("act.cancel")), 1)
114
127
  ]),
115
128
  _: 1
116
129
  }, 8, ["loading"]),
117
- he((d(), i(B, {
130
+ J((d(), n(Y, {
118
131
  type: "primary",
119
- loading: l(F).btnLoading,
120
- onClick: u[1] || (u[1] = (L) => ce(l(k)))
132
+ loading: l(g).btnLoading,
133
+ onClick: c[1] || (c[1] = (S) => pe(l(k)))
121
134
  }, {
122
135
  default: h(() => [
123
- A(N(l(c)("act.save")), 1)
136
+ x(N(l(u)("act.save")), 1)
124
137
  ]),
125
138
  _: 1
126
139
  }, 8, ["loading"])), [
127
- [me]
140
+ [he]
128
141
  ])
129
142
  ])
130
143
  ]),
131
144
  default: h(() => {
132
- var L, H;
145
+ var S, j;
133
146
  return [
134
- x(fe, {
147
+ J((d(), n(ye, {
135
148
  ref_key: "formRef",
136
149
  ref: k,
137
150
  model: l(t),
138
151
  "label-suffix": ":",
139
- "label-width": (L = T.data.formConfig) == null ? void 0 : L.formLabelWidth,
140
- "label-position": (H = T.data.formConfig) == null ? void 0 : H.formLabelPosition
152
+ "label-width": (S = T.data.formConfig) == null ? void 0 : S.formLabelWidth,
153
+ "label-position": (j = T.data.formConfig) == null ? void 0 : j.formLabelPosition
141
154
  }, {
142
155
  default: h(() => [
143
- x(ue, { gutter: 40 }, {
156
+ G(me, { gutter: 40 }, {
144
157
  default: h(() => [
145
- (d(!0), D(U, null, M(l(w), (e, z) => (d(), i(S, {
146
- span: ae(e),
158
+ (d(!0), D(w, null, A(l(U), (e, z) => (d(), n(P, {
159
+ span: se(e),
147
160
  key: z
148
161
  }, {
149
162
  default: h(() => [
150
- e.customFiledsComponentes.isFiledCustom ? (d(), D(U, { key: 1 }, [
151
- e.customFiledsComponentes[e.customFiledsComponentes.customComponentName] ? (d(), i(Ve(e.customFiledsComponentes[e.customFiledsComponentes.customComponentName]), {
163
+ e.customFiledsComponentes.isFiledCustom ? (d(), D(w, { key: 1 }, [
164
+ e.customFiledsComponentes[e.customFiledsComponentes.customComponentName] ? (d(), n(Fe(e.customFiledsComponentes[e.customFiledsComponentes.customComponentName]), {
152
165
  key: 0,
153
166
  fieldCofnigItem: e,
154
167
  rowData: f.data.rowData,
155
168
  form: l(t),
156
- "onUpdate:form": u[0] || (u[0] = (a) => ge(t) ? t.value = a : t = a)
169
+ "onUpdate:form": c[0] || (c[0] = (a) => Ce(t) ? t.value = a : t = a)
157
170
  }, null, 40, ["fieldCofnigItem", "rowData", "form"])) : (d(), D("div", {
158
171
  class: "no-config",
159
172
  key: z
160
173
  }, [
161
- W("span", Ue, "【" + N(e.fieldName) + "】", 1),
162
- A(N(l(c)("act.fieldCustom")), 1)
174
+ W("span", ke, "【" + N(e.fieldName) + "】", 1),
175
+ x(N(l(u)("act.fieldCustom")), 1)
163
176
  ]))
164
- ], 64)) : (d(), i(P, {
177
+ ], 64)) : (d(), n(v, {
165
178
  key: 0,
166
179
  label: e.fieldName,
167
180
  prop: e.fieldKey,
168
- rules: [{ required: e.isFormFieldRequired, message: l(c)("act.requiredMessage"), trigger: te(e) }]
181
+ rules: [{ required: e.isFormFieldRequired, message: l(u)("act.requiredMessage"), trigger: re(e) }]
169
182
  }, {
170
183
  default: h(() => [
171
- e.fieldType === "input" ? (d(), i(s, b({
184
+ e.fieldType === "input" ? (d(), n(m, _({
172
185
  key: 0,
173
186
  modelValue: l(t)[e.fieldKey],
174
187
  "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
175
- placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
188
+ placeholder: `${l(u)("act.inputPlaceholder")}${e.fieldName}`,
176
189
  clearable: "",
177
190
  ref_for: !0
178
- }, l(y)(e), {
191
+ }, l(b)(e), {
179
192
  disabled: e.isFormDisabled
180
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : G("", !0),
181
- e.fieldType === "inputNumber" ? (d(), i(l(Q), b({
193
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : Q("", !0),
194
+ e.fieldType === "inputNumber" ? (d(), n(l(Z), _({
182
195
  key: 1,
183
196
  modelValue: l(t)[e.fieldKey],
184
197
  "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
185
- placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
198
+ placeholder: `${l(u)("act.inputPlaceholder")}${e.fieldName}`,
186
199
  clearable: "",
187
200
  ref_for: !0
188
- }, l(y)(e), {
201
+ }, l(b)(e), {
189
202
  disabled: e.isFormDisabled
190
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "textarea" ? (d(), i(s, b({
203
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "textarea" ? (d(), n(m, _({
191
204
  key: 2,
192
205
  modelValue: l(t)[e.fieldKey],
193
206
  "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
194
- placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
207
+ placeholder: `${l(u)("act.inputPlaceholder")}${e.fieldName}`,
195
208
  rows: 4,
196
209
  ref_for: !0
197
- }, l(y)(e), {
210
+ }, l(b)(e), {
198
211
  type: "textarea",
199
212
  disabled: e.isFormDisabled
200
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "selectIcon" ? (d(), i(l(X), b({
213
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "selectIcon" ? (d(), n(l(I), _({
201
214
  key: 3,
202
215
  modelValue: l(t)[e.fieldKey],
203
216
  "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
204
217
  icons: e.dataList,
205
- placeholder: `${l(c)("act.selectPlaceholder")}${e.fieldName}`,
218
+ placeholder: `${l(u)("act.selectPlaceholder")}${e.fieldName}`,
206
219
  ref_for: !0
207
- }, l(y)(e), {
220
+ }, l(b)(e), {
208
221
  disabled: e.isFormDisabled
209
222
  }), {
210
223
  default: h(() => [
211
- (d(!0), D(U, null, M(e.dataList, (a, $) => (d(), i(_, {
212
- key: $,
224
+ (d(!0), D(w, null, A(e.dataList, (a, R) => (d(), n(i, {
225
+ key: R,
213
226
  label: a.key,
214
227
  value: a.value
215
228
  }, null, 8, ["label", "value"]))), 128))
216
229
  ]),
217
230
  _: 2
218
- }, 1040, ["modelValue", "onUpdate:modelValue", "icons", "placeholder", "disabled"])) : ["select", "multipleSelect"].includes(e.fieldType) ? (d(), i(p, b({
231
+ }, 1040, ["modelValue", "onUpdate:modelValue", "icons", "placeholder", "disabled"])) : ["select", "multipleSelect"].includes(e.fieldType) ? (d(), n(p, _({
219
232
  key: 4,
220
233
  modelValue: l(t)[e.fieldKey],
221
234
  "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
222
- placeholder: `${l(c)("act.selectPlaceholder")}${e.fieldName}`,
235
+ placeholder: `${l(u)("act.selectPlaceholder")}${e.fieldName}`,
223
236
  clearable: "",
224
237
  filterable: "",
225
238
  ref_for: !0
226
- }, l(y)(e), {
239
+ }, l(b)(e), {
227
240
  multiple: e.fieldType === "multipleSelect",
228
241
  disabled: e.isFormDisabled
229
242
  }), {
230
243
  default: h(() => [
231
- (d(!0), D(U, null, M(e.dataList, (a, $) => (d(), i(_, {
232
- key: $,
244
+ (d(!0), D(w, null, A(e.dataList, (a, R) => (d(), n(i, {
245
+ key: R,
233
246
  label: a.key,
234
247
  value: a.value
235
248
  }, null, 8, ["label", "value"]))), 128))
236
249
  ]),
237
250
  _: 2
238
- }, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "disabled"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (d(), i(C, b({
251
+ }, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "disabled"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (d(), n(C, _({
239
252
  key: 5,
240
253
  modelValue: l(t)[e.fieldKey],
241
254
  "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
242
255
  options: e.dataList,
243
- props: { ...l(Te) },
244
- placeholder: `${l(c)("act.selectPlaceholder")}${e.fieldName}`,
256
+ props: { ...l(Ne) },
257
+ placeholder: `${l(u)("act.selectPlaceholder")}${e.fieldName}`,
245
258
  clearable: "",
246
259
  filterable: "",
247
260
  ref_for: !0
248
- }, l(y)(e), {
261
+ }, l(b)(e), {
249
262
  disabled: e.isFormDisabled,
250
263
  multiple: e.fieldType === "virtualizedMultipleSelect"
251
- }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled", "multiple"])) : e.fieldType === "date" ? (d(), i(V, b({
264
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled", "multiple"])) : e.fieldType === "date" ? (d(), n(V, _({
252
265
  key: 6,
253
266
  modelValue: l(t)[e.fieldKey],
254
267
  "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
255
268
  type: "date",
256
- placeholder: `${l(c)("act.selectPlaceholder")}${l(c)("act.time")}`,
269
+ placeholder: `${l(u)("act.selectPlaceholder")}${l(u)("act.time")}`,
257
270
  "value-format": "YYYY-MM-DD HH:mm:ss",
258
271
  ref_for: !0
259
- }, l(y)(e), {
272
+ }, l(b)(e), {
260
273
  disabled: e.isFormDisabled
261
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "dateRange" ? (d(), i(V, b({
274
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "dateRange" ? (d(), n(V, _({
262
275
  key: 7,
263
276
  modelValue: l(t)[e.fieldKey],
264
277
  "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
265
278
  type: "daterange",
266
- "start-placeholder": l(c)("act.startTime"),
267
- "end-placeholder": l(c)("act.endTime"),
279
+ "start-placeholder": l(u)("act.startTime"),
280
+ "end-placeholder": l(u)("act.endTime"),
268
281
  "value-format": "YYYY-MM-DD HH:mm:ss",
269
282
  ref_for: !0
270
- }, l(y)(e), {
283
+ }, l(b)(e), {
271
284
  disabled: e.isFormDisabled
272
- }), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled"])) : e.fieldType === "provinceCascade" ? (d(), i(r, b({
285
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled"])) : e.fieldType === "provinceCascade" ? (d(), n(s, _({
273
286
  key: 8,
274
287
  modelValue: l(t)[e.fieldKey],
275
288
  "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
276
289
  options: e.dataList,
277
- props: l(Ke),
290
+ props: l(we),
278
291
  clearable: "",
279
292
  filterable: "",
280
- placeholder: `${l(c)("act.selectPlaceholder")}${e.fieldName}`,
293
+ placeholder: `${l(u)("act.selectPlaceholder")}${e.fieldName}`,
281
294
  ref_for: !0
282
- }, l(y)(e), {
295
+ }, l(b)(e), {
283
296
  disabled: e.isFormDisabled
284
- }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (d(), i(n, {
297
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (d(), n(r, {
285
298
  key: 9,
286
299
  modelValue: l(t)[e.fieldKey],
287
300
  "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
288
301
  "active-value": !0,
289
302
  "inactive-value": !1
290
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : e.fieldType === "upload" ? (d(), i(l(Z), b({
303
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : e.fieldType === "upload" ? (d(), n(l(ee), _({
291
304
  key: 10,
292
305
  class: "form-upload",
293
306
  modelValue: l(t)[e.fieldKey],
294
307
  "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
295
- request: l(E),
308
+ request: l(M),
296
309
  ref_for: !0
297
- }, l(y)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "request"])) : e.fieldType === "editor" ? (d(), i(l(I), b({
310
+ }, l(b)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "request"])) : e.fieldType === "editor" ? (d(), n(l(le), _({
298
311
  key: 11,
299
312
  modelValue: l(t)[e.fieldKey],
300
313
  "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
301
314
  disabled: e.isFormDisabled,
302
- placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
315
+ placeholder: `${l(u)("act.inputPlaceholder")}${e.fieldName}`,
303
316
  ref_for: !0
304
- }, l(y)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : G("", !0)
317
+ }, l(b)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : Q("", !0)
305
318
  ]),
306
319
  _: 2
307
320
  }, 1032, ["label", "prop", "rules"]))
@@ -313,14 +326,16 @@ const Ue = { class: "no-config-field" }, we = { class: "dialog-footer" }, ke = {
313
326
  })
314
327
  ]),
315
328
  _: 1
316
- }, 8, ["model", "label-width", "label-position"])
329
+ }, 8, ["model", "label-width", "label-position"])), [
330
+ [_e, l(g).dialogLoading]
331
+ ])
317
332
  ];
318
333
  }),
319
334
  _: 1
320
335
  }, 8, ["model-value", "title", "width"]);
321
336
  };
322
337
  }
323
- }, Ae = /* @__PURE__ */ Ce(ke, [["__scopeId", "data-v-112876c8"]]);
338
+ }, qe = /* @__PURE__ */ Te(ve, [["__scopeId", "data-v-898d1774"]]);
324
339
  export {
325
- Ae as default
340
+ qe as default
326
341
  };
@@ -1,5 +1,5 @@
1
1
  import { ref as R, inject as l, watch as j, resolveComponent as C, openBlock as r, createElementBlock as f, Fragment as y, renderList as q, unref as c, createBlock as i, resolveDynamicComponent as O, withCtx as _, createVNode as E, createCommentVNode as u, createTextVNode as B, toDisplayString as k } from "vue";
2
- import { _ as H, u as M } from "./index-adf3ff12.js";
2
+ import { _ as H, u as M } from "./index-42b5a2b1.js";
3
3
  import "vue-router";
4
4
  import "js-base64";
5
5
  import "element-plus";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "act-plus",
3
- "version": "1.1.35",
3
+ "version": "1.1.37",
4
4
  "private": false,
5
5
  "description": "act config",
6
6
  "main": "act-plus.js",
package/style.css CHANGED
@@ -1 +1 @@
1
- @charset "UTF-8";.page-container{padding:12px}.form-card .el-card__header{font-size:16px;font-weight:700}.rotate180{transform:rotate(180deg)}.cp{cursor:pointer}.cp:hover{opacity:.8}.ml12{margin-left:12px}.mt12{margin-top:12px}.mt16{margin-top:16px}.mt24{margin-top:24px}.ml6{margin-left:6px!important}.ml4{margin-left:4px!important}.mr6{margin-right:6px}.mr2{margin-right:2px}.mr4{margin-right:4px}.el-table{--el-table-header-bg-color: #eef1f6;--el-table-header-text-color: #1f2d3d;font-size:14px}.el-select,.el-cascader,.el-form--inline .el-form-item{display:block;width:100%}.el-card{height:100%;--el-card-padding: 16px}.el-card__body{height:calc(100% - 45px);box-sizing:border-box}.el-date-editor{--el-date-editor-width: 100%}[data-v-fbbdb8ed] .el-empty__image{width:100%}.file-image[data-v-fbbdb8ed]{display:block;width:32px;height:32px;margin:0 auto;border-radius:4px;line-height:32px!important}.no-image[data-v-fbbdb8ed]{width:100%;height:100%;font-size:12px;background-color:#f5f7fa}.page-container[data-v-b703a6a6]{position:relative}.page-container .header-operate[data-v-b703a6a6]{position:sticky;top:0;z-index:999}.page-container .submit-box[data-v-b703a6a6]{display:flex;align-items:center;justify-content:flex-end}.page-container .submit-box-l[data-v-b703a6a6]{width:360px;margin-right:24px}.act-table .table-pagination[data-v-3ccfdf86]{padding:12px 4px;justify-content:flex-end}.tox-tinymce-aux{z-index:99999!important}.tinymce.ui.FloatPanel{z-index:99}.mce-content-body[data-mce-placeholder]:not(.mce-visualblocks):before{color:#a8abb2}.upload-container[data-v-f839bee6]{width:100%}.upload-container[data-v-f839bee6] .el-upload-list--picture-card{display:flex;flex:1}.upload-container[data-v-f839bee6] .el-upload.is-drag{width:100%;height:100%}.upload-container .tip-text[data-v-f839bee6]{margin:0;padding:0;font-size:12px;color:#999}.upload-container .file-list[data-v-f839bee6]{display:flex;align-items:center;justify-content:space-between;margin:6px 0;padding:6px 12px;font-size:14px;border-radius:4px;border:1px solid #dcdfe6}.upload-container .file-list[data-v-f839bee6]:hover{cursor:pointer;opacity:.8}.upload-container .file-list:hover .el-file-name[data-v-f839bee6]{text-decoration:underline}.upload-container .file-list-l[data-v-f839bee6]{display:flex;align-items:center;flex:1;width:500px}.upload-container .file-list-image[data-v-f839bee6]{flex-shrink:0;width:40px;height:40px;border-radius:4px}.upload-container .file-list-icon[data-v-f839bee6]{flex-shrink:0;width:40px;height:40px}.upload-container .file-list .el-file-name[data-v-f839bee6]{flex:1;padding:0 12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.upload-container .file-list .el-file-operate[data-v-f839bee6]{display:flex;justify-content:flex-end;flex-shrink:0;min-width:82px;margin-left:auto}.upload-container .file-list .el-file-operate>i[data-v-f839bee6]{cursor:pointer;margin-left:12px}.upload-container .file-list .el-file-operate>i[data-v-f839bee6]:hover{opacity:.8}.search-module-container[data-v-39165fde] .el-form-item{margin-bottom:8px}.search-module-container[data-v-39165fde] .el-select__selection{flex-wrap:nowrap}.search-module-container .form-content[data-v-39165fde]{display:grid;grid-template-columns:repeat(var(--table-query-row),1fr);gap:6px;padding:6px 6px 0}.search-module-container .form-content .search-form-btn[data-v-39165fde]{justify-self:end;align-self:start;grid-column-start:var(--table-query-row);grid-column-end:var(--table-query-row)}.search-module-container .expand[data-v-39165fde]{display:flex;margin:0 auto;color:#a4a2a2}.header-operate-container[data-v-b8dfe0ca]{display:flex;align-items:center;justify-content:flex-end}.header-operate-container .el-btn[data-v-b8dfe0ca]{margin:6px}.card-header[data-v-112876c8]{display:flex;align-items:center}.card-header-operate[data-v-112876c8]{margin-left:auto}.no-config[data-v-112876c8]{line-height:32px;font-weight:700}.no-config-field[data-v-112876c8]{margin-left:60px;color:red}.card-header[data-v-be1c5be6]{display:flex;align-items:center}.card-header-operate[data-v-be1c5be6]{margin-left:auto}.add-icon-btn[data-v-ada54450]{cursor:pointer;width:24px;height:24px;margin-left:6px}.table-post-params[data-v-ada54450]{position:relative;margin-bottom:12px}.table-post-params .submit-operate[data-v-ada54450]{position:absolute;top:-20px;right:-10px;display:flex;align-items:center}.table-post-params .submit-operate .match-opreate[data-v-ada54450]{cursor:pointer;width:12px;height:12px}.card-header[data-v-862782ff]{display:flex;align-items:center}.card-header-operate[data-v-862782ff]{margin-left:auto}.form-list[data-v-862782ff]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-862782ff]:last-child{border:none}.config-list-operate[data-v-862782ff]{display:flex;align-items:center;justify-content:flex-end}.card-header[data-v-3440b427]{display:flex;align-items:center}.card-header-operate[data-v-3440b427]{margin-left:auto}.form-list[data-v-3440b427]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-3440b427]:last-child{border:none}.config-list-operate[data-v-3440b427]{display:flex;align-items:center;justify-content:flex-end}.select-icon-popover .icon-list{display:grid;grid-template-columns:repeat(8,1fr)}.select-icon-popover .icon-list .icon-item{display:flex;align-items:center;justify-content:center;margin:4px 0;border:1px solid transparent}.select-icon-popover .icon-list .icon-item .icon-svg{cursor:pointer}.select-icon-popover .icon-list .icon-item-checked{border:1px solid #000}.select-icon-container .icon-value[data-v-308d02d4]{display:flex;align-items:center}.select-icon-container .icon-value .icon-btn[data-v-308d02d4]{margin-left:12px}.add-icon-btn[data-v-cab12df2]{cursor:pointer;width:24px;height:24px;margin-left:6px}.condition-box[data-v-cab12df2]{display:flex;justify-content:center}.condition-box[data-v-cab12df2] .el-form-item__content{flex:0;min-width:300px}.submit-operate[data-v-cab12df2]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-cab12df2]{cursor:pointer;width:20px;height:20px}.add-icon-btn[data-v-502f493e]{cursor:pointer;width:24px;height:24px;margin-left:6px}.submit-operate[data-v-502f493e]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-502f493e]{cursor:pointer;width:20px;height:20px}
1
+ @charset "UTF-8";.page-container{padding:12px}.form-card .el-card__header{font-size:16px;font-weight:700}.rotate180{transform:rotate(180deg)}.cp{cursor:pointer}.cp:hover{opacity:.8}.ml12{margin-left:12px}.mt12{margin-top:12px}.mt16{margin-top:16px}.mt24{margin-top:24px}.ml6{margin-left:6px!important}.ml4{margin-left:4px!important}.mr6{margin-right:6px}.mr2{margin-right:2px}.mr4{margin-right:4px}.el-table{--el-table-header-bg-color: #eef1f6;--el-table-header-text-color: #1f2d3d;font-size:14px}.el-select,.el-cascader,.el-form--inline .el-form-item{display:block;width:100%}.el-card{height:100%;--el-card-padding: 16px}.el-card__body{height:calc(100% - 45px);box-sizing:border-box}.el-date-editor{--el-date-editor-width: 100%}[data-v-94e140e2] .el-empty__image{width:100%}.table-link[data-v-94e140e2]{cursor:pointer;color:#409eff;text-decoration:underline}.file-image[data-v-94e140e2]{display:block;width:32px;height:32px;margin:0 auto;border-radius:4px;line-height:32px!important}.no-image[data-v-94e140e2]{width:100%;height:100%;font-size:12px;background-color:#f5f7fa}.page-container[data-v-356e8a63]{position:relative}.page-container .header-operate[data-v-356e8a63]{position:sticky;top:0;z-index:999}.page-container .submit-box[data-v-356e8a63]{display:flex;align-items:center;justify-content:space-between}.page-container .submit-box-r[data-v-356e8a63]{display:flex;align-items:center}.page-container .submit-box-r .menu-select[data-v-356e8a63]{width:360px;margin:0 24px}.act-table .table-pagination[data-v-3ccfdf86]{padding:12px 4px;justify-content:flex-end}.tox-tinymce-aux{z-index:99999!important}.tinymce.ui.FloatPanel{z-index:99}.mce-content-body[data-mce-placeholder]:not(.mce-visualblocks):before{color:#a8abb2}.upload-container[data-v-f839bee6]{width:100%}.upload-container[data-v-f839bee6] .el-upload-list--picture-card{display:flex;flex:1}.upload-container[data-v-f839bee6] .el-upload.is-drag{width:100%;height:100%}.upload-container .tip-text[data-v-f839bee6]{margin:0;padding:0;font-size:12px;color:#999}.upload-container .file-list[data-v-f839bee6]{display:flex;align-items:center;justify-content:space-between;margin:6px 0;padding:6px 12px;font-size:14px;border-radius:4px;border:1px solid #dcdfe6}.upload-container .file-list[data-v-f839bee6]:hover{cursor:pointer;opacity:.8}.upload-container .file-list:hover .el-file-name[data-v-f839bee6]{text-decoration:underline}.upload-container .file-list-l[data-v-f839bee6]{display:flex;align-items:center;flex:1;width:500px}.upload-container .file-list-image[data-v-f839bee6]{flex-shrink:0;width:40px;height:40px;border-radius:4px}.upload-container .file-list-icon[data-v-f839bee6]{flex-shrink:0;width:40px;height:40px}.upload-container .file-list .el-file-name[data-v-f839bee6]{flex:1;padding:0 12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.upload-container .file-list .el-file-operate[data-v-f839bee6]{display:flex;justify-content:flex-end;flex-shrink:0;min-width:82px;margin-left:auto}.upload-container .file-list .el-file-operate>i[data-v-f839bee6]{cursor:pointer;margin-left:12px}.upload-container .file-list .el-file-operate>i[data-v-f839bee6]:hover{opacity:.8}.search-module-container[data-v-39165fde] .el-form-item{margin-bottom:8px}.search-module-container[data-v-39165fde] .el-select__selection{flex-wrap:nowrap}.search-module-container .form-content[data-v-39165fde]{display:grid;grid-template-columns:repeat(var(--table-query-row),1fr);gap:6px;padding:6px 6px 0}.search-module-container .form-content .search-form-btn[data-v-39165fde]{justify-self:end;align-self:start;grid-column-start:var(--table-query-row);grid-column-end:var(--table-query-row)}.search-module-container .expand[data-v-39165fde]{display:flex;margin:0 auto;color:#a4a2a2}.header-operate-container[data-v-b8dfe0ca]{display:flex;align-items:center;justify-content:flex-end}.header-operate-container .el-btn[data-v-b8dfe0ca]{margin:6px}.card-header[data-v-898d1774]{display:flex;align-items:center}.card-header-operate[data-v-898d1774]{margin-left:auto}.no-config[data-v-898d1774]{line-height:32px;font-weight:700}.no-config-field[data-v-898d1774]{margin-left:60px;color:red}.card-header[data-v-be1c5be6]{display:flex;align-items:center}.card-header-operate[data-v-be1c5be6]{margin-left:auto}.add-icon-btn[data-v-ada54450]{cursor:pointer;width:24px;height:24px;margin-left:6px}.table-post-params[data-v-ada54450]{position:relative;margin-bottom:12px}.table-post-params .submit-operate[data-v-ada54450]{position:absolute;top:-20px;right:-10px;display:flex;align-items:center}.table-post-params .submit-operate .match-opreate[data-v-ada54450]{cursor:pointer;width:12px;height:12px}.card-header[data-v-862782ff]{display:flex;align-items:center}.card-header-operate[data-v-862782ff]{margin-left:auto}.form-list[data-v-862782ff]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-862782ff]:last-child{border:none}.config-list-operate[data-v-862782ff]{display:flex;align-items:center;justify-content:flex-end}.card-header[data-v-3440b427]{display:flex;align-items:center}.card-header-operate[data-v-3440b427]{margin-left:auto}.form-list[data-v-3440b427]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-3440b427]:last-child{border:none}.config-list-operate[data-v-3440b427]{display:flex;align-items:center;justify-content:flex-end}.submit-operate[data-v-c63f456e]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-c63f456e]{cursor:pointer;width:20px;height:20px}.select-icon-popover .icon-list{display:grid;grid-template-columns:repeat(8,1fr)}.select-icon-popover .icon-list .icon-item{display:flex;align-items:center;justify-content:center;margin:4px 0;border:1px solid transparent}.select-icon-popover .icon-list .icon-item .icon-svg{cursor:pointer}.select-icon-popover .icon-list .icon-item-checked{border:1px solid #000}.select-icon-container .icon-value[data-v-308d02d4]{display:flex;align-items:center}.select-icon-container .icon-value .icon-btn[data-v-308d02d4]{margin-left:12px}.add-icon-btn[data-v-bc91dc45]{cursor:pointer;width:24px;height:24px;margin-left:6px}.condition-box[data-v-bc91dc45]{display:flex;justify-content:center}.condition-box[data-v-bc91dc45] .el-form-item__content{flex:0;min-width:300px}.submit-operate[data-v-bc91dc45]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-bc91dc45]{cursor:pointer;width:20px;height:20px}.add-icon-btn[data-v-9f0c7bbf]{cursor:pointer;width:24px;height:24px;margin-left:6px}.submit-operate[data-v-9f0c7bbf]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-9f0c7bbf]{cursor:pointer;width:20px;height:20px}