act-plus 1.1.24 → 1.1.25

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,36 +1,10 @@
1
- import { defineAsyncComponent as L, inject as R, reactive as fe, ref as $, watch as me, resolveComponent as y, openBlock as n, createBlock as p, withCtx as g, createElementVNode as H, createVNode as T, unref as l, createTextVNode as x, toDisplayString as K, createElementBlock as w, Fragment as A, renderList as W, mergeProps as h, createCommentVNode as J, resolveDynamicComponent as ye, isRef as be, toRaw as _e } from "vue";
2
- import { b as he, e as ge, r as Ve, c as Fe, _ as Ce, u as De, P as Te, a as Ke } from "./index-d0c3be37.js";
3
- import { ElMessage as G, ElNotification as we } from "element-plus";
1
+ import { defineAsyncComponent as S, inject as D, reactive as pe, ref as L, watch as me, resolveComponent as m, resolveDirective as ye, openBlock as r, createBlock as c, withCtx as _, createElementVNode as H, createVNode as $, unref as l, createTextVNode as R, toDisplayString as T, withDirectives as be, createElementBlock as K, Fragment as x, renderList as z, mergeProps as b, createCommentVNode as W, resolveDynamicComponent as _e, isRef as he, toRaw as Ve } from "vue";
2
+ import { _ as ge, u as Fe, P as Ce, a as De } from "./index-ba8fa827.js";
3
+ import { ElNotification as Te } from "element-plus";
4
4
  import "vue-router";
5
+ import "js-base64";
5
6
  import "monaco-editor";
6
- const M = he.create({
7
- baseURL: "",
8
- // ""
9
- timeout: 15e3
10
- });
11
- M.interceptors.request.use(
12
- (r) => {
13
- let b = sessionStorage.getItem("accessToken");
14
- return b && (r.headers.Authorization = "Bearer " + b), r.headers["Content-Type"] != "application/x-www-form-urlencoded" && (r.data = { ...r.data }, Reflect.has(r.data, "dynamicFilters") && (r.data.dynamicFilters = ge(JSON.stringify(r.data.dynamicFilters)))), r;
15
- },
16
- (r) => Promise.reject(r)
17
- );
18
- M.interceptors.response.use(
19
- (r) => {
20
- const b = r.data;
21
- if (b.code == 200)
22
- return b;
23
- if (b.code == 401)
24
- sessionStorage.clear(), Ve.replace("/"), Fe(), G.error({ title: "错误", message: "登陆超时,请重新登录" });
25
- else
26
- return G.error({ title: "错误", message: b.msg }), Promise.reject(b.msg);
27
- },
28
- (r) => {
29
- if (r.response.status != -1)
30
- return Promise.reject(r);
31
- }
32
- );
33
- const Ne = { class: "no-config-field" }, Ue = { class: "dialog-footer" }, ke = {
7
+ const Ke = { class: "no-config-field" }, we = { class: "dialog-footer" }, Ne = {
34
8
  __name: "index",
35
9
  props: {
36
10
  visible: { type: Boolean, default: !1 },
@@ -38,272 +12,275 @@ const Ne = { class: "no-config-field" }, Ue = { class: "dialog-footer" }, ke = {
38
12
  data: { type: Object, default: () => ({}) }
39
13
  },
40
14
  emits: ["update:visible", "refresh"],
41
- setup(r, { emit: b }) {
42
- const Q = L(() => import("./index-e2f2023d.js")), X = L(() => import("./index-d0c3be37.js").then((o) => o.m)), Z = L(() => import("./index-d0c3be37.js").then((o) => o.l)), { t: c } = De(), I = R("loadComponents"), E = R("formatDataType"), O = R("globalProps"), j = b, u = r;
43
- let C = fe((() => ({
15
+ setup(C, { emit: G }) {
16
+ const J = S(() => import("./index-ba8fa827.js").then((o) => o.f)), Q = S(() => import("./index-ba8fa827.js").then((o) => o.e)), X = S(() => import("./index-ba8fa827.js").then((o) => o.d)), { t: i } = Fe(), M = D("request"), Z = D("loadComponents"), A = D("formatDataType"), E = D("globalProps"), O = G, u = C;
17
+ let g = pe((() => ({
44
18
  btnLoading: !1
45
- }))()), N = $([]), a = $({}), U = $(null), ee = {};
46
- const _ = (o) => new Function("", o.fieldUiProps)() || {}, le = (o) => o.formColumnCol == null || o.customFiledsComponentes[o.customFiledsComponentes.customComponentName] ? 24 : o.formColumnCol ? o.formColumnCol : 24 / o.formRow, oe = (o) => {
19
+ }))()), w = L([]), a = L({}), N = L(null), I = {};
20
+ const y = (o) => new Function("", o.fieldUiProps)() || {}, ee = (o) => o.formColumnCol == null || o.customFiledsComponentes[o.customFiledsComponentes.customComponentName] ? 24 : o.formColumnCol ? o.formColumnCol : 24 / o.formRow, le = (o) => {
47
21
  if (["input", "textarea"].includes(o.fieldType))
48
22
  return "blur";
49
23
  if (["select", "multipleSelect", "datetimerange", "treeSelect", "provinceCascade"].includes(o.fieldType))
50
24
  return "change";
51
- }, ae = (o) => {
25
+ }, oe = (o) => {
52
26
  if (!["input", "textarea"].includes(o) && ["multipleSelect", "dateRange"].includes(o))
53
27
  return [];
54
- }, te = (o, f) => {
28
+ }, ae = (o, f) => {
55
29
  if (["string"].includes(f))
56
30
  return o.join(";");
57
31
  if (["number"].includes(f))
58
32
  return Number(o);
59
33
  if (["array"].includes(f))
60
34
  return o;
61
- }, de = (o) => {
35
+ }, te = (o) => {
62
36
  if (["multipleSelect"].includes(o.fieldType))
63
37
  return u.data.rowData[o.fieldKey] ? u.data.rowData[o.fieldKey].split(";") : [];
64
38
  if (["dateRange"].includes(o.fieldType)) {
65
39
  const f = o.fieldKey.split("&");
66
- return u.data.rowData[o.fieldKey] = f.map((s) => u.data.rowData[s]), u.data.rowData[o.fieldKey];
40
+ return u.data.rowData[o.fieldKey] = f.map((n) => u.data.rowData[n]), u.data.rowData[o.fieldKey];
67
41
  }
68
42
  return u.data.rowData[o.fieldKey];
69
- }, re = (o) => M({ url: u.data.dataItem.requestUrl, method: "post", data: o });
43
+ }, de = (o) => M({ url: u.data.dataItem.requestUrl, method: "post", data: o });
70
44
  me(
71
45
  () => u.visible,
72
46
  async (o, f) => {
73
- o && (u.data.formList.sort((s, V) => s.sort - V.sort).forEach(async (s) => {
74
- ee[s.fieldKey] = { submitFieldType: s.fieldSubmitType, isFormSetValue: s.isFormSetValue }, a.value[s.fieldKey] = Object.keys(u.data.rowData).length && s.isFormSetValue ? de(s) : ae(s.fieldType);
75
- const { isFiledCustom: V, customComponentName: m, customComponentUrl: D } = s.customFiledsComponentes;
76
- if (V && !s.customFiledsComponentes[m]) {
77
- const F = await I(D, m);
78
- s.customFiledsComponentes[m] = F;
47
+ o && (u.data.formList.sort((n, h) => n.sort - h.sort).forEach(async (n) => {
48
+ I[n.fieldKey] = { submitFieldType: n.fieldSubmitType, isFormSetValue: n.isFormSetValue }, a.value[n.fieldKey] = Object.keys(u.data.rowData).length && n.isFormSetValue ? te(n) : oe(n.fieldType);
49
+ const { isFiledCustom: h, customComponentName: p, customComponentUrl: F } = n.customFiledsComponentes;
50
+ if (h && !n.customFiledsComponentes[p]) {
51
+ const V = await Z(F, p);
52
+ n.customFiledsComponentes[p] = V;
79
53
  }
80
- }), console.log(u.data.formList), N.value = u.data.formList || []);
54
+ }), console.log(u.data.formList), w.value = u.data.formList || []);
81
55
  }
82
56
  );
83
- const se = (o) => {
84
- k(), o();
85
- }, k = () => {
86
- N.value = [], U.value.resetFields(), j("update:visible", !1);
57
+ const re = (o) => {
58
+ U(), o();
59
+ }, U = () => {
60
+ w.value = [], N.value.resetFields(), O("update:visible", !1);
87
61
  }, ne = (o) => {
88
62
  o && o.validate((f) => {
89
63
  if (f) {
90
- C.btnLoading = !0;
91
- const { dataItem: s, rowData: V } = u.data;
92
- let m = { ..._e(a.value) };
93
- Object.keys(m).forEach((d) => {
94
- d.includes("&") ? m[d].split("&").forEach((P, S) => {
95
- m[P] = m[d][S];
96
- }) : Array.isArray(m[d]) && (m[d] = te(m[d], "string"));
64
+ g.btnLoading = !0;
65
+ const { dataItem: n, rowData: h } = u.data;
66
+ let p = { ...Ve(a.value) };
67
+ Object.keys(p).forEach((d) => {
68
+ d.includes("&") ? p[d].split("&").forEach((k, v) => {
69
+ p[k] = p[d][v];
70
+ }) : Array.isArray(p[d]) && (p[d] = ae(p[d], "string"));
97
71
  });
98
- const D = s.submitFields.filter((d) => d.matchType == "default").reduce((d, i) => (i.submitFieldType === "string" && (d[i.submitFieldName] = i.matchFieldName.toString()), d), {}), F = s.submitFields.filter((d) => d.matchType == "match").reduce((d, i) => (Reflect.has(i, "submitFieldMatchOrigin") && i.submitFieldMatchOrigin != "rowData" ? Reflect.has(O.matchData, i.submitFieldMatchOrigin) && (d[i.submitFieldName] = E(i.submitFieldType, O.matchData[i.submitFieldMatchOrigin][i.matchFieldName])) : d[i.submitFieldName] = E(i.submitFieldType, V[i.matchFieldName]), d), {});
99
- re({
100
- ...m,
101
- ...D,
102
- ...F
72
+ const F = n.submitFields.filter((d) => d.matchType == "default").reduce((d, s) => (s.submitFieldType === "string" && (d[s.submitFieldName] = s.matchFieldName.toString()), d), {}), V = n.submitFields.filter((d) => d.matchType == "match").reduce((d, s) => (Reflect.has(s, "submitFieldMatchOrigin") && s.submitFieldMatchOrigin != "rowData" ? Reflect.has(E.matchData, s.submitFieldMatchOrigin) && (d[s.submitFieldName] = A(s.submitFieldType, E.matchData[s.submitFieldMatchOrigin][s.matchFieldName])) : d[s.submitFieldName] = A(s.submitFieldType, h[s.matchFieldName]), d), {});
73
+ de({
74
+ ...p,
75
+ ...F,
76
+ ...V
103
77
  }).then((d) => {
104
78
  try {
105
- we({ title: c("act.tip"), message: c("act.saveSuccessfully"), type: "success", duration: 2500 }), k(), j("refresh");
106
- } catch (i) {
107
- console.error(i);
79
+ Te({ title: i("act.tip"), message: i("act.saveSuccessfully"), type: "success", duration: 2500 }), U(), O("refresh");
80
+ } catch (s) {
81
+ console.error(s);
108
82
  }
109
- C.btnLoading = !1;
83
+ g.btnLoading = !1;
110
84
  }).catch((d) => {
111
- console.error(d), C.btnLoading = !1;
85
+ console.error(d), g.btnLoading = !1;
112
86
  });
113
87
  }
114
88
  });
115
89
  };
116
90
  return (o, f) => {
117
- var q;
118
- const s = y("el-input"), V = y("el-option"), m = y("el-select"), D = y("el-select-v2"), F = y("el-date-picker"), d = y("el-cascader"), i = y("el-switch"), P = y("el-form-item"), S = y("el-col"), ie = y("el-row"), ce = y("el-form"), Y = y("el-button"), ue = y("el-dialog");
119
- return n(), p(ue, {
91
+ var Y;
92
+ const n = m("el-input"), h = m("el-option"), p = m("el-select"), F = m("el-select-v2"), V = m("el-date-picker"), d = m("el-cascader"), s = m("el-switch"), k = m("el-form-item"), v = m("el-col"), se = m("el-row"), ie = m("el-form"), q = m("el-button"), ce = m("el-dialog"), ue = ye("debounce");
93
+ return r(), c(ce, {
120
94
  "model-value": u.visible,
121
95
  title: u.title,
122
96
  top: "5vh",
123
- width: (q = r.data.formConfig) == null ? void 0 : q.dialogWidth,
97
+ width: (Y = C.data.formConfig) == null ? void 0 : Y.dialogWidth,
124
98
  "append-to-body": "",
125
99
  "destroy-on-close": "",
126
100
  "close-on-click-modal": !1,
127
- "before-close": se
101
+ "before-close": re
128
102
  }, {
129
- footer: g(() => [
130
- H("span", Ue, [
131
- T(Y, {
132
- loading: l(C).btnLoading,
133
- onClick: k
103
+ footer: _(() => [
104
+ H("span", we, [
105
+ $(q, {
106
+ loading: l(g).btnLoading,
107
+ onClick: U
134
108
  }, {
135
- default: g(() => [
136
- x(K(l(c)("act.cancel")), 1)
109
+ default: _(() => [
110
+ R(T(l(i)("act.cancel")), 1)
137
111
  ]),
138
112
  _: 1
139
113
  }, 8, ["loading"]),
140
- T(Y, {
114
+ be((r(), c(q, {
141
115
  type: "primary",
142
- loading: l(C).btnLoading,
143
- onClick: f[1] || (f[1] = (v) => ne(l(U)))
116
+ loading: l(g).btnLoading,
117
+ onClick: f[1] || (f[1] = (P) => ne(l(N)))
144
118
  }, {
145
- default: g(() => [
146
- x(K(l(c)("act.save")), 1)
119
+ default: _(() => [
120
+ R(T(l(i)("act.save")), 1)
147
121
  ]),
148
122
  _: 1
149
- }, 8, ["loading"])
123
+ }, 8, ["loading"])), [
124
+ [ue]
125
+ ])
150
126
  ])
151
127
  ]),
152
- default: g(() => {
153
- var v, B;
128
+ default: _(() => {
129
+ var P, j;
154
130
  return [
155
- T(ce, {
131
+ $(ie, {
156
132
  ref_key: "formRef",
157
- ref: U,
133
+ ref: N,
158
134
  model: l(a),
159
135
  "label-suffix": ":",
160
- "label-width": (v = r.data.formConfig) == null ? void 0 : v.formLabelWidth,
161
- "label-position": (B = r.data.formConfig) == null ? void 0 : B.formLabelPosition
136
+ "label-width": (P = C.data.formConfig) == null ? void 0 : P.formLabelWidth,
137
+ "label-position": (j = C.data.formConfig) == null ? void 0 : j.formLabelPosition
162
138
  }, {
163
- default: g(() => [
164
- T(ie, { gutter: 40 }, {
165
- default: g(() => [
166
- (n(!0), w(A, null, W(l(N), (e, z) => (n(), p(S, {
167
- span: le(e),
168
- key: z
139
+ default: _(() => [
140
+ $(se, { gutter: 40 }, {
141
+ default: _(() => [
142
+ (r(!0), K(x, null, z(l(w), (e, B) => (r(), c(v, {
143
+ span: ee(e),
144
+ key: B
169
145
  }, {
170
- default: g(() => [
171
- e.customFiledsComponentes.isFiledCustom ? (n(), w(A, { key: 1 }, [
172
- e.customFiledsComponentes[e.customFiledsComponentes.customComponentName] ? (n(), p(ye(e.customFiledsComponentes[e.customFiledsComponentes.customComponentName]), {
146
+ default: _(() => [
147
+ e.customFiledsComponentes.isFiledCustom ? (r(), K(x, { key: 1 }, [
148
+ e.customFiledsComponentes[e.customFiledsComponentes.customComponentName] ? (r(), c(_e(e.customFiledsComponentes[e.customFiledsComponentes.customComponentName]), {
173
149
  key: 0,
174
150
  fieldCofnigItem: e,
175
151
  rowData: u.data.rowData,
176
152
  form: l(a),
177
- "onUpdate:form": f[0] || (f[0] = (t) => be(a) ? a.value = t : a = t)
178
- }, null, 40, ["fieldCofnigItem", "rowData", "form"])) : (n(), w("div", {
153
+ "onUpdate:form": f[0] || (f[0] = (t) => he(a) ? a.value = t : a = t)
154
+ }, null, 40, ["fieldCofnigItem", "rowData", "form"])) : (r(), K("div", {
179
155
  class: "no-config",
180
- key: z
156
+ key: B
181
157
  }, [
182
- H("span", Ne, "【" + K(e.fieldName) + "】", 1),
183
- x(K(l(c)("act.fieldCustom")), 1)
158
+ H("span", Ke, "【" + T(e.fieldName) + "】", 1),
159
+ R(T(l(i)("act.fieldCustom")), 1)
184
160
  ]))
185
- ], 64)) : (n(), p(P, {
161
+ ], 64)) : (r(), c(k, {
186
162
  key: 0,
187
163
  label: e.fieldName,
188
164
  prop: e.fieldKey,
189
- rules: [{ required: e.isFormFieldRequired, message: l(c)("act.requiredMessage"), trigger: oe(e) }]
165
+ rules: [{ required: e.isFormFieldRequired, message: l(i)("act.requiredMessage"), trigger: le(e) }]
190
166
  }, {
191
- default: g(() => [
192
- e.fieldType === "input" ? (n(), p(s, h({
167
+ default: _(() => [
168
+ e.fieldType === "input" ? (r(), c(n, b({
193
169
  key: 0,
194
170
  modelValue: l(a)[e.fieldKey],
195
171
  "onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
196
- placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
172
+ placeholder: `${l(i)("act.inputPlaceholder")}${e.fieldName}`,
197
173
  clearable: "",
198
174
  ref_for: !0
199
- }, _(e), {
175
+ }, y(e), {
200
176
  disabled: e.isFormDisabled
201
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : J("", !0),
202
- e.fieldType === "inputNumber" ? (n(), p(l(Q), h({
177
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : W("", !0),
178
+ e.fieldType === "inputNumber" ? (r(), c(l(J), b({
203
179
  key: 1,
204
180
  modelValue: l(a)[e.fieldKey],
205
181
  "onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
206
- placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
182
+ placeholder: `${l(i)("act.inputPlaceholder")}${e.fieldName}`,
207
183
  clearable: "",
208
184
  ref_for: !0
209
- }, _(e), {
185
+ }, y(e), {
210
186
  disabled: e.isFormDisabled
211
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "textarea" ? (n(), p(s, h({
187
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "textarea" ? (r(), c(n, b({
212
188
  key: 2,
213
189
  modelValue: l(a)[e.fieldKey],
214
190
  "onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
215
- placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
191
+ placeholder: `${l(i)("act.inputPlaceholder")}${e.fieldName}`,
216
192
  rows: 4,
217
193
  ref_for: !0
218
- }, _(e), {
194
+ }, y(e), {
219
195
  type: "textarea",
220
196
  disabled: e.isFormDisabled
221
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : ["select", "multipleSelect"].includes(e.fieldType) ? (n(), p(m, h({
197
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : ["select", "multipleSelect"].includes(e.fieldType) ? (r(), c(p, b({
222
198
  key: 3,
223
199
  modelValue: l(a)[e.fieldKey],
224
200
  "onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
225
- placeholder: `${l(c)("act.selectPlaceholder")}${e.fieldName}`,
201
+ placeholder: `${l(i)("act.selectPlaceholder")}${e.fieldName}`,
226
202
  clearable: "",
227
203
  filterable: "",
228
204
  ref_for: !0
229
- }, _(e), {
205
+ }, y(e), {
230
206
  multiple: e.fieldType === "multipleSelect",
231
207
  disabled: e.isFormDisabled
232
208
  }), {
233
- default: g(() => [
234
- (n(!0), w(A, null, W(e.dataList, (t, pe) => (n(), p(V, {
235
- key: pe,
209
+ default: _(() => [
210
+ (r(!0), K(x, null, z(e.dataList, (t, fe) => (r(), c(h, {
211
+ key: fe,
236
212
  label: t.key,
237
213
  value: t.value
238
214
  }, null, 8, ["label", "value"]))), 128))
239
215
  ]),
240
216
  _: 2
241
- }, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "disabled"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (n(), p(D, h({
217
+ }, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "disabled"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (r(), c(F, b({
242
218
  key: 4,
243
219
  modelValue: l(a)[e.fieldKey],
244
220
  "onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
245
221
  options: e.dataList,
246
- props: { ...l(Te) },
247
- placeholder: `${l(c)("act.selectPlaceholder")}${e.fieldName}`,
222
+ props: { ...l(Ce) },
223
+ placeholder: `${l(i)("act.selectPlaceholder")}${e.fieldName}`,
248
224
  clearable: "",
249
225
  filterable: "",
250
226
  ref_for: !0
251
- }, _(e), {
227
+ }, y(e), {
252
228
  disabled: e.isFormDisabled,
253
229
  multiple: e.fieldType === "virtualizedMultipleSelect"
254
- }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled", "multiple"])) : e.fieldType === "date" ? (n(), p(F, h({
230
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled", "multiple"])) : e.fieldType === "date" ? (r(), c(V, b({
255
231
  key: 5,
256
232
  modelValue: l(a)[e.fieldKey],
257
233
  "onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
258
234
  type: "date",
259
- placeholder: `${l(c)("act.selectPlaceholder")}${l(c)("act.time")}`,
235
+ placeholder: `${l(i)("act.selectPlaceholder")}${l(i)("act.time")}`,
260
236
  "value-format": "YYYY-MM-DD HH:mm:ss",
261
237
  ref_for: !0
262
- }, _(e), {
238
+ }, y(e), {
263
239
  disabled: e.isFormDisabled
264
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "dateRange" ? (n(), p(F, h({
240
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "dateRange" ? (r(), c(V, b({
265
241
  key: 6,
266
242
  modelValue: l(a)[e.fieldKey],
267
243
  "onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
268
244
  type: "daterange",
269
- "start-placeholder": l(c)("act.startTime"),
270
- "end-placeholder": l(c)("act.endTime"),
245
+ "start-placeholder": l(i)("act.startTime"),
246
+ "end-placeholder": l(i)("act.endTime"),
271
247
  "value-format": "YYYY-MM-DD HH:mm:ss",
272
248
  ref_for: !0
273
- }, _(e), {
249
+ }, y(e), {
274
250
  disabled: e.isFormDisabled
275
- }), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled"])) : e.fieldType === "provinceCascade" ? (n(), p(d, h({
251
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled"])) : e.fieldType === "provinceCascade" ? (r(), c(d, b({
276
252
  key: 7,
277
253
  modelValue: l(a)[e.fieldKey],
278
254
  "onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
279
255
  options: e.dataList,
280
- props: l(Ke),
256
+ props: l(De),
281
257
  clearable: "",
282
258
  filterable: "",
283
- placeholder: `${l(c)("act.selectPlaceholder")}${e.fieldName}`,
259
+ placeholder: `${l(i)("act.selectPlaceholder")}${e.fieldName}`,
284
260
  ref_for: !0
285
- }, _(e), {
261
+ }, y(e), {
286
262
  disabled: e.isFormDisabled
287
- }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (n(), p(i, {
263
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (r(), c(s, {
288
264
  key: 8,
289
265
  modelValue: l(a)[e.fieldKey],
290
266
  "onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
291
267
  "active-value": !0,
292
268
  "inactive-value": !1
293
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : e.fieldType === "upload" ? (n(), p(l(X), h({
269
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : e.fieldType === "upload" ? (r(), c(l(Q), b({
294
270
  key: 9,
295
271
  class: "form-upload",
296
272
  modelValue: l(a)[e.fieldKey],
297
273
  "onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
274
+ request: l(M),
298
275
  ref_for: !0
299
- }, _(e)), null, 16, ["modelValue", "onUpdate:modelValue"])) : e.fieldType === "editor" ? (n(), p(l(Z), h({
276
+ }, y(e)), null, 16, ["modelValue", "onUpdate:modelValue", "request"])) : e.fieldType === "editor" ? (r(), c(l(X), b({
300
277
  key: 10,
301
278
  modelValue: l(a)[e.fieldKey],
302
279
  "onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
303
280
  disabled: e.isFormDisabled,
304
- placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
281
+ placeholder: `${l(i)("act.inputPlaceholder")}${e.fieldName}`,
305
282
  ref_for: !0
306
- }, _(e)), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : J("", !0)
283
+ }, y(e)), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : W("", !0)
307
284
  ]),
308
285
  _: 2
309
286
  }, 1032, ["label", "prop", "rules"]))
@@ -322,7 +299,7 @@ const Ne = { class: "no-config-field" }, Ue = { class: "dialog-footer" }, ke = {
322
299
  }, 8, ["model-value", "title", "width"]);
323
300
  };
324
301
  }
325
- }, xe = /* @__PURE__ */ Ce(ke, [["__scopeId", "data-v-4734dc60"]]);
302
+ }, Re = /* @__PURE__ */ ge(Ne, [["__scopeId", "data-v-58ff2aa1"]]);
326
303
  export {
327
- xe as default
304
+ Re as default
328
305
  };
package/package.json CHANGED
@@ -1,17 +1,13 @@
1
1
  {
2
2
  "name": "act-plus",
3
- "version": "1.1.24",
3
+ "version": "1.1.25",
4
4
  "private": false,
5
5
  "description": "act config",
6
6
  "main": "act-plus.js",
7
7
  "scripts": {
8
8
  "test": "echo \"Error: no test specified\" && exit 1"
9
9
  },
10
- "keywords": [
11
- "act",
12
- "act-plus",
13
- "vue"
14
- ],
10
+ "keywords": ["act", "act-plus", "vue"],
15
11
  "author": "destiny",
16
12
  "license": "ISC",
17
13
  "publishConfig": {
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-d40b7dd2] .el-empty__image{width:100%}.file-image[data-v-d40b7dd2]{display:block;width:32px;height:32px;margin:0 auto;border-radius:4px;line-height:32px!important}.no-image[data-v-d40b7dd2]{width:100%;height:100%;font-size:12px;background-color:#f5f7fa}.page-container[data-v-ed715464]{position:relative}.page-container .header-operate[data-v-ed715464]{position:sticky;top:0;z-index:999}.page-container .submit-box[data-v-ed715464]{display:flex;align-items:center;justify-content:flex-end}.page-container .submit-box-l[data-v-ed715464]{width:360px;margin-right:24px}.act-table .table-pagination[data-v-e54f31ab]{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-1ef2cd20]{width:100%}.upload-container[data-v-1ef2cd20] .el-upload-list--picture-card{display:flex;flex:1}.upload-container[data-v-1ef2cd20] .el-upload.is-drag{width:100%;height:100%}.upload-container .tip-text[data-v-1ef2cd20]{margin:0;padding:0;font-size:12px;color:#999}.upload-container .file-list[data-v-1ef2cd20]{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-1ef2cd20]:hover{cursor:pointer;opacity:.8}.upload-container .file-list:hover .el-file-name[data-v-1ef2cd20]{text-decoration:underline}.upload-container .file-list-l[data-v-1ef2cd20]{display:flex;align-items:center;flex:1;width:500px}.upload-container .file-list-image[data-v-1ef2cd20]{flex-shrink:0;width:40px;height:40px;border-radius:4px}.upload-container .file-list-icon[data-v-1ef2cd20]{flex-shrink:0;width:40px;height:40px}.upload-container .file-list .el-file-name[data-v-1ef2cd20]{flex:1;padding:0 12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.upload-container .file-list .el-file-operate[data-v-1ef2cd20]{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-1ef2cd20]{cursor:pointer;margin-left:12px}.upload-container .file-list .el-file-operate>i[data-v-1ef2cd20]:hover{opacity:.8}.search-module-container[data-v-851e4602] .el-form-item{margin-bottom:8px}.search-module-container[data-v-851e4602] .el-select__selection{flex-wrap:nowrap}.search-module-container .form-content[data-v-851e4602]{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-851e4602]{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-851e4602]{display:flex;margin:0 auto;color:#a4a2a2}.header-operate-container[data-v-20d66b80]{display:flex;align-items:center;justify-content:flex-end}.header-operate-container .el-btn[data-v-20d66b80]{margin:6px}.card-header[data-v-4734dc60]{display:flex;align-items:center}.card-header-operate[data-v-4734dc60]{margin-left:auto}.no-config[data-v-4734dc60]{line-height:32px;font-weight:700}.no-config-field[data-v-4734dc60]{margin-left:60px;color:red}.card-header[data-v-a8dbe98a]{display:flex;align-items:center}.card-header-operate[data-v-a8dbe98a]{margin-left:auto}.add-icon-btn[data-v-2dd3967b]{cursor:pointer;width:24px;height:24px;margin-left:6px}.table-post-params[data-v-2dd3967b]{position:relative;margin-bottom:12px}.table-post-params .submit-operate[data-v-2dd3967b]{position:absolute;top:-20px;right:-10px;display:flex;align-items:center}.table-post-params .submit-operate .match-opreate[data-v-2dd3967b]{cursor:pointer;width:12px;height:12px}.card-header[data-v-2943c543]{display:flex;align-items:center}.card-header-operate[data-v-2943c543]{margin-left:auto}.form-list[data-v-2943c543]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-2943c543]:last-child{border:none}.config-list-operate[data-v-2943c543]{display:flex;align-items:center;justify-content:flex-end}.card-header[data-v-9d3ab8fb]{display:flex;align-items:center}.card-header-operate[data-v-9d3ab8fb]{margin-left:auto}.form-list[data-v-9d3ab8fb]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-9d3ab8fb]:last-child{border:none}.config-list-operate[data-v-9d3ab8fb]{display:flex;align-items:center;justify-content:flex-end}.add-icon-btn[data-v-26dcca01]{cursor:pointer;width:24px;height:24px;margin-left:6px}.condition-box[data-v-26dcca01]{display:flex;justify-content:center}.condition-box[data-v-26dcca01] .el-form-item__content{flex:0;min-width:300px}.submit-operate[data-v-26dcca01]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-26dcca01]{cursor:pointer;width:20px;height:20px}.add-icon-btn[data-v-987b559b]{cursor:pointer;width:24px;height:24px;margin-left:6px}.submit-operate[data-v-987b559b]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-987b559b]{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-eac43c79]{display:flex;align-items:center}.select-icon-container .icon-value .icon-btn[data-v-eac43c79]{margin-left:12px}
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-cf6eded7] .el-empty__image{width:100%}.file-image[data-v-cf6eded7]{display:block;width:32px;height:32px;margin:0 auto;border-radius:4px;line-height:32px!important}.no-image[data-v-cf6eded7]{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-c6a200c1]{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-cb281b8b] .el-form-item{margin-bottom:8px}.search-module-container[data-v-cb281b8b] .el-select__selection{flex-wrap:nowrap}.search-module-container .form-content[data-v-cb281b8b]{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-cb281b8b]{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-cb281b8b]{display:flex;margin:0 auto;color:#a4a2a2}.header-operate-container[data-v-00d47037]{display:flex;align-items:center;justify-content:flex-end}.header-operate-container .el-btn[data-v-00d47037]{margin:6px}.card-header[data-v-58ff2aa1]{display:flex;align-items:center}.card-header-operate[data-v-58ff2aa1]{margin-left:auto}.no-config[data-v-58ff2aa1]{line-height:32px;font-weight:700}.no-config-field[data-v-58ff2aa1]{margin-left:60px;color:red}.card-header[data-v-3484c709]{display:flex;align-items:center}.card-header-operate[data-v-3484c709]{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-c348bee1]{display:flex;align-items:center}.card-header-operate[data-v-c348bee1]{margin-left:auto}.form-list[data-v-c348bee1]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-c348bee1]:last-child{border:none}.config-list-operate[data-v-c348bee1]{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}.add-icon-btn[data-v-4b2dee6d]{cursor:pointer;width:24px;height:24px;margin-left:6px}.condition-box[data-v-4b2dee6d]{display:flex;justify-content:center}.condition-box[data-v-4b2dee6d] .el-form-item__content{flex:0;min-width:300px}.submit-operate[data-v-4b2dee6d]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-4b2dee6d]{cursor:pointer;width:20px;height:20px}.add-icon-btn[data-v-3d2cbdfc]{cursor:pointer;width:24px;height:24px;margin-left:6px}.submit-operate[data-v-3d2cbdfc]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-3d2cbdfc]{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-3437a309]{display:flex;align-items:center}.select-icon-container .icon-value .icon-btn[data-v-3437a309]{margin-left:12px}