act-plus 1.1.24 → 1.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/act-plus.js +4 -4
- package/act-plus.umd.cjs +76 -94
- package/lib/configBtns-63d416ef.js +152 -0
- package/lib/{configFileds-a045430e.js → configFileds-105ca288.js} +12 -11
- package/lib/{configTable-0285d3f8.js → configTable-5bf09aac.js} +4 -3
- package/lib/{dialogAddField-f474439d.js → dialogAddField-bb493c88.js} +5 -4
- package/lib/{dialogConfigBtn-c97ccee8.js → dialogConfigBtn-1fcd1496.js} +56 -55
- package/lib/{dialogSiteComponentsParams-e2c5b8dd.js → dialogSiteComponentsParams-708737d2.js} +1 -1
- package/lib/{index-36c9cd81.js → index-6b7ddc83.js} +73 -65
- package/lib/{index-7de949f6.js → index-740fe217.js} +9 -8
- package/lib/{index-3e20553c.js → index-9071c381.js} +4 -3
- package/lib/{index-f58e1535.js → index-9bd009b2.js} +4 -3
- package/lib/index-ba8fa827.js +61597 -0
- package/lib/{index-85deefc8.js → index-f8e81c41.js} +125 -148
- package/package.json +2 -6
- package/style.css +1 -1
- package/lib/configBtns-15591aad.js +0 -151
- package/lib/index-d0c3be37.js +0 -68438
- package/lib/index-e2f2023d.js +0 -35
|
@@ -1,36 +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
|
+
import "js-base64";
|
|
5
6
|
import "monaco-editor";
|
|
6
|
-
const
|
|
7
|
-
baseURL: "",
|
|
8
|
-
// ""
|
|
9
|
-
timeout: 15e3
|
|
10
|
-
});
|
|
11
|
-
M.interceptors.request.use(
|
|
12
|
-
(r) => {
|
|
13
|
-
let b = sessionStorage.getItem("accessToken");
|
|
14
|
-
return b && (r.headers.Authorization = "Bearer " + b), r.headers["Content-Type"] != "application/x-www-form-urlencoded" && (r.data = { ...r.data }, Reflect.has(r.data, "dynamicFilters") && (r.data.dynamicFilters = ge(JSON.stringify(r.data.dynamicFilters)))), r;
|
|
15
|
-
},
|
|
16
|
-
(r) => Promise.reject(r)
|
|
17
|
-
);
|
|
18
|
-
M.interceptors.response.use(
|
|
19
|
-
(r) => {
|
|
20
|
-
const b = r.data;
|
|
21
|
-
if (b.code == 200)
|
|
22
|
-
return b;
|
|
23
|
-
if (b.code == 401)
|
|
24
|
-
sessionStorage.clear(), Ve.replace("/"), Fe(), G.error({ title: "错误", message: "登陆超时,请重新登录" });
|
|
25
|
-
else
|
|
26
|
-
return G.error({ title: "错误", message: b.msg }), Promise.reject(b.msg);
|
|
27
|
-
},
|
|
28
|
-
(r) => {
|
|
29
|
-
if (r.response.status != -1)
|
|
30
|
-
return Promise.reject(r);
|
|
31
|
-
}
|
|
32
|
-
);
|
|
33
|
-
const Ne = { class: "no-config-field" }, Ue = { class: "dialog-footer" }, ke = {
|
|
7
|
+
const Ke = { class: "no-config-field" }, we = { class: "dialog-footer" }, Ne = {
|
|
34
8
|
__name: "index",
|
|
35
9
|
props: {
|
|
36
10
|
visible: { type: Boolean, default: !1 },
|
|
@@ -38,272 +12,275 @@ const Ne = { class: "no-config-field" }, Ue = { class: "dialog-footer" }, ke = {
|
|
|
38
12
|
data: { type: Object, default: () => ({}) }
|
|
39
13
|
},
|
|
40
14
|
emits: ["update:visible", "refresh"],
|
|
41
|
-
setup(
|
|
42
|
-
const
|
|
43
|
-
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((() => ({
|
|
44
18
|
btnLoading: !1
|
|
45
|
-
}))()),
|
|
46
|
-
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) => {
|
|
47
21
|
if (["input", "textarea"].includes(o.fieldType))
|
|
48
22
|
return "blur";
|
|
49
23
|
if (["select", "multipleSelect", "datetimerange", "treeSelect", "provinceCascade"].includes(o.fieldType))
|
|
50
24
|
return "change";
|
|
51
|
-
},
|
|
25
|
+
}, oe = (o) => {
|
|
52
26
|
if (!["input", "textarea"].includes(o) && ["multipleSelect", "dateRange"].includes(o))
|
|
53
27
|
return [];
|
|
54
|
-
},
|
|
28
|
+
}, ae = (o, f) => {
|
|
55
29
|
if (["string"].includes(f))
|
|
56
30
|
return o.join(";");
|
|
57
31
|
if (["number"].includes(f))
|
|
58
32
|
return Number(o);
|
|
59
33
|
if (["array"].includes(f))
|
|
60
34
|
return o;
|
|
61
|
-
},
|
|
35
|
+
}, te = (o) => {
|
|
62
36
|
if (["multipleSelect"].includes(o.fieldType))
|
|
63
37
|
return u.data.rowData[o.fieldKey] ? u.data.rowData[o.fieldKey].split(";") : [];
|
|
64
38
|
if (["dateRange"].includes(o.fieldType)) {
|
|
65
39
|
const f = o.fieldKey.split("&");
|
|
66
|
-
return u.data.rowData[o.fieldKey] = f.map((
|
|
40
|
+
return u.data.rowData[o.fieldKey] = f.map((n) => u.data.rowData[n]), u.data.rowData[o.fieldKey];
|
|
67
41
|
}
|
|
68
42
|
return u.data.rowData[o.fieldKey];
|
|
69
|
-
},
|
|
43
|
+
}, de = (o) => M({ url: u.data.dataItem.requestUrl, method: "post", data: o });
|
|
70
44
|
me(
|
|
71
45
|
() => u.visible,
|
|
72
46
|
async (o, f) => {
|
|
73
|
-
o && (u.data.formList.sort((
|
|
74
|
-
|
|
75
|
-
const { isFiledCustom:
|
|
76
|
-
if (
|
|
77
|
-
const
|
|
78
|
-
|
|
47
|
+
o && (u.data.formList.sort((n, h) => n.sort - h.sort).forEach(async (n) => {
|
|
48
|
+
I[n.fieldKey] = { submitFieldType: n.fieldSubmitType, isFormSetValue: n.isFormSetValue }, a.value[n.fieldKey] = Object.keys(u.data.rowData).length && n.isFormSetValue ? te(n) : oe(n.fieldType);
|
|
49
|
+
const { isFiledCustom: h, customComponentName: p, customComponentUrl: F } = n.customFiledsComponentes;
|
|
50
|
+
if (h && !n.customFiledsComponentes[p]) {
|
|
51
|
+
const V = await Z(F, p);
|
|
52
|
+
n.customFiledsComponentes[p] = V;
|
|
79
53
|
}
|
|
80
|
-
}), console.log(u.data.formList),
|
|
54
|
+
}), console.log(u.data.formList), w.value = u.data.formList || []);
|
|
81
55
|
}
|
|
82
56
|
);
|
|
83
|
-
const
|
|
84
|
-
|
|
85
|
-
},
|
|
86
|
-
|
|
57
|
+
const re = (o) => {
|
|
58
|
+
U(), o();
|
|
59
|
+
}, U = () => {
|
|
60
|
+
w.value = [], N.value.resetFields(), O("update:visible", !1);
|
|
87
61
|
}, ne = (o) => {
|
|
88
62
|
o && o.validate((f) => {
|
|
89
63
|
if (f) {
|
|
90
|
-
|
|
91
|
-
const { dataItem:
|
|
92
|
-
let
|
|
93
|
-
Object.keys(
|
|
94
|
-
d.includes("&") ?
|
|
95
|
-
|
|
96
|
-
}) : 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"));
|
|
97
71
|
});
|
|
98
|
-
const
|
|
99
|
-
|
|
100
|
-
...
|
|
101
|
-
...
|
|
102
|
-
...
|
|
72
|
+
const F = n.submitFields.filter((d) => d.matchType == "default").reduce((d, s) => (s.submitFieldType === "string" && (d[s.submitFieldName] = s.matchFieldName.toString()), d), {}), V = n.submitFields.filter((d) => d.matchType == "match").reduce((d, s) => (Reflect.has(s, "submitFieldMatchOrigin") && s.submitFieldMatchOrigin != "rowData" ? Reflect.has(E.matchData, s.submitFieldMatchOrigin) && (d[s.submitFieldName] = A(s.submitFieldType, E.matchData[s.submitFieldMatchOrigin][s.matchFieldName])) : d[s.submitFieldName] = A(s.submitFieldType, h[s.matchFieldName]), d), {});
|
|
73
|
+
de({
|
|
74
|
+
...p,
|
|
75
|
+
...F,
|
|
76
|
+
...V
|
|
103
77
|
}).then((d) => {
|
|
104
78
|
try {
|
|
105
|
-
|
|
106
|
-
} catch (
|
|
107
|
-
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);
|
|
108
82
|
}
|
|
109
|
-
|
|
83
|
+
g.btnLoading = !1;
|
|
110
84
|
}).catch((d) => {
|
|
111
|
-
console.error(d),
|
|
85
|
+
console.error(d), g.btnLoading = !1;
|
|
112
86
|
});
|
|
113
87
|
}
|
|
114
88
|
});
|
|
115
89
|
};
|
|
116
90
|
return (o, f) => {
|
|
117
|
-
var
|
|
118
|
-
const
|
|
119
|
-
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, {
|
|
120
94
|
"model-value": u.visible,
|
|
121
95
|
title: u.title,
|
|
122
96
|
top: "5vh",
|
|
123
|
-
width: (
|
|
97
|
+
width: (Y = C.data.formConfig) == null ? void 0 : Y.dialogWidth,
|
|
124
98
|
"append-to-body": "",
|
|
125
99
|
"destroy-on-close": "",
|
|
126
100
|
"close-on-click-modal": !1,
|
|
127
|
-
"before-close":
|
|
101
|
+
"before-close": re
|
|
128
102
|
}, {
|
|
129
|
-
footer:
|
|
130
|
-
H("span",
|
|
131
|
-
|
|
132
|
-
loading: l(
|
|
133
|
-
onClick:
|
|
103
|
+
footer: _(() => [
|
|
104
|
+
H("span", we, [
|
|
105
|
+
$(q, {
|
|
106
|
+
loading: l(g).btnLoading,
|
|
107
|
+
onClick: U
|
|
134
108
|
}, {
|
|
135
|
-
default:
|
|
136
|
-
|
|
109
|
+
default: _(() => [
|
|
110
|
+
R(T(l(i)("act.cancel")), 1)
|
|
137
111
|
]),
|
|
138
112
|
_: 1
|
|
139
113
|
}, 8, ["loading"]),
|
|
140
|
-
|
|
114
|
+
be((r(), c(q, {
|
|
141
115
|
type: "primary",
|
|
142
|
-
loading: l(
|
|
143
|
-
onClick: f[1] || (f[1] = (
|
|
116
|
+
loading: l(g).btnLoading,
|
|
117
|
+
onClick: f[1] || (f[1] = (P) => ne(l(N)))
|
|
144
118
|
}, {
|
|
145
|
-
default:
|
|
146
|
-
|
|
119
|
+
default: _(() => [
|
|
120
|
+
R(T(l(i)("act.save")), 1)
|
|
147
121
|
]),
|
|
148
122
|
_: 1
|
|
149
|
-
}, 8, ["loading"])
|
|
123
|
+
}, 8, ["loading"])), [
|
|
124
|
+
[ue]
|
|
125
|
+
])
|
|
150
126
|
])
|
|
151
127
|
]),
|
|
152
|
-
default:
|
|
153
|
-
var
|
|
128
|
+
default: _(() => {
|
|
129
|
+
var P, j;
|
|
154
130
|
return [
|
|
155
|
-
|
|
131
|
+
$(ie, {
|
|
156
132
|
ref_key: "formRef",
|
|
157
|
-
ref:
|
|
133
|
+
ref: N,
|
|
158
134
|
model: l(a),
|
|
159
135
|
"label-suffix": ":",
|
|
160
|
-
"label-width": (
|
|
161
|
-
"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
|
|
162
138
|
}, {
|
|
163
|
-
default:
|
|
164
|
-
|
|
165
|
-
default:
|
|
166
|
-
(
|
|
167
|
-
span:
|
|
168
|
-
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
|
|
169
145
|
}, {
|
|
170
|
-
default:
|
|
171
|
-
e.customFiledsComponentes.isFiledCustom ? (
|
|
172
|
-
e.customFiledsComponentes[e.customFiledsComponentes.customComponentName] ? (
|
|
146
|
+
default: _(() => [
|
|
147
|
+
e.customFiledsComponentes.isFiledCustom ? (r(), K(x, { key: 1 }, [
|
|
148
|
+
e.customFiledsComponentes[e.customFiledsComponentes.customComponentName] ? (r(), c(_e(e.customFiledsComponentes[e.customFiledsComponentes.customComponentName]), {
|
|
173
149
|
key: 0,
|
|
174
150
|
fieldCofnigItem: e,
|
|
175
151
|
rowData: u.data.rowData,
|
|
176
152
|
form: l(a),
|
|
177
|
-
"onUpdate:form": f[0] || (f[0] = (t) =>
|
|
178
|
-
}, 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", {
|
|
179
155
|
class: "no-config",
|
|
180
|
-
key:
|
|
156
|
+
key: B
|
|
181
157
|
}, [
|
|
182
|
-
H("span",
|
|
183
|
-
|
|
158
|
+
H("span", Ke, "【" + T(e.fieldName) + "】", 1),
|
|
159
|
+
R(T(l(i)("act.fieldCustom")), 1)
|
|
184
160
|
]))
|
|
185
|
-
], 64)) : (
|
|
161
|
+
], 64)) : (r(), c(k, {
|
|
186
162
|
key: 0,
|
|
187
163
|
label: e.fieldName,
|
|
188
164
|
prop: e.fieldKey,
|
|
189
|
-
rules: [{ required: e.isFormFieldRequired, message: l(
|
|
165
|
+
rules: [{ required: e.isFormFieldRequired, message: l(i)("act.requiredMessage"), trigger: le(e) }]
|
|
190
166
|
}, {
|
|
191
|
-
default:
|
|
192
|
-
e.fieldType === "input" ? (
|
|
167
|
+
default: _(() => [
|
|
168
|
+
e.fieldType === "input" ? (r(), c(n, b({
|
|
193
169
|
key: 0,
|
|
194
170
|
modelValue: l(a)[e.fieldKey],
|
|
195
171
|
"onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
|
|
196
|
-
placeholder: `${l(
|
|
172
|
+
placeholder: `${l(i)("act.inputPlaceholder")}${e.fieldName}`,
|
|
197
173
|
clearable: "",
|
|
198
174
|
ref_for: !0
|
|
199
|
-
},
|
|
175
|
+
}, y(e), {
|
|
200
176
|
disabled: e.isFormDisabled
|
|
201
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) :
|
|
202
|
-
e.fieldType === "inputNumber" ? (
|
|
177
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : W("", !0),
|
|
178
|
+
e.fieldType === "inputNumber" ? (r(), c(l(J), b({
|
|
203
179
|
key: 1,
|
|
204
180
|
modelValue: l(a)[e.fieldKey],
|
|
205
181
|
"onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
|
|
206
|
-
placeholder: `${l(
|
|
182
|
+
placeholder: `${l(i)("act.inputPlaceholder")}${e.fieldName}`,
|
|
207
183
|
clearable: "",
|
|
208
184
|
ref_for: !0
|
|
209
|
-
},
|
|
185
|
+
}, y(e), {
|
|
210
186
|
disabled: e.isFormDisabled
|
|
211
|
-
}), 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({
|
|
212
188
|
key: 2,
|
|
213
189
|
modelValue: l(a)[e.fieldKey],
|
|
214
190
|
"onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
|
|
215
|
-
placeholder: `${l(
|
|
191
|
+
placeholder: `${l(i)("act.inputPlaceholder")}${e.fieldName}`,
|
|
216
192
|
rows: 4,
|
|
217
193
|
ref_for: !0
|
|
218
|
-
},
|
|
194
|
+
}, y(e), {
|
|
219
195
|
type: "textarea",
|
|
220
196
|
disabled: e.isFormDisabled
|
|
221
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : ["select", "multipleSelect"].includes(e.fieldType) ? (
|
|
197
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : ["select", "multipleSelect"].includes(e.fieldType) ? (r(), c(p, b({
|
|
222
198
|
key: 3,
|
|
223
199
|
modelValue: l(a)[e.fieldKey],
|
|
224
200
|
"onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
|
|
225
|
-
placeholder: `${l(
|
|
201
|
+
placeholder: `${l(i)("act.selectPlaceholder")}${e.fieldName}`,
|
|
226
202
|
clearable: "",
|
|
227
203
|
filterable: "",
|
|
228
204
|
ref_for: !0
|
|
229
|
-
},
|
|
205
|
+
}, y(e), {
|
|
230
206
|
multiple: e.fieldType === "multipleSelect",
|
|
231
207
|
disabled: e.isFormDisabled
|
|
232
208
|
}), {
|
|
233
|
-
default:
|
|
234
|
-
(
|
|
235
|
-
key:
|
|
209
|
+
default: _(() => [
|
|
210
|
+
(r(!0), K(x, null, z(e.dataList, (t, fe) => (r(), c(h, {
|
|
211
|
+
key: fe,
|
|
236
212
|
label: t.key,
|
|
237
213
|
value: t.value
|
|
238
214
|
}, null, 8, ["label", "value"]))), 128))
|
|
239
215
|
]),
|
|
240
216
|
_: 2
|
|
241
|
-
}, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "disabled"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (
|
|
217
|
+
}, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "disabled"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (r(), c(F, b({
|
|
242
218
|
key: 4,
|
|
243
219
|
modelValue: l(a)[e.fieldKey],
|
|
244
220
|
"onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
|
|
245
221
|
options: e.dataList,
|
|
246
|
-
props: { ...l(
|
|
247
|
-
placeholder: `${l(
|
|
222
|
+
props: { ...l(Ce) },
|
|
223
|
+
placeholder: `${l(i)("act.selectPlaceholder")}${e.fieldName}`,
|
|
248
224
|
clearable: "",
|
|
249
225
|
filterable: "",
|
|
250
226
|
ref_for: !0
|
|
251
|
-
},
|
|
227
|
+
}, y(e), {
|
|
252
228
|
disabled: e.isFormDisabled,
|
|
253
229
|
multiple: e.fieldType === "virtualizedMultipleSelect"
|
|
254
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled", "multiple"])) : e.fieldType === "date" ? (
|
|
230
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled", "multiple"])) : e.fieldType === "date" ? (r(), c(V, b({
|
|
255
231
|
key: 5,
|
|
256
232
|
modelValue: l(a)[e.fieldKey],
|
|
257
233
|
"onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
|
|
258
234
|
type: "date",
|
|
259
|
-
placeholder: `${l(
|
|
235
|
+
placeholder: `${l(i)("act.selectPlaceholder")}${l(i)("act.time")}`,
|
|
260
236
|
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
261
237
|
ref_for: !0
|
|
262
|
-
},
|
|
238
|
+
}, y(e), {
|
|
263
239
|
disabled: e.isFormDisabled
|
|
264
|
-
}), 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({
|
|
265
241
|
key: 6,
|
|
266
242
|
modelValue: l(a)[e.fieldKey],
|
|
267
243
|
"onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
|
|
268
244
|
type: "daterange",
|
|
269
|
-
"start-placeholder": l(
|
|
270
|
-
"end-placeholder": l(
|
|
245
|
+
"start-placeholder": l(i)("act.startTime"),
|
|
246
|
+
"end-placeholder": l(i)("act.endTime"),
|
|
271
247
|
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
272
248
|
ref_for: !0
|
|
273
|
-
},
|
|
249
|
+
}, y(e), {
|
|
274
250
|
disabled: e.isFormDisabled
|
|
275
|
-
}), 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({
|
|
276
252
|
key: 7,
|
|
277
253
|
modelValue: l(a)[e.fieldKey],
|
|
278
254
|
"onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
|
|
279
255
|
options: e.dataList,
|
|
280
|
-
props: l(
|
|
256
|
+
props: l(De),
|
|
281
257
|
clearable: "",
|
|
282
258
|
filterable: "",
|
|
283
|
-
placeholder: `${l(
|
|
259
|
+
placeholder: `${l(i)("act.selectPlaceholder")}${e.fieldName}`,
|
|
284
260
|
ref_for: !0
|
|
285
|
-
},
|
|
261
|
+
}, y(e), {
|
|
286
262
|
disabled: e.isFormDisabled
|
|
287
|
-
}), 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, {
|
|
288
264
|
key: 8,
|
|
289
265
|
modelValue: l(a)[e.fieldKey],
|
|
290
266
|
"onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
|
|
291
267
|
"active-value": !0,
|
|
292
268
|
"inactive-value": !1
|
|
293
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : e.fieldType === "upload" ? (
|
|
269
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : e.fieldType === "upload" ? (r(), c(l(Q), b({
|
|
294
270
|
key: 9,
|
|
295
271
|
class: "form-upload",
|
|
296
272
|
modelValue: l(a)[e.fieldKey],
|
|
297
273
|
"onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
|
|
274
|
+
request: l(M),
|
|
298
275
|
ref_for: !0
|
|
299
|
-
},
|
|
276
|
+
}, y(e)), null, 16, ["modelValue", "onUpdate:modelValue", "request"])) : e.fieldType === "editor" ? (r(), c(l(X), b({
|
|
300
277
|
key: 10,
|
|
301
278
|
modelValue: l(a)[e.fieldKey],
|
|
302
279
|
"onUpdate:modelValue": (t) => l(a)[e.fieldKey] = t,
|
|
303
280
|
disabled: e.isFormDisabled,
|
|
304
|
-
placeholder: `${l(
|
|
281
|
+
placeholder: `${l(i)("act.inputPlaceholder")}${e.fieldName}`,
|
|
305
282
|
ref_for: !0
|
|
306
|
-
},
|
|
283
|
+
}, y(e)), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : W("", !0)
|
|
307
284
|
]),
|
|
308
285
|
_: 2
|
|
309
286
|
}, 1032, ["label", "prop", "rules"]))
|
|
@@ -322,7 +299,7 @@ const Ne = { class: "no-config-field" }, Ue = { class: "dialog-footer" }, ke = {
|
|
|
322
299
|
}, 8, ["model-value", "title", "width"]);
|
|
323
300
|
};
|
|
324
301
|
}
|
|
325
|
-
},
|
|
302
|
+
}, Re = /* @__PURE__ */ ge(Ne, [["__scopeId", "data-v-58ff2aa1"]]);
|
|
326
303
|
export {
|
|
327
|
-
|
|
304
|
+
Re as default
|
|
328
305
|
};
|
package/package.json
CHANGED
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "act-plus",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.25",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "act config",
|
|
6
6
|
"main": "act-plus.js",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
9
|
},
|
|
10
|
-
"keywords": [
|
|
11
|
-
"act",
|
|
12
|
-
"act-plus",
|
|
13
|
-
"vue"
|
|
14
|
-
],
|
|
10
|
+
"keywords": ["act", "act-plus", "vue"],
|
|
15
11
|
"author": "destiny",
|
|
16
12
|
"license": "ISC",
|
|
17
13
|
"publishConfig": {
|
package/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.page-container{padding:12px}.form-card .el-card__header{font-size:16px;font-weight:700}.rotate180{transform:rotate(180deg)}.cp{cursor:pointer}.cp:hover{opacity:.8}.ml12{margin-left:12px}.mt12{margin-top:12px}.mt16{margin-top:16px}.mt24{margin-top:24px}.ml6{margin-left:6px!important}.ml4{margin-left:4px!important}.mr6{margin-right:6px}.mr2{margin-right:2px}.mr4{margin-right:4px}.el-table{--el-table-header-bg-color: #eef1f6;--el-table-header-text-color: #1f2d3d;font-size:14px}.el-select,.el-cascader,.el-form--inline .el-form-item{display:block;width:100%}.el-card{height:100%;--el-card-padding: 16px}.el-card__body{height:calc(100% - 45px);box-sizing:border-box}.el-date-editor{--el-date-editor-width: 100%}[data-v-
|
|
1
|
+
@charset "UTF-8";.page-container{padding:12px}.form-card .el-card__header{font-size:16px;font-weight:700}.rotate180{transform:rotate(180deg)}.cp{cursor:pointer}.cp:hover{opacity:.8}.ml12{margin-left:12px}.mt12{margin-top:12px}.mt16{margin-top:16px}.mt24{margin-top:24px}.ml6{margin-left:6px!important}.ml4{margin-left:4px!important}.mr6{margin-right:6px}.mr2{margin-right:2px}.mr4{margin-right:4px}.el-table{--el-table-header-bg-color: #eef1f6;--el-table-header-text-color: #1f2d3d;font-size:14px}.el-select,.el-cascader,.el-form--inline .el-form-item{display:block;width:100%}.el-card{height:100%;--el-card-padding: 16px}.el-card__body{height:calc(100% - 45px);box-sizing:border-box}.el-date-editor{--el-date-editor-width: 100%}[data-v-cf6eded7] .el-empty__image{width:100%}.file-image[data-v-cf6eded7]{display:block;width:32px;height:32px;margin:0 auto;border-radius:4px;line-height:32px!important}.no-image[data-v-cf6eded7]{width:100%;height:100%;font-size:12px;background-color:#f5f7fa}.page-container[data-v-b703a6a6]{position:relative}.page-container .header-operate[data-v-b703a6a6]{position:sticky;top:0;z-index:999}.page-container .submit-box[data-v-b703a6a6]{display:flex;align-items:center;justify-content:flex-end}.page-container .submit-box-l[data-v-b703a6a6]{width:360px;margin-right:24px}.act-table .table-pagination[data-v-c6a200c1]{padding:12px 4px;justify-content:flex-end}.tox-tinymce-aux{z-index:99999!important}.tinymce.ui.FloatPanel{z-index:99}.mce-content-body[data-mce-placeholder]:not(.mce-visualblocks):before{color:#a8abb2}.upload-container[data-v-f839bee6]{width:100%}.upload-container[data-v-f839bee6] .el-upload-list--picture-card{display:flex;flex:1}.upload-container[data-v-f839bee6] .el-upload.is-drag{width:100%;height:100%}.upload-container .tip-text[data-v-f839bee6]{margin:0;padding:0;font-size:12px;color:#999}.upload-container .file-list[data-v-f839bee6]{display:flex;align-items:center;justify-content:space-between;margin:6px 0;padding:6px 12px;font-size:14px;border-radius:4px;border:1px solid #dcdfe6}.upload-container .file-list[data-v-f839bee6]:hover{cursor:pointer;opacity:.8}.upload-container .file-list:hover .el-file-name[data-v-f839bee6]{text-decoration:underline}.upload-container .file-list-l[data-v-f839bee6]{display:flex;align-items:center;flex:1;width:500px}.upload-container .file-list-image[data-v-f839bee6]{flex-shrink:0;width:40px;height:40px;border-radius:4px}.upload-container .file-list-icon[data-v-f839bee6]{flex-shrink:0;width:40px;height:40px}.upload-container .file-list .el-file-name[data-v-f839bee6]{flex:1;padding:0 12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.upload-container .file-list .el-file-operate[data-v-f839bee6]{display:flex;justify-content:flex-end;flex-shrink:0;min-width:82px;margin-left:auto}.upload-container .file-list .el-file-operate>i[data-v-f839bee6]{cursor:pointer;margin-left:12px}.upload-container .file-list .el-file-operate>i[data-v-f839bee6]:hover{opacity:.8}.search-module-container[data-v-cb281b8b] .el-form-item{margin-bottom:8px}.search-module-container[data-v-cb281b8b] .el-select__selection{flex-wrap:nowrap}.search-module-container .form-content[data-v-cb281b8b]{display:grid;grid-template-columns:repeat(var(--table-query-row),1fr);gap:6px;padding:6px 6px 0}.search-module-container .form-content .search-form-btn[data-v-cb281b8b]{justify-self:end;align-self:start;grid-column-start:var(--table-query-row);grid-column-end:var(--table-query-row)}.search-module-container .expand[data-v-cb281b8b]{display:flex;margin:0 auto;color:#a4a2a2}.header-operate-container[data-v-00d47037]{display:flex;align-items:center;justify-content:flex-end}.header-operate-container .el-btn[data-v-00d47037]{margin:6px}.card-header[data-v-58ff2aa1]{display:flex;align-items:center}.card-header-operate[data-v-58ff2aa1]{margin-left:auto}.no-config[data-v-58ff2aa1]{line-height:32px;font-weight:700}.no-config-field[data-v-58ff2aa1]{margin-left:60px;color:red}.card-header[data-v-3484c709]{display:flex;align-items:center}.card-header-operate[data-v-3484c709]{margin-left:auto}.add-icon-btn[data-v-ada54450]{cursor:pointer;width:24px;height:24px;margin-left:6px}.table-post-params[data-v-ada54450]{position:relative;margin-bottom:12px}.table-post-params .submit-operate[data-v-ada54450]{position:absolute;top:-20px;right:-10px;display:flex;align-items:center}.table-post-params .submit-operate .match-opreate[data-v-ada54450]{cursor:pointer;width:12px;height:12px}.card-header[data-v-c348bee1]{display:flex;align-items:center}.card-header-operate[data-v-c348bee1]{margin-left:auto}.form-list[data-v-c348bee1]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-c348bee1]:last-child{border:none}.config-list-operate[data-v-c348bee1]{display:flex;align-items:center;justify-content:flex-end}.card-header[data-v-3440b427]{display:flex;align-items:center}.card-header-operate[data-v-3440b427]{margin-left:auto}.form-list[data-v-3440b427]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-3440b427]:last-child{border:none}.config-list-operate[data-v-3440b427]{display:flex;align-items:center;justify-content:flex-end}.add-icon-btn[data-v-4b2dee6d]{cursor:pointer;width:24px;height:24px;margin-left:6px}.condition-box[data-v-4b2dee6d]{display:flex;justify-content:center}.condition-box[data-v-4b2dee6d] .el-form-item__content{flex:0;min-width:300px}.submit-operate[data-v-4b2dee6d]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-4b2dee6d]{cursor:pointer;width:20px;height:20px}.add-icon-btn[data-v-3d2cbdfc]{cursor:pointer;width:24px;height:24px;margin-left:6px}.submit-operate[data-v-3d2cbdfc]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-3d2cbdfc]{cursor:pointer;width:20px;height:20px}.select-icon-popover .icon-list{display:grid;grid-template-columns:repeat(8,1fr)}.select-icon-popover .icon-list .icon-item{display:flex;align-items:center;justify-content:center;margin:4px 0;border:1px solid transparent}.select-icon-popover .icon-list .icon-item .icon-svg{cursor:pointer}.select-icon-popover .icon-list .icon-item-checked{border:1px solid #000}.select-icon-container .icon-value[data-v-3437a309]{display:flex;align-items:center}.select-icon-container .icon-value .icon-btn[data-v-3437a309]{margin-left:12px}
|