@yqg/permission 1.3.8-bate.1 → 1.3.8-bate.3
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/dist/{apply-modal-N4GHHoip.js → apply-modal-ClKGZHQv.js} +4 -4
- package/dist/{category-selector-CUQM_UkK.js → category-selector-MxBLpU27.js} +63 -63
- package/dist/{index-BG_UX-xg.js → index-CHqAkxqj.js} +3 -3
- package/dist/{index-CK0baIJ8.js → index-DEVsfnu7.js} +1 -1
- package/dist/index.js +2 -2
- package/dist/{permission-item-DoRp9bUn.js → permission-item-mmAr8FTH.js} +4 -4
- package/dist/{yqg-permission-DnNXofuh.js → yqg-permission-n86ntTPS.js} +5 -5
- package/dist/yqg-permission.umd.js +7 -7
- package/package.json +1 -1
- package/src/App.vue +4 -6
- package/src/components/category-selector.vue +4 -1
- package/src/components/yqg-permission.vue +1 -0
- package/src/hooks/useFormat.ts +1 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as ie, G as it, l as Ye, v as Pn, x as Rr, w as ce, g as Zt, s as W, e as w, r as ne, c as M, m as Yt, o as Ve, E as Ft, q as _e, b as Ne, p as Xe, a as $t, F as lt, f as _t, z as Rt, H as Ml, k as An, u as se, W as Fl, i as bo, n as xo, X as _l, K as De, L as jt, y as Ba, N as at, Y as Rl, R as Ge, P as Vt, S as Cn, M as Re, U as pr, Z as So, _ as Dl, $ as Kl, V as $o } from "./index-
|
|
2
|
-
import { f as Ha, i as Ll, _ as y, P as ee, a as z, c as re, b as Bl, s as pt, w as ze, I as tt, d as Hl, e as Jt, g as za, S as Dt, h as Et, j as Ct, k as zl, l as jl, m as ja, n as Dr, o as Vl, M as Va, p as Wa, q as ka, r as Wl, t as Nn, u as qa, v as Ga, x as kl, y as ql, U as Co, z as Kr, A as wn, B as Lr, C as Gl, D as Ua, E as Ul, F as Xa, G as Xl, H as Yl, J as Ql, K as wo, L as Zl, N as It, O as Jl, Q as Je, R as et, T as Ya, V as Br, W as st, X as es, Y as Le, Z as ts, $ as We, a0 as gt, a1 as Hr, a2 as Mn, a3 as ns, a4 as Qa, a5 as Za, a6 as rs, a7 as zr, a8 as Fn, a9 as jr, aa as Ja, ab as _n, ac as ei, ad as ti, ae as ct, af as os, ag as as, ah as is, ai as Ue, aj as Ae, ak as vr, al as ft, am as Ze, an as gr, ao as Rn, ap as St, aq as Oo, ar as ls, as as ni, at as Eo, au as Kt, av as ri, aw as ss, ax as cs, ay as us, az as ds, aA as fs, aB as ps, aC as vs, aD as gs, aE as On, aF as hs, aG as oi, aH as ms, aI as ys, aJ as ai, aK as bs, aL as xs, aM as Ss, aN as $s, aO as Tt, aP as $e, aQ as Cs, aR as ws, aS as ii, aT as Nt, aU as Yn, aV as Os, aW as Qn } from "./yqg-permission-
|
|
1
|
+
import { d as ie, G as it, l as Ye, v as Pn, x as Rr, w as ce, g as Zt, s as W, e as w, r as ne, c as M, m as Yt, o as Ve, E as Ft, q as _e, b as Ne, p as Xe, a as $t, F as lt, f as _t, z as Rt, H as Ml, k as An, u as se, W as Fl, i as bo, n as xo, X as _l, K as De, L as jt, y as Ba, N as at, Y as Rl, R as Ge, P as Vt, S as Cn, M as Re, U as pr, Z as So, _ as Dl, $ as Kl, V as $o } from "./index-DEVsfnu7.js";
|
|
2
|
+
import { f as Ha, i as Ll, _ as y, P as ee, a as z, c as re, b as Bl, s as pt, w as ze, I as tt, d as Hl, e as Jt, g as za, S as Dt, h as Et, j as Ct, k as zl, l as jl, m as ja, n as Dr, o as Vl, M as Va, p as Wa, q as ka, r as Wl, t as Nn, u as qa, v as Ga, x as kl, y as ql, U as Co, z as Kr, A as wn, B as Lr, C as Gl, D as Ua, E as Ul, F as Xa, G as Xl, H as Yl, J as Ql, K as wo, L as Zl, N as It, O as Jl, Q as Je, R as et, T as Ya, V as Br, W as st, X as es, Y as Le, Z as ts, $ as We, a0 as gt, a1 as Hr, a2 as Mn, a3 as ns, a4 as Qa, a5 as Za, a6 as rs, a7 as zr, a8 as Fn, a9 as jr, aa as Ja, ab as _n, ac as ei, ad as ti, ae as ct, af as os, ag as as, ah as is, ai as Ue, aj as Ae, ak as vr, al as ft, am as Ze, an as gr, ao as Rn, ap as St, aq as Oo, ar as ls, as as ni, at as Eo, au as Kt, av as ri, aw as ss, ax as cs, ay as us, az as ds, aA as fs, aB as ps, aC as vs, aD as gs, aE as On, aF as hs, aG as oi, aH as ms, aI as ys, aJ as ai, aK as bs, aL as xs, aM as Ss, aN as $s, aO as Tt, aP as $e, aQ as Cs, aR as ws, aS as ii, aT as Nt, aU as Yn, aV as Os, aW as Qn } from "./yqg-permission-n86ntTPS.js";
|
|
3
3
|
const li = ie({
|
|
4
4
|
compatConfig: {
|
|
5
5
|
MODE: 3
|
|
@@ -12679,9 +12679,9 @@ const Ug = { key: 0 }, Xg = { key: 0 }, Yg = {
|
|
|
12679
12679
|
emits: /* @__PURE__ */ So(["onSubmit", "onSuccess"], ["update:modelValue"]),
|
|
12680
12680
|
setup(e, { emit: t }) {
|
|
12681
12681
|
const n = $o(
|
|
12682
|
-
() => import("./category-selector-
|
|
12682
|
+
() => import("./category-selector-MxBLpU27.js")
|
|
12683
12683
|
), r = $o(
|
|
12684
|
-
() => import("./permission-item-
|
|
12684
|
+
() => import("./permission-item-mmAr8FTH.js")
|
|
12685
12685
|
), o = e, a = t, i = Dl(e, "modelValue"), l = ne(!1), s = M(() => o.permissionList), c = Ba(o, "workNumber"), d = ne(), u = ne(), f = ne();
|
|
12686
12686
|
let v = ne([]);
|
|
12687
12687
|
const S = ne(!1), g = ne([]), p = ne([]), h = ne([]), C = it({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as ht, p as pt, d as Ve, r as fe, c as y, w as be, q as mt, s as M, E as ae, e as U, b as Ge, y as oe, a0 as gt, G as yt, K as ie, L as Ze, M as Me, P as Be, R as ye, u as W, N as we, F as bt, Y as Ct, f as St, U as et, z as wt } from "./index-
|
|
2
|
-
import { a as
|
|
3
|
-
import { u as
|
|
4
|
-
import { K as de, T as zt, c as
|
|
1
|
+
import { a as ht, p as pt, d as Ve, r as fe, c as y, w as be, q as mt, s as M, E as ae, e as U, b as Ge, y as oe, a0 as gt, G as yt, K as ie, L as Ze, M as Me, P as Be, R as ye, u as W, N as we, F as bt, Y as Ct, f as St, U as et, z as wt } from "./index-DEVsfnu7.js";
|
|
2
|
+
import { a as Y, _ as b, W as xt, X as Vt, ae as ut, aX as tt, Y as Ie, P as ve, N as It, R as it, V as kt, aN as je, $ as Nt, ar as Tt, as as Lt, aY as Et, c as at, b as _t, ak as $e, aj as Pt, a0 as Dt, ai as At, am as We, aU as Kt, aP as xe, aS as Ot } from "./yqg-permission-n86ntTPS.js";
|
|
3
|
+
import { u as Ft, a as Ht, b as Rt, c as Mt, d as Bt, t as lt, B as jt, e as $t, f as Wt, g as Ut } from "./index-CHqAkxqj.js";
|
|
4
|
+
import { K as de, T as zt, c as Yt, a as Ye, u as Xt, g as qt, b as Gt, d as Jt, F as Qt, e as Zt, f as ea, r as ta, h as aa, i as la } from "./apply-modal-ClKGZHQv.js";
|
|
5
5
|
function na(e) {
|
|
6
6
|
return Array.isArray(e) ? e : e !== void 0 ? [e] : [];
|
|
7
7
|
}
|
|
@@ -18,7 +18,7 @@ function oa(e) {
|
|
|
18
18
|
children: t || "children"
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Xe(e) {
|
|
22
22
|
return e.disabled || e.disableCheckbox || e.checkable === !1;
|
|
23
23
|
}
|
|
24
24
|
function ra(e, s) {
|
|
@@ -62,7 +62,7 @@ const ua = {
|
|
|
62
62
|
slots: l,
|
|
63
63
|
expose: t
|
|
64
64
|
} = s;
|
|
65
|
-
const a =
|
|
65
|
+
const a = Ft(), n = Ht(), o = ca(), r = fe(), d = Rt(() => o.treeData, [() => a.open, () => o.treeData], (v) => v[0]), c = y(() => {
|
|
66
66
|
const {
|
|
67
67
|
checkable: v,
|
|
68
68
|
halfCheckedKeys: V,
|
|
@@ -95,19 +95,19 @@ const ua = {
|
|
|
95
95
|
p.value = v, w.value = v, (V = n.onTreeExpand) === null || V === void 0 || V.call(n, v);
|
|
96
96
|
}, g = (v) => {
|
|
97
97
|
v.preventDefault();
|
|
98
|
-
},
|
|
98
|
+
}, O = (v, V) => {
|
|
99
99
|
let {
|
|
100
100
|
node: E
|
|
101
101
|
} = V;
|
|
102
102
|
var D, T;
|
|
103
103
|
const {
|
|
104
104
|
checkable: z,
|
|
105
|
-
checkedKeys:
|
|
105
|
+
checkedKeys: X
|
|
106
106
|
} = n;
|
|
107
|
-
z &&
|
|
108
|
-
selected: !
|
|
107
|
+
z && Xe(E) || ((D = o.onSelect) === null || D === void 0 || D.call(o, E.key, {
|
|
108
|
+
selected: !X.includes(E.key)
|
|
109
109
|
}), a.multiple || (T = a.toggleOpen) === null || T === void 0 || T.call(a, !1));
|
|
110
|
-
}, A = fe(null), K = y(() => n.keyEntities[A.value]),
|
|
110
|
+
}, A = fe(null), K = y(() => n.keyEntities[A.value]), F = (v) => {
|
|
111
111
|
A.value = v;
|
|
112
112
|
};
|
|
113
113
|
return t({
|
|
@@ -134,7 +134,7 @@ const ua = {
|
|
|
134
134
|
selectable: D,
|
|
135
135
|
value: T
|
|
136
136
|
} = K.value.node || {};
|
|
137
|
-
D !== !1 &&
|
|
137
|
+
D !== !1 && O(null, {
|
|
138
138
|
node: {
|
|
139
139
|
key: A.value
|
|
140
140
|
},
|
|
@@ -158,7 +158,7 @@ const ua = {
|
|
|
158
158
|
open: T,
|
|
159
159
|
notFoundContent: z = (v = l.notFoundContent) === null || v === void 0 ? void 0 : v.call(l)
|
|
160
160
|
} = a, {
|
|
161
|
-
listHeight:
|
|
161
|
+
listHeight: X,
|
|
162
162
|
listItemHeight: B,
|
|
163
163
|
virtual: le,
|
|
164
164
|
dropdownMatchSelectWidth: q,
|
|
@@ -190,12 +190,12 @@ const ua = {
|
|
|
190
190
|
}, [K.value && T && U("span", {
|
|
191
191
|
style: ua,
|
|
192
192
|
"aria-live": "assertive"
|
|
193
|
-
}, [K.value.node.value]), U(zt,
|
|
193
|
+
}, [K.value.node.value]), U(zt, Y(Y({
|
|
194
194
|
ref: r,
|
|
195
195
|
focusable: !1,
|
|
196
196
|
prefixCls: `${V}-tree`,
|
|
197
197
|
treeData: d.value,
|
|
198
|
-
height:
|
|
198
|
+
height: X,
|
|
199
199
|
itemHeight: B,
|
|
200
200
|
virtual: le !== !1 && q !== !1,
|
|
201
201
|
multiple: E,
|
|
@@ -212,9 +212,9 @@ const ua = {
|
|
|
212
212
|
selectedKeys: se ? [] : H,
|
|
213
213
|
defaultExpandAll: ce
|
|
214
214
|
}, J), {}, {
|
|
215
|
-
onActiveChange:
|
|
216
|
-
onSelect:
|
|
217
|
-
onCheck:
|
|
215
|
+
onActiveChange: F,
|
|
216
|
+
onSelect: O,
|
|
217
|
+
onCheck: O,
|
|
218
218
|
onExpand: S,
|
|
219
219
|
onLoad: _,
|
|
220
220
|
filterTreeNode: f,
|
|
@@ -238,11 +238,11 @@ function ot(e, s, l, t) {
|
|
|
238
238
|
let {
|
|
239
239
|
node: d
|
|
240
240
|
} = r;
|
|
241
|
-
return
|
|
241
|
+
return Xe(d) || a.has(d[t.value]);
|
|
242
242
|
}));
|
|
243
243
|
}) : s === vt ? e.filter((n) => {
|
|
244
244
|
const o = l[n], r = o ? o.parent : null;
|
|
245
|
-
return !(r && !
|
|
245
|
+
return !(r && !Xe(r.node) && a.has(r.key));
|
|
246
246
|
}) : e;
|
|
247
247
|
}
|
|
248
248
|
const he = () => null;
|
|
@@ -282,14 +282,14 @@ function ha(e) {
|
|
|
282
282
|
disabled: w || w === "" || void 0,
|
|
283
283
|
disableCheckbox: x || x === "" || void 0
|
|
284
284
|
}, g = b(b({}, c), S), {
|
|
285
|
-
title:
|
|
285
|
+
title: O = (a = r.title) === null || a === void 0 ? void 0 : a.call(r, g),
|
|
286
286
|
switcherIcon: A = (n = r.switcherIcon) === null || n === void 0 ? void 0 : n.call(r, g)
|
|
287
|
-
} = c, K = va(c, ["title", "switcherIcon"]),
|
|
288
|
-
title:
|
|
287
|
+
} = c, K = va(c, ["title", "switcherIcon"]), F = (o = r.default) === null || o === void 0 ? void 0 : o.call(r), v = b(b(b({}, K), {
|
|
288
|
+
title: O,
|
|
289
289
|
switcherIcon: A,
|
|
290
290
|
key: d,
|
|
291
291
|
isLeaf: u
|
|
292
|
-
}), S), V = s(
|
|
292
|
+
}), S), V = s(F);
|
|
293
293
|
return V.length && (v.children = V), v;
|
|
294
294
|
});
|
|
295
295
|
}
|
|
@@ -311,16 +311,16 @@ function pa(e, s, l, t, a, n) {
|
|
|
311
311
|
function c(u) {
|
|
312
312
|
let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "0", p = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
313
313
|
return u.map((w, x) => {
|
|
314
|
-
const S = `${f}-${x}`, g = w[n.value],
|
|
315
|
-
default: () => [A.map((
|
|
314
|
+
const S = `${f}-${x}`, g = w[n.value], O = l.includes(g), A = c(w[n.children] || [], S, O), K = U(he, w, {
|
|
315
|
+
default: () => [A.map((F) => F.node)]
|
|
316
316
|
});
|
|
317
|
-
if (s === g && (o = K),
|
|
318
|
-
const
|
|
317
|
+
if (s === g && (o = K), O) {
|
|
318
|
+
const F = {
|
|
319
319
|
pos: S,
|
|
320
320
|
node: K,
|
|
321
321
|
children: A
|
|
322
322
|
};
|
|
323
|
-
return p || r.push(
|
|
323
|
+
return p || r.push(F), F;
|
|
324
324
|
}
|
|
325
325
|
return null;
|
|
326
326
|
}).filter((w) => w);
|
|
@@ -412,7 +412,7 @@ const ya = (e) => {
|
|
|
412
412
|
}, ba = (e, s) => {
|
|
413
413
|
const l = M(/* @__PURE__ */ new Map()), t = M({});
|
|
414
414
|
return Ge(() => {
|
|
415
|
-
const a = s.value, n =
|
|
415
|
+
const a = s.value, n = Yt(e.value, {
|
|
416
416
|
fieldNames: a,
|
|
417
417
|
initWrapper: (o) => b(b({}, o), {
|
|
418
418
|
valueEntities: /* @__PURE__ */ new Map()
|
|
@@ -445,7 +445,7 @@ const ya = (e) => {
|
|
|
445
445
|
l.value && ({
|
|
446
446
|
checkedKeys: d,
|
|
447
447
|
halfCheckedKeys: c
|
|
448
|
-
} =
|
|
448
|
+
} = Ye(d, !0, t.value, a.value, n.value)), o.value = Array.from(/* @__PURE__ */ new Set([...u, ...d])), r.value = c;
|
|
449
449
|
}), [o, r];
|
|
450
450
|
}, Sa = (e, s, l) => {
|
|
451
451
|
let {
|
|
@@ -473,7 +473,7 @@ const ya = (e) => {
|
|
|
473
473
|
let p = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
474
474
|
const w = [];
|
|
475
475
|
for (let x = 0, S = f.length; x < S; x++) {
|
|
476
|
-
const g = f[x],
|
|
476
|
+
const g = f[x], O = g[o], A = p || c(r, qe(g)), K = u(O || [], A);
|
|
477
477
|
(A || K.length) && w.push(b(b({}, g), {
|
|
478
478
|
[o]: K
|
|
479
479
|
}));
|
|
@@ -653,7 +653,7 @@ const xa = Ve({
|
|
|
653
653
|
}, x = ga(oe(e, "treeData"), oe(e, "children"), oe(e, "treeDataSimpleMode")), {
|
|
654
654
|
keyEntities: S,
|
|
655
655
|
valueEntities: g
|
|
656
|
-
} = ba(x, u),
|
|
656
|
+
} = ba(x, u), O = (i) => {
|
|
657
657
|
const h = [], m = [];
|
|
658
658
|
return i.forEach((k) => {
|
|
659
659
|
g.value.has(k) ? m.push(k) : h.push(k);
|
|
@@ -678,9 +678,9 @@ const xa = Ve({
|
|
|
678
678
|
return k;
|
|
679
679
|
}
|
|
680
680
|
}
|
|
681
|
-
},
|
|
681
|
+
}, F = (i) => na(i).map((m) => wa(m) ? {
|
|
682
682
|
value: m
|
|
683
|
-
} : m), v = (i) =>
|
|
683
|
+
} : m), v = (i) => F(i).map((m) => {
|
|
684
684
|
let {
|
|
685
685
|
label: k
|
|
686
686
|
} = m;
|
|
@@ -698,17 +698,17 @@ const xa = Ve({
|
|
|
698
698
|
};
|
|
699
699
|
}), [V, E] = tt(e.defaultValue, {
|
|
700
700
|
value: oe(e, "value")
|
|
701
|
-
}), D = y(() =>
|
|
701
|
+
}), D = y(() => F(V.value)), T = M([]), z = M([]);
|
|
702
702
|
Ge(() => {
|
|
703
703
|
const i = [], h = [];
|
|
704
704
|
D.value.forEach((m) => {
|
|
705
705
|
m.halfChecked ? h.push(m) : i.push(m);
|
|
706
706
|
}), T.value = i, z.value = h;
|
|
707
707
|
});
|
|
708
|
-
const
|
|
708
|
+
const X = y(() => T.value.map((i) => i.value)), {
|
|
709
709
|
maxLevel: B,
|
|
710
710
|
levelEntities: le
|
|
711
|
-
} =
|
|
711
|
+
} = Xt(S), [q, re] = Ca(T, z, o, S, B, le), se = y(() => {
|
|
712
712
|
const m = ot(q.value, e.showCheckedStrategy, S.value, u.value).map((L) => {
|
|
713
713
|
var I, N, R;
|
|
714
714
|
return (R = (N = (I = S.value[L]) === null || I === void 0 ? void 0 : I.node) === null || N === void 0 ? void 0 : N[u.value.value]) !== null && R !== void 0 ? R : L;
|
|
@@ -768,18 +768,18 @@ const xa = Ve({
|
|
|
768
768
|
triggerValue: j
|
|
769
769
|
}, "option");
|
|
770
770
|
else {
|
|
771
|
-
let $ = m ? [...
|
|
771
|
+
let $ = m ? [...X.value, j] : q.value.filter((te) => te !== j);
|
|
772
772
|
if (o.value) {
|
|
773
773
|
const {
|
|
774
774
|
missingRawValues: te,
|
|
775
775
|
existRawValues: Se
|
|
776
|
-
} =
|
|
776
|
+
} = O($), Qe = Se.map((Re) => R.get(Re).key);
|
|
777
777
|
let He;
|
|
778
778
|
m ? {
|
|
779
779
|
checkedKeys: He
|
|
780
|
-
} =
|
|
780
|
+
} = Ye(Qe, !0, N, B.value, le.value) : {
|
|
781
781
|
checkedKeys: He
|
|
782
|
-
} =
|
|
782
|
+
} = Ye(Qe, {
|
|
783
783
|
checked: !1,
|
|
784
784
|
halfCheckedKeys: re.value
|
|
785
785
|
}, N, B.value, le.value), $ = [...te, ...He.map((Re) => N[Re].node[u.value.value])];
|
|
@@ -831,8 +831,8 @@ const xa = Ve({
|
|
|
831
831
|
switcherIcon: De,
|
|
832
832
|
treeMotion: Ae,
|
|
833
833
|
customSlots: Ke,
|
|
834
|
-
dropdownMatchSelectWidth:
|
|
835
|
-
treeExpandAction:
|
|
834
|
+
dropdownMatchSelectWidth: Oe,
|
|
835
|
+
treeExpandAction: Fe
|
|
836
836
|
} = gt(e);
|
|
837
837
|
Bt(lt({
|
|
838
838
|
checkable: r,
|
|
@@ -860,8 +860,8 @@ const xa = Ve({
|
|
|
860
860
|
treeData: A,
|
|
861
861
|
fieldNames: u,
|
|
862
862
|
onSelect: G,
|
|
863
|
-
dropdownMatchSelectWidth:
|
|
864
|
-
treeExpandAction:
|
|
863
|
+
dropdownMatchSelectWidth: Oe,
|
|
864
|
+
treeExpandAction: Fe
|
|
865
865
|
}));
|
|
866
866
|
const Q = fe();
|
|
867
867
|
return t({
|
|
@@ -930,7 +930,7 @@ const xa = Ve({
|
|
|
930
930
|
"switcherIcon",
|
|
931
931
|
"treeMotion"
|
|
932
932
|
]);
|
|
933
|
-
return U(jt,
|
|
933
|
+
return U(jt, Y(Y(Y({
|
|
934
934
|
ref: Q
|
|
935
935
|
}, l), h), {}, {
|
|
936
936
|
id: n,
|
|
@@ -1054,14 +1054,14 @@ const Ue = Ve({
|
|
|
1054
1054
|
size: x,
|
|
1055
1055
|
getPopupContainer: S,
|
|
1056
1056
|
getPrefixCls: g,
|
|
1057
|
-
disabled:
|
|
1057
|
+
disabled: O
|
|
1058
1058
|
} = Nt("select", e), {
|
|
1059
1059
|
compactSize: A,
|
|
1060
1060
|
compactItemClassnames: K
|
|
1061
|
-
} = Tt(c, f),
|
|
1061
|
+
} = Tt(c, f), F = y(() => A.value || x.value), v = Lt(), V = y(() => {
|
|
1062
1062
|
var C;
|
|
1063
|
-
return (C =
|
|
1064
|
-
}), E = y(() => g()), D = y(() => e.placement !== void 0 ? e.placement : f.value === "rtl" ? "bottomRight" : "bottomLeft"), T = y(() => rt(E.value, Et(D.value), e.transitionName)), z = y(() => rt(E.value, "", e.choiceTransitionName)),
|
|
1063
|
+
return (C = O.value) !== null && C !== void 0 ? C : v.value;
|
|
1064
|
+
}), E = y(() => g()), D = y(() => e.placement !== void 0 ? e.placement : f.value === "rtl" ? "bottomRight" : "bottomLeft"), T = y(() => rt(E.value, Et(D.value), e.transitionName)), z = y(() => rt(E.value, "", e.choiceTransitionName)), X = y(() => g("select-tree", e.prefixCls)), B = y(() => g("tree-select", e.prefixCls)), [le, q] = Wt(c), [re] = Ia(B, X), se = y(() => at(e.popupClassName || e.dropdownClassName, `${B.value}-dropdown`, {
|
|
1065
1065
|
[`${B.value}-dropdown-rtl`]: f.value === "rtl"
|
|
1066
1066
|
}, q.value)), ce = y(() => !!(e.treeCheckable || e.multiple)), ne = y(() => e.showArrow !== void 0 ? e.showArrow : e.loading || !ce.value), G = fe();
|
|
1067
1067
|
a({
|
|
@@ -1100,9 +1100,9 @@ const Ue = Ve({
|
|
|
1100
1100
|
switcherIcon: De = (_ = t.switcherIcon) === null || _ === void 0 ? void 0 : _.call(t),
|
|
1101
1101
|
fieldNames: Ae = e.replaceFields,
|
|
1102
1102
|
id: Ke = o.id.value,
|
|
1103
|
-
placeholder:
|
|
1103
|
+
placeholder: Oe = (H = t.placeholder) === null || H === void 0 ? void 0 : H.call(t)
|
|
1104
1104
|
} = e, {
|
|
1105
|
-
isFormItemInput:
|
|
1105
|
+
isFormItemInput: Fe,
|
|
1106
1106
|
hasFeedback: Q,
|
|
1107
1107
|
feedbackIcon: i
|
|
1108
1108
|
} = r, {
|
|
@@ -1119,13 +1119,13 @@ const Ue = Ve({
|
|
|
1119
1119
|
let P;
|
|
1120
1120
|
J !== void 0 ? P = J : P = u("Select");
|
|
1121
1121
|
const L = Ie(e, ["suffixIcon", "itemIcon", "removeIcon", "clearIcon", "switcherIcon", "bordered", "status", "onUpdate:value", "onUpdate:treeExpandedKeys", "onUpdate:searchValue"]), I = at(!ke && B.value, {
|
|
1122
|
-
[`${c.value}-lg`]:
|
|
1123
|
-
[`${c.value}-sm`]:
|
|
1122
|
+
[`${c.value}-lg`]: F.value === "large",
|
|
1123
|
+
[`${c.value}-sm`]: F.value === "small",
|
|
1124
1124
|
[`${c.value}-rtl`]: f.value === "rtl",
|
|
1125
1125
|
[`${c.value}-borderless`]: !Ne,
|
|
1126
|
-
[`${c.value}-in-form-item`]:
|
|
1126
|
+
[`${c.value}-in-form-item`]: Fe
|
|
1127
1127
|
}, ea(c.value, d.value, Q), K.value, l.class, q.value), N = {};
|
|
1128
|
-
return e.treeData === void 0 && t.default && (N.children = _t(t.default())), le(re(U(xa,
|
|
1128
|
+
return e.treeData === void 0 && t.default && (N.children = _t(t.default())), le(re(U(xa, Y(Y(Y(Y({}, l), L), {}, {
|
|
1129
1129
|
disabled: V.value,
|
|
1130
1130
|
virtual: p.value,
|
|
1131
1131
|
dropdownMatchSelectWidth: w.value,
|
|
@@ -1141,7 +1141,7 @@ const Ue = Ve({
|
|
|
1141
1141
|
multiple: Ee,
|
|
1142
1142
|
removeIcon: m,
|
|
1143
1143
|
clearIcon: k,
|
|
1144
|
-
switcherIcon: (R) => ta(
|
|
1144
|
+
switcherIcon: (R) => ta(X.value, De, R, t.leafIcon, Ce),
|
|
1145
1145
|
showTreeIcon: _e,
|
|
1146
1146
|
notFoundContent: P,
|
|
1147
1147
|
getPopupContainer: S == null ? void 0 : S.value,
|
|
@@ -1162,7 +1162,7 @@ const Ue = Ve({
|
|
|
1162
1162
|
maxTagPlaceholder: e.maxTagPlaceholder || t.maxTagPlaceholder,
|
|
1163
1163
|
placement: D.value,
|
|
1164
1164
|
showArrow: Q || Pe,
|
|
1165
|
-
placeholder:
|
|
1165
|
+
placeholder: Oe
|
|
1166
1166
|
}), b(b({}, t), {
|
|
1167
1167
|
treeCheckable: () => U("span", {
|
|
1168
1168
|
class: `${c.value}-tree-checkbox-inner`
|
|
@@ -1195,7 +1195,7 @@ const Ta = { class: "crane-required" }, La = { class: "crane-category-tips" }, E
|
|
|
1195
1195
|
}, _a = { key: 1 }, Pa = {
|
|
1196
1196
|
key: 0,
|
|
1197
1197
|
style: { color: "#ff4d4f", "font-size": "12px" }
|
|
1198
|
-
}, Da = /* @__PURE__ */ Ve({
|
|
1198
|
+
}, Da = -1, Aa = /* @__PURE__ */ Ve({
|
|
1199
1199
|
__name: "category-selector",
|
|
1200
1200
|
props: {
|
|
1201
1201
|
categoryList: {
|
|
@@ -1257,7 +1257,7 @@ const Ta = { class: "crane-required" }, La = { class: "crane-category-tips" }, E
|
|
|
1257
1257
|
]),
|
|
1258
1258
|
_: 2
|
|
1259
1259
|
}, 1032, ["tree-data", "value", "onUpdate:value", "searchValue", "show-checked-strategy"]),
|
|
1260
|
-
(S = p.attributeValueIds_view) != null && S.includes(
|
|
1260
|
+
(S = p.attributeValueIds_view) != null && S.includes(Da) ? (ie(), we("span", Pa, ye(W(xe)("categoryChangeTips", { category: p.categoryName })), 1)) : et("", !0)
|
|
1261
1261
|
];
|
|
1262
1262
|
}),
|
|
1263
1263
|
_: 2
|
|
@@ -1269,7 +1269,7 @@ const Ta = { class: "crane-required" }, La = { class: "crane-category-tips" }, E
|
|
|
1269
1269
|
_: 1
|
|
1270
1270
|
}, 8, ["model"])) : et("", !0);
|
|
1271
1271
|
}
|
|
1272
|
-
}),
|
|
1272
|
+
}), Ra = /* @__PURE__ */ Ot(Aa, [["__scopeId", "data-v-e4f4ff30"]]);
|
|
1273
1273
|
export {
|
|
1274
|
-
|
|
1274
|
+
Ra as default
|
|
1275
1275
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as g, P as c, a as B, c as ae, b4 as tt, ap as pn, ae as ot, a1 as it, Z as at, I as mn, ab as lt, ac as rt, aD as st, b5 as gn, ao as Y, Q as We, b6 as Le, R as ie, b7 as vn, N as ut, O as ct } from "./yqg-permission-
|
|
2
|
-
import { d as ne, c as R, r as le, e as f, i as dt, m as ft, a as Ie, p as Ce, x as pt, s as A, w as oe, b as hn, l as ge, S as Ae, F as we, o as _e, X as mt, G as on, a0 as gt } from "./index-
|
|
3
|
-
import { B as vt, R as yn, p as bn, K as P, j as Sn, S as ht } from "./apply-modal-
|
|
1
|
+
import { _ as g, P as c, a as B, c as ae, b4 as tt, ap as pn, ae as ot, a1 as it, Z as at, I as mn, ab as lt, ac as rt, aD as st, b5 as gn, ao as Y, Q as We, b6 as Le, R as ie, b7 as vn, N as ut, O as ct } from "./yqg-permission-n86ntTPS.js";
|
|
2
|
+
import { d as ne, c as R, r as le, e as f, i as dt, m as ft, a as Ie, p as Ce, x as pt, s as A, w as oe, b as hn, l as ge, S as Ae, F as we, o as _e, X as mt, G as on, a0 as gt } from "./index-DEVsfnu7.js";
|
|
3
|
+
import { B as vt, R as yn, p as bn, K as P, j as Sn, S as ht } from "./apply-modal-ClKGZHQv.js";
|
|
4
4
|
function an(e, n) {
|
|
5
5
|
const {
|
|
6
6
|
key: o
|
|
@@ -4944,7 +4944,7 @@ function Mf(e) {
|
|
|
4944
4944
|
function Of(e) {
|
|
4945
4945
|
return se(e) ? document.querySelector(e) : e;
|
|
4946
4946
|
}
|
|
4947
|
-
const If = /* @__PURE__ */ qo(() => import("./yqg-permission-
|
|
4947
|
+
const If = /* @__PURE__ */ qo(() => import("./yqg-permission-n86ntTPS.js").then((e) => e.b8)), Nf = (e) => {
|
|
4948
4948
|
customElements.define(
|
|
4949
4949
|
e,
|
|
4950
4950
|
/* @__PURE__ */ bf(If, {
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.yqg-permission-message{z-index:10010}.crane-wraper[data-v-
|
|
2
|
-
import { a1 as f } from "./index-
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.yqg-permission-message{z-index:10010}.crane-wraper[data-v-2921386e]{display:flex;align-items:center;flex-direction:column;font-size:14px;white-space:nowrap}.crane-margin10[data-v-2921386e]{margin:10px}.crane-margin-right10[data-v-2921386e]{margin-right:10px}.yqg-permission-modal-wrap .yqg-permission-modal-confirm-btns{text-align:center!important}.crane-step-wraper[data-v-dbf18219]{display:flex;align-items:center;width:100%;overflow-x:scroll;line-height:32px;padding-bottom:8px}.crane-step-node[data-v-dbf18219]{display:flex;align-items:center}.crane-step-icon[data-v-dbf18219]{margin:0 8px;height:auto;max-width:none}.crane-permission-title-tips[data-v-65721b75]{color:#ff4d4f;font-size:14px;margin-left:8px;font-weight:400}[data-v-65721b75] .yqg-permission-tree-list{margin-top:4px}[data-v-65721b75] .yqg-permission-tree-node-selected{background:none!important}[data-v-65721b75] .yqg-permission-tree-checkbox{margin:0!important}[data-v-65721b75] .yqg-permission-tree-switcher-noop{width:18px!important}[data-v-65721b75] .yqg-permission-tree-checkbox+span:hover{background:none!important}[data-v-65721b75] .yqg-permission-tree-treenode,[data-v-65721b75] .yqg-permission-tree-node-content-wrapper-normal,[data-v-65721b75] .yqg-permission-tree-title{width:100%!important}.yqg-permission-tree-list-wraper[data-v-65721b75] .yqg-permission-tree-list-scrollbar{display:block!important}.crane-category-wraper[data-v-e4f4ff30]{margin-top:16px;padding:12px;padding-bottom:1px!important;border-radius:4px;background-color:#f2f3f5}[data-v-e4f4ff30] .crane-category-wraper label{font-size:12px!important}[data-v-e4f4ff30] .yqg-permission-form-item-explain-error{font-size:12px}[data-v-e4f4ff30] .yqg-permission-form-item{margin-bottom:18px}[data-v-e4f4ff30] .yqg-permission-form-item-required{font-size:12px!important}[data-v-e4f4ff30] .yqg-permission-form-item-required:before{display:none!important}.crane-required[data-v-e4f4ff30]{font-size:14px;font-weight:700}.crane-required[data-v-e4f4ff30]:before{display:inline-block;margin-inline-end:4px;color:#ff4d4f;font-size:14px;font-family:SimSun,sans-serif;line-height:1;content:"*"}.crane-category-tips[data-v-e4f4ff30]{color:#86909c;font-size:12px}.crane-category-line[data-v-e4f4ff30]{height:1px;background-color:#c9cdd4;margin:10px 0}.crane-department-wraper[data-v-7299ba1e]{max-width:600px;max-height:300px;overflow-y:scroll}.crane-flex-center[data-v-7299ba1e]{display:flex;align-items:center;white-space:nowrap}.permission-item-wraper[data-v-7299ba1e]{padding-right:32px}.crane-checkbox-line[data-v-7299ba1e]{line-height:28px;display:flex;align-items:center}.crane-tag-position[data-v-7299ba1e]{margin-right:4px;font-size:10px;padding:2px 4px;line-height:12px;font-weight:500}.crane-margin-right-0[data-v-7299ba1e]{margin-right:0}.crane-margin-left-4[data-v-7299ba1e]{margin-left:4px}.crane-margin-right-4[data-v-7299ba1e]{margin-right:4px}.crane-margin-left-12[data-v-7299ba1e]{margin-left:12px}.crane-disabled-color[data-v-7299ba1e]{color:#c9cdd4}.crane-weak-color[data-v-7299ba1e]{color:#86909c}.crane-text-overflow[data-v-7299ba1e]{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}')),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
|
|
2
|
+
import { a1 as f } from "./index-DEVsfnu7.js";
|
|
3
3
|
export {
|
|
4
4
|
f as default
|
|
5
5
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as pe, Y as Te, a as j, a1 as We, b as at, _ as P, ae as Xe, aX as Me, aZ as He, P as oe, $ as Be, ar as it, as as st, aE as rt, aY as ct, a_ as ut, a0 as je, ak as Ae, aj as dt, am as vt, N as mt, R as ft, a$ as gt, b0 as pt, Q as ht, b1 as bt, b2 as yt, b3 as St, aq as Ct, aD as At, aP as X, aR as we, aS as Ot } from "./yqg-permission-
|
|
2
|
-
import { p as It, a as wt, d as he, c as A, G as xt, w as Fe, E as Ye, q as _e, e as N, F as Ve, s as ve, b as Ne, y as ne, r as Qe, K as G, N as ue, L as Oe, M as J, S as Pe, R as H, O as Vt, u as B, U as de, P as W, $ as Nt, Y as ze } from "./index-
|
|
3
|
-
import { L as Tt, j as Pt, p as Et, K as Z, d as Ft, F as Dt, e as Rt, f as Bt, Q as kt } from "./apply-modal-
|
|
4
|
-
import { u as $t, b as Lt, T as Mt, i as De, c as Ht, h as jt, j as _t, k as zt, t as Ut, B as Kt, e as Gt, f as Wt, g as Xt } from "./index-
|
|
1
|
+
import { c as pe, Y as Te, a as j, a1 as We, b as at, _ as P, ae as Xe, aX as Me, aZ as He, P as oe, $ as Be, ar as it, as as st, aE as rt, aY as ct, a_ as ut, a0 as je, ak as Ae, aj as dt, am as vt, N as mt, R as ft, a$ as gt, b0 as pt, Q as ht, b1 as bt, b2 as yt, b3 as St, aq as Ct, aD as At, aP as X, aR as we, aS as Ot } from "./yqg-permission-n86ntTPS.js";
|
|
2
|
+
import { p as It, a as wt, d as he, c as A, G as xt, w as Fe, E as Ye, q as _e, e as N, F as Ve, s as ve, b as Ne, y as ne, r as Qe, K as G, N as ue, L as Oe, M as J, S as Pe, R as H, O as Vt, u as B, U as de, P as W, $ as Nt, Y as ze } from "./index-DEVsfnu7.js";
|
|
3
|
+
import { L as Tt, j as Pt, p as Et, K as Z, d as Ft, F as Dt, e as Rt, f as Bt, Q as kt } from "./apply-modal-ClKGZHQv.js";
|
|
4
|
+
import { u as $t, b as Lt, T as Mt, i as De, c as Ht, h as jt, j as _t, k as zt, t as Ut, B as Kt, e as Gt, f as Wt, g as Xt } from "./index-CHqAkxqj.js";
|
|
5
5
|
function Yt() {
|
|
6
6
|
return /(mac\sos|macintosh)/i.test(navigator.appVersion);
|
|
7
7
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as de, i as Fn, C as hu, T as hs, p as Se, c as D, a as ue, r as F, d as N, u as J, s as z, w as q, g as Ro, b as je, o as Le, t as vu, e as I, h as Lt, f as jn, j as Iu, k as it, l as Oe, m as vs, n as zt, q as be, v as ko, x as CA, y as mu, z as No, A as ni, B as Qu, D as Is, E as ms, G as Ne, H as Qs, I as wu, J as yu, K as $e, L as oi, M as lt, N as Tt, O as bu, P as Ee, Q as Pu, R as _e, S as Gn, U as ar, V as Du } from "./index-
|
|
1
|
+
import { F as de, i as Fn, C as hu, T as hs, p as Se, c as D, a as ue, r as F, d as N, u as J, s as z, w as q, g as Ro, b as je, o as Le, t as vu, e as I, h as Lt, f as jn, j as Iu, k as it, l as Oe, m as vs, n as zt, q as be, v as ko, x as CA, y as mu, z as No, A as ni, B as Qu, D as Is, E as ms, G as Ne, H as Qs, I as wu, J as yu, K as $e, L as oi, M as lt, N as Tt, O as bu, P as Ee, Q as Pu, R as _e, S as Gn, U as ar, V as Du } from "./index-DEVsfnu7.js";
|
|
2
2
|
function Qn(e) {
|
|
3
3
|
"@babel/helpers - typeof";
|
|
4
4
|
return Qn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
@@ -14547,7 +14547,7 @@ function c0(e, t = []) {
|
|
|
14547
14547
|
const n = [];
|
|
14548
14548
|
let o = 0;
|
|
14549
14549
|
function r(l, c, u) {
|
|
14550
|
-
return l.map((g) => (g.key = g.feature, o++, !g.children || g.children.length === 0 ? (g.categoryVOS = (g.categoryVOS || []).filter((f) => f.configWay !== l0.AUTO && !t.includes(f.id)), [ft.NO].includes(g.businessApplyType) && (g.disabled = !0), ([ft.OWNER].includes(g.businessApplyType) && !g.categoryVOS.length || [ft.PENDING].includes(g.businessApplyType)) && (g.disabled = !0, n.push(g.feature))) : (g.children = r(g.children, c, u), g.children.every((f) => n.includes(f.feature)) && n.push(g.feature), g.children.every((f) => f.disabled) && (g.disabled = !0)), g)).sort((g, f) => (c.get(g.businessApplyType) ?? 0) - (c.get(f.businessApplyType) ?? 0) || (u.get(g.securityLevel) ?? 0) - (u.get(f.securityLevel) ?? 0));
|
|
14550
|
+
return l.map((g) => (g.key = g.feature, o++, !g.children || g.children.length === 0 ? (g.categoryVOS = (g.categoryVOS || []).filter((f) => f.configWay !== l0.AUTO && !t.includes(f.id)), console.log("needOmitCategoryIds-----2", g, g.categoryVOS, t), [ft.NO].includes(g.businessApplyType) && (g.disabled = !0), ([ft.OWNER].includes(g.businessApplyType) && !g.categoryVOS.length || [ft.PENDING].includes(g.businessApplyType)) && (g.disabled = !0, n.push(g.feature))) : (g.children = r(g.children, c, u), g.children.every((f) => n.includes(f.feature)) && n.push(g.feature), g.children.every((f) => f.disabled) && (g.disabled = !0)), g)).sort((g, f) => (c.get(g.businessApplyType) ?? 0) - (c.get(f.businessApplyType) ?? 0) || (u.get(g.securityLevel) ?? 0) - (u.get(f.securityLevel) ?? 0));
|
|
14551
14551
|
}
|
|
14552
14552
|
const A = [null, ft.TEMP_OWNER, ft.PENDING, ft.OWNER, ft.NO], i = [null, "L1", "L2", "L3"], a = new Map(A.map((l, c) => [l, c])), s = new Map(i.map((l, c) => [l, c]));
|
|
14553
14553
|
return {
|
|
@@ -14610,7 +14610,7 @@ const u0 = ["src"], g0 = ["src"], f0 = { class: "crane-margin10" }, d0 = ["src"]
|
|
|
14610
14610
|
CUSTOM: "custom"
|
|
14611
14611
|
};
|
|
14612
14612
|
Ge.config({ prefixCls: "yqg-permission-message" });
|
|
14613
|
-
const r = Du(() => import("./apply-modal-
|
|
14613
|
+
const r = Du(() => import("./apply-modal-ClKGZHQv.js").then((w) => w.k)), A = t, i = e, a = F(!1), s = F(), l = F(!1), c = F([]), u = F(!1);
|
|
14614
14614
|
let g = F([]), f = F({
|
|
14615
14615
|
imageUrl: Bo,
|
|
14616
14616
|
status: ""
|
|
@@ -14620,7 +14620,7 @@ const u0 = ["src"], g0 = ["src"], f0 = { class: "crane-margin10" }, d0 = ["src"]
|
|
|
14620
14620
|
return g.value = [], Array.isArray(i.permissions) ? i.permissions.filter((v) => v.trim()) : ((P = (w = i.permissions) == null ? void 0 : w.split(",")) == null ? void 0 : P.filter((v) => v.trim())) || [];
|
|
14621
14621
|
}), p = D(() => {
|
|
14622
14622
|
var w, P;
|
|
14623
|
-
return Array.isArray(i.omitCategoryIds) ? i.omitCategoryIds : ((P = (w = i.omitCategoryIds) == null ? void 0 : w.split(",")) == null ? void 0 : P.map((v) => Number(v))) || [];
|
|
14623
|
+
return console.log("needOmitCategoryIds-----1", i.omitCategoryIds), Array.isArray(i.omitCategoryIds) ? i.omitCategoryIds : ((P = (w = i.omitCategoryIds) == null ? void 0 : w.split(",")) == null ? void 0 : P.map((v) => Number(v))) || [];
|
|
14624
14624
|
}), B = () => {
|
|
14625
14625
|
var P;
|
|
14626
14626
|
const w = (P = s.value) == null ? void 0 : P.oaFlowUrl;
|
|
@@ -14781,7 +14781,7 @@ const u0 = ["src"], g0 = ["src"], f0 = { class: "crane-margin10" }, d0 = ["src"]
|
|
|
14781
14781
|
for (const [o, r] of t)
|
|
14782
14782
|
n[o] = r;
|
|
14783
14783
|
return n;
|
|
14784
|
-
}, y0 = /* @__PURE__ */ w0(Q0, [["__scopeId", "data-v-
|
|
14784
|
+
}, y0 = /* @__PURE__ */ w0(Q0, [["__scopeId", "data-v-2921386e"]]), j0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14785
14785
|
__proto__: null,
|
|
14786
14786
|
default: y0
|
|
14787
14787
|
}, Symbol.toStringTag, { value: "Module" }));
|