act-plus 1.1.70 → 1.1.72
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 +50 -50
- package/lib/{dialogAddField-d5464c68.js → dialogAddField-3cde424e.js} +2 -2
- package/lib/{dialogConfigBtn-a040c8a8.js → dialogConfigBtn-2b6e2118.js} +298 -240
- package/lib/{dialogSiteComponentsParams-4a1bc1cc.js → dialogSiteComponentsParams-f3ed924a.js} +1 -1
- package/lib/{index-307d804a.js → index-04c33054.js} +1 -1
- package/lib/{index-2a4b41ad.js → index-1366d1ab.js} +1 -1
- package/lib/{index-d473d428.js → index-a2206f8c.js} +1 -1
- package/lib/{index-fb59c468.js → index-a823b78b.js} +8 -8
- package/lib/{index-fe6488e8.js → index-d2f95f0a.js} +2 -2
- package/lib/{index-b4512e42.js → index-deb65003.js} +1 -1
- package/lib/{index-33623979.js → index-ec8c8fec.js} +2241 -2125
- package/lib/{index-566f70f9.js → index-ee1558c9.js} +1 -1
- package/lib/index-f9636631.js +214 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/lib/index-1eb62bcb.js +0 -106
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as p, watch as h, resolveComponent as _, openBlock as r, createElementBlock as m, createVNode as v, unref as u, isRef as w, withCtx as f, createElementVNode as g, createBlock as C, createCommentVNode as N, createTextVNode as $, Fragment as B, renderList as E, normalizeClass as L } from "vue";
|
|
2
|
-
import { _ as P } from "./index-
|
|
2
|
+
import { _ as P } from "./index-ec8c8fec.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "element-plus";
|
|
5
5
|
const R = { class: "select-icon-container" }, S = { class: "icon-list" }, j = ["onClick"], z = {
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import { ref as J, inject as _, computed as K, watch as Q, resolveComponent as g, resolveDirective as U, openBlock as t, createElementBlock as m, Fragment as C, renderList as I, createBlock as s, resolveDynamicComponent as F, unref as d, withCtx as r, withDirectives as k, createCommentVNode as p, createTextVNode as h, toDisplayString as B, createVNode as N } from "vue";
|
|
2
|
+
import { _ as W, u as X, c as Y } from "./index-ec8c8fec.js";
|
|
3
|
+
import "vue-router";
|
|
4
|
+
import "element-plus";
|
|
5
|
+
const Z = { class: "header-operate-container" }, ee = {
|
|
6
|
+
__name: "index",
|
|
7
|
+
props: {
|
|
8
|
+
data: { type: Object, default: () => ({}) }
|
|
9
|
+
},
|
|
10
|
+
emits: ["onOperate"],
|
|
11
|
+
setup(P, { emit: M }) {
|
|
12
|
+
const R = M, y = P, { t: w } = X();
|
|
13
|
+
let f = J([]);
|
|
14
|
+
const A = _("globalProps"), O = _("menuPermissionBtns"), j = _("stringToBoolean"), q = _("matchCondition"), x = _("getTableData"), D = _("tableBtnRefs"), v = K(() => {
|
|
15
|
+
const {
|
|
16
|
+
tableConfig: { headerMoreBtnSplitNumber: o }
|
|
17
|
+
} = y.data;
|
|
18
|
+
return !o || o >= f.value.length;
|
|
19
|
+
}), E = () => {
|
|
20
|
+
const {
|
|
21
|
+
tableConfig: { headerMoreBtnSplitNumber: o }
|
|
22
|
+
} = y.data;
|
|
23
|
+
return v.value ? f.value : f.value.slice(0, o);
|
|
24
|
+
}, H = () => {
|
|
25
|
+
var n;
|
|
26
|
+
const {
|
|
27
|
+
tableConfig: { headerMoreBtnSplitNumber: o }
|
|
28
|
+
} = y.data;
|
|
29
|
+
return v.value ? [] : f.value.slice(o, (n = f.value) == null ? void 0 : n.length);
|
|
30
|
+
}, L = (o) => {
|
|
31
|
+
if (!o.matchFields.length)
|
|
32
|
+
return !0;
|
|
33
|
+
const n = o.matchFields.filter((a) => a.matchType != "default"), c = (a) => A.matchData[a.matchType][a.matchFieldName];
|
|
34
|
+
let $ = n.reduce((a, l, i) => {
|
|
35
|
+
const e = c(l);
|
|
36
|
+
return a += q(
|
|
37
|
+
l.matchCondition,
|
|
38
|
+
e,
|
|
39
|
+
l.fieldValue == "" ? null : l.fieldValue == "true" || l.fieldValue == "false" ? j(l.fieldValue) : l.fieldValue
|
|
40
|
+
), i !== n.length - 1 && (a += l.spliceCondition || "&&"), a;
|
|
41
|
+
}, "").split("||"), T = $.reduce((a, l, i) => (a += `(${l})`, i < $.length - 1 && (a += "||"), a), "");
|
|
42
|
+
return new Function(`return ${T}`)();
|
|
43
|
+
}, V = (o) => O.value.some((n) => n.unique == o.permissionCode) && L(o), z = (o) => {
|
|
44
|
+
f.value = (o || []).filter((n) => n.permissionCode !== 1001 && n.btnPostion.includes("header")).sort((n, c) => n.sort - c.sort).map((n) => (n.btnAlias && (n.btnName = n.btnAlias), Reflect.has(n, "isPromptVerificationSelectTable") || (n.isPromptVerificationSelectTable = "1"), n));
|
|
45
|
+
};
|
|
46
|
+
Q(
|
|
47
|
+
() => y.data,
|
|
48
|
+
(o, n) => {
|
|
49
|
+
z(o.buttons);
|
|
50
|
+
},
|
|
51
|
+
{ immediate: !0 }
|
|
52
|
+
);
|
|
53
|
+
const S = (o) => {
|
|
54
|
+
R("onOperate", o, {});
|
|
55
|
+
};
|
|
56
|
+
return (o, n) => {
|
|
57
|
+
const c = g("a-svg-icon"), b = g("el-button"), $ = g("el-icon"), T = g("el-dropdown-item"), a = g("el-dropdown-menu"), l = g("el-dropdown"), i = U("debounce");
|
|
58
|
+
return t(), m("div", Z, [
|
|
59
|
+
(t(!0), m(C, null, I(E(), (e, G) => (t(), m(C, {
|
|
60
|
+
key: e.permissionCode
|
|
61
|
+
}, [
|
|
62
|
+
V(e) ? (t(), m(C, { key: 0 }, [
|
|
63
|
+
e.isCustomBtn && e.customType == "component" ? (t(), s(F(e[e.customComponentName]), {
|
|
64
|
+
key: 0,
|
|
65
|
+
class: "custom-btn",
|
|
66
|
+
ref_for: !0,
|
|
67
|
+
ref: (u) => d(D)[`${e.customComponentName}-${e.permissionCode}`] = u,
|
|
68
|
+
buttonData: e,
|
|
69
|
+
onRefresh: n[0] || (n[0] = (u) => d(x)())
|
|
70
|
+
}, {
|
|
71
|
+
default: r(() => [
|
|
72
|
+
k((t(), s(b, {
|
|
73
|
+
class: "el-btn",
|
|
74
|
+
type: e.btnColor,
|
|
75
|
+
loading: e[`loading${e.permissionCode}`],
|
|
76
|
+
onClick: (u) => S(e)
|
|
77
|
+
}, {
|
|
78
|
+
default: r(() => [
|
|
79
|
+
e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(), s(c, {
|
|
80
|
+
key: 0,
|
|
81
|
+
class: "mr4",
|
|
82
|
+
name: e.btnIcon,
|
|
83
|
+
width: "12",
|
|
84
|
+
height: "12",
|
|
85
|
+
color: "#fff"
|
|
86
|
+
}, null, 8, ["name"])) : p("", !0),
|
|
87
|
+
h(" " + B(e[`loading${e.permissionCode}`] ? e.btnName + d(w)("act.loading") + "..." : e.btnName), 1)
|
|
88
|
+
]),
|
|
89
|
+
_: 2
|
|
90
|
+
}, 1032, ["type", "loading", "onClick"])), [
|
|
91
|
+
[i]
|
|
92
|
+
])
|
|
93
|
+
]),
|
|
94
|
+
_: 2
|
|
95
|
+
}, 1064, ["buttonData"])) : k((t(), s(b, {
|
|
96
|
+
key: 1,
|
|
97
|
+
class: "el-btn",
|
|
98
|
+
type: e.btnColor,
|
|
99
|
+
loading: e[`loading${e.permissionCode}`],
|
|
100
|
+
onClick: (u) => S(e)
|
|
101
|
+
}, {
|
|
102
|
+
default: r(() => [
|
|
103
|
+
e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(), s(c, {
|
|
104
|
+
key: 0,
|
|
105
|
+
class: "mr4",
|
|
106
|
+
name: e.btnIcon,
|
|
107
|
+
width: "12",
|
|
108
|
+
height: "12",
|
|
109
|
+
color: "#fff"
|
|
110
|
+
}, null, 8, ["name"])) : p("", !0),
|
|
111
|
+
h(" " + B(e[`loading${e.permissionCode}`] ? e.btnName + d(w)("act.loading") + "..." : e.btnName), 1)
|
|
112
|
+
]),
|
|
113
|
+
_: 2
|
|
114
|
+
}, 1032, ["type", "loading", "onClick"])), [
|
|
115
|
+
[i]
|
|
116
|
+
])
|
|
117
|
+
], 64)) : p("", !0)
|
|
118
|
+
], 64))), 128)),
|
|
119
|
+
v.value ? p("", !0) : (t(), s(l, {
|
|
120
|
+
key: 0,
|
|
121
|
+
class: "header-opreate-dropdown"
|
|
122
|
+
}, {
|
|
123
|
+
dropdown: r(() => [
|
|
124
|
+
N(a, null, {
|
|
125
|
+
default: r(() => [
|
|
126
|
+
(t(!0), m(C, null, I(H(), (e, G) => (t(), s(T, {
|
|
127
|
+
key: e.permissionCode,
|
|
128
|
+
onClick: (u) => S(e)
|
|
129
|
+
}, {
|
|
130
|
+
default: r(() => [
|
|
131
|
+
V(e) ? (t(), m(C, { key: 0 }, [
|
|
132
|
+
e.isCustomBtn && e.customType == "component" ? (t(), s(F(e[e.customComponentName]), {
|
|
133
|
+
key: 0,
|
|
134
|
+
class: "custom-btn",
|
|
135
|
+
ref_for: !0,
|
|
136
|
+
ref: (u) => d(D)[`${e.customComponentName}-${e.permissionCode}`] = u,
|
|
137
|
+
buttonData: e,
|
|
138
|
+
onRefresh: n[1] || (n[1] = (u) => d(x)())
|
|
139
|
+
}, {
|
|
140
|
+
default: r(() => [
|
|
141
|
+
k((t(), s(b, {
|
|
142
|
+
class: "el-btn",
|
|
143
|
+
type: e.btnColor,
|
|
144
|
+
loading: e[`loading${e.permissionCode}`]
|
|
145
|
+
}, {
|
|
146
|
+
default: r(() => [
|
|
147
|
+
e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(), s(c, {
|
|
148
|
+
key: 0,
|
|
149
|
+
class: "mr4",
|
|
150
|
+
name: e.btnIcon,
|
|
151
|
+
width: "12",
|
|
152
|
+
height: "12",
|
|
153
|
+
color: "#fff"
|
|
154
|
+
}, null, 8, ["name"])) : p("", !0),
|
|
155
|
+
h(" " + B(e[`loading${e.permissionCode}`] ? e.btnName + d(w)("act.loading") + "..." : e.btnName), 1)
|
|
156
|
+
]),
|
|
157
|
+
_: 2
|
|
158
|
+
}, 1032, ["type", "loading"])), [
|
|
159
|
+
[i]
|
|
160
|
+
])
|
|
161
|
+
]),
|
|
162
|
+
_: 2
|
|
163
|
+
}, 1064, ["buttonData"])) : k((t(), s(b, {
|
|
164
|
+
key: 1,
|
|
165
|
+
class: "el-btn",
|
|
166
|
+
type: e.btnColor,
|
|
167
|
+
loading: e[`loading${e.permissionCode}`]
|
|
168
|
+
}, {
|
|
169
|
+
default: r(() => [
|
|
170
|
+
e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(), s(c, {
|
|
171
|
+
key: 0,
|
|
172
|
+
class: "mr4",
|
|
173
|
+
name: e.btnIcon,
|
|
174
|
+
width: "12",
|
|
175
|
+
height: "12",
|
|
176
|
+
color: "#fff"
|
|
177
|
+
}, null, 8, ["name"])) : p("", !0),
|
|
178
|
+
h(" " + B(e[`loading${e.permissionCode}`] ? e.btnName + d(w)("act.loading") + "..." : e.btnName), 1)
|
|
179
|
+
]),
|
|
180
|
+
_: 2
|
|
181
|
+
}, 1032, ["type", "loading"])), [
|
|
182
|
+
[i]
|
|
183
|
+
])
|
|
184
|
+
], 64)) : p("", !0)
|
|
185
|
+
]),
|
|
186
|
+
_: 2
|
|
187
|
+
}, 1032, ["onClick"]))), 128))
|
|
188
|
+
]),
|
|
189
|
+
_: 1
|
|
190
|
+
})
|
|
191
|
+
]),
|
|
192
|
+
default: r(() => [
|
|
193
|
+
N(b, { type: "primary" }, {
|
|
194
|
+
default: r(() => [
|
|
195
|
+
n[2] || (n[2] = h(" 更多按钮")),
|
|
196
|
+
N($, { class: "el-icon--right" }, {
|
|
197
|
+
default: r(() => [
|
|
198
|
+
N(d(Y))
|
|
199
|
+
]),
|
|
200
|
+
_: 1
|
|
201
|
+
})
|
|
202
|
+
]),
|
|
203
|
+
_: 1
|
|
204
|
+
})
|
|
205
|
+
]),
|
|
206
|
+
_: 1
|
|
207
|
+
}))
|
|
208
|
+
]);
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
}, le = /* @__PURE__ */ W(ee, [["__scopeId", "data-v-f0dda1b5"]]);
|
|
212
|
+
export {
|
|
213
|
+
le as default
|
|
214
|
+
};
|
package/package.json
CHANGED
package/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.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{font-size:14px}.el-select,.el-cascader,.el-form--inline .el-form-item{display:block;width:100%}.el-card{height:100%;--el-card-padding: 12px}.el-card__body{height:100%;box-sizing:border-box}.el-date-editor{--el-date-editor-width: 100%}.month-range .el-date-range-picker{width:320px}.month-range .el-date-range-picker .el-picker-panel__body{min-width:320px}.month-range .is-left{width:100%}.month-range .el-date-range-picker__header,.month-range .is-right{display:none}.table-link{cursor:pointer;color:#409eff;text-decoration:underline}.a-loading[data-v-048c6c03]{display:flex;align-items:center;justify-content:center;width:100%;height:50px;font-size:32px}.a-loading .dot[data-v-048c6c03]{animation:antRotate-048c6c03 1.2s infinite linear;transform:rotate(45deg);position:relative;display:inline-block;width:28px;height:28px;box-sizing:border-box}.a-loading .dot i[data-v-048c6c03]{width:12px;height:12px;position:absolute;display:block;background-color:#1890ff;border-radius:100%;transform:scale(.75);transform-origin:50% 50%;opacity:.3;animation:antSpinMove-048c6c03 1s infinite linear alternate}.a-loading .dot i[data-v-048c6c03]:nth-child(1){top:0;left:0}.a-loading .dot i[data-v-048c6c03]:nth-child(2){top:0;right:0;-webkit-animation-delay:.4s;animation-delay:.4s}.a-loading .dot i[data-v-048c6c03]:nth-child(3){right:0;bottom:0;-webkit-animation-delay:.8s;animation-delay:.8s}.a-loading .dot i[data-v-048c6c03]:nth-child(4){bottom:0;left:0;-webkit-animation-delay:1.2s;animation-delay:1.2s}@keyframes antRotate-048c6c03{to{-webkit-transform:rotate(405deg);transform:rotate(405deg)}}@-webkit-keyframes antRotate-048c6c03{to{-webkit-transform:rotate(405deg);transform:rotate(405deg)}}@keyframes antSpinMove-048c6c03{to{opacity:1}}@-webkit-keyframes antSpinMove-048c6c03{to{opacity:1}}[data-v-
|
|
1
|
+
.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{font-size:14px}.el-select,.el-cascader,.el-form--inline .el-form-item{display:block;width:100%}.el-card{height:100%;--el-card-padding: 12px}.el-card__body{height:100%;box-sizing:border-box}.el-date-editor{--el-date-editor-width: 100%}.month-range .el-date-range-picker{width:320px}.month-range .el-date-range-picker .el-picker-panel__body{min-width:320px}.month-range .is-left{width:100%}.month-range .el-date-range-picker__header,.month-range .is-right{display:none}.table-link{cursor:pointer;color:#409eff;text-decoration:underline}.a-loading[data-v-048c6c03]{display:flex;align-items:center;justify-content:center;width:100%;height:50px;font-size:32px}.a-loading .dot[data-v-048c6c03]{animation:antRotate-048c6c03 1.2s infinite linear;transform:rotate(45deg);position:relative;display:inline-block;width:28px;height:28px;box-sizing:border-box}.a-loading .dot i[data-v-048c6c03]{width:12px;height:12px;position:absolute;display:block;background-color:#1890ff;border-radius:100%;transform:scale(.75);transform-origin:50% 50%;opacity:.3;animation:antSpinMove-048c6c03 1s infinite linear alternate}.a-loading .dot i[data-v-048c6c03]:nth-child(1){top:0;left:0}.a-loading .dot i[data-v-048c6c03]:nth-child(2){top:0;right:0;-webkit-animation-delay:.4s;animation-delay:.4s}.a-loading .dot i[data-v-048c6c03]:nth-child(3){right:0;bottom:0;-webkit-animation-delay:.8s;animation-delay:.8s}.a-loading .dot i[data-v-048c6c03]:nth-child(4){bottom:0;left:0;-webkit-animation-delay:1.2s;animation-delay:1.2s}@keyframes antRotate-048c6c03{to{-webkit-transform:rotate(405deg);transform:rotate(405deg)}}@-webkit-keyframes antRotate-048c6c03{to{-webkit-transform:rotate(405deg);transform:rotate(405deg)}}@keyframes antSpinMove-048c6c03{to{opacity:1}}@-webkit-keyframes antSpinMove-048c6c03{to{opacity:1}}[data-v-a583e54a] .el-empty__image{width:100%}.file-image[data-v-a583e54a]{display:block;width:32px;height:32px;margin:0 auto;border-radius:4px;line-height:32px!important}.no-image[data-v-a583e54a]{width:100%;height:100%;font-size:12px;background-color:#f5f7fa}.act-module[data-v-a583e54a]{padding:0;margin:0;border:none}.table-opreate-dropdown[data-v-a583e54a]{margin:4px 0 0 8px}.table-btn-more[data-v-a583e54a]{width:16px;height:16px}.table-btn-more[data-v-a583e54a]:hover{cursor:pointer;opacity:.8}.add-icon-btn[data-v-fa895b16]{cursor:pointer;width:24px;height:24px;margin-left:6px}.table-post-params[data-v-fa895b16]{position:relative;margin-bottom:12px}.table-post-params .submit-operate[data-v-fa895b16]{position:absolute;top:-20px;right:-10px;display:flex;align-items:center}.table-post-params .submit-operate .match-opreate[data-v-fa895b16]{cursor:pointer;width:12px;height:12px}.card-header[data-v-8c801481]{display:flex;align-items:center}.card-header -operate[data-v-8c801481]{margin-left:auto}.form-list[data-v-8c801481]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-8c801481]:last-child{border:none}.config-list-operate[data-v-8c801481]{display:flex;align-items:center;justify-content:flex-end}.card-header[data-v-75e750d2]{display:flex;align-items:center}.card-header-operate[data-v-75e750d2]{margin-left:auto}.form-list[data-v-75e750d2]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-75e750d2]:last-child{border:none}.config-list-operate[data-v-75e750d2]{display:flex;align-items:center;justify-content:flex-end}[data-v-75e750d2] .el-badge__content.is-fixed{transform:translateY(-50%) translate(100%) scale(.7)}.submit-operate[data-v-8fa48448]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-8fa48448]{cursor:pointer;width:20px;height:20px}.page-container[data-v-8dfa8a8a]{position:relative}.page-container .header-operate[data-v-8dfa8a8a]{position:sticky;top:0;z-index:999}.page-container .submit-box[data-v-8dfa8a8a]{display:flex;align-items:center;justify-content:space-between}.page-container .submit-box-r[data-v-8dfa8a8a]{display:flex;align-items:center}.page-container .submit-box-r .menu-select[data-v-8dfa8a8a]{width:360px;margin:0 24px}.search-module-container[data-v-c49a11b4] .el-form-item{margin-bottom:8px}.search-module-container[data-v-c49a11b4] .el-select__selection{flex-wrap:nowrap;width:200px}.search-module-container .form-content[data-v-c49a11b4]{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-c49a11b4]{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-c49a11b4]{display:flex;margin:0 auto;color:#a4a2a2}.header-operate-container[data-v-f0dda1b5]{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap}.header-operate-container .el-btn[data-v-f0dda1b5]{margin:2px}.header-operate-container .header-opreate-dropdown[data-v-f0dda1b5]{margin:4px 0 0 8px}.header-operate-container .header-btn-more[data-v-f0dda1b5]{width:16px;height:16px}.header-operate-container .header-btn-more[data-v-f0dda1b5]:hover{cursor:pointer;opacity:.8}.act-table .table-pagination[data-v-d2da0301]{padding:12px 4px;justify-content:flex-end}.no-config[data-v-c6e7e23b]{line-height:32px;font-weight:700}.no-config-field[data-v-c6e7e23b]{color:red}.card-header[data-v-be1c5be6]{display:flex;align-items:center}.card-header-operate[data-v-be1c5be6]{margin-left:auto}.add-icon-btn[data-v-325d2233]{cursor:pointer;width:24px;height:24px;margin-left:6px}.condition-box[data-v-325d2233]{display:flex;justify-content:center}.condition-box[data-v-325d2233] .el-form-item__content{flex:0;min-width:300px}.submit-operate[data-v-325d2233]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-325d2233]{cursor:pointer;width:20px;height:20px}.add-icon-btn[data-v-6b2ebaa8]{cursor:pointer;width:24px;height:24px;margin-left:6px}.submit-operate[data-v-6b2ebaa8]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-6b2ebaa8]{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-308d02d4]{display:flex;align-items:center}.select-icon-container .icon-value .icon-btn[data-v-308d02d4]{margin-left:12px}.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}.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}.act-code-mirror[data-v-451d513f]{width:100%}.act-code-mirror .format-code-btn[data-v-451d513f]{margin-bottom:4px}
|
package/lib/index-1eb62bcb.js
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { ref as R, inject as l, watch as j, resolveComponent as y, resolveDirective as q, openBlock as r, createElementBlock as u, Fragment as f, renderList as E, unref as d, createBlock as i, resolveDynamicComponent as H, withCtx as b, withDirectives as C, createCommentVNode as _, createTextVNode as k, toDisplayString as B } from "vue";
|
|
2
|
-
import { _ as M, u as z } from "./index-33623979.js";
|
|
3
|
-
import "vue-router";
|
|
4
|
-
import "element-plus";
|
|
5
|
-
const G = { class: "header-operate-container" }, J = {
|
|
6
|
-
__name: "index",
|
|
7
|
-
props: {
|
|
8
|
-
data: { type: Object, default: () => ({}) }
|
|
9
|
-
},
|
|
10
|
-
emits: ["onOperate"],
|
|
11
|
-
setup(w, { emit: x }) {
|
|
12
|
-
const N = x, T = w, { t: D } = z();
|
|
13
|
-
let h = R([]);
|
|
14
|
-
const V = l("globalProps"), v = l("menuPermissionBtns"), F = l("stringToBoolean"), $ = l("matchCondition"), S = l("getTableData"), P = l("tableBtnRefs"), A = (s) => {
|
|
15
|
-
if (!s.matchFields.length)
|
|
16
|
-
return !0;
|
|
17
|
-
const t = s.matchFields.filter((o) => o.matchType != "default"), a = (o) => V.matchData[o.matchType][o.matchFieldName];
|
|
18
|
-
let c = t.reduce((o, n, m) => {
|
|
19
|
-
const L = a(n);
|
|
20
|
-
return o += $(
|
|
21
|
-
n.matchCondition,
|
|
22
|
-
L,
|
|
23
|
-
n.fieldValue == "" ? null : n.fieldValue == "true" || n.fieldValue == "false" ? F(n.fieldValue) : n.fieldValue
|
|
24
|
-
), m !== t.length - 1 && (o += n.spliceCondition || "&&"), o;
|
|
25
|
-
}, "").split("||"), e = c.reduce((o, n, m) => (o += `(${n})`, m < c.length - 1 && (o += "||"), o), "");
|
|
26
|
-
return new Function(`return ${e}`)();
|
|
27
|
-
}, I = (s) => v.value.some((t) => t.unique == s.permissionCode) && A(s), O = (s) => {
|
|
28
|
-
h.value = (s || []).filter((t) => t.permissionCode !== 1001 && t.btnPostion.includes("header")).sort((t, a) => t.sort - a.sort).map((t) => (t.btnAlias && (t.btnName = t.btnAlias), t));
|
|
29
|
-
};
|
|
30
|
-
j(
|
|
31
|
-
() => T.data,
|
|
32
|
-
(s, t) => {
|
|
33
|
-
O(s.buttons);
|
|
34
|
-
},
|
|
35
|
-
{ immediate: !0 }
|
|
36
|
-
);
|
|
37
|
-
const g = (s) => {
|
|
38
|
-
N("onOperate", s, {});
|
|
39
|
-
};
|
|
40
|
-
return (s, t) => {
|
|
41
|
-
const a = y("a-svg-icon"), p = y("el-button"), c = q("debounce");
|
|
42
|
-
return r(), u("div", G, [
|
|
43
|
-
(r(!0), u(f, null, E(d(h), (e, o) => (r(), u(f, { key: o }, [
|
|
44
|
-
I(e) ? (r(), u(f, { key: 0 }, [
|
|
45
|
-
e.isCustomBtn && e.customType == "component" ? (r(), i(H(e[e.customComponentName]), {
|
|
46
|
-
key: 0,
|
|
47
|
-
class: "custom-btn",
|
|
48
|
-
ref_for: !0,
|
|
49
|
-
ref: (n) => d(P)[`${e.customComponentName}-${e.permissionCode}`] = n,
|
|
50
|
-
buttonData: e,
|
|
51
|
-
onRefresh: t[0] || (t[0] = (n) => d(S)())
|
|
52
|
-
}, {
|
|
53
|
-
default: b(() => [
|
|
54
|
-
C((r(), i(p, {
|
|
55
|
-
class: "el-btn",
|
|
56
|
-
type: e.btnColor,
|
|
57
|
-
onClick: (n) => g(e)
|
|
58
|
-
}, {
|
|
59
|
-
default: b(() => [
|
|
60
|
-
e.btnIcon ? (r(), i(a, {
|
|
61
|
-
key: 0,
|
|
62
|
-
class: "mr4",
|
|
63
|
-
name: e.btnIcon,
|
|
64
|
-
width: "12",
|
|
65
|
-
height: "12",
|
|
66
|
-
color: "#fff"
|
|
67
|
-
}, null, 8, ["name"])) : _("", !0),
|
|
68
|
-
k(" " + B(e.btnName), 1)
|
|
69
|
-
]),
|
|
70
|
-
_: 2
|
|
71
|
-
}, 1032, ["type", "onClick"])), [
|
|
72
|
-
[c]
|
|
73
|
-
])
|
|
74
|
-
]),
|
|
75
|
-
_: 2
|
|
76
|
-
}, 1064, ["buttonData"])) : C((r(), i(p, {
|
|
77
|
-
key: 1,
|
|
78
|
-
class: "el-btn",
|
|
79
|
-
type: e.btnColor,
|
|
80
|
-
loading: e.opeateLoading,
|
|
81
|
-
onClick: (n) => g(e)
|
|
82
|
-
}, {
|
|
83
|
-
default: b(() => [
|
|
84
|
-
e.btnIcon ? (r(), i(a, {
|
|
85
|
-
key: 0,
|
|
86
|
-
class: "mr4",
|
|
87
|
-
name: e.btnIcon,
|
|
88
|
-
width: "12",
|
|
89
|
-
height: "12",
|
|
90
|
-
color: "#fff"
|
|
91
|
-
}, null, 8, ["name"])) : _("", !0),
|
|
92
|
-
k(" " + B(e.opeateLoading ? e.btnName + d(D)("act.loading") + "..." : e.btnName), 1)
|
|
93
|
-
]),
|
|
94
|
-
_: 2
|
|
95
|
-
}, 1032, ["type", "loading", "onClick"])), [
|
|
96
|
-
[c]
|
|
97
|
-
])
|
|
98
|
-
], 64)) : _("", !0)
|
|
99
|
-
], 64))), 128))
|
|
100
|
-
]);
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
}, X = /* @__PURE__ */ M(J, [["__scopeId", "data-v-6477fb97"]]);
|
|
104
|
-
export {
|
|
105
|
-
X as default
|
|
106
|
-
};
|