@yqg/permission 1.0.11-alpha.4 → 1.0.11-alpha.6
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/README.md +2 -2
- package/dist/{apply-modal-DY2YGw0c.js → apply-modal-Bgd3UWf-.js} +4 -5
- package/dist/{checkbox-item-CR9B5tmf.js → checkbox-item-DiIgFuBE.js} +3 -3
- package/dist/{index-BZLdofdQ.js → index-CUS1Jydp.js} +1 -1
- package/dist/index.js +2 -2
- package/dist/index.umd.cjs +47 -47
- package/dist/{yqg-permission-DCP1zkIz.js → yqg-permission-ChMRXqi6.js} +40 -44
- package/dist_/345/211/257/346/234/254/apply-modal-Bgd3UWf-.js +8739 -0
- package/dist_/345/211/257/346/234/254/card.png +0 -0
- package/dist_/345/211/257/346/234/254/checkbox-item-DiIgFuBE.js +4988 -0
- package/dist_/345/211/257/346/234/254/dialog.png +0 -0
- package/dist_/345/211/257/346/234/254/image.png +0 -0
- package/dist_/345/211/257/346/234/254/index-CUS1Jydp.js +6164 -0
- package/dist_/345/211/257/346/234/254/index.js +5 -0
- package/dist_/345/211/257/346/234/254/index.umd.cjs +259 -0
- package/dist_/345/211/257/346/234/254/yqg-permission-ChMRXqi6.js +14944 -0
- package/package.json +1 -1
- package/src/App.vue +1 -1
- package/src/components/apply-modal.vue +1 -2
- package/src/components/yqg-permission.vue +5 -14
- package/src/i18n/zh-CH.ts +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as Ce, i as Nn, C as mu, T as hs, p as Oe, c as P, a as ue, r as z, d as F, u as J, s as Y, w as V, g as Ho, b as Fe, o as je, t as Qu, e as v, h as jt, f as kn, j as wu, k as At, l as xe, m as vs, n as Lt, q as Pe, v as To, x as CA, y as yu, z as Mo, A as ri, B as bu, D as Is, E as ms, G as Ne, H as Qs, I as Pu, J as Du, K as lt, L as Ai, M as ct, N as ge, O as Su, P as ln, Q as Ou, R as Ze, S as Jn, U as nr, V as xu } from "./index-
|
|
1
|
+
import { F as Ce, i as Nn, C as mu, T as hs, p as Oe, c as P, a as ue, r as z, d as F, u as J, s as Y, w as V, g as Ho, b as Fe, o as je, t as Qu, e as v, h as jt, f as kn, j as wu, k as At, l as xe, m as vs, n as Lt, q as Pe, v as To, x as CA, y as yu, z as Mo, A as ri, B as bu, D as Is, E as ms, G as Ne, H as Qs, I as Pu, J as Du, K as lt, L as Ai, M as ct, N as ge, O as Su, P as ln, Q as Ou, R as Ze, S as Jn, U as nr, V as xu } from "./index-CUS1Jydp.js";
|
|
2
2
|
function In(e) {
|
|
3
3
|
"@babel/helpers - typeof";
|
|
4
4
|
return In = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
@@ -62,7 +62,7 @@ function C() {
|
|
|
62
62
|
const Ru = (e) => typeof e == "function", Nu = Array.isArray, ku = (e) => typeof e == "string", Fu = (e) => e !== null && typeof e == "object", ju = /^on[^a-z]/, Lu = (e) => ju.test(e), pA = (e) => {
|
|
63
63
|
const t = /* @__PURE__ */ Object.create(null);
|
|
64
64
|
return (n) => t[n] || (t[n] = e(n));
|
|
65
|
-
}, zu = /-(\w)/g, ws = pA((e) => e.replace(zu, (t, n) => n ? n.toUpperCase() : "")), Yu = /\B([A-Z])/g, Uu = pA((e) => e.replace(Yu, "-$1").toLowerCase()),
|
|
65
|
+
}, zu = /-(\w)/g, ws = pA((e) => e.replace(zu, (t, n) => n ? n.toUpperCase() : "")), Yu = /\B([A-Z])/g, Uu = pA((e) => e.replace(Yu, "-$1").toLowerCase()), R0 = pA((e) => e.charAt(0).toUpperCase() + e.slice(1)), Ju = Object.prototype.hasOwnProperty, ai = (e, t) => Ju.call(e, t);
|
|
66
66
|
function Xu(e, t, n, o) {
|
|
67
67
|
const r = e[n];
|
|
68
68
|
if (r != null) {
|
|
@@ -640,7 +640,7 @@ function Cn(e, t, n, o) {
|
|
|
640
640
|
}
|
|
641
641
|
const EA = "anticon", Rs = Symbol("GlobalFormContextKey"), wg = (e) => {
|
|
642
642
|
Oe(Rs, e);
|
|
643
|
-
},
|
|
643
|
+
}, N0 = () => ue(Rs, {
|
|
644
644
|
validateMessages: P(() => {
|
|
645
645
|
})
|
|
646
646
|
}), yg = () => ({
|
|
@@ -937,7 +937,7 @@ const EA = "anticon", Rs = Symbol("GlobalFormContextKey"), wg = (e) => {
|
|
|
937
937
|
};
|
|
938
938
|
}
|
|
939
939
|
});
|
|
940
|
-
function
|
|
940
|
+
function k0(e, t, n) {
|
|
941
941
|
const o = ue("localeData", {});
|
|
942
942
|
return [P(() => {
|
|
943
943
|
const {
|
|
@@ -1281,7 +1281,7 @@ function Vs(e, t, n) {
|
|
|
1281
1281
|
function mA(e, t) {
|
|
1282
1282
|
Vs(Yg, e, t);
|
|
1283
1283
|
}
|
|
1284
|
-
function
|
|
1284
|
+
function F0(e, t) {
|
|
1285
1285
|
Vs(Ug, e, t);
|
|
1286
1286
|
}
|
|
1287
1287
|
function Xg() {
|
|
@@ -3024,7 +3024,7 @@ function Lr(e, t) {
|
|
|
3024
3024
|
}));
|
|
3025
3025
|
}, {});
|
|
3026
3026
|
}
|
|
3027
|
-
const
|
|
3027
|
+
const j0 = {
|
|
3028
3028
|
overflow: "hidden",
|
|
3029
3029
|
whiteSpace: "nowrap",
|
|
3030
3030
|
textOverflow: "ellipsis"
|
|
@@ -3058,7 +3058,7 @@ const F0 = {
|
|
|
3058
3058
|
svg: {
|
|
3059
3059
|
display: "inline-block"
|
|
3060
3060
|
}
|
|
3061
|
-
}),
|
|
3061
|
+
}), L0 = () => ({
|
|
3062
3062
|
// https://github.com/ant-design/ant-design/issues/21301#issuecomment-583955229
|
|
3063
3063
|
"&::before": {
|
|
3064
3064
|
display: "table",
|
|
@@ -4832,7 +4832,7 @@ function Vt(e) {
|
|
|
4832
4832
|
const A = vs(r, t, o);
|
|
4833
4833
|
return A.props = n ? C(C({}, A.props), t) : A.props, it(typeof A.props.class != "object", "class must be string"), A;
|
|
4834
4834
|
}
|
|
4835
|
-
function
|
|
4835
|
+
function z0(e, t, n) {
|
|
4836
4836
|
Lt(vs(e, C({}, t)), n);
|
|
4837
4837
|
}
|
|
4838
4838
|
const zl = (e) => {
|
|
@@ -5504,7 +5504,7 @@ const BE = F({
|
|
|
5504
5504
|
}
|
|
5505
5505
|
});
|
|
5506
5506
|
vo("bottomLeft", "bottomRight", "topLeft", "topRight");
|
|
5507
|
-
const
|
|
5507
|
+
const Y0 = (e) => e !== void 0 && (e === "topLeft" || e === "topRight") ? "slide-down" : "slide-up", Xo = function(e) {
|
|
5508
5508
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5509
5509
|
return C(e ? {
|
|
5510
5510
|
name: e,
|
|
@@ -7000,7 +7000,7 @@ const bh = () => ({
|
|
|
7000
7000
|
compactDirection: P(() => n == null ? void 0 : n.compactDirection),
|
|
7001
7001
|
compactItemClassnames: o
|
|
7002
7002
|
};
|
|
7003
|
-
},
|
|
7003
|
+
}, U0 = F({
|
|
7004
7004
|
name: "NoCompactStyle",
|
|
7005
7005
|
setup(e, t) {
|
|
7006
7006
|
let {
|
|
@@ -7908,7 +7908,7 @@ const Bv = Dn.map((e) => `${e}-inverse`), Ev = ["success", "processing", "error"
|
|
|
7908
7908
|
function UA(e) {
|
|
7909
7909
|
return (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0) ? [...Bv, ...Dn].includes(e) : Dn.includes(e);
|
|
7910
7910
|
}
|
|
7911
|
-
function
|
|
7911
|
+
function J0(e) {
|
|
7912
7912
|
return Ev.includes(e);
|
|
7913
7913
|
}
|
|
7914
7914
|
function hv(e, t) {
|
|
@@ -9452,7 +9452,7 @@ const oI = F({
|
|
|
9452
9452
|
};
|
|
9453
9453
|
}
|
|
9454
9454
|
});
|
|
9455
|
-
function
|
|
9455
|
+
function X0(e) {
|
|
9456
9456
|
return e === "danger" ? {
|
|
9457
9457
|
danger: !0
|
|
9458
9458
|
} : {
|
|
@@ -10194,7 +10194,7 @@ let fo = C({}, Ut.Modal);
|
|
|
10194
10194
|
function yI(e) {
|
|
10195
10195
|
e ? fo = C(C({}, fo), e) : fo = C({}, Ut.Modal);
|
|
10196
10196
|
}
|
|
10197
|
-
function
|
|
10197
|
+
function G0() {
|
|
10198
10198
|
return fo;
|
|
10199
10199
|
}
|
|
10200
10200
|
const oA = "internalMark", Co = F({
|
|
@@ -14455,7 +14455,7 @@ const Pr = "/crane", d0 = {
|
|
|
14455
14455
|
applyPermission: "申请权限",
|
|
14456
14456
|
applyReason: "申请理由",
|
|
14457
14457
|
approvalProcess: "审批流程",
|
|
14458
|
-
applyReasonPlaceholder: "请尽可能详细描述申请理由",
|
|
14458
|
+
applyReasonPlaceholder: "请尽可能详细描述申请理由({number}字以内)",
|
|
14459
14459
|
cancel: "取消",
|
|
14460
14460
|
submit: "确定",
|
|
14461
14461
|
close: "关闭",
|
|
@@ -14481,7 +14481,7 @@ const Pr = "/crane", d0 = {
|
|
|
14481
14481
|
maxLengthTips: "最多{length}个字符",
|
|
14482
14482
|
lastDays: "{count}天后到期",
|
|
14483
14483
|
taday: "今天到期",
|
|
14484
|
-
clickToApply: "
|
|
14484
|
+
clickToApply: "点击申请权限",
|
|
14485
14485
|
noPermissionTips: "该菜单下暂无权限点",
|
|
14486
14486
|
availiables: {
|
|
14487
14487
|
SEVEN_DAYS: "7天",
|
|
@@ -14516,14 +14516,14 @@ const Pr = "/crane", d0 = {
|
|
|
14516
14516
|
return t && Object.keys(t).forEach((A) => {
|
|
14517
14517
|
r = r.replace(new RegExp(`{${A}}`, "g"), t[A]);
|
|
14518
14518
|
}), r || e;
|
|
14519
|
-
},
|
|
14519
|
+
}, W0 = (e, t) => {
|
|
14520
14520
|
let n = null;
|
|
14521
14521
|
return function() {
|
|
14522
14522
|
n || (n = setTimeout(() => {
|
|
14523
14523
|
e(arguments), n = null;
|
|
14524
14524
|
}, t * 1e3));
|
|
14525
14525
|
};
|
|
14526
|
-
},
|
|
14526
|
+
}, K0 = (e) => {
|
|
14527
14527
|
const t = be(e);
|
|
14528
14528
|
return Object.keys(t).map((n) => ({
|
|
14529
14529
|
label: t[n],
|
|
@@ -14584,7 +14584,7 @@ function B0(e, t) {
|
|
|
14584
14584
|
const E0 = { class: "crane-wraper" }, h0 = ["src"], v0 = ["src"], I0 = { class: "crane-margin10" }, m0 = ["src"], Q0 = { class: "crane-margin10" }, w0 = ["innerHTML"], y0 = {
|
|
14585
14585
|
key: 2,
|
|
14586
14586
|
class: "crane-wraper"
|
|
14587
|
-
}, b0 = ["src"], P0 = { class: "crane-margin10" }, D0 = { style: { "max-width": "400px" } }, S0 = { style: { color: "#1677ff" } }, O0 = /* @__PURE__ */ F({
|
|
14587
|
+
}, b0 = ["src"], P0 = { class: "crane-margin10" }, D0 = { style: { "max-width": "400px" } }, S0 = { style: { color: "#1677ff" } }, O0 = "10px", x0 = /* @__PURE__ */ F({
|
|
14588
14588
|
__name: "yqg-permission",
|
|
14589
14589
|
props: {
|
|
14590
14590
|
workNumber: {
|
|
@@ -14607,10 +14607,6 @@ const E0 = { class: "crane-wraper" }, h0 = ["src"], v0 = ["src"], I0 = { class:
|
|
|
14607
14607
|
type: String,
|
|
14608
14608
|
default: "default"
|
|
14609
14609
|
},
|
|
14610
|
-
right: {
|
|
14611
|
-
type: String,
|
|
14612
|
-
default: "100px"
|
|
14613
|
-
},
|
|
14614
14610
|
top: {
|
|
14615
14611
|
type: String,
|
|
14616
14612
|
default: "100px"
|
|
@@ -14628,14 +14624,14 @@ const E0 = { class: "crane-wraper" }, h0 = ["src"], v0 = ["src"], I0 = { class:
|
|
|
14628
14624
|
CUSTOM: "custom"
|
|
14629
14625
|
};
|
|
14630
14626
|
Xe.config({ prefixCls: "yqg-permission-message" });
|
|
14631
|
-
const r = xu(() => import("./apply-modal-
|
|
14627
|
+
const r = xu(() => import("./apply-modal-Bgd3UWf-.js").then((m) => m.b)), A = t, i = e, a = z(!1), s = z();
|
|
14632
14628
|
let l = z([]), c = z({
|
|
14633
14629
|
imageUrl: ro,
|
|
14634
14630
|
status: ""
|
|
14635
14631
|
});
|
|
14636
14632
|
const u = P(() => {
|
|
14637
14633
|
var m, w;
|
|
14638
|
-
return Array.isArray(i.permissions) ? i.permissions.
|
|
14634
|
+
return l.value = [], Array.isArray(i.permissions) ? i.permissions.filter((D) => D.trim()) : ((w = (m = i.permissions) == null ? void 0 : m.split(",")) == null ? void 0 : w.filter((D) => D.trim())) || [];
|
|
14639
14635
|
}), g = P(() => {
|
|
14640
14636
|
const m = u.value[0] || "";
|
|
14641
14637
|
return m ? m.split(".")[0] : "";
|
|
@@ -14703,7 +14699,7 @@ const E0 = { class: "crane-wraper" }, h0 = ["src"], v0 = ["src"], I0 = { class:
|
|
|
14703
14699
|
type: "primary",
|
|
14704
14700
|
tooltip: J(be)("clickToApply"),
|
|
14705
14701
|
style: Su({
|
|
14706
|
-
right:
|
|
14702
|
+
right: O0,
|
|
14707
14703
|
top: J(h)
|
|
14708
14704
|
})
|
|
14709
14705
|
}, {
|
|
@@ -14808,14 +14804,14 @@ const E0 = { class: "crane-wraper" }, h0 = ["src"], v0 = ["src"], I0 = { class:
|
|
|
14808
14804
|
_: 3
|
|
14809
14805
|
}, 8, ["theme"]));
|
|
14810
14806
|
}
|
|
14811
|
-
}),
|
|
14807
|
+
}), H0 = (e, t) => {
|
|
14812
14808
|
const n = e.__vccOpts || e;
|
|
14813
14809
|
for (const [o, r] of t)
|
|
14814
14810
|
n[o] = r;
|
|
14815
14811
|
return n;
|
|
14816
|
-
},
|
|
14812
|
+
}, T0 = /* @__PURE__ */ H0(x0, [["__scopeId", "data-v-b0b21117"]]), V0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14817
14813
|
__proto__: null,
|
|
14818
|
-
default:
|
|
14814
|
+
default: T0
|
|
14819
14815
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
14820
14816
|
export {
|
|
14821
14817
|
Qc as $,
|
|
@@ -14836,7 +14832,7 @@ export {
|
|
|
14836
14832
|
rt as O,
|
|
14837
14833
|
N as P,
|
|
14838
14834
|
Qe as Q,
|
|
14839
|
-
|
|
14835
|
+
L0 as R,
|
|
14840
14836
|
qt as S,
|
|
14841
14837
|
Se as T,
|
|
14842
14838
|
$i as U,
|
|
@@ -14844,7 +14840,7 @@ export {
|
|
|
14844
14840
|
Qg as W,
|
|
14845
14841
|
Yg as X,
|
|
14846
14842
|
Ig as Y,
|
|
14847
|
-
|
|
14843
|
+
k0 as Z,
|
|
14848
14844
|
C as _,
|
|
14849
14845
|
R as a,
|
|
14850
14846
|
sd as a$,
|
|
@@ -14863,32 +14859,32 @@ export {
|
|
|
14863
14859
|
tn as aC,
|
|
14864
14860
|
rc as aD,
|
|
14865
14861
|
Cn as aE,
|
|
14866
|
-
|
|
14862
|
+
X0 as aF,
|
|
14867
14863
|
An as aG,
|
|
14868
|
-
|
|
14864
|
+
z0 as aH,
|
|
14869
14865
|
Ft as aI,
|
|
14870
14866
|
Ae as aJ,
|
|
14871
|
-
|
|
14867
|
+
G0 as aK,
|
|
14872
14868
|
ks as aL,
|
|
14873
14869
|
be as aM,
|
|
14874
14870
|
LA as aN,
|
|
14875
14871
|
Tv as aO,
|
|
14876
|
-
|
|
14872
|
+
H0 as aP,
|
|
14877
14873
|
Xe as aQ,
|
|
14878
14874
|
d0 as aR,
|
|
14879
|
-
|
|
14875
|
+
W0 as aS,
|
|
14880
14876
|
OE as aT,
|
|
14881
14877
|
Bt as aU,
|
|
14882
14878
|
mA as aV,
|
|
14883
|
-
|
|
14879
|
+
F0 as aW,
|
|
14884
14880
|
xE as aX,
|
|
14885
14881
|
ft as aY,
|
|
14886
14882
|
FA as aZ,
|
|
14887
|
-
|
|
14883
|
+
j0 as a_,
|
|
14888
14884
|
CE as aa,
|
|
14889
14885
|
Qd as ab,
|
|
14890
14886
|
Pg as ac,
|
|
14891
|
-
|
|
14887
|
+
N0 as ad,
|
|
14892
14888
|
_ as ae,
|
|
14893
14889
|
vt as af,
|
|
14894
14890
|
Yt as ag,
|
|
@@ -14904,7 +14900,7 @@ export {
|
|
|
14904
14900
|
wd as aq,
|
|
14905
14901
|
ui as ar,
|
|
14906
14902
|
Ph as as,
|
|
14907
|
-
|
|
14903
|
+
U0 as at,
|
|
14908
14904
|
Qt as au,
|
|
14909
14905
|
ne as av,
|
|
14910
14906
|
dt as aw,
|
|
@@ -14912,15 +14908,15 @@ export {
|
|
|
14912
14908
|
DE as ay,
|
|
14913
14909
|
Ec as az,
|
|
14914
14910
|
W as b,
|
|
14915
|
-
|
|
14911
|
+
Y0 as b0,
|
|
14916
14912
|
Bl as b1,
|
|
14917
|
-
|
|
14913
|
+
R0 as b2,
|
|
14918
14914
|
Lr as b3,
|
|
14919
14915
|
UA as b4,
|
|
14920
|
-
|
|
14916
|
+
J0 as b5,
|
|
14921
14917
|
oI as b6,
|
|
14922
|
-
|
|
14923
|
-
|
|
14918
|
+
K0 as b7,
|
|
14919
|
+
V0 as b8,
|
|
14924
14920
|
pc as c,
|
|
14925
14921
|
Ol as d,
|
|
14926
14922
|
Mn as e,
|