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,90 +1,95 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { _ as
|
|
1
|
+
import { defineAsyncComponent as j, ref as g, watch as G, resolveComponent as s, resolveDirective as J, unref as o, openBlock as r, createElementBlock as h, createVNode as X, normalizeStyle as Z, withCtx as m, Fragment as v, renderList as C, withDirectives as U, createBlock as u, mergeProps as y, withKeys as x, withModifiers as N, createCommentVNode as _, vShow as ee, createTextVNode as P, toDisplayString as E } from "vue";
|
|
2
|
+
import { _ as le, u as te, P as oe, a as ae } from "./index-ba8fa827.js";
|
|
3
3
|
import "vue-router";
|
|
4
|
+
import "js-base64";
|
|
4
5
|
import "element-plus";
|
|
5
6
|
import "monaco-editor";
|
|
6
|
-
const
|
|
7
|
+
const re = {
|
|
7
8
|
key: 0,
|
|
8
9
|
class: "search-module-container"
|
|
9
|
-
},
|
|
10
|
+
}, ne = {
|
|
10
11
|
__name: "index",
|
|
11
12
|
props: {
|
|
12
13
|
data: { type: Object, default: () => ({}) }
|
|
13
14
|
},
|
|
14
15
|
emits: ["reset", "search"],
|
|
15
|
-
setup(
|
|
16
|
-
const
|
|
17
|
-
let p =
|
|
18
|
-
const
|
|
19
|
-
p.value = (
|
|
20
|
-
},
|
|
21
|
-
const t = (
|
|
22
|
-
q.value = [...t, { btnName:
|
|
16
|
+
setup(D, { emit: M }) {
|
|
17
|
+
const Q = j(() => import("./index-ba8fa827.js").then((a) => a.f)), { t: d } = te(), k = M, c = D;
|
|
18
|
+
let p = g([]), q = g([]), b = g(!0);
|
|
19
|
+
const A = (a) => c.data.tableConfig.isExpandQuery && b.value ? c.data.tableConfig.tableQueryRowWidth > a + 1 : !0, i = (a) => new Function("", a.fieldUiProps)() || {}, R = (a) => {
|
|
20
|
+
p.value = (a || []).filter((t) => t.useScenes.includes("tableSearch"));
|
|
21
|
+
}, Y = (a) => {
|
|
22
|
+
const t = (a || []).filter((n) => n.permissionCode === 1001).map((n) => ({ ...n, loading: !1 }));
|
|
23
|
+
q.value = [...t, { btnName: d("act.reset"), permissionCode: "9999", btnColor: "info", btnIcon: "btn-reset", loading: !1 }];
|
|
23
24
|
};
|
|
24
|
-
|
|
25
|
+
G(
|
|
25
26
|
() => c.data,
|
|
26
|
-
(
|
|
27
|
-
|
|
27
|
+
(a, t) => {
|
|
28
|
+
R(a.fields), Y(a.buttons);
|
|
28
29
|
},
|
|
29
30
|
{ immediate: !0 }
|
|
30
31
|
);
|
|
31
|
-
const f = (
|
|
32
|
-
switch (
|
|
32
|
+
const f = (a) => {
|
|
33
|
+
switch (a.loading = !0, a.permissionCode) {
|
|
33
34
|
case "9999":
|
|
34
|
-
p.value.forEach((
|
|
35
|
-
|
|
36
|
-
}), k("reset", [])
|
|
35
|
+
p.value.forEach((n) => {
|
|
36
|
+
n.fieldType.includes("&") ? n.queryValue = [] : n.queryValue = void 0;
|
|
37
|
+
}), k("reset", [], () => {
|
|
38
|
+
a.loading = !1;
|
|
39
|
+
});
|
|
37
40
|
break;
|
|
38
41
|
default:
|
|
39
|
-
const t = p.value.filter((
|
|
40
|
-
k("search", t)
|
|
42
|
+
const t = p.value.filter((n) => Array.isArray(n.queryValue) ? n.queryValue.length : !!n.queryValue);
|
|
43
|
+
k("search", t, () => {
|
|
44
|
+
a.loading = !1;
|
|
45
|
+
});
|
|
41
46
|
break;
|
|
42
47
|
}
|
|
43
|
-
},
|
|
44
|
-
|
|
48
|
+
}, z = () => {
|
|
49
|
+
b.value = !b.value;
|
|
45
50
|
};
|
|
46
|
-
return (
|
|
51
|
+
return (a, t) => {
|
|
47
52
|
var S;
|
|
48
|
-
const
|
|
49
|
-
return o(p) && o(p).length ? (
|
|
50
|
-
|
|
51
|
-
style:
|
|
53
|
+
const n = s("el-input"), F = s("el-option"), I = s("el-select"), L = s("el-select-v2"), O = s("el-cascader"), w = s("el-date-picker"), T = s("el-form-item"), B = s("a-svg-icon"), $ = s("el-button"), H = s("el-form"), W = J("debounce");
|
|
54
|
+
return o(p) && o(p).length ? (r(), h("div", re, [
|
|
55
|
+
X(H, {
|
|
56
|
+
style: Z({ "--table-query-row": c.data.tableConfig.tableQueryRowWidth }),
|
|
52
57
|
class: "form-content",
|
|
53
58
|
ref: "elForm",
|
|
54
59
|
"label-suffix": ":",
|
|
55
60
|
"label-position": "right"
|
|
56
61
|
}, {
|
|
57
62
|
default: m(() => [
|
|
58
|
-
(
|
|
59
|
-
key:
|
|
63
|
+
(r(!0), h(v, null, C(o(p), (e, V) => U((r(), u(T, {
|
|
64
|
+
key: V,
|
|
60
65
|
class: "search-form-item",
|
|
61
66
|
"label-width": c.data.tableConfig.tableQueryLabelWidth,
|
|
62
67
|
label: e.fieldName
|
|
63
68
|
}, {
|
|
64
69
|
default: m(() => [
|
|
65
|
-
e.fieldType === "input" || e.fieldType === "editor" ? (
|
|
70
|
+
e.fieldType === "input" || e.fieldType === "editor" ? (r(), u(n, y({
|
|
66
71
|
key: 0,
|
|
67
72
|
modelValue: e.queryValue,
|
|
68
73
|
"onUpdate:modelValue": (l) => e.queryValue = l,
|
|
69
|
-
placeholder: `${o(
|
|
74
|
+
placeholder: `${o(d)("act.inputPlaceholder")}${e.fieldName}`,
|
|
70
75
|
clearable: "",
|
|
71
76
|
ref_for: !0
|
|
72
77
|
}, i(e), {
|
|
73
|
-
onKeyup: t[0] || (t[0] =
|
|
78
|
+
onKeyup: t[0] || (t[0] = x(N((l) => f({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"]))
|
|
74
79
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : _("", !0),
|
|
75
|
-
e.fieldType === "inputNumber" ? (
|
|
80
|
+
e.fieldType === "inputNumber" ? (r(), u(o(Q), y({
|
|
76
81
|
key: 1,
|
|
77
82
|
modelValue: e.queryValue,
|
|
78
83
|
"onUpdate:modelValue": (l) => e.queryValue = l,
|
|
79
|
-
placeholder: `${o(
|
|
84
|
+
placeholder: `${o(d)("act.inputPlaceholder")}${e.fieldName}`,
|
|
80
85
|
clearable: "",
|
|
81
|
-
onKeyup: t[1] || (t[1] =
|
|
86
|
+
onKeyup: t[1] || (t[1] = x(N((l) => f({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"])),
|
|
82
87
|
ref_for: !0
|
|
83
|
-
}, i(e)), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : ["select", "switch", "multipleSelect"].includes(e.fieldType) ? (
|
|
88
|
+
}, i(e)), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : ["select", "switch", "multipleSelect"].includes(e.fieldType) ? (r(), u(I, y({
|
|
84
89
|
key: 2,
|
|
85
90
|
modelValue: e.queryValue,
|
|
86
91
|
"onUpdate:modelValue": (l) => e.queryValue = l,
|
|
87
|
-
placeholder: `${o(
|
|
92
|
+
placeholder: `${o(d)("act.selectPlaceholder")}${e.fieldName}`,
|
|
88
93
|
clearable: "",
|
|
89
94
|
filterable: "",
|
|
90
95
|
ref_for: !0
|
|
@@ -95,20 +100,20 @@ const oe = {
|
|
|
95
100
|
onChange: t[2] || (t[2] = (l) => f({ permissionCode: 1001 }))
|
|
96
101
|
}), {
|
|
97
102
|
default: m(() => [
|
|
98
|
-
(
|
|
99
|
-
key:
|
|
103
|
+
(r(!0), h(v, null, C(e.dataList, (l, K) => (r(), u(F, {
|
|
104
|
+
key: K,
|
|
100
105
|
label: l.key,
|
|
101
106
|
value: l.value
|
|
102
107
|
}, null, 8, ["label", "value"]))), 128))
|
|
103
108
|
]),
|
|
104
109
|
_: 2
|
|
105
|
-
}, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "collapse-tags", "collapse-tags-tooltip"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (
|
|
110
|
+
}, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "collapse-tags", "collapse-tags-tooltip"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (r(), u(L, y({
|
|
106
111
|
key: 3,
|
|
107
112
|
modelValue: e.queryValue,
|
|
108
113
|
"onUpdate:modelValue": (l) => e.queryValue = l,
|
|
109
114
|
options: e.dataList,
|
|
110
|
-
props: { ...o(
|
|
111
|
-
placeholder: `${o(
|
|
115
|
+
props: { ...o(oe) },
|
|
116
|
+
placeholder: `${o(d)("act.selectPlaceholder")}${e.fieldName}`,
|
|
112
117
|
clearable: "",
|
|
113
118
|
filterable: "",
|
|
114
119
|
ref_for: !0
|
|
@@ -117,33 +122,33 @@ const oe = {
|
|
|
117
122
|
"collapse-tags-tooltip": e.fieldType === "virtualizedMultipleSelect",
|
|
118
123
|
multiple: e.fieldType === "virtualizedMultipleSelect",
|
|
119
124
|
onChange: t[3] || (t[3] = (l) => f({ permissionCode: 1001 }))
|
|
120
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "collapse-tags", "collapse-tags-tooltip", "multiple"])) : e.fieldType === "provinceCascade" ? (
|
|
125
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "collapse-tags", "collapse-tags-tooltip", "multiple"])) : e.fieldType === "provinceCascade" ? (r(), u(O, y({
|
|
121
126
|
key: 4,
|
|
122
127
|
modelValue: e.queryValue,
|
|
123
128
|
"onUpdate:modelValue": (l) => e.queryValue = l,
|
|
124
129
|
options: e.dataList,
|
|
125
|
-
props: { ...o(
|
|
130
|
+
props: { ...o(ae), [e.fieldUiType]: !0 },
|
|
126
131
|
clearable: "",
|
|
127
132
|
filterable: "",
|
|
128
|
-
placeholder: `${o(
|
|
133
|
+
placeholder: `${o(d)("act.selectPlaceholder")}${e.fieldName}`,
|
|
129
134
|
ref_for: !0
|
|
130
|
-
}, i(e)), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder"])) : e.fieldType === "date" ? (
|
|
135
|
+
}, i(e)), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder"])) : e.fieldType === "date" ? (r(), u(w, y({
|
|
131
136
|
key: 5,
|
|
132
137
|
modelValue: e.queryValue,
|
|
133
138
|
"onUpdate:modelValue": (l) => e.queryValue = l,
|
|
134
139
|
type: "date",
|
|
135
|
-
placeholder: `${o(
|
|
140
|
+
placeholder: `${o(d)("act.selectPlaceholder")}${o(d)("act.time")}`,
|
|
136
141
|
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
137
142
|
ref_for: !0
|
|
138
143
|
}, i(e), {
|
|
139
144
|
onChange: t[4] || (t[4] = (l) => f({ permissionCode: 1001 }))
|
|
140
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : e.fieldType === "dateRange" ? (
|
|
145
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : e.fieldType === "dateRange" ? (r(), u(w, y({
|
|
141
146
|
key: 6,
|
|
142
147
|
modelValue: e.queryValue,
|
|
143
148
|
"onUpdate:modelValue": (l) => e.queryValue = l,
|
|
144
149
|
type: "daterange",
|
|
145
|
-
"start-placeholder": o(
|
|
146
|
-
"end-placeholder": o(
|
|
150
|
+
"start-placeholder": o(d)("act.startTime"),
|
|
151
|
+
"end-placeholder": o(d)("act.endTime"),
|
|
147
152
|
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
148
153
|
ref_for: !0
|
|
149
154
|
}, i(e), {
|
|
@@ -152,21 +157,22 @@ const oe = {
|
|
|
152
157
|
]),
|
|
153
158
|
_: 2
|
|
154
159
|
}, 1032, ["label-width", "label"])), [
|
|
155
|
-
[
|
|
160
|
+
[ee, A(V)]
|
|
156
161
|
])), 128)),
|
|
157
|
-
o(p).length ? (
|
|
162
|
+
o(p).length ? (r(), u(T, {
|
|
158
163
|
key: 0,
|
|
159
164
|
class: "search-form-btn",
|
|
160
165
|
"label-width": "0"
|
|
161
166
|
}, {
|
|
162
167
|
default: m(() => [
|
|
163
|
-
(
|
|
164
|
-
key:
|
|
168
|
+
(r(!0), h(v, null, C(o(q), (e, V) => U((r(), u($, {
|
|
169
|
+
key: V,
|
|
165
170
|
type: e.btnColor,
|
|
171
|
+
loading: e.loading,
|
|
166
172
|
onClick: (l) => f(e)
|
|
167
173
|
}, {
|
|
168
174
|
default: m(() => [
|
|
169
|
-
e.btnIcon ? (
|
|
175
|
+
e.btnIcon ? (r(), u(B, {
|
|
170
176
|
key: 0,
|
|
171
177
|
class: "mr6",
|
|
172
178
|
name: e.btnIcon,
|
|
@@ -174,33 +180,35 @@ const oe = {
|
|
|
174
180
|
height: "12",
|
|
175
181
|
color: "#fff"
|
|
176
182
|
}, null, 8, ["name"])) : _("", !0),
|
|
177
|
-
|
|
183
|
+
P(" " + E(e.btnName), 1)
|
|
178
184
|
]),
|
|
179
185
|
_: 2
|
|
180
|
-
}, 1032, ["type", "onClick"]))
|
|
186
|
+
}, 1032, ["type", "loading", "onClick"])), [
|
|
187
|
+
[W]
|
|
188
|
+
])), 128))
|
|
181
189
|
]),
|
|
182
190
|
_: 1
|
|
183
191
|
})) : _("", !0)
|
|
184
192
|
]),
|
|
185
193
|
_: 1
|
|
186
194
|
}, 8, ["style"]),
|
|
187
|
-
c.data.tableConfig.isExpandQuery && ((S = o(p)) == null ? void 0 : S.length) > c.data.tableConfig.tableQueryRowWidth ? (
|
|
195
|
+
c.data.tableConfig.isExpandQuery && ((S = o(p)) == null ? void 0 : S.length) > c.data.tableConfig.tableQueryRowWidth ? (r(), u($, {
|
|
188
196
|
key: 0,
|
|
189
197
|
class: "expand",
|
|
190
198
|
text: "",
|
|
191
199
|
size: "small",
|
|
192
|
-
icon: o(
|
|
193
|
-
onClick:
|
|
200
|
+
icon: o(b) ? "ArrowDown" : "ArrowUp",
|
|
201
|
+
onClick: z
|
|
194
202
|
}, {
|
|
195
203
|
default: m(() => [
|
|
196
|
-
|
|
204
|
+
P(E(o(b) ? "展开" : "收起"), 1)
|
|
197
205
|
]),
|
|
198
206
|
_: 1
|
|
199
207
|
}, 8, ["icon"])) : _("", !0)
|
|
200
208
|
])) : _("", !0);
|
|
201
209
|
};
|
|
202
210
|
}
|
|
203
|
-
},
|
|
211
|
+
}, fe = /* @__PURE__ */ le(ne, [["__scopeId", "data-v-cb281b8b"]]);
|
|
204
212
|
export {
|
|
205
|
-
|
|
213
|
+
fe as default
|
|
206
214
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { reactive as m, watch as v, resolveComponent as s, openBlock as b, createBlock as g, withCtx as o, createElementVNode as i, createVNode as x, createTextVNode as y, toDisplayString as h, unref as C } from "vue";
|
|
2
|
-
import { _ as k, u as V } from "./index-
|
|
2
|
+
import { _ as k, u as V } from "./index-ba8fa827.js";
|
|
3
3
|
import "vue-router";
|
|
4
|
+
import "js-base64";
|
|
4
5
|
import "element-plus";
|
|
5
6
|
import "monaco-editor";
|
|
6
7
|
const w = ["innerHTML"], B = { class: "dialog-footer" }, D = {
|
|
@@ -11,15 +12,15 @@ const w = ["innerHTML"], B = { class: "dialog-footer" }, D = {
|
|
|
11
12
|
data: { type: Object, default: () => ({}) }
|
|
12
13
|
},
|
|
13
14
|
emits: ["update:visible", "refresh"],
|
|
14
|
-
setup(
|
|
15
|
-
const { t: d } = V(), r = c, t =
|
|
16
|
-
let
|
|
15
|
+
setup(l, { emit: c }) {
|
|
16
|
+
const { t: d } = V(), r = c, t = l;
|
|
17
|
+
let a = m((() => ({
|
|
17
18
|
loading: !1
|
|
18
19
|
}))());
|
|
19
20
|
v(
|
|
20
21
|
() => t.visible,
|
|
21
22
|
async (e, p) => {
|
|
22
|
-
e && (
|
|
23
|
+
e && (a.loading = !0, a.loading = !1);
|
|
23
24
|
}
|
|
24
25
|
);
|
|
25
26
|
const _ = (e) => {
|
|
@@ -51,14 +52,14 @@ const w = ["innerHTML"], B = { class: "dialog-footer" }, D = {
|
|
|
51
52
|
]),
|
|
52
53
|
default: o(() => [
|
|
53
54
|
i("div", {
|
|
54
|
-
innerHTML:
|
|
55
|
+
innerHTML: l.data.editorContent
|
|
55
56
|
}, null, 8, w)
|
|
56
57
|
]),
|
|
57
58
|
_: 1
|
|
58
59
|
}, 8, ["model-value", "title"]);
|
|
59
60
|
};
|
|
60
61
|
}
|
|
61
|
-
},
|
|
62
|
+
}, j = /* @__PURE__ */ k(D, [["__scopeId", "data-v-3484c709"]]);
|
|
62
63
|
export {
|
|
63
|
-
|
|
64
|
+
j as default
|
|
64
65
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ref as h, watch as I, resolveComponent as _, openBlock as i, createElementBlock as d, createVNode as u, unref as p, isRef as b, withCtx as m, createElementVNode as g, createBlock as w, createCommentVNode as C, createTextVNode as N, Fragment as B, renderList as E, normalizeClass as S } from "vue";
|
|
2
|
-
import { _ as z } from "./index-
|
|
2
|
+
import { _ as z } from "./index-ba8fa827.js";
|
|
3
3
|
import "vue-router";
|
|
4
|
+
import "js-base64";
|
|
4
5
|
import "element-plus";
|
|
5
6
|
import "monaco-editor";
|
|
6
7
|
const A = { class: "select-icon-container" }, F = { class: "icon-list" }, L = ["onClick"], P = {
|
|
@@ -85,7 +86,7 @@ const A = { class: "select-icon-container" }, F = { class: "icon-list" }, L = ["
|
|
|
85
86
|
]);
|
|
86
87
|
};
|
|
87
88
|
}
|
|
88
|
-
},
|
|
89
|
+
}, J = /* @__PURE__ */ z(R, [["__scopeId", "data-v-3437a309"]]);
|
|
89
90
|
export {
|
|
90
|
-
|
|
91
|
+
J as default
|
|
91
92
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ref as R, inject as l, watch as j, resolveComponent as C, openBlock as s, createElementBlock as f, Fragment as y, renderList as q, unref as c, createBlock as i, resolveDynamicComponent as O, withCtx as _, createVNode as E, createCommentVNode as u, createTextVNode as B, toDisplayString as k } from "vue";
|
|
2
|
-
import { _ as H, u as M } from "./index-
|
|
2
|
+
import { _ as H, u as M } from "./index-ba8fa827.js";
|
|
3
3
|
import "vue-router";
|
|
4
|
+
import "js-base64";
|
|
4
5
|
import "element-plus";
|
|
5
6
|
import "monaco-editor";
|
|
6
7
|
const z = { class: "header-operate-container" }, G = {
|
|
@@ -91,7 +92,7 @@ const z = { class: "header-operate-container" }, G = {
|
|
|
91
92
|
]);
|
|
92
93
|
};
|
|
93
94
|
}
|
|
94
|
-
},
|
|
95
|
+
}, Y = /* @__PURE__ */ H(G, [["__scopeId", "data-v-00d47037"]]);
|
|
95
96
|
export {
|
|
96
|
-
|
|
97
|
+
Y as default
|
|
97
98
|
};
|