act-plus 1.1.16 → 1.1.18

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 R, inject as l, watch as j, resolveComponent as g, openBlock as s, createElementBlock as m, Fragment as y, renderList as q, unref as f, createBlock as c, resolveDynamicComponent as A, withCtx as _, createVNode as O, createCommentVNode as i, createTextVNode as B, toDisplayString as k } from "vue";
2
- import { _ as E } from "./index-a1b4f8cb.js";
2
+ import { _ as E } from "./index-1f8ed34b.js";
3
3
  import "vue-router";
4
4
  import "element-plus";
5
5
  const H = { class: "header-operate-container" }, M = {
@@ -1,35 +1,35 @@
1
- import { inject as M, reactive as de, ref as L, watch as se, resolveComponent as y, openBlock as r, createBlock as u, withCtx as _, createElementVNode as B, createVNode as T, unref as l, createTextVNode as P, toDisplayString as w, createElementBlock as V, Fragment as D, renderList as R, createCommentVNode as re, resolveDynamicComponent as ne, isRef as ie } from "vue";
2
- import { a as ce, e as ue, r as fe, b as pe, _ as me, u as ye, T as W, P as be } from "./index-a1b4f8cb.js";
3
- import { ElMessage as z, ElNotification as _e } from "element-plus";
1
+ import { inject as R, reactive as de, ref as x, watch as re, resolveComponent as y, openBlock as i, createBlock as p, withCtx as h, createElementVNode as z, createVNode as T, unref as l, createTextVNode as L, toDisplayString as D, createElementBlock as V, Fragment as w, renderList as $, createCommentVNode as ie, resolveDynamicComponent as ne, isRef as ce, toRaw as ue } from "vue";
2
+ import { a as fe, e as pe, r as me, b as ye, _ as be, u as he, T as J, P as _e } from "./index-1f8ed34b.js";
3
+ import { ElMessage as G, ElNotification as ge } from "element-plus";
4
4
  import "vue-router";
5
- const $ = ce.create({
5
+ const A = fe.create({
6
6
  baseURL: "",
7
7
  // ""
8
8
  timeout: 15e3
9
9
  });
10
- $.interceptors.request.use(
11
- (s) => {
10
+ A.interceptors.request.use(
11
+ (d) => {
12
12
  let b = sessionStorage.getItem("accessToken");
13
- return b && (s.headers.Authorization = "Bearer " + b), s.headers["Content-Type"] != "application/x-www-form-urlencoded" && (s.data = { ...s.data }, Reflect.has(s.data, "dynamicFilters") && (s.data.dynamicFilters = ue(JSON.stringify(s.data.dynamicFilters)))), s;
13
+ return b && (d.headers.Authorization = "Bearer " + b), d.headers["Content-Type"] != "application/x-www-form-urlencoded" && (d.data = { ...d.data }, Reflect.has(d.data, "dynamicFilters") && (d.data.dynamicFilters = pe(JSON.stringify(d.data.dynamicFilters)))), d;
14
14
  },
15
- (s) => Promise.reject(s)
15
+ (d) => Promise.reject(d)
16
16
  );
17
- $.interceptors.response.use(
18
- (s) => {
19
- const b = s.data;
17
+ A.interceptors.response.use(
18
+ (d) => {
19
+ const b = d.data;
20
20
  if (b.code == 200)
21
21
  return b;
22
22
  if (b.code == 401)
23
- sessionStorage.clear(), fe.replace("/"), pe(), z.error({ title: "错误", message: "登陆超时,请重新登录" });
23
+ sessionStorage.clear(), me.replace("/"), ye(), G.error({ title: "错误", message: "登陆超时,请重新登录" });
24
24
  else
25
- return z.error({ title: "错误", message: b.msg }), Promise.reject(b.msg);
25
+ return G.error({ title: "错误", message: b.msg }), Promise.reject(b.msg);
26
26
  },
27
- (s) => {
28
- if (s.response.status != -1)
29
- return Promise.reject(s);
27
+ (d) => {
28
+ if (d.response.status != -1)
29
+ return Promise.reject(d);
30
30
  }
31
31
  );
32
- const he = { class: "no-config-field" }, ge = { class: "dialog-footer" }, Ce = {
32
+ const Fe = { class: "no-config-field" }, Ce = { class: "dialog-footer" }, Ve = {
33
33
  __name: "index",
34
34
  props: {
35
35
  visible: { type: Boolean, default: !1 },
@@ -37,236 +37,242 @@ const he = { class: "no-config-field" }, ge = { class: "dialog-footer" }, Ce = {
37
37
  data: { type: Object, default: () => ({}) }
38
38
  },
39
39
  emits: ["update:visible", "refresh"],
40
- setup(s, { emit: b }) {
41
- const { t: i } = ye(), J = M("loadComponents"), G = M("formatDataType"), A = b, c = s;
40
+ setup(d, { emit: b }) {
41
+ const { t: c } = he(), H = R("loadComponents"), O = R("formatDataType"), E = R("globalProps"), M = b, u = d;
42
42
  let F = de((() => ({
43
43
  btnLoading: !1
44
- }))()), v = L([]), o = L({}), K = L(null), H = {};
45
- const Q = (a) => a.formColumnCol == null || a.customFiledsComponentes[a.customFiledsComponentes.customComponentName] ? 24 : a.formColumnCol ? a.formColumnCol : 24 / a.formRow, X = (a) => {
44
+ }))()), K = x([]), o = x({}), k = x(null), Q = {};
45
+ const X = (a) => a.formColumnCol == null || a.customFiledsComponentes[a.customFiledsComponentes.customComponentName] ? 24 : a.formColumnCol ? a.formColumnCol : 24 / a.formRow, Y = (a) => {
46
46
  if (["input", "textarea"].includes(a.fieldType))
47
47
  return "blur";
48
48
  if (["select", "multipleSelect", "datetimerange", "treeSelect", "provinceCascade"].includes(a.fieldType))
49
49
  return "change";
50
- }, Y = (a) => {
50
+ }, Z = (a) => {
51
51
  if (!["input", "textarea"].includes(a) && ["multipleSelect", "dateRange"].includes(a))
52
52
  return [];
53
- }, Z = (a, f) => {
54
- if (["string"].includes(f))
53
+ }, I = (a, m) => {
54
+ if (["string"].includes(m))
55
55
  return a.join(";");
56
- if (["number"].includes(f))
56
+ if (["number"].includes(m))
57
57
  return Number(a);
58
- if (["array"].includes(f))
58
+ if (["array"].includes(m))
59
59
  return a;
60
- }, I = (a) => {
60
+ }, ee = (a) => {
61
61
  if (["multipleSelect"].includes(a.fieldType))
62
- return c.data.rowData[a.fieldKey] ? c.data.rowData[a.fieldKey].split(";") : [];
62
+ return u.data.rowData[a.fieldKey] ? u.data.rowData[a.fieldKey].split(";") : [];
63
63
  if (["dateRange"].includes(a.fieldType)) {
64
- const f = a.fieldKey.split("&");
65
- return c.data.rowData[a.fieldKey] = f.map((n) => c.data.rowData[n]), c.data.rowData[a.fieldKey];
64
+ const m = a.fieldKey.split("&");
65
+ return u.data.rowData[a.fieldKey] = m.map((n) => u.data.rowData[n]), u.data.rowData[a.fieldKey];
66
66
  }
67
- return c.data.rowData[a.fieldKey];
68
- }, ee = (a) => $({ url: c.data.dataItem.requestUrl, method: "post", data: a });
69
- se(
70
- () => c.visible,
71
- async (a, f) => {
72
- a && (c.data.formList.forEach(async (n) => {
73
- H[n.fieldKey] = { submitFieldType: n.fieldSubmitType, isFormSetValue: n.isFormSetValue }, o.value[n.fieldKey] = Object.keys(c.data.rowData).length && n.isFormSetValue ? I(n) : Y(n.fieldType);
74
- const { isFiledCustom: g, customComponentName: h, customComponentUrl: C } = n.customFiledsComponentes;
75
- if (g && !n.customFiledsComponentes[h]) {
76
- const p = await J(C, h);
77
- n.customFiledsComponentes[h] = p;
67
+ return u.data.rowData[a.fieldKey];
68
+ }, le = (a) => A({ url: u.data.dataItem.requestUrl, method: "post", data: a });
69
+ re(
70
+ () => u.visible,
71
+ async (a, m) => {
72
+ a && (u.data.formList.forEach(async (n) => {
73
+ Q[n.fieldKey] = { submitFieldType: n.fieldSubmitType, isFormSetValue: n.isFormSetValue }, o.value[n.fieldKey] = Object.keys(u.data.rowData).length && n.isFormSetValue ? ee(n) : Z(n.fieldType);
74
+ const { isFiledCustom: _, customComponentName: f, customComponentUrl: g } = n.customFiledsComponentes;
75
+ if (_ && !n.customFiledsComponentes[f]) {
76
+ const C = await H(g, f);
77
+ n.customFiledsComponentes[f] = C;
78
78
  }
79
- }), v.value = c.data.formList || []);
79
+ }), K.value = u.data.formList || []);
80
80
  }
81
81
  );
82
- const le = (a) => {
83
- k(), a();
84
- }, k = () => {
85
- v.value = [], K.value.resetFields(), A("update:visible", !1);
86
- }, ae = (a) => {
87
- a && a.validate((f) => {
88
- if (f) {
82
+ const ae = (a) => {
83
+ N(), a();
84
+ }, N = () => {
85
+ K.value = [], k.value.resetFields(), M("update:visible", !1);
86
+ }, te = (a) => {
87
+ a && a.validate((m) => {
88
+ if (m) {
89
89
  F.btnLoading = !0;
90
- const { dataItem: n, rowData: g } = c.data, h = n.submitFields.filter((d) => d.matchType == "default").reduce((d, m) => (m.submitFieldType === "string" && (d[m.submitFieldName] = m.matchFieldName.toString()), d), {}), C = n.submitFields.filter((d) => d.matchType == "match").reduce((d, m) => (d[m.submitFieldName] = G(m.submitFieldType, g[m.matchFieldName]), d), {});
91
- let p = { ...h, ...C, ...o.value };
92
- Object.keys(p).forEach((d) => {
93
- d.includes("&") ? p[d].split("&").forEach((U, N) => {
94
- p[U] = p[d][N];
95
- }) : Array.isArray(p[d]) && (p[d] = Z(p[d].submitFieldType));
96
- }), ee(p).then((d) => {
90
+ const { dataItem: n, rowData: _ } = u.data;
91
+ let f = { ...ue(o.value) };
92
+ Object.keys(f).forEach((s) => {
93
+ s.includes("&") ? f[s].split("&").forEach((U, v) => {
94
+ f[U] = f[s][v];
95
+ }) : Array.isArray(f[s]) && (f[s] = I(f[s], "string"));
96
+ });
97
+ const g = n.submitFields.filter((s) => s.matchType == "default").reduce((s, r) => (r.submitFieldType === "string" && (s[r.submitFieldName] = r.matchFieldName.toString()), s), {}), C = n.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] = O(r.submitFieldType, E.matchData[r.submitFieldMatchOrigin][r.matchFieldName])) : s[r.submitFieldName] = O(r.submitFieldType, _[r.matchFieldName]), s), {});
98
+ le({
99
+ ...f,
100
+ ...g,
101
+ ...C
102
+ }).then((s) => {
97
103
  try {
98
- _e({ title: i("act.tip"), message: i("act.saveSuccessfully"), type: "success", duration: 2500 }), k(), A("refresh");
99
- } catch (m) {
100
- console.error(m);
104
+ ge({ title: c("act.tip"), message: c("act.saveSuccessfully"), type: "success", duration: 2500 }), N(), M("refresh");
105
+ } catch (r) {
106
+ console.error(r);
101
107
  }
102
108
  F.btnLoading = !1;
103
- }).catch((d) => {
104
- console.error(d), F.btnLoading = !1;
109
+ }).catch((s) => {
110
+ console.error(s), F.btnLoading = !1;
105
111
  });
106
112
  }
107
113
  });
108
114
  };
109
- return (a, f) => {
110
- var j;
111
- const n = y("el-input"), g = y("el-option"), h = y("el-select"), C = y("el-date-picker"), p = y("el-cascader"), d = y("el-switch"), m = y("el-form-item"), U = y("el-col"), N = y("el-row"), te = y("el-form"), E = y("el-button"), oe = y("el-dialog");
112
- return r(), u(oe, {
113
- "model-value": c.visible,
114
- title: c.title,
115
+ return (a, m) => {
116
+ var q;
117
+ const n = y("el-input"), _ = y("el-option"), f = y("el-select"), g = y("el-date-picker"), C = y("el-cascader"), s = y("el-switch"), r = y("el-form-item"), U = y("el-col"), v = y("el-row"), oe = y("el-form"), j = y("el-button"), se = y("el-dialog");
118
+ return i(), p(se, {
119
+ "model-value": u.visible,
120
+ title: u.title,
115
121
  top: "5vh",
116
- width: (j = s.data.formConfig) == null ? void 0 : j.dialogWidth,
122
+ width: (q = d.data.formConfig) == null ? void 0 : q.dialogWidth,
117
123
  "append-to-body": "",
118
124
  "destroy-on-close": "",
119
125
  "close-on-click-modal": !1,
120
- "before-close": le
126
+ "before-close": ae
121
127
  }, {
122
- footer: _(() => [
123
- B("span", ge, [
124
- T(E, {
128
+ footer: h(() => [
129
+ z("span", Ce, [
130
+ T(j, {
125
131
  loading: l(F).btnLoading,
126
- onClick: k
132
+ onClick: N
127
133
  }, {
128
- default: _(() => [
129
- P(w(l(i)("act.cancel")), 1)
134
+ default: h(() => [
135
+ L(D(l(c)("act.cancel")), 1)
130
136
  ]),
131
137
  _: 1
132
138
  }, 8, ["loading"]),
133
- T(E, {
139
+ T(j, {
134
140
  type: "primary",
135
141
  loading: l(F).btnLoading,
136
- onClick: f[1] || (f[1] = (S) => ae(l(K)))
142
+ onClick: m[1] || (m[1] = (P) => te(l(k)))
137
143
  }, {
138
- default: _(() => [
139
- P(w(l(i)("act.save")), 1)
144
+ default: h(() => [
145
+ L(D(l(c)("act.save")), 1)
140
146
  ]),
141
147
  _: 1
142
148
  }, 8, ["loading"])
143
149
  ])
144
150
  ]),
145
- default: _(() => {
146
- var S, O;
151
+ default: h(() => {
152
+ var P, B;
147
153
  return [
148
- T(te, {
154
+ T(oe, {
149
155
  ref_key: "formRef",
150
- ref: K,
156
+ ref: k,
151
157
  model: l(o),
152
158
  "label-suffix": ":",
153
- "label-width": (S = s.data.formConfig) == null ? void 0 : S.formLabelWidth,
154
- "label-position": (O = s.data.formConfig) == null ? void 0 : O.formLabelPosition
159
+ "label-width": (P = d.data.formConfig) == null ? void 0 : P.formLabelWidth,
160
+ "label-position": (B = d.data.formConfig) == null ? void 0 : B.formLabelPosition
155
161
  }, {
156
- default: _(() => [
157
- T(N, { gutter: 40 }, {
158
- default: _(() => [
159
- (r(!0), V(D, null, R(l(v), (e, q) => (r(), u(U, {
160
- span: Q(e),
161
- key: q
162
+ default: h(() => [
163
+ T(v, { gutter: 40 }, {
164
+ default: h(() => [
165
+ (i(!0), V(w, null, $(l(K), (e, W) => (i(), p(U, {
166
+ span: X(e),
167
+ key: W
162
168
  }, {
163
- default: _(() => [
164
- e.customFiledsComponentes.isFiledCustom ? (r(), V(D, { key: 1 }, [
165
- e.customFiledsComponentes[e.customFiledsComponentes.customComponentName] ? (r(), u(ne(e.customFiledsComponentes[e.customFiledsComponentes.customComponentName]), {
169
+ default: h(() => [
170
+ e.customFiledsComponentes.isFiledCustom ? (i(), V(w, { key: 1 }, [
171
+ e.customFiledsComponentes[e.customFiledsComponentes.customComponentName] ? (i(), p(ne(e.customFiledsComponentes[e.customFiledsComponentes.customComponentName]), {
166
172
  key: 0,
167
173
  fieldCofnigItem: e,
168
- rowData: c.data.rowData,
174
+ rowData: u.data.rowData,
169
175
  form: l(o),
170
- "onUpdate:form": f[0] || (f[0] = (t) => ie(o) ? o.value = t : o = t)
171
- }, null, 40, ["fieldCofnigItem", "rowData", "form"])) : (r(), V("div", {
176
+ "onUpdate:form": m[0] || (m[0] = (t) => ce(o) ? o.value = t : o = t)
177
+ }, null, 40, ["fieldCofnigItem", "rowData", "form"])) : (i(), V("div", {
172
178
  class: "no-config",
173
- key: q
179
+ key: W
174
180
  }, [
175
- B("span", he, "【" + w(e.fieldName) + "】", 1),
176
- P(w(l(i)("act.fieldCustom")), 1)
181
+ z("span", Fe, "【" + D(e.fieldName) + "】", 1),
182
+ L(D(l(c)("act.fieldCustom")), 1)
177
183
  ]))
178
- ], 64)) : (r(), u(m, {
184
+ ], 64)) : (i(), p(r, {
179
185
  key: 0,
180
186
  label: e.fieldName,
181
187
  prop: e.fieldKey,
182
- rules: [{ required: e.isFormFieldRequired, message: l(i)("act.requiredMessage"), trigger: X(e) }]
188
+ rules: [{ required: e.isFormFieldRequired, message: l(c)("act.requiredMessage"), trigger: Y(e) }]
183
189
  }, {
184
- default: _(() => [
185
- e.fieldType === "input" ? (r(), u(n, {
190
+ default: h(() => [
191
+ e.fieldType === "input" ? (i(), p(n, {
186
192
  key: 0,
187
193
  modelValue: l(o)[e.fieldKey],
188
194
  "onUpdate:modelValue": (t) => l(o)[e.fieldKey] = t,
189
195
  type: "text",
190
- placeholder: `${l(i)("act.inputPlaceholder")}${e.fieldName}`,
196
+ placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
191
197
  disabled: e.isFormDisabled,
192
198
  clearable: ""
193
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "textarea" ? (r(), u(n, {
199
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "textarea" ? (i(), p(n, {
194
200
  key: 1,
195
201
  modelValue: l(o)[e.fieldKey],
196
202
  "onUpdate:modelValue": (t) => l(o)[e.fieldKey] = t,
197
203
  type: "textarea",
198
- placeholder: `${l(i)("act.inputPlaceholder")}${e.fieldName}`,
204
+ placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
199
205
  disabled: e.isFormDisabled,
200
206
  rows: 4
201
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "multipleSelect" ? (r(), u(h, {
207
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "multipleSelect" ? (i(), p(f, {
202
208
  key: 2,
203
209
  modelValue: l(o)[e.fieldKey],
204
210
  "onUpdate:modelValue": (t) => l(o)[e.fieldKey] = t,
205
- placeholder: `${l(i)("act.selectPlaceholder")}${e.fieldName}`,
211
+ placeholder: `${l(c)("act.selectPlaceholder")}${e.fieldName}`,
206
212
  disabled: e.isFormDisabled,
207
213
  multiple: "",
208
214
  clearable: "",
209
215
  filterable: ""
210
216
  }, {
211
- default: _(() => [
212
- (r(!0), V(D, null, R(e.dataList, (t, x) => (r(), u(g, {
213
- key: x,
217
+ default: h(() => [
218
+ (i(!0), V(w, null, $(e.dataList, (t, S) => (i(), p(_, {
219
+ key: S,
214
220
  label: t.key,
215
221
  value: t.value
216
222
  }, null, 8, ["label", "value"]))), 128))
217
223
  ]),
218
224
  _: 2
219
- }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "select" ? (r(), u(h, {
225
+ }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "select" ? (i(), p(f, {
220
226
  key: 3,
221
227
  modelValue: l(o)[e.fieldKey],
222
228
  "onUpdate:modelValue": (t) => l(o)[e.fieldKey] = t,
223
- placeholder: `${l(i)("act.selectPlaceholder")}${e.fieldName}`,
229
+ placeholder: `${l(c)("act.selectPlaceholder")}${e.fieldName}`,
224
230
  disabled: e.isFormDisabled,
225
231
  clearable: "",
226
232
  filterable: ""
227
233
  }, {
228
- default: _(() => [
229
- (r(!0), V(D, null, R(e.dataList, (t, x) => (r(), u(g, {
230
- key: x,
234
+ default: h(() => [
235
+ (i(!0), V(w, null, $(e.dataList, (t, S) => (i(), p(_, {
236
+ key: S,
231
237
  label: t.key,
232
238
  value: t.value
233
239
  }, null, 8, ["label", "value"]))), 128))
234
240
  ]),
235
241
  _: 2
236
- }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "date" ? (r(), u(C, {
242
+ }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "date" ? (i(), p(g, {
237
243
  key: 4,
238
244
  modelValue: l(o)[e.fieldKey],
239
245
  "onUpdate:modelValue": (t) => l(o)[e.fieldKey] = t,
240
246
  type: e.fieldUiType,
241
- placeholder: `${l(i)("act.selectPlaceholder")}${l(i)("act.time")}`,
242
- "value-format": l(W)[e.fieldUiType],
247
+ placeholder: `${l(c)("act.selectPlaceholder")}${l(c)("act.time")}`,
248
+ "value-format": l(J)[e.fieldUiType],
243
249
  disabled: e.isFormDisabled
244
- }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "placeholder", "value-format", "disabled"])) : e.fieldType === "dateRange" ? (r(), u(C, {
250
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "placeholder", "value-format", "disabled"])) : e.fieldType === "dateRange" ? (i(), p(g, {
245
251
  key: 5,
246
252
  modelValue: l(o)[e.fieldKey],
247
253
  "onUpdate:modelValue": (t) => l(o)[e.fieldKey] = t,
248
254
  type: e.fieldUiType,
249
- "start-placeholder": l(i)("act.startTime"),
250
- "end-placeholder": l(i)("act.endTime"),
251
- "value-format": l(W)[e.fieldUiType],
255
+ "start-placeholder": l(c)("act.startTime"),
256
+ "end-placeholder": l(c)("act.endTime"),
257
+ "value-format": l(J)[e.fieldUiType],
252
258
  disabled: e.isFormDisabled
253
- }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "start-placeholder", "end-placeholder", "value-format", "disabled"])) : e.fieldType === "provinceCascade" ? (r(), u(p, {
259
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "start-placeholder", "end-placeholder", "value-format", "disabled"])) : e.fieldType === "provinceCascade" ? (i(), p(C, {
254
260
  key: 6,
255
261
  modelValue: l(o)[e.fieldKey],
256
262
  "onUpdate:modelValue": (t) => l(o)[e.fieldKey] = t,
257
263
  options: e.dataList,
258
- props: l(be),
264
+ props: l(_e),
259
265
  clearable: "",
260
266
  filterable: "",
261
- placeholder: `${l(i)("act.selectPlaceholder")}${e.fieldName}`,
267
+ placeholder: `${l(c)("act.selectPlaceholder")}${e.fieldName}`,
262
268
  disabled: e.isFormDisabled
263
- }, null, 8, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (r(), u(d, {
269
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (i(), p(s, {
264
270
  key: 7,
265
271
  modelValue: l(o)[e.fieldKey],
266
272
  "onUpdate:modelValue": (t) => l(o)[e.fieldKey] = t,
267
273
  "active-value": !0,
268
274
  "inactive-value": !1
269
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : re("", !0)
275
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : ie("", !0)
270
276
  ]),
271
277
  _: 2
272
278
  }, 1032, ["label", "prop", "rules"]))
@@ -285,7 +291,7 @@ const he = { class: "no-config-field" }, ge = { class: "dialog-footer" }, Ce = {
285
291
  }, 8, ["model-value", "title", "width"]);
286
292
  };
287
293
  }
288
- }, ve = /* @__PURE__ */ me(Ce, [["__scopeId", "data-v-713d8e92"]]);
294
+ }, Ne = /* @__PURE__ */ be(Ve, [["__scopeId", "data-v-53e47c95"]]);
289
295
  export {
290
- ve as default
296
+ Ne as default
291
297
  };
@@ -1,5 +1,5 @@
1
1
  import { ref as P, watch as R, resolveComponent as u, resolveDirective as T, openBlock as a, createElementBlock as d, withDirectives as D, createBlock as n, withCtx as c, createTextVNode as K, toDisplayString as O, unref as f, Fragment as s, renderList as j, renderSlot as y, createCommentVNode as A, nextTick as w } from "vue";
2
- import { _ as E, u as H } from "./index-a1b4f8cb.js";
2
+ import { _ as E, u as H } from "./index-1f8ed34b.js";
3
3
  import "vue-router";
4
4
  import "element-plus";
5
5
  const U = { class: "act-table" }, V = {
@@ -1,5 +1,5 @@
1
1
  import { ref as h, watch as I, resolveComponent as _, openBlock as a, createElementBlock as d, createVNode as u, unref as p, isRef as b, withCtx as m, createElementVNode as g, createBlock as w, createCommentVNode as C, createTextVNode as N, Fragment as B, renderList as E, normalizeClass as S } from "vue";
2
- import { _ as z } from "./index-a1b4f8cb.js";
2
+ import { _ as z } from "./index-1f8ed34b.js";
3
3
  import "vue-router";
4
4
  import "element-plus";
5
5
  const A = { class: "select-icon-container" }, F = { class: "icon-list" }, L = ["onClick"], P = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "act-plus",
3
- "version": "1.1.16",
3
+ "version": "1.1.18",
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}.ml6{margin-left:6px!important}.ml4{margin-left:4px!important}.mr6{margin-right:6px}.mr2{margin-right:2px}.mr4{margin-right:4px}.el-select,.el-cascader,.el-form--inline .el-form-item{display:block;width:100%}.el-card{height:100%}.el-date-editor{--el-date-editor-width: 100%}[data-v-a40007cc] .el-empty__image{width:100%}.page-container[data-v-130b19d7]{position:relative}.page-container .header-operate[data-v-130b19d7]{position:sticky;top:0;z-index:999}.page-container .submit-box[data-v-130b19d7]{display:flex;align-items:center;justify-content:flex-end}.page-container .submit-box-l[data-v-130b19d7]{width:360px;margin-right:24px}.act-table .table-pagination[data-v-3c7bb62d]{padding:12px 4px;justify-content:flex-end}.search-module-container[data-v-810f647f] .el-form-item--default{margin-bottom:12px}.search-module-container .form-content[data-v-810f647f]{display:grid;grid-template-columns:repeat(var(--table-query-row-width),1fr);gap:12px 24px;padding:12px 12px 0}.search-module-container .form-content .search-form-btn[data-v-810f647f]{justify-self:end;align-self:start;grid-column-start:var(--table-query-row-width);grid-column-end:var(--table-query-row-width)}.header-operate-container[data-v-67a827c3]{display:flex;align-items:center;justify-content:flex-end}.header-operate-container .el-btn[data-v-67a827c3]{margin:6px}.card-header[data-v-713d8e92]{display:flex;align-items:center}.card-header-operate[data-v-713d8e92]{margin-left:auto}.no-config[data-v-713d8e92]{line-height:32px;font-weight:700}.no-config-field[data-v-713d8e92]{margin-left:60px;color:red}.add-icon-btn[data-v-e5474dc6]{cursor:pointer;width:24px;height:24px;margin-left:6px}.table-post-params[data-v-e5474dc6]{position:relative;margin-bottom:12px}.table-post-params .submit-operate[data-v-e5474dc6]{position:absolute;top:-20px;right:-10px;display:flex;align-items:center}.table-post-params .submit-operate .match-opreate[data-v-e5474dc6]{cursor:pointer;width:12px;height:12px}.card-header[data-v-7aea1297]{display:flex;align-items:center}.card-header-operate[data-v-7aea1297]{margin-left:auto}.form-list[data-v-7aea1297]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-7aea1297]:last-child{border:none}.config-list-operate[data-v-7aea1297]{display:flex;align-items:center;justify-content:flex-end}.card-header[data-v-d50513ad]{display:flex;align-items:center}.card-header-operate[data-v-d50513ad]{margin-left:auto}.form-list[data-v-d50513ad]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-d50513ad]:last-child{border:none}.config-list-operate[data-v-d50513ad]{display:flex;align-items:center;justify-content:flex-end}.add-icon-btn[data-v-599e2ff7]{cursor:pointer;width:24px;height:24px;margin-left:6px}.condition-box[data-v-599e2ff7]{display:flex;justify-content:center}.condition-box[data-v-599e2ff7] .el-form-item__content{flex:0;min-width:300px}.submit-operate[data-v-599e2ff7]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-599e2ff7]{cursor:pointer;width:20px;height:20px}.add-icon-btn[data-v-4134748b]{cursor:pointer;width:24px;height:24px;margin-left:6px}.submit-operate[data-v-4134748b]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-4134748b]{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}.ml6{margin-left:6px!important}.ml4{margin-left:4px!important}.mr6{margin-right:6px}.mr2{margin-right:2px}.mr4{margin-right:4px}.el-select,.el-cascader,.el-form--inline .el-form-item{display:block;width:100%}.el-card{height:100%}.el-date-editor{--el-date-editor-width: 100%}[data-v-8127c0e5] .el-empty__image{width:100%}.page-container[data-v-130b19d7]{position:relative}.page-container .header-operate[data-v-130b19d7]{position:sticky;top:0;z-index:999}.page-container .submit-box[data-v-130b19d7]{display:flex;align-items:center;justify-content:flex-end}.page-container .submit-box-l[data-v-130b19d7]{width:360px;margin-right:24px}.act-table .table-pagination[data-v-3c7bb62d]{padding:12px 4px;justify-content:flex-end}.search-module-container[data-v-810f647f] .el-form-item--default{margin-bottom:12px}.search-module-container .form-content[data-v-810f647f]{display:grid;grid-template-columns:repeat(var(--table-query-row-width),1fr);gap:12px 24px;padding:12px 12px 0}.search-module-container .form-content .search-form-btn[data-v-810f647f]{justify-self:end;align-self:start;grid-column-start:var(--table-query-row-width);grid-column-end:var(--table-query-row-width)}.header-operate-container[data-v-67a827c3]{display:flex;align-items:center;justify-content:flex-end}.header-operate-container .el-btn[data-v-67a827c3]{margin:6px}.card-header[data-v-53e47c95]{display:flex;align-items:center}.card-header-operate[data-v-53e47c95]{margin-left:auto}.no-config[data-v-53e47c95]{line-height:32px;font-weight:700}.no-config-field[data-v-53e47c95]{margin-left:60px;color:red}.add-icon-btn[data-v-e5474dc6]{cursor:pointer;width:24px;height:24px;margin-left:6px}.table-post-params[data-v-e5474dc6]{position:relative;margin-bottom:12px}.table-post-params .submit-operate[data-v-e5474dc6]{position:absolute;top:-20px;right:-10px;display:flex;align-items:center}.table-post-params .submit-operate .match-opreate[data-v-e5474dc6]{cursor:pointer;width:12px;height:12px}.card-header[data-v-709fc688]{display:flex;align-items:center}.card-header-operate[data-v-709fc688]{margin-left:auto}.form-list[data-v-709fc688]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-709fc688]:last-child{border:none}.config-list-operate[data-v-709fc688]{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-ea742434]{cursor:pointer;width:24px;height:24px;margin-left:6px}.condition-box[data-v-ea742434]{display:flex;justify-content:center}.condition-box[data-v-ea742434] .el-form-item__content{flex:0;min-width:300px}.submit-operate[data-v-ea742434]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-ea742434]{cursor:pointer;width:20px;height:20px}.add-icon-btn[data-v-7c269645]{cursor:pointer;width:24px;height:24px;margin-left:6px}.submit-operate[data-v-7c269645]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-7c269645]{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,10 +0,0 @@
1
- import { openBlock as e, createElementBlock as t } from "vue";
2
- const o = { class: "dashboard-container" }, n = {
3
- __name: "dashboardTest",
4
- setup(a) {
5
- return (r, s) => (e(), t("div", o));
6
- }
7
- };
8
- export {
9
- n as default
10
- };