act-plus 1.1.71 → 1.1.73
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 +46 -46
- package/lib/{dialogAddField-3113ef2b.js → dialogAddField-01e88a97.js} +2 -2
- package/lib/{dialogConfigBtn-ae0556a8.js → dialogConfigBtn-8dd263f0.js} +270 -235
- package/lib/{dialogSiteComponentsParams-926ea5a5.js → dialogSiteComponentsParams-a23bf357.js} +1 -1
- package/lib/{index-1ea9e204.js → index-247b916c.js} +1 -1
- package/lib/{index-e5bc549f.js → index-3fbc771b.js} +63 -63
- package/lib/{index-a3454395.js → index-401e66f5.js} +1 -1
- package/lib/{index-75524990.js → index-4d3f0b19.js} +1 -1
- package/lib/{index-cfb9a451.js → index-79f3b449.js} +2 -2
- package/lib/{index-a0830ef7.js → index-9651fda7.js} +1 -1
- package/lib/{index-f1e46dab.js → index-9fa5dd39.js} +1 -1
- package/lib/{index-5fa7a339.js → index-af897a17.js} +2067 -2020
- package/lib/{index-462d5df6.js → index-b5ccb862.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
package/lib/{dialogSiteComponentsParams-926ea5a5.js → dialogSiteComponentsParams-a23bf357.js}
RENAMED
|
@@ -8,7 +8,7 @@ const B = { class: "dialog-footer" }, A = {
|
|
|
8
8
|
},
|
|
9
9
|
emits: ["update:visible", "refresh", "update:modelValue"],
|
|
10
10
|
setup(f, { emit: c }) {
|
|
11
|
-
const v = _(() => import("./index-
|
|
11
|
+
const v = _(() => import("./index-401e66f5.js")), n = c, o = f;
|
|
12
12
|
let t = C();
|
|
13
13
|
y(
|
|
14
14
|
() => o.visible,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineAsyncComponent as se, inject as h, ref as q, watch as de, resolveComponent as f, resolveDirective as pe, unref as t, openBlock as n, createElementBlock as V, createVNode as ce, normalizeStyle as ie, withCtx as T, Fragment as k, renderList as L, createBlock as d, mergeProps as C, withKeys as H, withModifiers as K, createCommentVNode as g, resolveDynamicComponent as fe, createElementVNode as me, toDisplayString as S, createTextVNode as M, withDirectives as ye } from "vue";
|
|
2
|
-
import { _ as be, u as Ve, P as Ce, a as _e, b as he } from "./index-
|
|
2
|
+
import { _ as be, u as Ve, P as Ce, a as _e, b as he } from "./index-af897a17.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "element-plus";
|
|
5
5
|
const ge = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ref as J, inject as
|
|
2
|
-
import { _ as W, u as X, c as Y } from "./index-
|
|
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-af897a17.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "element-plus";
|
|
5
5
|
const Z = { class: "header-operate-container" }, ee = {
|
|
@@ -8,10 +8,10 @@ const Z = { class: "header-operate-container" }, ee = {
|
|
|
8
8
|
data: { type: Object, default: () => ({}) }
|
|
9
9
|
},
|
|
10
10
|
emits: ["onOperate"],
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
11
|
+
setup(P, { emit: M }) {
|
|
12
|
+
const R = M, y = P, { t: w } = X();
|
|
13
13
|
let f = J([]);
|
|
14
|
-
const
|
|
14
|
+
const A = _("globalProps"), O = _("menuPermissionBtns"), j = _("stringToBoolean"), q = _("matchCondition"), x = _("getTableData"), D = _("tableBtnRefs"), v = K(() => {
|
|
15
15
|
const {
|
|
16
16
|
tableConfig: { headerMoreBtnSplitNumber: o }
|
|
17
17
|
} = y.data;
|
|
@@ -30,18 +30,18 @@ const Z = { class: "header-operate-container" }, ee = {
|
|
|
30
30
|
}, L = (o) => {
|
|
31
31
|
if (!o.matchFields.length)
|
|
32
32
|
return !0;
|
|
33
|
-
const n = o.matchFields.filter((a) => a.matchType != "default"),
|
|
34
|
-
let
|
|
35
|
-
const e =
|
|
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
36
|
return a += q(
|
|
37
37
|
l.matchCondition,
|
|
38
38
|
e,
|
|
39
39
|
l.fieldValue == "" ? null : l.fieldValue == "true" || l.fieldValue == "false" ? j(l.fieldValue) : l.fieldValue
|
|
40
|
-
),
|
|
41
|
-
}, "").split("||"),
|
|
42
|
-
return new Function(`return ${
|
|
43
|
-
}, V = (o) =>
|
|
44
|
-
f.value = (o || []).filter((n) => n.permissionCode !== 1001 && n.btnPostion.includes("header")).sort((n,
|
|
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
45
|
};
|
|
46
46
|
Q(
|
|
47
47
|
() => y.data,
|
|
@@ -51,32 +51,32 @@ const Z = { class: "header-operate-container" }, ee = {
|
|
|
51
51
|
{ immediate: !0 }
|
|
52
52
|
);
|
|
53
53
|
const S = (o) => {
|
|
54
|
-
|
|
54
|
+
R("onOperate", o, {});
|
|
55
55
|
};
|
|
56
56
|
return (o, n) => {
|
|
57
|
-
const
|
|
58
|
-
return t(),
|
|
59
|
-
(t(!0),
|
|
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
60
|
key: e.permissionCode
|
|
61
61
|
}, [
|
|
62
|
-
V(e) ? (t(),
|
|
63
|
-
e.isCustomBtn && e.customType == "component" ? (t(),
|
|
62
|
+
V(e) ? (t(), m(C, { key: 0 }, [
|
|
63
|
+
e.isCustomBtn && e.customType == "component" ? (t(), s(F(e[e.customComponentName]), {
|
|
64
64
|
key: 0,
|
|
65
65
|
class: "custom-btn",
|
|
66
66
|
ref_for: !0,
|
|
67
|
-
ref: (
|
|
67
|
+
ref: (u) => d(D)[`${e.customComponentName}-${e.permissionCode}`] = u,
|
|
68
68
|
buttonData: e,
|
|
69
|
-
onRefresh: n[0] || (n[0] = (
|
|
69
|
+
onRefresh: n[0] || (n[0] = (u) => d(x)())
|
|
70
70
|
}, {
|
|
71
|
-
default:
|
|
72
|
-
|
|
71
|
+
default: r(() => [
|
|
72
|
+
k((t(), s(b, {
|
|
73
73
|
class: "el-btn",
|
|
74
74
|
type: e.btnColor,
|
|
75
75
|
loading: e[`loading${e.permissionCode}`],
|
|
76
|
-
onClick: (
|
|
76
|
+
onClick: (u) => S(e)
|
|
77
77
|
}, {
|
|
78
|
-
default:
|
|
79
|
-
e.btnIcon ? (t(),
|
|
78
|
+
default: r(() => [
|
|
79
|
+
e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(), s(c, {
|
|
80
80
|
key: 0,
|
|
81
81
|
class: "mr4",
|
|
82
82
|
name: e.btnIcon,
|
|
@@ -84,23 +84,23 @@ const Z = { class: "header-operate-container" }, ee = {
|
|
|
84
84
|
height: "12",
|
|
85
85
|
color: "#fff"
|
|
86
86
|
}, null, 8, ["name"])) : p("", !0),
|
|
87
|
-
h(" " +
|
|
87
|
+
h(" " + B(e[`loading${e.permissionCode}`] ? e.btnName + d(w)("act.loading") + "..." : e.btnName), 1)
|
|
88
88
|
]),
|
|
89
89
|
_: 2
|
|
90
90
|
}, 1032, ["type", "loading", "onClick"])), [
|
|
91
|
-
[
|
|
91
|
+
[i]
|
|
92
92
|
])
|
|
93
93
|
]),
|
|
94
94
|
_: 2
|
|
95
|
-
}, 1064, ["buttonData"])) :
|
|
95
|
+
}, 1064, ["buttonData"])) : k((t(), s(b, {
|
|
96
96
|
key: 1,
|
|
97
97
|
class: "el-btn",
|
|
98
98
|
type: e.btnColor,
|
|
99
99
|
loading: e[`loading${e.permissionCode}`],
|
|
100
|
-
onClick: (
|
|
100
|
+
onClick: (u) => S(e)
|
|
101
101
|
}, {
|
|
102
|
-
default:
|
|
103
|
-
e.btnIcon ? (t(),
|
|
102
|
+
default: r(() => [
|
|
103
|
+
e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(), s(c, {
|
|
104
104
|
key: 0,
|
|
105
105
|
class: "mr4",
|
|
106
106
|
name: e.btnIcon,
|
|
@@ -108,43 +108,43 @@ const Z = { class: "header-operate-container" }, ee = {
|
|
|
108
108
|
height: "12",
|
|
109
109
|
color: "#fff"
|
|
110
110
|
}, null, 8, ["name"])) : p("", !0),
|
|
111
|
-
h(" " +
|
|
111
|
+
h(" " + B(e[`loading${e.permissionCode}`] ? e.btnName + d(w)("act.loading") + "..." : e.btnName), 1)
|
|
112
112
|
]),
|
|
113
113
|
_: 2
|
|
114
114
|
}, 1032, ["type", "loading", "onClick"])), [
|
|
115
|
-
[
|
|
115
|
+
[i]
|
|
116
116
|
])
|
|
117
117
|
], 64)) : p("", !0)
|
|
118
118
|
], 64))), 128)),
|
|
119
|
-
v.value ? p("", !0) : (t(),
|
|
119
|
+
v.value ? p("", !0) : (t(), s(l, {
|
|
120
120
|
key: 0,
|
|
121
121
|
class: "header-opreate-dropdown"
|
|
122
122
|
}, {
|
|
123
|
-
dropdown:
|
|
124
|
-
|
|
125
|
-
default:
|
|
126
|
-
(t(!0),
|
|
123
|
+
dropdown: r(() => [
|
|
124
|
+
N(a, null, {
|
|
125
|
+
default: r(() => [
|
|
126
|
+
(t(!0), m(C, null, I(H(), (e, G) => (t(), s(T, {
|
|
127
127
|
key: e.permissionCode,
|
|
128
|
-
onClick: (
|
|
128
|
+
onClick: (u) => S(e)
|
|
129
129
|
}, {
|
|
130
|
-
default:
|
|
131
|
-
V(e) ? (t(),
|
|
132
|
-
e.isCustomBtn && e.customType == "component" ? (t(),
|
|
130
|
+
default: r(() => [
|
|
131
|
+
V(e) ? (t(), m(C, { key: 0 }, [
|
|
132
|
+
e.isCustomBtn && e.customType == "component" ? (t(), s(F(e[e.customComponentName]), {
|
|
133
133
|
key: 0,
|
|
134
134
|
class: "custom-btn",
|
|
135
135
|
ref_for: !0,
|
|
136
|
-
ref: (
|
|
136
|
+
ref: (u) => d(D)[`${e.customComponentName}-${e.permissionCode}`] = u,
|
|
137
137
|
buttonData: e,
|
|
138
|
-
onRefresh: n[1] || (n[1] = (
|
|
138
|
+
onRefresh: n[1] || (n[1] = (u) => d(x)())
|
|
139
139
|
}, {
|
|
140
|
-
default:
|
|
141
|
-
|
|
140
|
+
default: r(() => [
|
|
141
|
+
k((t(), s(b, {
|
|
142
142
|
class: "el-btn",
|
|
143
143
|
type: e.btnColor,
|
|
144
144
|
loading: e[`loading${e.permissionCode}`]
|
|
145
145
|
}, {
|
|
146
|
-
default:
|
|
147
|
-
e.btnIcon ? (t(),
|
|
146
|
+
default: r(() => [
|
|
147
|
+
e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(), s(c, {
|
|
148
148
|
key: 0,
|
|
149
149
|
class: "mr4",
|
|
150
150
|
name: e.btnIcon,
|
|
@@ -152,22 +152,22 @@ const Z = { class: "header-operate-container" }, ee = {
|
|
|
152
152
|
height: "12",
|
|
153
153
|
color: "#fff"
|
|
154
154
|
}, null, 8, ["name"])) : p("", !0),
|
|
155
|
-
h(" " +
|
|
155
|
+
h(" " + B(e[`loading${e.permissionCode}`] ? e.btnName + d(w)("act.loading") + "..." : e.btnName), 1)
|
|
156
156
|
]),
|
|
157
157
|
_: 2
|
|
158
158
|
}, 1032, ["type", "loading"])), [
|
|
159
|
-
[
|
|
159
|
+
[i]
|
|
160
160
|
])
|
|
161
161
|
]),
|
|
162
162
|
_: 2
|
|
163
|
-
}, 1064, ["buttonData"])) :
|
|
163
|
+
}, 1064, ["buttonData"])) : k((t(), s(b, {
|
|
164
164
|
key: 1,
|
|
165
165
|
class: "el-btn",
|
|
166
166
|
type: e.btnColor,
|
|
167
167
|
loading: e[`loading${e.permissionCode}`]
|
|
168
168
|
}, {
|
|
169
|
-
default:
|
|
170
|
-
e.btnIcon ? (t(),
|
|
169
|
+
default: r(() => [
|
|
170
|
+
e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(), s(c, {
|
|
171
171
|
key: 0,
|
|
172
172
|
class: "mr4",
|
|
173
173
|
name: e.btnIcon,
|
|
@@ -175,11 +175,11 @@ const Z = { class: "header-operate-container" }, ee = {
|
|
|
175
175
|
height: "12",
|
|
176
176
|
color: "#fff"
|
|
177
177
|
}, null, 8, ["name"])) : p("", !0),
|
|
178
|
-
h(" " +
|
|
178
|
+
h(" " + B(e[`loading${e.permissionCode}`] ? e.btnName + d(w)("act.loading") + "..." : e.btnName), 1)
|
|
179
179
|
]),
|
|
180
180
|
_: 2
|
|
181
181
|
}, 1032, ["type", "loading"])), [
|
|
182
|
-
[
|
|
182
|
+
[i]
|
|
183
183
|
])
|
|
184
184
|
], 64)) : p("", !0)
|
|
185
185
|
]),
|
|
@@ -189,13 +189,13 @@ const Z = { class: "header-operate-container" }, ee = {
|
|
|
189
189
|
_: 1
|
|
190
190
|
})
|
|
191
191
|
]),
|
|
192
|
-
default:
|
|
193
|
-
|
|
194
|
-
default:
|
|
192
|
+
default: r(() => [
|
|
193
|
+
N(b, { type: "primary" }, {
|
|
194
|
+
default: r(() => [
|
|
195
195
|
n[2] || (n[2] = h(" 更多按钮")),
|
|
196
|
-
|
|
197
|
-
default:
|
|
198
|
-
|
|
196
|
+
N($, { class: "el-icon--right" }, {
|
|
197
|
+
default: r(() => [
|
|
198
|
+
N(d(Y))
|
|
199
199
|
]),
|
|
200
200
|
_: 1
|
|
201
201
|
})
|
|
@@ -208,7 +208,7 @@ const Z = { class: "header-operate-container" }, ee = {
|
|
|
208
208
|
]);
|
|
209
209
|
};
|
|
210
210
|
}
|
|
211
|
-
}, le = /* @__PURE__ */ W(ee, [["__scopeId", "data-v-
|
|
211
|
+
}, le = /* @__PURE__ */ W(ee, [["__scopeId", "data-v-f0dda1b5"]]);
|
|
212
212
|
export {
|
|
213
213
|
le as default
|
|
214
214
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as yd, shallowRef as qn, inject as xd, computed as Jh, toRaw as wd, onMounted as Sd, watch as le, onBeforeUnmount as vd, h as kd, ref as kl, resolveComponent as Qd, resolveDirective as Pd, openBlock as Ql, createElementBlock as $d, withDirectives as Td, createBlock as Zd, withCtx as Cd, createTextVNode as Rd, toDisplayString as Ad, unref as Pl, createVNode as Md, normalizeStyle as Ed } from "vue";
|
|
2
|
-
import { _ as Xd, u as Ld } from "./index-
|
|
2
|
+
import { _ as Xd, u as Ld } from "./index-af897a17.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "element-plus";
|
|
5
5
|
let Mr = [], tf = [];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as U, computed as oe, resolveComponent as w, resolveDirective as ne, openBlock as h, createElementBlock as N, withDirectives as ae, createBlock as C, mergeProps as ie, unref as p, withCtx as D, renderSlot as L, createElementVNode as x, toDisplayString as I, createCommentVNode as z, createVNode as $, createTextVNode as se, Fragment as ce, renderList as re, normalizeClass as ue, nextTick as pe } from "vue";
|
|
2
2
|
import { ElNotification as M } from "element-plus";
|
|
3
|
-
import { _ as de, u as me, z as fe, o as ge, p as _e, q as ye } from "./index-
|
|
3
|
+
import { _ as de, u as me, z as fe, o as ge, p as _e, q as ye } from "./index-af897a17.js";
|
|
4
4
|
import "vue-router";
|
|
5
5
|
let S;
|
|
6
6
|
const he = new Uint8Array(16);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineAsyncComponent as O, inject as K, ref as N, watch as Te, resolveComponent as _, resolveDirective as le, openBlock as u, createBlock as y, withCtx as D, createElementVNode as ae, createVNode as te, createTextVNode as J, toDisplayString as A, unref as r, withDirectives as oe, createElementBlock as k, Fragment as q, renderList as Q, mergeProps as F, createCommentVNode as se, resolveDynamicComponent as De, toRaw as Ke } from "vue";
|
|
2
|
-
import { _ as we, u as Ne, P as Pe, a as Ue, b as ke } from "./index-
|
|
2
|
+
import { _ as we, u as Ne, P as Pe, a as Ue, b as ke } from "./index-af897a17.js";
|
|
3
3
|
import { ElNotification as Se } from "element-plus";
|
|
4
4
|
import "vue-router";
|
|
5
5
|
const Le = { class: "no-config-field" }, Re = { class: "dialog-footer" }, $e = {
|
|
@@ -11,7 +11,7 @@ const Le = { class: "no-config-field" }, Re = { class: "dialog-footer" }, $e = {
|
|
|
11
11
|
},
|
|
12
12
|
emits: ["update:visible", "refresh"],
|
|
13
13
|
setup(P, { emit: ie }) {
|
|
14
|
-
const re = O(() => import("./index-e2f2023d.js")), de = O(() => import("./index-
|
|
14
|
+
const re = O(() => import("./index-e2f2023d.js")), de = O(() => import("./index-9fa5dd39.js")), ne = O(() => import("./index-4d3f0b19.js")), ue = O(() => import("./index-7a420913.js")), { t: b } = Ne(), M = K("request"), ce = K("loadComponents"), w = K("formatDataType"), x = K("globalProps"), fe = K("stringToBoolean"), h = K("getFieldUiProps"), pe = K("disposeRequestData"), X = ie, f = P, S = N(!1), L = N(!1), E = N(null), R = N([]), t = N({}), j = N({}), me = (l) => l.formColumnCol == null ? 24 : l.formColumnCol ? l.formColumnCol : 24 / l.formRow, ye = (l) => ["input", "textarea"].includes(l.fieldType) ? "blur" : (["select", "multipleSelect", "datetimerange", "treeSelect", "provinceCascade"].includes(l.fieldType), "change"), be = async ({ node: l, resolve: p }, a) => {
|
|
15
15
|
const i = h(a), { label: m, value: n, children: g, isLeaf: o } = { ...ke, ...i.treeProps || {} };
|
|
16
16
|
if (l[o])
|
|
17
17
|
return p([]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { reactive as m, watch as b, resolveComponent as s, openBlock as v, 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 w } from "./index-
|
|
2
|
+
import { _ as k, u as w } from "./index-af897a17.js";
|
|
3
3
|
import "vue-router";
|
|
4
4
|
import "element-plus";
|
|
5
5
|
const V = ["innerHTML"], B = { class: "dialog-footer" }, D = {
|
|
@@ -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-af897a17.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 = {
|