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.
- package/act-plus.js +6 -5
- package/act-plus.umd.cjs +87 -1733
- package/lib/configBtns-63d416ef.js +152 -0
- package/lib/{configFileds-4633be91.js → configFileds-105ca288.js} +13 -11
- package/lib/{configTable-160a99e8.js → configTable-5bf09aac.js} +33 -31
- package/lib/{dialogAddField-a8db1c57.js → dialogAddField-bb493c88.js} +6 -4
- package/lib/{dialogConfigBtn-e5c41ad9.js → dialogConfigBtn-1fcd1496.js} +57 -55
- package/lib/{dialogSiteComponentsParams-05a400cc.js → dialogSiteComponentsParams-708737d2.js} +1 -1
- package/lib/{index-28cfa770.js → index-6b7ddc83.js} +74 -65
- package/lib/{index-44e2732a.js → index-740fe217.js} +10 -8
- package/lib/{index-7a1700c3.js → index-9071c381.js} +12 -10
- package/lib/{index-421ea84f.js → index-9bd009b2.js} +32 -30
- package/lib/index-ba8fa827.js +61597 -0
- package/lib/{index-cceb15dd.js → index-f8e81c41.js} +126 -148
- package/package.json +2 -6
- package/style.css +1 -1
- package/assets/css.worker-1af1972f.js +0 -84
- package/assets/editor.worker-df55e1ff.js +0 -8
- package/assets/html.worker-38c267f1.js +0 -456
- package/assets/json.worker-bf861c27.js +0 -39
- package/assets/ts.worker-e151483b.js +0 -33972
- package/lib/abap-1354785f.js +0 -1314
- package/lib/apex-279d4f27.js +0 -315
- package/lib/azcli-ba812c55.js +0 -74
- package/lib/bat-4d77495d.js +0 -95
- package/lib/bicep-7b240724.js +0 -108
- package/lib/cameligo-5d2daeb8.js +0 -168
- package/lib/clojure-b7ea12a3.js +0 -754
- package/lib/coffee-1a8cfbf4.js +0 -228
- package/lib/configBtns-c51c642b.js +0 -150
- package/lib/cpp-642b10c4.js +0 -387
- package/lib/csharp-d987ddad.js +0 -320
- package/lib/csp-96407af0.js +0 -57
- package/lib/css-5dd354ac.js +0 -186
- package/lib/cssMode-55e3e2b9.js +0 -1448
- package/lib/cypher-11e5a4b6.js +0 -262
- package/lib/dart-5d209f63.js +0 -270
- package/lib/dockerfile-8739cff7.js +0 -132
- package/lib/ecl-a20c5155.js +0 -454
- package/lib/elixir-8b028584.js +0 -467
- package/lib/flow9-0dea2e73.js +0 -141
- package/lib/freemarker2-86429a9d.js +0 -646
- package/lib/fsharp-49a70fad.js +0 -210
- package/lib/go-46e3b371.js +0 -208
- package/lib/graphql-51a577e5.js +0 -141
- package/lib/handlebars-dcad112f.js +0 -394
- package/lib/hcl-56b85754.js +0 -177
- package/lib/html-95cf87e3.js +0 -284
- package/lib/htmlMode-93d4ea14.js +0 -1458
- package/lib/index-22ab90dc.js +0 -162522
- package/lib/index-e2f2023d.js +0 -35
- package/lib/ini-1d58d82f.js +0 -68
- package/lib/java-cd017f60.js +0 -221
- package/lib/javascript-55252557.js +0 -78
- package/lib/jsonMode-b73c28d1.js +0 -1869
- package/lib/julia-a0caf483.js +0 -496
- package/lib/kotlin-c6e52a56.js +0 -245
- package/lib/less-718543b4.js +0 -168
- package/lib/lexon-5e6e7a44.js +0 -151
- package/lib/liquid-c923578c.js +0 -241
- package/lib/lua-f159160b.js +0 -157
- package/lib/m3-aadaf771.js +0 -210
- package/lib/markdown-9b448c46.js +0 -202
- package/lib/mips-161e49ce.js +0 -194
- package/lib/msdax-f65cb1e6.js +0 -377
- package/lib/mysql-24549dd1.js +0 -875
- package/lib/objective-c-e129a5ca.js +0 -188
- package/lib/pascal-4ccdf5ce.js +0 -245
- package/lib/pascaligo-a9603dcd.js +0 -158
- package/lib/perl-ba1fb97a.js +0 -599
- package/lib/pgsql-89978310.js +0 -843
- package/lib/php-987b9d87.js +0 -471
- package/lib/pla-96c2695d.js +0 -131
- package/lib/postiats-7b52ebac.js +0 -544
- package/lib/powerquery-8954ec26.js +0 -890
- package/lib/powershell-f00d0274.js +0 -233
- package/lib/protobuf-3eb85f80.js +0 -422
- package/lib/pug-6fab415a.js +0 -393
- package/lib/python-319c4cbb.js +0 -262
- package/lib/qsharp-4792f872.js +0 -282
- package/lib/r-630f5d6b.js +0 -245
- package/lib/razor-9a8bae51.js +0 -515
- package/lib/redis-276b8288.js +0 -298
- package/lib/redshift-520a7359.js +0 -806
- package/lib/restructuredtext-4676a3fc.js +0 -162
- package/lib/ruby-764137cd.js +0 -444
- package/lib/rust-97f8f6e1.js +0 -337
- package/lib/sb-8c22f14c.js +0 -110
- package/lib/scala-c68c650c.js +0 -353
- package/lib/scheme-e6a52cb0.js +0 -114
- package/lib/scss-45104c77.js +0 -244
- package/lib/shell-09452d42.js +0 -224
- package/lib/solidity-d4979008.js +0 -1351
- package/lib/sophia-21995caf.js +0 -190
- package/lib/sparql-5088743c.js +0 -193
- package/lib/sql-63ec8e76.js +0 -818
- package/lib/st-fa9ab362.js +0 -414
- package/lib/swift-abdf1835.js +0 -315
- package/lib/systemverilog-a4f858ed.js +0 -556
- package/lib/tcl-8adf937f.js +0 -232
- package/lib/tsMode-7111578e.js +0 -792
- package/lib/twig-404eb73e.js +0 -323
- package/lib/typescript-0c5e909b.js +0 -330
- package/lib/vb-e21e8153.js +0 -364
- package/lib/xml-acd745c7.js +0 -98
- package/lib/yaml-c114fa81.js +0 -187
|
@@ -1,35 +1,10 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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
|
-
|
|
6
|
-
|
|
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(
|
|
41
|
-
const
|
|
42
|
-
let
|
|
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
|
-
}))()),
|
|
45
|
-
const
|
|
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
|
-
},
|
|
25
|
+
}, oe = (o) => {
|
|
51
26
|
if (!["input", "textarea"].includes(o) && ["multipleSelect", "dateRange"].includes(o))
|
|
52
27
|
return [];
|
|
53
|
-
},
|
|
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
|
-
},
|
|
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((
|
|
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
|
-
},
|
|
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((
|
|
73
|
-
|
|
74
|
-
const { isFiledCustom:
|
|
75
|
-
if (
|
|
76
|
-
const
|
|
77
|
-
|
|
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),
|
|
54
|
+
}), console.log(u.data.formList), w.value = u.data.formList || []);
|
|
80
55
|
}
|
|
81
56
|
);
|
|
82
|
-
const
|
|
83
|
-
|
|
84
|
-
},
|
|
85
|
-
|
|
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
|
-
|
|
90
|
-
const { dataItem:
|
|
91
|
-
let
|
|
92
|
-
Object.keys(
|
|
93
|
-
d.includes("&") ?
|
|
94
|
-
|
|
95
|
-
}) : Array.isArray(
|
|
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
|
|
98
|
-
|
|
99
|
-
...
|
|
100
|
-
...
|
|
101
|
-
...
|
|
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
|
-
|
|
105
|
-
} catch (
|
|
106
|
-
console.error(
|
|
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
|
-
|
|
83
|
+
g.btnLoading = !1;
|
|
109
84
|
}).catch((d) => {
|
|
110
|
-
console.error(d),
|
|
85
|
+
console.error(d), g.btnLoading = !1;
|
|
111
86
|
});
|
|
112
87
|
}
|
|
113
88
|
});
|
|
114
89
|
};
|
|
115
90
|
return (o, f) => {
|
|
116
|
-
var
|
|
117
|
-
const
|
|
118
|
-
return
|
|
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: (
|
|
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":
|
|
101
|
+
"before-close": re
|
|
127
102
|
}, {
|
|
128
|
-
footer:
|
|
129
|
-
H("span",
|
|
130
|
-
|
|
131
|
-
loading: l(
|
|
132
|
-
onClick:
|
|
103
|
+
footer: _(() => [
|
|
104
|
+
H("span", we, [
|
|
105
|
+
$(q, {
|
|
106
|
+
loading: l(g).btnLoading,
|
|
107
|
+
onClick: U
|
|
133
108
|
}, {
|
|
134
|
-
default:
|
|
135
|
-
|
|
109
|
+
default: _(() => [
|
|
110
|
+
R(T(l(i)("act.cancel")), 1)
|
|
136
111
|
]),
|
|
137
112
|
_: 1
|
|
138
113
|
}, 8, ["loading"]),
|
|
139
|
-
|
|
114
|
+
be((r(), c(q, {
|
|
140
115
|
type: "primary",
|
|
141
|
-
loading: l(
|
|
142
|
-
onClick: f[1] || (f[1] = (
|
|
116
|
+
loading: l(g).btnLoading,
|
|
117
|
+
onClick: f[1] || (f[1] = (P) => ne(l(N)))
|
|
143
118
|
}, {
|
|
144
|
-
default:
|
|
145
|
-
|
|
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:
|
|
152
|
-
var
|
|
128
|
+
default: _(() => {
|
|
129
|
+
var P, j;
|
|
153
130
|
return [
|
|
154
|
-
|
|
131
|
+
$(ie, {
|
|
155
132
|
ref_key: "formRef",
|
|
156
|
-
ref:
|
|
133
|
+
ref: N,
|
|
157
134
|
model: l(a),
|
|
158
135
|
"label-suffix": ":",
|
|
159
|
-
"label-width": (
|
|
160
|
-
"label-position": (
|
|
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:
|
|
163
|
-
|
|
164
|
-
default:
|
|
165
|
-
(
|
|
166
|
-
span:
|
|
167
|
-
key:
|
|
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:
|
|
170
|
-
e.customFiledsComponentes.isFiledCustom ? (
|
|
171
|
-
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) =>
|
|
177
|
-
}, null, 40, ["fieldCofnigItem", "rowData", "form"])) : (
|
|
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:
|
|
156
|
+
key: B
|
|
180
157
|
}, [
|
|
181
|
-
H("span",
|
|
182
|
-
|
|
158
|
+
H("span", Ke, "【" + T(e.fieldName) + "】", 1),
|
|
159
|
+
R(T(l(i)("act.fieldCustom")), 1)
|
|
183
160
|
]))
|
|
184
|
-
], 64)) : (
|
|
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(
|
|
165
|
+
rules: [{ required: e.isFormFieldRequired, message: l(i)("act.requiredMessage"), trigger: le(e) }]
|
|
189
166
|
}, {
|
|
190
|
-
default:
|
|
191
|
-
e.fieldType === "input" ? (
|
|
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(
|
|
172
|
+
placeholder: `${l(i)("act.inputPlaceholder")}${e.fieldName}`,
|
|
196
173
|
clearable: "",
|
|
197
174
|
ref_for: !0
|
|
198
|
-
},
|
|
175
|
+
}, y(e), {
|
|
199
176
|
disabled: e.isFormDisabled
|
|
200
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) :
|
|
201
|
-
e.fieldType === "inputNumber" ? (
|
|
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(
|
|
182
|
+
placeholder: `${l(i)("act.inputPlaceholder")}${e.fieldName}`,
|
|
206
183
|
clearable: "",
|
|
207
184
|
ref_for: !0
|
|
208
|
-
},
|
|
185
|
+
}, y(e), {
|
|
209
186
|
disabled: e.isFormDisabled
|
|
210
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "textarea" ? (
|
|
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(
|
|
191
|
+
placeholder: `${l(i)("act.inputPlaceholder")}${e.fieldName}`,
|
|
215
192
|
rows: 4,
|
|
216
193
|
ref_for: !0
|
|
217
|
-
},
|
|
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) ? (
|
|
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(
|
|
201
|
+
placeholder: `${l(i)("act.selectPlaceholder")}${e.fieldName}`,
|
|
225
202
|
clearable: "",
|
|
226
203
|
filterable: "",
|
|
227
204
|
ref_for: !0
|
|
228
|
-
},
|
|
205
|
+
}, y(e), {
|
|
229
206
|
multiple: e.fieldType === "multipleSelect",
|
|
230
207
|
disabled: e.isFormDisabled
|
|
231
208
|
}), {
|
|
232
|
-
default:
|
|
233
|
-
(
|
|
234
|
-
key:
|
|
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) ? (
|
|
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(
|
|
246
|
-
placeholder: `${l(
|
|
222
|
+
props: { ...l(Ce) },
|
|
223
|
+
placeholder: `${l(i)("act.selectPlaceholder")}${e.fieldName}`,
|
|
247
224
|
clearable: "",
|
|
248
225
|
filterable: "",
|
|
249
226
|
ref_for: !0
|
|
250
|
-
},
|
|
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" ? (
|
|
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(
|
|
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
|
-
},
|
|
238
|
+
}, y(e), {
|
|
262
239
|
disabled: e.isFormDisabled
|
|
263
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "dateRange" ? (
|
|
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(
|
|
269
|
-
"end-placeholder": l(
|
|
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
|
-
},
|
|
249
|
+
}, y(e), {
|
|
273
250
|
disabled: e.isFormDisabled
|
|
274
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled"])) : e.fieldType === "provinceCascade" ? (
|
|
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(
|
|
256
|
+
props: l(De),
|
|
280
257
|
clearable: "",
|
|
281
258
|
filterable: "",
|
|
282
|
-
placeholder: `${l(
|
|
259
|
+
placeholder: `${l(i)("act.selectPlaceholder")}${e.fieldName}`,
|
|
283
260
|
ref_for: !0
|
|
284
|
-
},
|
|
261
|
+
}, y(e), {
|
|
285
262
|
disabled: e.isFormDisabled
|
|
286
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (
|
|
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" ? (
|
|
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
|
-
},
|
|
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(
|
|
281
|
+
placeholder: `${l(i)("act.inputPlaceholder")}${e.fieldName}`,
|
|
304
282
|
ref_for: !0
|
|
305
|
-
},
|
|
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
|
-
},
|
|
302
|
+
}, Re = /* @__PURE__ */ ge(Ne, [["__scopeId", "data-v-58ff2aa1"]]);
|
|
325
303
|
export {
|
|
326
|
-
|
|
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.
|
|
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": {
|