act-plus 1.1.23 → 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.
Files changed (106) hide show
  1. package/act-plus.js +6 -5
  2. package/act-plus.umd.cjs +87 -1733
  3. package/lib/configBtns-63d416ef.js +152 -0
  4. package/lib/{configFileds-4633be91.js → configFileds-105ca288.js} +13 -11
  5. package/lib/{configTable-160a99e8.js → configTable-5bf09aac.js} +33 -31
  6. package/lib/{dialogAddField-a8db1c57.js → dialogAddField-bb493c88.js} +6 -4
  7. package/lib/{dialogConfigBtn-e5c41ad9.js → dialogConfigBtn-1fcd1496.js} +57 -55
  8. package/lib/{dialogSiteComponentsParams-05a400cc.js → dialogSiteComponentsParams-708737d2.js} +1 -1
  9. package/lib/{index-28cfa770.js → index-6b7ddc83.js} +74 -65
  10. package/lib/{index-44e2732a.js → index-740fe217.js} +10 -8
  11. package/lib/{index-7a1700c3.js → index-9071c381.js} +12 -10
  12. package/lib/{index-421ea84f.js → index-9bd009b2.js} +32 -30
  13. package/lib/index-ba8fa827.js +61597 -0
  14. package/lib/{index-cceb15dd.js → index-f8e81c41.js} +126 -148
  15. package/package.json +2 -6
  16. package/style.css +1 -1
  17. package/assets/css.worker-1af1972f.js +0 -84
  18. package/assets/editor.worker-df55e1ff.js +0 -8
  19. package/assets/html.worker-38c267f1.js +0 -456
  20. package/assets/json.worker-bf861c27.js +0 -39
  21. package/assets/ts.worker-e151483b.js +0 -33972
  22. package/lib/abap-1354785f.js +0 -1314
  23. package/lib/apex-279d4f27.js +0 -315
  24. package/lib/azcli-ba812c55.js +0 -74
  25. package/lib/bat-4d77495d.js +0 -95
  26. package/lib/bicep-7b240724.js +0 -108
  27. package/lib/cameligo-5d2daeb8.js +0 -168
  28. package/lib/clojure-b7ea12a3.js +0 -754
  29. package/lib/coffee-1a8cfbf4.js +0 -228
  30. package/lib/configBtns-c51c642b.js +0 -150
  31. package/lib/cpp-642b10c4.js +0 -387
  32. package/lib/csharp-d987ddad.js +0 -320
  33. package/lib/csp-96407af0.js +0 -57
  34. package/lib/css-5dd354ac.js +0 -186
  35. package/lib/cssMode-55e3e2b9.js +0 -1448
  36. package/lib/cypher-11e5a4b6.js +0 -262
  37. package/lib/dart-5d209f63.js +0 -270
  38. package/lib/dockerfile-8739cff7.js +0 -132
  39. package/lib/ecl-a20c5155.js +0 -454
  40. package/lib/elixir-8b028584.js +0 -467
  41. package/lib/flow9-0dea2e73.js +0 -141
  42. package/lib/freemarker2-86429a9d.js +0 -646
  43. package/lib/fsharp-49a70fad.js +0 -210
  44. package/lib/go-46e3b371.js +0 -208
  45. package/lib/graphql-51a577e5.js +0 -141
  46. package/lib/handlebars-dcad112f.js +0 -394
  47. package/lib/hcl-56b85754.js +0 -177
  48. package/lib/html-95cf87e3.js +0 -284
  49. package/lib/htmlMode-93d4ea14.js +0 -1458
  50. package/lib/index-22ab90dc.js +0 -162522
  51. package/lib/index-e2f2023d.js +0 -35
  52. package/lib/ini-1d58d82f.js +0 -68
  53. package/lib/java-cd017f60.js +0 -221
  54. package/lib/javascript-55252557.js +0 -78
  55. package/lib/jsonMode-b73c28d1.js +0 -1869
  56. package/lib/julia-a0caf483.js +0 -496
  57. package/lib/kotlin-c6e52a56.js +0 -245
  58. package/lib/less-718543b4.js +0 -168
  59. package/lib/lexon-5e6e7a44.js +0 -151
  60. package/lib/liquid-c923578c.js +0 -241
  61. package/lib/lua-f159160b.js +0 -157
  62. package/lib/m3-aadaf771.js +0 -210
  63. package/lib/markdown-9b448c46.js +0 -202
  64. package/lib/mips-161e49ce.js +0 -194
  65. package/lib/msdax-f65cb1e6.js +0 -377
  66. package/lib/mysql-24549dd1.js +0 -875
  67. package/lib/objective-c-e129a5ca.js +0 -188
  68. package/lib/pascal-4ccdf5ce.js +0 -245
  69. package/lib/pascaligo-a9603dcd.js +0 -158
  70. package/lib/perl-ba1fb97a.js +0 -599
  71. package/lib/pgsql-89978310.js +0 -843
  72. package/lib/php-987b9d87.js +0 -471
  73. package/lib/pla-96c2695d.js +0 -131
  74. package/lib/postiats-7b52ebac.js +0 -544
  75. package/lib/powerquery-8954ec26.js +0 -890
  76. package/lib/powershell-f00d0274.js +0 -233
  77. package/lib/protobuf-3eb85f80.js +0 -422
  78. package/lib/pug-6fab415a.js +0 -393
  79. package/lib/python-319c4cbb.js +0 -262
  80. package/lib/qsharp-4792f872.js +0 -282
  81. package/lib/r-630f5d6b.js +0 -245
  82. package/lib/razor-9a8bae51.js +0 -515
  83. package/lib/redis-276b8288.js +0 -298
  84. package/lib/redshift-520a7359.js +0 -806
  85. package/lib/restructuredtext-4676a3fc.js +0 -162
  86. package/lib/ruby-764137cd.js +0 -444
  87. package/lib/rust-97f8f6e1.js +0 -337
  88. package/lib/sb-8c22f14c.js +0 -110
  89. package/lib/scala-c68c650c.js +0 -353
  90. package/lib/scheme-e6a52cb0.js +0 -114
  91. package/lib/scss-45104c77.js +0 -244
  92. package/lib/shell-09452d42.js +0 -224
  93. package/lib/solidity-d4979008.js +0 -1351
  94. package/lib/sophia-21995caf.js +0 -190
  95. package/lib/sparql-5088743c.js +0 -193
  96. package/lib/sql-63ec8e76.js +0 -818
  97. package/lib/st-fa9ab362.js +0 -414
  98. package/lib/swift-abdf1835.js +0 -315
  99. package/lib/systemverilog-a4f858ed.js +0 -556
  100. package/lib/tcl-8adf937f.js +0 -232
  101. package/lib/tsMode-7111578e.js +0 -792
  102. package/lib/twig-404eb73e.js +0 -323
  103. package/lib/typescript-0c5e909b.js +0 -330
  104. package/lib/vb-e21e8153.js +0 -364
  105. package/lib/xml-acd745c7.js +0 -98
  106. package/lib/yaml-c114fa81.js +0 -187
@@ -1,35 +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-22ab90dc.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
- const M = he.create({
6
- baseURL: "",
7
- // ""
8
- timeout: 15e3
9
- });
10
- M.interceptors.request.use(
11
- (r) => {
12
- let b = sessionStorage.getItem("accessToken");
13
- 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;
14
- },
15
- (r) => Promise.reject(r)
16
- );
17
- M.interceptors.response.use(
18
- (r) => {
19
- const b = r.data;
20
- if (b.code == 200)
21
- return b;
22
- if (b.code == 401)
23
- sessionStorage.clear(), Ve.replace("/"), Fe(), G.error({ title: "错误", message: "登陆超时,请重新登录" });
24
- else
25
- return G.error({ title: "错误", message: b.msg }), Promise.reject(b.msg);
26
- },
27
- (r) => {
28
- if (r.response.status != -1)
29
- return Promise.reject(r);
30
- }
31
- );
32
- const Ne = { class: "no-config-field" }, Ue = { class: "dialog-footer" }, ke = {
5
+ import "js-base64";
6
+ import "monaco-editor";
7
+ const Ke = { class: "no-config-field" }, we = { class: "dialog-footer" }, Ne = {
33
8
  __name: "index",
34
9
  props: {
35
10
  visible: { type: Boolean, default: !1 },
@@ -37,272 +12,275 @@ const Ne = { class: "no-config-field" }, Ue = { class: "dialog-footer" }, ke = {
37
12
  data: { type: Object, default: () => ({}) }
38
13
  },
39
14
  emits: ["update:visible", "refresh"],
40
- setup(r, { emit: b }) {
41
- const Q = L(() => import("./index-e2f2023d.js")), X = L(() => import("./index-22ab90dc.js").then((o) => o.n)), Z = L(() => import("./index-22ab90dc.js").then((o) => o.l)), { t: c } = De(), I = R("loadComponents"), E = R("formatDataType"), O = R("globalProps"), j = b, u = r;
42
- 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((() => ({
43
18
  btnLoading: !1
44
- }))()), N = $([]), a = $({}), U = $(null), ee = {};
45
- 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) => {
46
21
  if (["input", "textarea"].includes(o.fieldType))
47
22
  return "blur";
48
23
  if (["select", "multipleSelect", "datetimerange", "treeSelect", "provinceCascade"].includes(o.fieldType))
49
24
  return "change";
50
- }, ae = (o) => {
25
+ }, oe = (o) => {
51
26
  if (!["input", "textarea"].includes(o) && ["multipleSelect", "dateRange"].includes(o))
52
27
  return [];
53
- }, te = (o, f) => {
28
+ }, ae = (o, f) => {
54
29
  if (["string"].includes(f))
55
30
  return o.join(";");
56
31
  if (["number"].includes(f))
57
32
  return Number(o);
58
33
  if (["array"].includes(f))
59
34
  return o;
60
- }, de = (o) => {
35
+ }, te = (o) => {
61
36
  if (["multipleSelect"].includes(o.fieldType))
62
37
  return u.data.rowData[o.fieldKey] ? u.data.rowData[o.fieldKey].split(";") : [];
63
38
  if (["dateRange"].includes(o.fieldType)) {
64
39
  const f = o.fieldKey.split("&");
65
- 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];
66
41
  }
67
42
  return u.data.rowData[o.fieldKey];
68
- }, 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 });
69
44
  me(
70
45
  () => u.visible,
71
46
  async (o, f) => {
72
- o && (u.data.formList.sort((s, V) => s.sort - V.sort).forEach(async (s) => {
73
- 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);
74
- const { isFiledCustom: V, customComponentName: m, customComponentUrl: D } = s.customFiledsComponentes;
75
- if (V && !s.customFiledsComponentes[m]) {
76
- const F = await I(D, m);
77
- 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;
78
53
  }
79
- }), console.log(u.data.formList), N.value = u.data.formList || []);
54
+ }), console.log(u.data.formList), w.value = u.data.formList || []);
80
55
  }
81
56
  );
82
- const se = (o) => {
83
- k(), o();
84
- }, k = () => {
85
- 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);
86
61
  }, ne = (o) => {
87
62
  o && o.validate((f) => {
88
63
  if (f) {
89
- C.btnLoading = !0;
90
- const { dataItem: s, rowData: V } = u.data;
91
- let m = { ..._e(a.value) };
92
- Object.keys(m).forEach((d) => {
93
- d.includes("&") ? m[d].split("&").forEach((P, S) => {
94
- m[P] = m[d][S];
95
- }) : 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"));
96
71
  });
97
- 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), {});
98
- re({
99
- ...m,
100
- ...D,
101
- ...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
102
77
  }).then((d) => {
103
78
  try {
104
- we({ title: c("act.tip"), message: c("act.saveSuccessfully"), type: "success", duration: 2500 }), k(), j("refresh");
105
- } catch (i) {
106
- 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);
107
82
  }
108
- C.btnLoading = !1;
83
+ g.btnLoading = !1;
109
84
  }).catch((d) => {
110
- console.error(d), C.btnLoading = !1;
85
+ console.error(d), g.btnLoading = !1;
111
86
  });
112
87
  }
113
88
  });
114
89
  };
115
90
  return (o, f) => {
116
- var q;
117
- 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");
118
- 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, {
119
94
  "model-value": u.visible,
120
95
  title: u.title,
121
96
  top: "5vh",
122
- width: (q = r.data.formConfig) == null ? void 0 : q.dialogWidth,
97
+ width: (Y = C.data.formConfig) == null ? void 0 : Y.dialogWidth,
123
98
  "append-to-body": "",
124
99
  "destroy-on-close": "",
125
100
  "close-on-click-modal": !1,
126
- "before-close": se
101
+ "before-close": re
127
102
  }, {
128
- footer: g(() => [
129
- H("span", Ue, [
130
- T(Y, {
131
- loading: l(C).btnLoading,
132
- onClick: k
103
+ footer: _(() => [
104
+ H("span", we, [
105
+ $(q, {
106
+ loading: l(g).btnLoading,
107
+ onClick: U
133
108
  }, {
134
- default: g(() => [
135
- x(K(l(c)("act.cancel")), 1)
109
+ default: _(() => [
110
+ R(T(l(i)("act.cancel")), 1)
136
111
  ]),
137
112
  _: 1
138
113
  }, 8, ["loading"]),
139
- T(Y, {
114
+ be((r(), c(q, {
140
115
  type: "primary",
141
- loading: l(C).btnLoading,
142
- onClick: f[1] || (f[1] = (v) => ne(l(U)))
116
+ loading: l(g).btnLoading,
117
+ onClick: f[1] || (f[1] = (P) => ne(l(N)))
143
118
  }, {
144
- default: g(() => [
145
- x(K(l(c)("act.save")), 1)
119
+ default: _(() => [
120
+ R(T(l(i)("act.save")), 1)
146
121
  ]),
147
122
  _: 1
148
- }, 8, ["loading"])
123
+ }, 8, ["loading"])), [
124
+ [ue]
125
+ ])
149
126
  ])
150
127
  ]),
151
- default: g(() => {
152
- var v, B;
128
+ default: _(() => {
129
+ var P, j;
153
130
  return [
154
- T(ce, {
131
+ $(ie, {
155
132
  ref_key: "formRef",
156
- ref: U,
133
+ ref: N,
157
134
  model: l(a),
158
135
  "label-suffix": ":",
159
- "label-width": (v = r.data.formConfig) == null ? void 0 : v.formLabelWidth,
160
- "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
161
138
  }, {
162
- default: g(() => [
163
- T(ie, { gutter: 40 }, {
164
- default: g(() => [
165
- (n(!0), w(A, null, W(l(N), (e, z) => (n(), p(S, {
166
- span: le(e),
167
- 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
168
145
  }, {
169
- default: g(() => [
170
- e.customFiledsComponentes.isFiledCustom ? (n(), w(A, { key: 1 }, [
171
- 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]), {
172
149
  key: 0,
173
150
  fieldCofnigItem: e,
174
151
  rowData: u.data.rowData,
175
152
  form: l(a),
176
- "onUpdate:form": f[0] || (f[0] = (t) => be(a) ? a.value = t : a = t)
177
- }, 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", {
178
155
  class: "no-config",
179
- key: z
156
+ key: B
180
157
  }, [
181
- H("span", Ne, "【" + K(e.fieldName) + "】", 1),
182
- x(K(l(c)("act.fieldCustom")), 1)
158
+ H("span", Ke, "【" + T(e.fieldName) + "】", 1),
159
+ R(T(l(i)("act.fieldCustom")), 1)
183
160
  ]))
184
- ], 64)) : (n(), p(P, {
161
+ ], 64)) : (r(), c(k, {
185
162
  key: 0,
186
163
  label: e.fieldName,
187
164
  prop: e.fieldKey,
188
- 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) }]
189
166
  }, {
190
- default: g(() => [
191
- e.fieldType === "input" ? (n(), p(s, h({
167
+ default: _(() => [
168
+ e.fieldType === "input" ? (r(), c(n, b({
192
169
  key: 0,
193
170
  modelValue: l(a)[e.fieldKey],
194
171
  "onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
195
- placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
172
+ placeholder: `${l(i)("act.inputPlaceholder")}${e.fieldName}`,
196
173
  clearable: "",
197
174
  ref_for: !0
198
- }, _(e), {
175
+ }, y(e), {
199
176
  disabled: e.isFormDisabled
200
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : J("", !0),
201
- 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({
202
179
  key: 1,
203
180
  modelValue: l(a)[e.fieldKey],
204
181
  "onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
205
- placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
182
+ placeholder: `${l(i)("act.inputPlaceholder")}${e.fieldName}`,
206
183
  clearable: "",
207
184
  ref_for: !0
208
- }, _(e), {
185
+ }, y(e), {
209
186
  disabled: e.isFormDisabled
210
- }), 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({
211
188
  key: 2,
212
189
  modelValue: l(a)[e.fieldKey],
213
190
  "onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
214
- placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
191
+ placeholder: `${l(i)("act.inputPlaceholder")}${e.fieldName}`,
215
192
  rows: 4,
216
193
  ref_for: !0
217
- }, _(e), {
194
+ }, y(e), {
218
195
  type: "textarea",
219
196
  disabled: e.isFormDisabled
220
- }), 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({
221
198
  key: 3,
222
199
  modelValue: l(a)[e.fieldKey],
223
200
  "onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
224
- placeholder: `${l(c)("act.selectPlaceholder")}${e.fieldName}`,
201
+ placeholder: `${l(i)("act.selectPlaceholder")}${e.fieldName}`,
225
202
  clearable: "",
226
203
  filterable: "",
227
204
  ref_for: !0
228
- }, _(e), {
205
+ }, y(e), {
229
206
  multiple: e.fieldType === "multipleSelect",
230
207
  disabled: e.isFormDisabled
231
208
  }), {
232
- default: g(() => [
233
- (n(!0), w(A, null, W(e.dataList, (t, pe) => (n(), p(V, {
234
- key: pe,
209
+ default: _(() => [
210
+ (r(!0), K(x, null, z(e.dataList, (t, fe) => (r(), c(h, {
211
+ key: fe,
235
212
  label: t.key,
236
213
  value: t.value
237
214
  }, null, 8, ["label", "value"]))), 128))
238
215
  ]),
239
216
  _: 2
240
- }, 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({
241
218
  key: 4,
242
219
  modelValue: l(a)[e.fieldKey],
243
220
  "onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
244
221
  options: e.dataList,
245
- props: { ...l(Te) },
246
- placeholder: `${l(c)("act.selectPlaceholder")}${e.fieldName}`,
222
+ props: { ...l(Ce) },
223
+ placeholder: `${l(i)("act.selectPlaceholder")}${e.fieldName}`,
247
224
  clearable: "",
248
225
  filterable: "",
249
226
  ref_for: !0
250
- }, _(e), {
227
+ }, y(e), {
251
228
  disabled: e.isFormDisabled,
252
229
  multiple: e.fieldType === "virtualizedMultipleSelect"
253
- }), 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({
254
231
  key: 5,
255
232
  modelValue: l(a)[e.fieldKey],
256
233
  "onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
257
234
  type: "date",
258
- placeholder: `${l(c)("act.selectPlaceholder")}${l(c)("act.time")}`,
235
+ placeholder: `${l(i)("act.selectPlaceholder")}${l(i)("act.time")}`,
259
236
  "value-format": "YYYY-MM-DD HH:mm:ss",
260
237
  ref_for: !0
261
- }, _(e), {
238
+ }, y(e), {
262
239
  disabled: e.isFormDisabled
263
- }), 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({
264
241
  key: 6,
265
242
  modelValue: l(a)[e.fieldKey],
266
243
  "onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
267
244
  type: "daterange",
268
- "start-placeholder": l(c)("act.startTime"),
269
- "end-placeholder": l(c)("act.endTime"),
245
+ "start-placeholder": l(i)("act.startTime"),
246
+ "end-placeholder": l(i)("act.endTime"),
270
247
  "value-format": "YYYY-MM-DD HH:mm:ss",
271
248
  ref_for: !0
272
- }, _(e), {
249
+ }, y(e), {
273
250
  disabled: e.isFormDisabled
274
- }), 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({
275
252
  key: 7,
276
253
  modelValue: l(a)[e.fieldKey],
277
254
  "onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
278
255
  options: e.dataList,
279
- props: l(Ke),
256
+ props: l(De),
280
257
  clearable: "",
281
258
  filterable: "",
282
- placeholder: `${l(c)("act.selectPlaceholder")}${e.fieldName}`,
259
+ placeholder: `${l(i)("act.selectPlaceholder")}${e.fieldName}`,
283
260
  ref_for: !0
284
- }, _(e), {
261
+ }, y(e), {
285
262
  disabled: e.isFormDisabled
286
- }), 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, {
287
264
  key: 8,
288
265
  modelValue: l(a)[e.fieldKey],
289
266
  "onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
290
267
  "active-value": !0,
291
268
  "inactive-value": !1
292
- }, 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({
293
270
  key: 9,
294
271
  class: "form-upload",
295
272
  modelValue: l(a)[e.fieldKey],
296
273
  "onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
274
+ request: l(M),
297
275
  ref_for: !0
298
- }, _(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({
299
277
  key: 10,
300
278
  modelValue: l(a)[e.fieldKey],
301
279
  "onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
302
280
  disabled: e.isFormDisabled,
303
- placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
281
+ placeholder: `${l(i)("act.inputPlaceholder")}${e.fieldName}`,
304
282
  ref_for: !0
305
- }, _(e)), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : J("", !0)
283
+ }, y(e)), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : W("", !0)
306
284
  ]),
307
285
  _: 2
308
286
  }, 1032, ["label", "prop", "rules"]))
@@ -321,7 +299,7 @@ const Ne = { class: "no-config-field" }, Ue = { class: "dialog-footer" }, ke = {
321
299
  }, 8, ["model-value", "title", "width"]);
322
300
  };
323
301
  }
324
- }, $e = /* @__PURE__ */ Ce(ke, [["__scopeId", "data-v-4734dc60"]]);
302
+ }, Re = /* @__PURE__ */ ge(Ne, [["__scopeId", "data-v-58ff2aa1"]]);
325
303
  export {
326
- $e as default
304
+ Re as default
327
305
  };
package/package.json CHANGED
@@ -1,17 +1,13 @@
1
1
  {
2
2
  "name": "act-plus",
3
- "version": "1.1.23",
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": {