act-plus 1.1.20 → 1.1.22
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 +1 -1
- package/act-plus.umd.cjs +442 -442
- package/assets/css.worker-1af1972f.js +84 -0
- package/assets/html.worker-38c267f1.js +456 -0
- package/assets/json.worker-bf861c27.js +39 -0
- package/lib/{configBtns-3772e689.js → configBtns-c4e55eb0.js} +2 -2
- package/lib/{configFileds-d0911c87.js → configFileds-b79642bc.js} +3 -3
- package/lib/{configForm-ae4b725e.js → configForm-2212ebfa.js} +1 -1
- package/lib/{configTable-879063d4.js → configTable-21f37060.js} +92 -61
- package/lib/{cssMode-6d02ab39.js → cssMode-049c1acb.js} +1 -1
- package/lib/{dialogAddField-d6b18048.js → dialogAddField-535d4a6c.js} +246 -245
- package/lib/{dialogConfigBtn-75e37dc9.js → dialogConfigBtn-f4b70a91.js} +3 -3
- package/lib/dialogSiteComponentsParams-a99a4d71.js +71 -0
- package/lib/{enum-cc58b8fe.js → enum-ab7125f9.js} +2 -2
- package/lib/{freemarker2-205877bf.js → freemarker2-c93dec09.js} +1 -1
- package/lib/{handlebars-2d920faa.js → handlebars-8a7428d8.js} +1 -1
- package/lib/{html-6b99359b.js → html-2fad443c.js} +1 -1
- package/lib/{htmlMode-498c17d9.js → htmlMode-3c13e1c6.js} +1 -1
- package/lib/{index-68063c4c.js → index-14906725.js} +1 -1
- package/lib/index-742c1da3.js +327 -0
- package/lib/{index-aff95ab9.js → index-79e6c123.js} +1 -1
- package/lib/{index-da0a0bfe.js → index-a2634eef.js} +40545 -40196
- package/lib/index-cb908890.js +205 -0
- package/lib/{index-fb2754ee.js → index-f2795fa7.js} +1 -1
- package/lib/{javascript-5e40fe11.js → javascript-2ec13b45.js} +2 -2
- package/lib/{jsonMode-2a821e9e.js → jsonMode-33ed8d99.js} +1 -1
- package/lib/{liquid-dc78aaf7.js → liquid-40ee460a.js} +1 -1
- package/lib/{python-e55144b2.js → python-852dc2c1.js} +1 -1
- package/lib/{razor-1fb88f53.js → razor-c24d586d.js} +1 -1
- package/lib/{tsMode-8d12d976.js → tsMode-6d6244be.js} +1 -1
- package/lib/{typescript-97ed77ae.js → typescript-807ce4d9.js} +1 -1
- package/lib/{xml-e843c667.js → xml-cc91b485.js} +1 -1
- package/lib/{yaml-62bcf3fa.js → yaml-f2de88bb.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/lib/index-7c264775.js +0 -192
- package/lib/index-a36b2284.js +0 -304
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { defineAsyncComponent as W, ref as v, watch as K, resolveComponent as d, unref as o, openBlock as a, createElementBlock as h, createVNode as j, normalizeStyle as G, withCtx as m, Fragment as C, renderList as g, withDirectives as J, createBlock as n, mergeProps as y, withKeys as U, withModifiers as x, createCommentVNode as _, vShow as X, createTextVNode as N, toDisplayString as P } from "vue";
|
|
2
|
+
import { _ as Z, u as ee, P as le, a as te } from "./index-a2634eef.js";
|
|
3
|
+
import "vue-router";
|
|
4
|
+
import "element-plus";
|
|
5
|
+
const oe = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "search-module-container"
|
|
8
|
+
}, ae = {
|
|
9
|
+
__name: "index",
|
|
10
|
+
props: {
|
|
11
|
+
data: { type: Object, default: () => ({}) }
|
|
12
|
+
},
|
|
13
|
+
emits: ["reset", "search"],
|
|
14
|
+
setup(E, { emit: I }) {
|
|
15
|
+
const M = W(() => import("./index-e2f2023d.js")), { t: u } = ee(), k = I, c = E;
|
|
16
|
+
let p = v([]), q = v([]), b = v(!0);
|
|
17
|
+
const Q = (r) => c.data.tableConfig.isExpandQuery && b.value ? c.data.tableConfig.tableQueryRowWidth > r + 1 : !0, i = (r) => new Function("", r.fieldUiProps)() || {}, D = (r) => {
|
|
18
|
+
p.value = (r || []).filter((t) => t.useScenes.includes("tableSearch"));
|
|
19
|
+
}, R = (r) => {
|
|
20
|
+
const t = (r || []).filter((s) => s.permissionCode === 1001);
|
|
21
|
+
q.value = [...t, { btnName: u("act.reset"), permissionCode: "9999", btnColor: "info", btnIcon: "btn-reset" }];
|
|
22
|
+
};
|
|
23
|
+
K(
|
|
24
|
+
() => c.data,
|
|
25
|
+
(r, t) => {
|
|
26
|
+
D(r.fields), R(r.buttons);
|
|
27
|
+
},
|
|
28
|
+
{ immediate: !0 }
|
|
29
|
+
);
|
|
30
|
+
const f = (r) => {
|
|
31
|
+
switch (r.permissionCode) {
|
|
32
|
+
case "9999":
|
|
33
|
+
p.value.forEach((s) => {
|
|
34
|
+
s.fieldType.includes("&") ? s.queryValue = [] : s.queryValue = void 0;
|
|
35
|
+
}), k("reset", []);
|
|
36
|
+
break;
|
|
37
|
+
default:
|
|
38
|
+
const t = p.value.filter((s) => !!s.queryValue);
|
|
39
|
+
k("search", t);
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
}, Y = () => {
|
|
43
|
+
b.value = !b.value;
|
|
44
|
+
};
|
|
45
|
+
return (r, t) => {
|
|
46
|
+
var S;
|
|
47
|
+
const s = d("el-input"), z = d("el-option"), A = d("el-select"), F = d("el-select-v2"), L = d("el-cascader"), w = d("el-date-picker"), T = d("el-form-item"), O = d("a-svg-icon"), $ = d("el-button"), B = d("el-form");
|
|
48
|
+
return o(p) && o(p).length ? (a(), h("div", oe, [
|
|
49
|
+
j(B, {
|
|
50
|
+
style: G({ "--table-query-row": c.data.tableConfig.tableQueryRowWidth }),
|
|
51
|
+
class: "form-content",
|
|
52
|
+
ref: "elForm",
|
|
53
|
+
"label-suffix": ":",
|
|
54
|
+
"label-position": "right"
|
|
55
|
+
}, {
|
|
56
|
+
default: m(() => [
|
|
57
|
+
(a(!0), h(C, null, g(o(p), (e, V) => J((a(), n(T, {
|
|
58
|
+
key: V,
|
|
59
|
+
class: "search-form-item",
|
|
60
|
+
"label-width": c.data.tableConfig.tableQueryLabelWidth,
|
|
61
|
+
label: e.fieldName
|
|
62
|
+
}, {
|
|
63
|
+
default: m(() => [
|
|
64
|
+
e.fieldType === "input" || e.fieldType === "editor" ? (a(), n(s, y({
|
|
65
|
+
key: 0,
|
|
66
|
+
modelValue: e.queryValue,
|
|
67
|
+
"onUpdate:modelValue": (l) => e.queryValue = l,
|
|
68
|
+
placeholder: `${o(u)("act.inputPlaceholder")}${e.fieldName}`,
|
|
69
|
+
clearable: "",
|
|
70
|
+
ref_for: !0
|
|
71
|
+
}, i(e), {
|
|
72
|
+
onKeyup: t[0] || (t[0] = U(x((l) => f({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"]))
|
|
73
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : _("", !0),
|
|
74
|
+
e.fieldType === "inputNumber" ? (a(), n(o(M), y({
|
|
75
|
+
key: 1,
|
|
76
|
+
modelValue: e.queryValue,
|
|
77
|
+
"onUpdate:modelValue": (l) => e.queryValue = l,
|
|
78
|
+
placeholder: `${o(u)("act.inputPlaceholder")}${e.fieldName}`,
|
|
79
|
+
clearable: "",
|
|
80
|
+
onKeyup: t[1] || (t[1] = U(x((l) => f({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"])),
|
|
81
|
+
ref_for: !0
|
|
82
|
+
}, i(e)), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : ["select", "switch", "multipleSelect"].includes(e.fieldType) ? (a(), n(A, y({
|
|
83
|
+
key: 2,
|
|
84
|
+
modelValue: e.queryValue,
|
|
85
|
+
"onUpdate:modelValue": (l) => e.queryValue = l,
|
|
86
|
+
placeholder: `${o(u)("act.selectPlaceholder")}${e.fieldName}`,
|
|
87
|
+
clearable: "",
|
|
88
|
+
filterable: "",
|
|
89
|
+
ref_for: !0
|
|
90
|
+
}, i(e), {
|
|
91
|
+
multiple: e.fieldType === "multipleSelect",
|
|
92
|
+
"collapse-tags": e.fieldType === "multipleSelect",
|
|
93
|
+
"collapse-tags-tooltip": e.fieldType === "multipleSelect",
|
|
94
|
+
onChange: t[2] || (t[2] = (l) => f({ permissionCode: 1001 }))
|
|
95
|
+
}), {
|
|
96
|
+
default: m(() => [
|
|
97
|
+
(a(!0), h(C, null, g(e.dataList, (l, H) => (a(), n(z, {
|
|
98
|
+
key: H,
|
|
99
|
+
label: l.key,
|
|
100
|
+
value: l.value
|
|
101
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
102
|
+
]),
|
|
103
|
+
_: 2
|
|
104
|
+
}, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "collapse-tags", "collapse-tags-tooltip"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (a(), n(F, y({
|
|
105
|
+
key: 3,
|
|
106
|
+
modelValue: e.queryValue,
|
|
107
|
+
"onUpdate:modelValue": (l) => e.queryValue = l,
|
|
108
|
+
options: e.dataList,
|
|
109
|
+
props: { ...o(le) },
|
|
110
|
+
placeholder: `${o(u)("act.selectPlaceholder")}${e.fieldName}`,
|
|
111
|
+
clearable: "",
|
|
112
|
+
filterable: "",
|
|
113
|
+
ref_for: !0
|
|
114
|
+
}, i(e), {
|
|
115
|
+
"collapse-tags": e.fieldType === "virtualizedMultipleSelect",
|
|
116
|
+
"collapse-tags-tooltip": e.fieldType === "virtualizedMultipleSelect",
|
|
117
|
+
multiple: e.fieldType === "virtualizedMultipleSelect",
|
|
118
|
+
onChange: t[3] || (t[3] = (l) => f({ permissionCode: 1001 }))
|
|
119
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "collapse-tags", "collapse-tags-tooltip", "multiple"])) : e.fieldType === "provinceCascade" ? (a(), n(L, y({
|
|
120
|
+
key: 4,
|
|
121
|
+
modelValue: e.queryValue,
|
|
122
|
+
"onUpdate:modelValue": (l) => e.queryValue = l,
|
|
123
|
+
options: e.dataList,
|
|
124
|
+
props: { ...o(te), [e.fieldUiType]: !0 },
|
|
125
|
+
clearable: "",
|
|
126
|
+
filterable: "",
|
|
127
|
+
placeholder: `${o(u)("act.selectPlaceholder")}${e.fieldName}`,
|
|
128
|
+
ref_for: !0
|
|
129
|
+
}, i(e)), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder"])) : e.fieldType === "date" ? (a(), n(w, y({
|
|
130
|
+
key: 5,
|
|
131
|
+
modelValue: e.queryValue,
|
|
132
|
+
"onUpdate:modelValue": (l) => e.queryValue = l,
|
|
133
|
+
type: "date",
|
|
134
|
+
placeholder: `${o(u)("act.selectPlaceholder")}${o(u)("act.time")}`,
|
|
135
|
+
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
136
|
+
ref_for: !0
|
|
137
|
+
}, i(e), {
|
|
138
|
+
onChange: t[4] || (t[4] = (l) => f({ permissionCode: 1001 }))
|
|
139
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : e.fieldType === "dateRange" ? (a(), n(w, y({
|
|
140
|
+
key: 6,
|
|
141
|
+
modelValue: e.queryValue,
|
|
142
|
+
"onUpdate:modelValue": (l) => e.queryValue = l,
|
|
143
|
+
type: "daterange",
|
|
144
|
+
"start-placeholder": o(u)("act.startTime"),
|
|
145
|
+
"end-placeholder": o(u)("act.endTime"),
|
|
146
|
+
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
147
|
+
ref_for: !0
|
|
148
|
+
}, i(e), {
|
|
149
|
+
onChange: t[5] || (t[5] = (l) => f({ permissionCode: 1001 }))
|
|
150
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder"])) : _("", !0)
|
|
151
|
+
]),
|
|
152
|
+
_: 2
|
|
153
|
+
}, 1032, ["label-width", "label"])), [
|
|
154
|
+
[X, Q(V)]
|
|
155
|
+
])), 128)),
|
|
156
|
+
o(p).length ? (a(), n(T, {
|
|
157
|
+
key: 0,
|
|
158
|
+
class: "search-form-btn",
|
|
159
|
+
"label-width": "0"
|
|
160
|
+
}, {
|
|
161
|
+
default: m(() => [
|
|
162
|
+
(a(!0), h(C, null, g(o(q), (e, V) => (a(), n($, {
|
|
163
|
+
key: V,
|
|
164
|
+
type: e.btnColor,
|
|
165
|
+
onClick: (l) => f(e)
|
|
166
|
+
}, {
|
|
167
|
+
default: m(() => [
|
|
168
|
+
e.btnIcon ? (a(), n(O, {
|
|
169
|
+
key: 0,
|
|
170
|
+
class: "mr6",
|
|
171
|
+
name: e.btnIcon,
|
|
172
|
+
width: "12",
|
|
173
|
+
height: "12",
|
|
174
|
+
color: "#fff"
|
|
175
|
+
}, null, 8, ["name"])) : _("", !0),
|
|
176
|
+
N(" " + P(e.btnName) + "1 ", 1)
|
|
177
|
+
]),
|
|
178
|
+
_: 2
|
|
179
|
+
}, 1032, ["type", "onClick"]))), 128))
|
|
180
|
+
]),
|
|
181
|
+
_: 1
|
|
182
|
+
})) : _("", !0)
|
|
183
|
+
]),
|
|
184
|
+
_: 1
|
|
185
|
+
}, 8, ["style"]),
|
|
186
|
+
c.data.tableConfig.isExpandQuery && ((S = o(p)) == null ? void 0 : S.length) > c.data.tableConfig.tableQueryRowWidth ? (a(), n($, {
|
|
187
|
+
key: 0,
|
|
188
|
+
class: "expand",
|
|
189
|
+
text: "",
|
|
190
|
+
size: "small",
|
|
191
|
+
icon: o(b) ? "ArrowDown" : "ArrowUp",
|
|
192
|
+
onClick: Y
|
|
193
|
+
}, {
|
|
194
|
+
default: m(() => [
|
|
195
|
+
N(P(o(b) ? "展开" : "收起"), 1)
|
|
196
|
+
]),
|
|
197
|
+
_: 1
|
|
198
|
+
}, 8, ["icon"])) : _("", !0)
|
|
199
|
+
])) : _("", !0);
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
}, se = /* @__PURE__ */ Z(ae, [["__scopeId", "data-v-8d2b7f0e"]]);
|
|
203
|
+
export {
|
|
204
|
+
se as default
|
|
205
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as h, watch as I, resolveComponent as _, openBlock as a, 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-a2634eef.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "element-plus";
|
|
5
5
|
const A = { class: "select-icon-container" }, F = { class: "icon-list" }, L = ["onClick"], P = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Ge = Object.defineProperty;
|
|
2
2
|
var Qe = (e, n, i) => n in e ? Ge(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
|
|
3
3
|
var A = (e, n, i) => (Qe(e, typeof n != "symbol" ? n + "" : n, i), i);
|
|
4
|
-
import { m as Ze } from "./index-
|
|
4
|
+
import { m as Ze } from "./index-a2634eef.js";
|
|
5
5
|
import "vue";
|
|
6
6
|
import "vue-router";
|
|
7
7
|
import "element-plus";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var M = Object.defineProperty;
|
|
2
2
|
var K = (e, t, r) => t in e ? M(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var _ = (e, t, r) => (K(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
4
|
-
import { t as R, m as E } from "./index-
|
|
4
|
+
import { t as R, m as E } from "./index-a2634eef.js";
|
|
5
5
|
import "vue";
|
|
6
6
|
import "vue-router";
|
|
7
7
|
import "element-plus";
|