act-plus 1.1.74 → 1.1.76

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