@yqg/permission 1.3.2-alpha.2 → 1.3.2
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-DtrTKD08.js → apply-modal-bqIJ2QXS.js} +6 -6
- package/dist/{category-selector-BFIezCmR.js → category-selector-B8MH3Q3G.js} +69 -68
- package/dist/{index-BfRVarbV.js → index-CzfXAbzR.js} +3 -3
- package/dist/{index-Djsji28c.js → index-u37w35am.js} +3 -3
- package/dist/index.js +2 -2
- package/dist/{permission-item-DxaZOPm7.js → permission-item-BlYq3oFU.js} +4 -4
- package/dist/{yqg-permission-BZwGV6px.js → yqg-permission-owkq3rvu.js} +2382 -2439
- package/dist/yqg-permission.umd.js +55 -55
- package/package.json +1 -1
- package/src/App.vue +5 -7
- package/src/components/apply-modal.vue +1 -1
- package/src/components/category-selector.vue +4 -3
- package/src/components/yqg-permission.vue +4 -4
- package/src/i18n/en-US.ts +50 -50
- package/src/i18n/index.ts +2 -5
- package/src/i18n/zh-CH.ts +8 -0
- package/src/utils/index.ts +2 -17
- package/src/i18n/in-ID.ts +0 -57
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as ie, G as at, l as Ye, v as An, x as Rr, w as se, g as Zt, s as W, e as w, r as ae, c as N, m as Yt, o as Ve, E as Ft, q as _e, b as Ne, p as Xe, a as $t, F as it, f as _t, z as Rt, H as Nl, k as Nn, u as ce, W as Ml, i as bo, n as xo, X as Fl, K as He, L as jt, y as Ba,
|
|
2
|
-
import { f as Ha, i as Dl, _ as y, P as ee, a as H, c as ne, b as Kl, s as pt, w as ze, I as tt, d as Ll, e as Jt, g as za, S as Dt, h as Et, j as Ct, k as Bl, l as Hl, m as ja, n as Dr, o as zl, M as Va, p as Wa, q as ka, r as jl, t as Mn, u as qa, v as Ga, x as Vl, y as Wl, U as Co, z as Kr, A as On, B as Lr, C as kl, D as Ua, E as ql, F as Xa, G as Gl, H as Ul, J as Xl, K as wo, L as Yl, N as It, O as Ql, Q as Je, R as et, T as Ya, V as Br, W as lt, X as Zl, Y as De, Z as Jl, $ as We, a0 as gt, a1 as Hr, a2 as Fn, a3 as es, a4 as Qa, a5 as Za, a6 as ts, a7 as zr, a8 as _n, a9 as jr, aa as Ja, ab as Rn, ac as ei, ad as ti, ae as st, af as ns, ag as rs, ah as os, ai as Ue, aj as Ae, ak as vr, al as dt, am as Ze, an as gr, ao as Dn, ap as St, aq as Oo, ar as as, as as ni, at as Eo, au as Kt, av as ri, aw as is, ax as ls, ay as ss, az as cs, aA as us, aB as ds, aC as fs, aD as ps, aE as En, aF as vs, aG as oi, aH as gs, aI as hs, aJ as ms, aK as ys, aL as bs, aM as xs, aN as Ss, aO as Tt, aP as $e, aQ as $s, aR as Cs, aS as ai, aT as Nt, aU as Qn, aV as ws, aW as Zn } from "./yqg-permission-
|
|
1
|
+
import { d as ie, G as at, l as Ye, v as An, x as Rr, w as se, g as Zt, s as W, e as w, r as ae, c as N, m as Yt, o as Ve, E as Ft, q as _e, b as Ne, p as Xe, a as $t, F as it, f as _t, z as Rt, H as Nl, k as Nn, u as ce, W as Ml, i as bo, n as xo, X as Fl, K as He, L as jt, y as Ba, P as ft, Y as _l, R as Ge, N as Vt, S as Cn, M as Be, U as wn, Z as So, _ as Rl, V as $o } from "./index-u37w35am.js";
|
|
2
|
+
import { f as Ha, i as Dl, _ as y, P as ee, a as H, c as ne, b as Kl, s as pt, w as ze, I as tt, d as Ll, e as Jt, g as za, S as Dt, h as Et, j as Ct, k as Bl, l as Hl, m as ja, n as Dr, o as zl, M as Va, p as Wa, q as ka, r as jl, t as Mn, u as qa, v as Ga, x as Vl, y as Wl, U as Co, z as Kr, A as On, B as Lr, C as kl, D as Ua, E as ql, F as Xa, G as Gl, H as Ul, J as Xl, K as wo, L as Yl, N as It, O as Ql, Q as Je, R as et, T as Ya, V as Br, W as lt, X as Zl, Y as De, Z as Jl, $ as We, a0 as gt, a1 as Hr, a2 as Fn, a3 as es, a4 as Qa, a5 as Za, a6 as ts, a7 as zr, a8 as _n, a9 as jr, aa as Ja, ab as Rn, ac as ei, ad as ti, ae as st, af as ns, ag as rs, ah as os, ai as Ue, aj as Ae, ak as vr, al as dt, am as Ze, an as gr, ao as Dn, ap as St, aq as Oo, ar as as, as as ni, at as Eo, au as Kt, av as ri, aw as is, ax as ls, ay as ss, az as cs, aA as us, aB as ds, aC as fs, aD as ps, aE as En, aF as vs, aG as oi, aH as gs, aI as hs, aJ as ms, aK as ys, aL as bs, aM as xs, aN as Ss, aO as Tt, aP as $e, aQ as $s, aR as Cs, aS as ai, aT as Nt, aU as Qn, aV as ws, aW as Zn } from "./yqg-permission-owkq3rvu.js";
|
|
3
3
|
const ii = ie({
|
|
4
4
|
compatConfig: {
|
|
5
5
|
MODE: 3
|
|
@@ -12663,7 +12663,7 @@ const Gg = { key: 0 }, Ug = { key: 0 }, Xg = {
|
|
|
12663
12663
|
},
|
|
12664
12664
|
zIndex: {
|
|
12665
12665
|
type: Number,
|
|
12666
|
-
default:
|
|
12666
|
+
default: 1e3
|
|
12667
12667
|
}
|
|
12668
12668
|
}, {
|
|
12669
12669
|
modelValue: {
|
|
@@ -12675,9 +12675,9 @@ const Gg = { key: 0 }, Ug = { key: 0 }, Xg = {
|
|
|
12675
12675
|
emits: /* @__PURE__ */ So(["onSubmit", "onSuccess"], ["update:modelValue"]),
|
|
12676
12676
|
setup(e, { emit: t }) {
|
|
12677
12677
|
const n = $o(
|
|
12678
|
-
() => import("./category-selector-
|
|
12678
|
+
() => import("./category-selector-B8MH3Q3G.js")
|
|
12679
12679
|
), r = $o(
|
|
12680
|
-
() => import("./permission-item-
|
|
12680
|
+
() => import("./permission-item-BlYq3oFU.js")
|
|
12681
12681
|
), o = e, a = t, i = Rl(e, "modelValue"), l = ae(!1), s = N(() => o.permissionList), c = Ba(o, "workNumber"), d = ae(), u = ae(), f = ae();
|
|
12682
12682
|
let g = ae([]);
|
|
12683
12683
|
const S = ae([]), m = ae([]), p = ae([]), v = at({
|
|
@@ -12895,7 +12895,7 @@ const Gg = { key: 0 }, Ug = { key: 0 }, Xg = {
|
|
|
12895
12895
|
_: 1
|
|
12896
12896
|
}, 8, ["open", "zIndex"]));
|
|
12897
12897
|
}
|
|
12898
|
-
}), Zg = /* @__PURE__ */ ai(Qg, [["__scopeId", "data-v-
|
|
12898
|
+
}), Zg = /* @__PURE__ */ ai(Qg, [["__scopeId", "data-v-8f110359"]]), th = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12899
12899
|
__proto__: null,
|
|
12900
12900
|
default: Zg
|
|
12901
12901
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -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, $ as gt, G as yt, K as ie, L as Ze, M as Me,
|
|
2
|
-
import { a as X, _ 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
|
|
3
|
-
import { u as Ot, a as Ht, b as Rt, c as Mt, d as
|
|
4
|
-
import { K as de, T as zt, c as Xt, a as Xe, u as Yt, 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-
|
|
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, $ as gt, G as yt, K as ie, L as Ze, M as Me, N as $e, R as ye, u as W, P as we, F as bt, Y as Ct, f as St, U as et, z as wt } from "./index-u37w35am.js";
|
|
2
|
+
import { a as X, _ 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 Be, $ as Nt, ar as Tt, as as Lt, aY as Et, c as at, b as Pt, ak as je, aj as _t, a0 as Dt, ai as At, am as We, aU as Kt, aP as xe, aS as Ft } from "./yqg-permission-owkq3rvu.js";
|
|
3
|
+
import { u as Ot, a as Ht, b as Rt, c as Mt, d as $t, t as lt, B as Bt, e as jt, f as Wt, g as Ut } from "./index-CzfXAbzR.js";
|
|
4
|
+
import { K as de, T as zt, c as Xt, a as Xe, u as Yt, 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-bqIJ2QXS.js";
|
|
5
5
|
function na(e) {
|
|
6
6
|
return Array.isArray(e) ? e : e !== void 0 ? [e] : [];
|
|
7
7
|
}
|
|
@@ -159,7 +159,7 @@ const ua = {
|
|
|
159
159
|
notFoundContent: z = (v = l.notFoundContent) === null || v === void 0 ? void 0 : v.call(l)
|
|
160
160
|
} = a, {
|
|
161
161
|
listHeight: Y,
|
|
162
|
-
listItemHeight:
|
|
162
|
+
listItemHeight: $,
|
|
163
163
|
virtual: le,
|
|
164
164
|
dropdownMatchSelectWidth: q,
|
|
165
165
|
treeExpandAction: re
|
|
@@ -173,7 +173,7 @@ const ua = {
|
|
|
173
173
|
loadData: ge,
|
|
174
174
|
treeLoadedKeys: ue,
|
|
175
175
|
treeMotion: C,
|
|
176
|
-
onTreeLoad:
|
|
176
|
+
onTreeLoad: P,
|
|
177
177
|
checkedKeys: H
|
|
178
178
|
} = n;
|
|
179
179
|
if (d.value.length === 0)
|
|
@@ -196,7 +196,7 @@ const ua = {
|
|
|
196
196
|
prefixCls: `${V}-tree`,
|
|
197
197
|
treeData: d.value,
|
|
198
198
|
height: Y,
|
|
199
|
-
itemHeight:
|
|
199
|
+
itemHeight: $,
|
|
200
200
|
virtual: le !== !1 && q !== !1,
|
|
201
201
|
multiple: E,
|
|
202
202
|
icon: ne,
|
|
@@ -216,7 +216,7 @@ const ua = {
|
|
|
216
216
|
onSelect: F,
|
|
217
217
|
onCheck: F,
|
|
218
218
|
onExpand: S,
|
|
219
|
-
onLoad:
|
|
219
|
+
onLoad: P,
|
|
220
220
|
filterTreeNode: f,
|
|
221
221
|
expandAction: re
|
|
222
222
|
}), b(b({}, l), {
|
|
@@ -685,14 +685,14 @@ const xa = Ve({
|
|
|
685
685
|
label: k
|
|
686
686
|
} = m;
|
|
687
687
|
const {
|
|
688
|
-
value:
|
|
688
|
+
value: _,
|
|
689
689
|
halfChecked: L
|
|
690
690
|
} = m;
|
|
691
691
|
let I;
|
|
692
|
-
const N = g.value.get(
|
|
692
|
+
const N = g.value.get(_);
|
|
693
693
|
return N && (k = k ?? K(N.node), I = N.node.disabled), {
|
|
694
694
|
label: k,
|
|
695
|
-
value:
|
|
695
|
+
value: _,
|
|
696
696
|
halfChecked: L,
|
|
697
697
|
disabled: I
|
|
698
698
|
};
|
|
@@ -706,9 +706,9 @@ const xa = Ve({
|
|
|
706
706
|
}), T.value = i, z.value = h;
|
|
707
707
|
});
|
|
708
708
|
const Y = y(() => T.value.map((i) => i.value)), {
|
|
709
|
-
maxLevel:
|
|
709
|
+
maxLevel: $,
|
|
710
710
|
levelEntities: le
|
|
711
|
-
} = Yt(S), [q, re] = Ca(T, z, o, S,
|
|
711
|
+
} = Yt(S), [q, re] = Ca(T, z, o, S, $, 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;
|
|
@@ -718,8 +718,8 @@ const xa = Ve({
|
|
|
718
718
|
value: L,
|
|
719
719
|
label: I == null ? void 0 : I.label
|
|
720
720
|
};
|
|
721
|
-
}), k = v(m),
|
|
722
|
-
return !c.value &&
|
|
721
|
+
}), k = v(m), _ = k[0];
|
|
722
|
+
return !c.value && _ && nt(_.value) && nt(_.label) ? [] : k.map((L) => {
|
|
723
723
|
var I;
|
|
724
724
|
return b(b({}, L), {
|
|
725
725
|
label: (I = L.label) !== null && I !== void 0 ? I : L.value
|
|
@@ -728,8 +728,8 @@ const xa = Ve({
|
|
|
728
728
|
}), [ce] = ya(se), ne = (i, h, m) => {
|
|
729
729
|
const k = v(i);
|
|
730
730
|
if (E(k), e.autoClearSearchValue && p(""), e.onChange) {
|
|
731
|
-
let
|
|
732
|
-
o.value && (
|
|
731
|
+
let _ = i;
|
|
732
|
+
o.value && (_ = ot(i, e.showCheckedStrategy, S.value, u.value).map((te) => {
|
|
733
733
|
const Se = g.value.get(te);
|
|
734
734
|
return Se ? Se.node[u.value.value] : te;
|
|
735
735
|
}));
|
|
@@ -740,9 +740,9 @@ const xa = Ve({
|
|
|
740
740
|
triggerValue: void 0,
|
|
741
741
|
selected: void 0
|
|
742
742
|
};
|
|
743
|
-
let N =
|
|
743
|
+
let N = _;
|
|
744
744
|
if (e.treeCheckStrictly) {
|
|
745
|
-
const j = z.value.filter((te) => !
|
|
745
|
+
const j = z.value.filter((te) => !_.includes(te.value));
|
|
746
746
|
N = [...N, ...j];
|
|
747
747
|
}
|
|
748
748
|
const R = v(N), Z = {
|
|
@@ -752,23 +752,23 @@ const xa = Ve({
|
|
|
752
752
|
};
|
|
753
753
|
let ee = !0;
|
|
754
754
|
(e.treeCheckStrictly || m === "selection" && !I) && (ee = !1), pa(Z, L, i, x.value, ee, u.value), r.value ? Z.checked = I : Z.selected = I;
|
|
755
|
-
const
|
|
756
|
-
e.onChange(c.value ?
|
|
755
|
+
const B = d.value ? R : R.map((j) => j.value);
|
|
756
|
+
e.onChange(c.value ? B : B[0], d.value ? null : R.map((j) => j.label), Z);
|
|
757
757
|
}
|
|
758
758
|
}, G = (i, h) => {
|
|
759
759
|
let {
|
|
760
760
|
selected: m,
|
|
761
761
|
source: k
|
|
762
762
|
} = h;
|
|
763
|
-
var
|
|
764
|
-
const N = ae(S.value), R = ae(g.value), Z = N[i], ee = Z == null ? void 0 : Z.node,
|
|
763
|
+
var _, L, I;
|
|
764
|
+
const N = ae(S.value), R = ae(g.value), Z = N[i], ee = Z == null ? void 0 : Z.node, B = (_ = ee == null ? void 0 : ee[u.value.value]) !== null && _ !== void 0 ? _ : i;
|
|
765
765
|
if (!c.value)
|
|
766
|
-
ne([
|
|
766
|
+
ne([B], {
|
|
767
767
|
selected: !0,
|
|
768
|
-
triggerValue:
|
|
768
|
+
triggerValue: B
|
|
769
769
|
}, "option");
|
|
770
770
|
else {
|
|
771
|
-
let j = m ? [...Y.value,
|
|
771
|
+
let j = m ? [...Y.value, B] : q.value.filter((te) => te !== B);
|
|
772
772
|
if (o.value) {
|
|
773
773
|
const {
|
|
774
774
|
missingRawValues: te,
|
|
@@ -777,19 +777,19 @@ const xa = Ve({
|
|
|
777
777
|
let He;
|
|
778
778
|
m ? {
|
|
779
779
|
checkedKeys: He
|
|
780
|
-
} = Xe(Qe, !0, N,
|
|
780
|
+
} = Xe(Qe, !0, N, $.value, le.value) : {
|
|
781
781
|
checkedKeys: He
|
|
782
782
|
} = Xe(Qe, {
|
|
783
783
|
checked: !1,
|
|
784
784
|
halfCheckedKeys: re.value
|
|
785
|
-
}, N,
|
|
785
|
+
}, N, $.value, le.value), j = [...te, ...He.map((Re) => N[Re].node[u.value.value])];
|
|
786
786
|
}
|
|
787
787
|
ne(j, {
|
|
788
788
|
selected: m,
|
|
789
|
-
triggerValue:
|
|
789
|
+
triggerValue: B
|
|
790
790
|
}, k || "option");
|
|
791
791
|
}
|
|
792
|
-
m || !c.value ? (L = e.onSelect) === null || L === void 0 || L.call(e,
|
|
792
|
+
m || !c.value ? (L = e.onSelect) === null || L === void 0 || L.call(e, B, qe(ee)) : (I = e.onDeselect) === null || I === void 0 || I.call(e, B, qe(ee));
|
|
793
793
|
}, pe = (i) => {
|
|
794
794
|
if (e.onDropdownVisibleChange) {
|
|
795
795
|
const h = {};
|
|
@@ -814,7 +814,7 @@ const xa = Ve({
|
|
|
814
814
|
// Data
|
|
815
815
|
loadData: ue,
|
|
816
816
|
treeLoadedKeys: C,
|
|
817
|
-
onTreeLoad:
|
|
817
|
+
onTreeLoad: P,
|
|
818
818
|
// Expanded
|
|
819
819
|
treeDefaultExpandAll: H,
|
|
820
820
|
treeExpandedKeys: J,
|
|
@@ -825,20 +825,20 @@ const xa = Ve({
|
|
|
825
825
|
listHeight: Le,
|
|
826
826
|
listItemHeight: Ee,
|
|
827
827
|
// Tree
|
|
828
|
-
treeLine:
|
|
828
|
+
treeLine: Pe,
|
|
829
829
|
treeIcon: Ce,
|
|
830
|
-
showTreeIcon:
|
|
830
|
+
showTreeIcon: _e,
|
|
831
831
|
switcherIcon: De,
|
|
832
832
|
treeMotion: Ae,
|
|
833
833
|
customSlots: Ke,
|
|
834
834
|
dropdownMatchSelectWidth: Fe,
|
|
835
835
|
treeExpandAction: Oe
|
|
836
836
|
} = gt(e);
|
|
837
|
-
|
|
837
|
+
$t(lt({
|
|
838
838
|
checkable: r,
|
|
839
839
|
loadData: ue,
|
|
840
840
|
treeLoadedKeys: C,
|
|
841
|
-
onTreeLoad:
|
|
841
|
+
onTreeLoad: P,
|
|
842
842
|
checkedKeys: q,
|
|
843
843
|
halfCheckedKeys: re,
|
|
844
844
|
treeDefaultExpandAll: H,
|
|
@@ -847,9 +847,9 @@ const xa = Ve({
|
|
|
847
847
|
onTreeExpand: Ne,
|
|
848
848
|
treeIcon: Ce,
|
|
849
849
|
treeMotion: Ae,
|
|
850
|
-
showTreeIcon:
|
|
850
|
+
showTreeIcon: _e,
|
|
851
851
|
switcherIcon: De,
|
|
852
|
-
treeLine:
|
|
852
|
+
treeLine: Pe,
|
|
853
853
|
treeNodeFilterProp: ge,
|
|
854
854
|
keyEntities: S,
|
|
855
855
|
customSlots: Ke
|
|
@@ -930,7 +930,7 @@ const xa = Ve({
|
|
|
930
930
|
"switcherIcon",
|
|
931
931
|
"treeMotion"
|
|
932
932
|
]);
|
|
933
|
-
return U(
|
|
933
|
+
return U(Bt, X(X(X({
|
|
934
934
|
ref: Q
|
|
935
935
|
}, l), h), {}, {
|
|
936
936
|
id: n,
|
|
@@ -1010,7 +1010,7 @@ function ka() {
|
|
|
1010
1010
|
return b(b({}, Ie(ft(), ["showTreeIcon", "treeMotion", "inputIcon", "getInputElement", "treeLine", "customSlots"])), {
|
|
1011
1011
|
suffixIcon: ve.any,
|
|
1012
1012
|
size: je(),
|
|
1013
|
-
bordered:
|
|
1013
|
+
bordered: _t(),
|
|
1014
1014
|
treeLine: Dt([Boolean, Object]),
|
|
1015
1015
|
replaceFields: At(),
|
|
1016
1016
|
placement: je(),
|
|
@@ -1044,7 +1044,7 @@ const Ue = Ve({
|
|
|
1044
1044
|
expose: a,
|
|
1045
1045
|
emit: n
|
|
1046
1046
|
} = s;
|
|
1047
|
-
kt(!(e.treeData === void 0 && t.default)),
|
|
1047
|
+
kt(!(e.treeData === void 0 && t.default)), Be(e.multiple !== !1 || !e.treeCheckable, "TreeSelect", "`multiple` will always be `true` when `treeCheckable` is true"), Be(e.replaceFields === void 0, "TreeSelect", "`replaceFields` is deprecated, please use fieldNames instead"), Be(!e.dropdownClassName, "TreeSelect", "`dropdownClassName` is deprecated. Please use `popupClassName` instead.");
|
|
1048
1048
|
const o = Jt(), r = Qt.useInject(), d = y(() => Zt(r.status, e.status)), {
|
|
1049
1049
|
prefixCls: c,
|
|
1050
1050
|
renderEmpty: u,
|
|
@@ -1061,23 +1061,23 @@ const Ue = Ve({
|
|
|
1061
1061
|
} = Tt(c, f), O = y(() => A.value || x.value), v = Lt(), V = y(() => {
|
|
1062
1062
|
var C;
|
|
1063
1063
|
return (C = F.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)), Y = y(() => g("select-tree", e.prefixCls)),
|
|
1065
|
-
[`${
|
|
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)), Y = y(() => g("select-tree", e.prefixCls)), $ = y(() => g("tree-select", e.prefixCls)), [le, q] = Wt(c), [re] = Ia($, Y), se = y(() => at(e.popupClassName || e.dropdownClassName, `${$.value}-dropdown`, {
|
|
1065
|
+
[`${$.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({
|
|
1068
1068
|
focus() {
|
|
1069
|
-
var C,
|
|
1070
|
-
(
|
|
1069
|
+
var C, P;
|
|
1070
|
+
(P = (C = G.value).focus) === null || P === void 0 || P.call(C);
|
|
1071
1071
|
},
|
|
1072
1072
|
blur() {
|
|
1073
|
-
var C,
|
|
1074
|
-
(
|
|
1073
|
+
var C, P;
|
|
1074
|
+
(P = (C = G.value).blur) === null || P === void 0 || P.call(C);
|
|
1075
1075
|
}
|
|
1076
1076
|
});
|
|
1077
1077
|
const pe = function() {
|
|
1078
|
-
for (var C = arguments.length,
|
|
1079
|
-
|
|
1080
|
-
n("update:value",
|
|
1078
|
+
for (var C = arguments.length, P = new Array(C), H = 0; H < C; H++)
|
|
1079
|
+
P[H] = arguments[H];
|
|
1080
|
+
n("update:value", P[0]), n("change", ...P), o.onFieldChange();
|
|
1081
1081
|
}, me = (C) => {
|
|
1082
1082
|
n("update:treeExpandedKeys", C), n("treeExpand", C);
|
|
1083
1083
|
}, ge = (C) => {
|
|
@@ -1086,7 +1086,7 @@ const Ue = Ve({
|
|
|
1086
1086
|
n("blur", C), o.onFieldBlur();
|
|
1087
1087
|
};
|
|
1088
1088
|
return () => {
|
|
1089
|
-
var C,
|
|
1089
|
+
var C, P, H;
|
|
1090
1090
|
const {
|
|
1091
1091
|
notFoundContent: J = (C = t.notFoundContent) === null || C === void 0 ? void 0 : C.call(t),
|
|
1092
1092
|
prefixCls: ke,
|
|
@@ -1094,10 +1094,10 @@ const Ue = Ve({
|
|
|
1094
1094
|
listHeight: Te,
|
|
1095
1095
|
listItemHeight: Le,
|
|
1096
1096
|
multiple: Ee,
|
|
1097
|
-
treeIcon:
|
|
1097
|
+
treeIcon: Pe,
|
|
1098
1098
|
treeLine: Ce,
|
|
1099
|
-
showArrow:
|
|
1100
|
-
switcherIcon: De = (
|
|
1099
|
+
showArrow: _e,
|
|
1100
|
+
switcherIcon: De = (P = t.switcherIcon) === null || P === void 0 ? void 0 : P.call(t),
|
|
1101
1101
|
fieldNames: Ae = e.replaceFields,
|
|
1102
1102
|
id: Ke = o.id.value,
|
|
1103
1103
|
placeholder: Fe = (H = t.placeholder) === null || H === void 0 ? void 0 : H.call(t)
|
|
@@ -1116,16 +1116,16 @@ const Ue = Ve({
|
|
|
1116
1116
|
feedbackIcon: i,
|
|
1117
1117
|
prefixCls: c.value
|
|
1118
1118
|
}), t);
|
|
1119
|
-
let
|
|
1120
|
-
J !== void 0 ?
|
|
1121
|
-
const L = Ie(e, ["suffixIcon", "itemIcon", "removeIcon", "clearIcon", "switcherIcon", "bordered", "status", "onUpdate:value", "onUpdate:treeExpandedKeys", "onUpdate:searchValue"]), I = at(!ke &&
|
|
1119
|
+
let _;
|
|
1120
|
+
J !== void 0 ? _ = J : _ = u("Select");
|
|
1121
|
+
const L = Ie(e, ["suffixIcon", "itemIcon", "removeIcon", "clearIcon", "switcherIcon", "bordered", "status", "onUpdate:value", "onUpdate:treeExpandedKeys", "onUpdate:searchValue"]), I = at(!ke && $.value, {
|
|
1122
1122
|
[`${c.value}-lg`]: O.value === "large",
|
|
1123
1123
|
[`${c.value}-sm`]: O.value === "small",
|
|
1124
1124
|
[`${c.value}-rtl`]: f.value === "rtl",
|
|
1125
1125
|
[`${c.value}-borderless`]: !Ne,
|
|
1126
1126
|
[`${c.value}-in-form-item`]: Oe
|
|
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 =
|
|
1128
|
+
return e.treeData === void 0 && t.default && (N.children = Pt(t.default())), le(re(U(xa, X(X(X(X({}, l), L), {}, {
|
|
1129
1129
|
disabled: V.value,
|
|
1130
1130
|
virtual: p.value,
|
|
1131
1131
|
dropdownMatchSelectWidth: w.value,
|
|
@@ -1142,8 +1142,8 @@ const Ue = Ve({
|
|
|
1142
1142
|
removeIcon: m,
|
|
1143
1143
|
clearIcon: k,
|
|
1144
1144
|
switcherIcon: (R) => ta(Y.value, De, R, t.leafIcon, Ce),
|
|
1145
|
-
showTreeIcon:
|
|
1146
|
-
notFoundContent:
|
|
1145
|
+
showTreeIcon: Pe,
|
|
1146
|
+
notFoundContent: _,
|
|
1147
1147
|
getPopupContainer: S == null ? void 0 : S.value,
|
|
1148
1148
|
treeMotion: null,
|
|
1149
1149
|
dropdownClassName: se.value,
|
|
@@ -1161,7 +1161,7 @@ const Ue = Ve({
|
|
|
1161
1161
|
}),
|
|
1162
1162
|
maxTagPlaceholder: e.maxTagPlaceholder || t.maxTagPlaceholder,
|
|
1163
1163
|
placement: D.value,
|
|
1164
|
-
showArrow: Q ||
|
|
1164
|
+
showArrow: Q || _e,
|
|
1165
1165
|
placeholder: Fe
|
|
1166
1166
|
}), b(b({}, t), {
|
|
1167
1167
|
treeCheckable: () => U("span", {
|
|
@@ -1192,7 +1192,7 @@ function Na(e) {
|
|
|
1192
1192
|
const Ta = { class: "crane-required" }, La = { class: "crane-category-tips" }, Ea = {
|
|
1193
1193
|
key: 0,
|
|
1194
1194
|
style: { color: "#1677ff", "font-weight": "bold" }
|
|
1195
|
-
},
|
|
1195
|
+
}, Pa = { key: 1 }, _a = {
|
|
1196
1196
|
key: 0,
|
|
1197
1197
|
style: { color: "#ff4d4f", "font-size": "12px" }
|
|
1198
1198
|
}, Da = /* @__PURE__ */ Ve({
|
|
@@ -1223,9 +1223,9 @@ const Ta = { class: "crane-required" }, La = { class: "crane-category-tips" }, E
|
|
|
1223
1223
|
ref: o
|
|
1224
1224
|
}, {
|
|
1225
1225
|
default: Me(() => [
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
f[1] || (f[1] =
|
|
1226
|
+
$e("div", Ta, ye(W(xe)("category")), 1),
|
|
1227
|
+
$e("div", La, ye(W(xe)("categotySelectTips")), 1),
|
|
1228
|
+
f[1] || (f[1] = $e("div", { class: "crane-category-line" }, null, -1)),
|
|
1229
1229
|
(ie(!0), we(bt, null, Ct(a.value.categoryList, (p, w) => {
|
|
1230
1230
|
var x;
|
|
1231
1231
|
return St((ie(), Ze(W(aa), {
|
|
@@ -1242,6 +1242,7 @@ const Ta = { class: "crane-required" }, La = { class: "crane-category-tips" }, E
|
|
|
1242
1242
|
treeDefaultExpandAll: "",
|
|
1243
1243
|
"tree-data": W(d)[p.id],
|
|
1244
1244
|
showSearch: "",
|
|
1245
|
+
getPopupContainer: () => u.$el,
|
|
1245
1246
|
allowClear: "",
|
|
1246
1247
|
value: p.attributeValueIds_view,
|
|
1247
1248
|
"onUpdate:value": (g) => p.attributeValueIds_view = g,
|
|
@@ -1253,11 +1254,11 @@ const Ta = { class: "crane-required" }, La = { class: "crane-category-tips" }, E
|
|
|
1253
1254
|
"show-checked-strategy": W(l)
|
|
1254
1255
|
}, {
|
|
1255
1256
|
title: Me(({ attributeName: g }) => [
|
|
1256
|
-
r.value.toLowerCase() && g.includes(r.value.toLowerCase()) ? (ie(), we("span", Ea, ye(g), 1)) : (ie(), we("span",
|
|
1257
|
+
r.value.toLowerCase() && g.includes(r.value.toLowerCase()) ? (ie(), we("span", Ea, ye(g), 1)) : (ie(), we("span", Pa, ye(g), 1))
|
|
1257
1258
|
]),
|
|
1258
1259
|
_: 2
|
|
1259
|
-
}, 1032, ["tree-data", "value", "onUpdate:value", "searchValue", "show-checked-strategy"]),
|
|
1260
|
-
(S = p.attributeValueIds_view) != null && S.includes(-1) ? (ie(), we("span",
|
|
1260
|
+
}, 1032, ["tree-data", "getPopupContainer", "value", "onUpdate:value", "searchValue", "show-checked-strategy"]),
|
|
1261
|
+
(S = p.attributeValueIds_view) != null && S.includes(-1) ? (ie(), we("span", _a, ye(W(xe)("categoryChangeTips", { category: p.categoryName })), 1)) : et("", !0)
|
|
1261
1262
|
];
|
|
1262
1263
|
}),
|
|
1263
1264
|
_: 2
|
|
@@ -1269,7 +1270,7 @@ const Ta = { class: "crane-required" }, La = { class: "crane-category-tips" }, E
|
|
|
1269
1270
|
_: 1
|
|
1270
1271
|
}, 8, ["model"])) : et("", !0);
|
|
1271
1272
|
}
|
|
1272
|
-
}), Ha = /* @__PURE__ */ Ft(Da, [["__scopeId", "data-v-
|
|
1273
|
+
}), Ha = /* @__PURE__ */ Ft(Da, [["__scopeId", "data-v-7b1e42be"]]);
|
|
1273
1274
|
export {
|
|
1274
1275
|
Ha as default
|
|
1275
1276
|
};
|
|
@@ -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, $ 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-owkq3rvu.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, $ as gt } from "./index-u37w35am.js";
|
|
3
|
+
import { B as vt, R as yn, p as bn, K as P, j as Sn, S as ht } from "./apply-modal-bqIJ2QXS.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-owkq3rvu.js").then((e) => e.b8)), Nf = (e) => {
|
|
4948
4948
|
customElements.define(
|
|
4949
4949
|
e,
|
|
4950
4950
|
/* @__PURE__ */ bf(If, {
|
|
@@ -4993,9 +4993,9 @@ export {
|
|
|
4993
4993
|
zs as K,
|
|
4994
4994
|
Xs as L,
|
|
4995
4995
|
Bo as M,
|
|
4996
|
-
|
|
4996
|
+
Ri as N,
|
|
4997
4997
|
ln as O,
|
|
4998
|
-
|
|
4998
|
+
Jf as P,
|
|
4999
4999
|
Wf as Q,
|
|
5000
5000
|
no as R,
|
|
5001
5001
|
$l as S,
|
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('.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('.crane-wraper[data-v-4a0c49b4]{display:flex;align-items:center;flex-direction:column;font-size:14px;white-space:nowrap}.crane-margin10[data-v-4a0c49b4]{margin:10px}.crane-margin-right10[data-v-4a0c49b4]{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-8f110359]{color:#ff4d4f;font-size:14px;margin-left:8px;font-weight:400}[data-v-8f110359] .yqg-permission-tree-list{margin-top:4px}[data-v-8f110359] .yqg-permission-tree-node-selected{background:none!important}[data-v-8f110359] .yqg-permission-tree-checkbox{margin:0!important}[data-v-8f110359] .yqg-permission-tree-switcher-noop{width:18px!important}[data-v-8f110359] .yqg-permission-tree-checkbox+span:hover{background:none!important}[data-v-8f110359] .yqg-permission-tree-treenode,[data-v-8f110359] .yqg-permission-tree-node-content-wrapper-normal,[data-v-8f110359] .yqg-permission-tree-title{width:100%!important}.crane-category-wraper[data-v-7b1e42be]{margin-top:16px;padding:12px;padding-bottom:1px!important;border-radius:4px;background-color:#f2f3f5}[data-v-7b1e42be] .crane-category-wraper label{font-size:12px!important}[data-v-7b1e42be] .yqg-permission-form-item-explain-error{font-size:12px}[data-v-7b1e42be] .yqg-permission-form-item{margin-bottom:18px}[data-v-7b1e42be] .yqg-permission-form-item-required{font-size:12px!important}[data-v-7b1e42be] .yqg-permission-form-item-required:before{display:none!important}.crane-required[data-v-7b1e42be]{font-size:14px;font-weight:700}.crane-required[data-v-7b1e42be]: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-7b1e42be]{color:#86909c;font-size:12px}.crane-category-line[data-v-7b1e42be]{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-u37w35am.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,
|
|
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-owkq3rvu.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, P as ue, L as Oe, M as J, S as Pe, R as H, O as Vt, u as B, U as de, N as W, a0 as Nt, Y as ze } from "./index-u37w35am.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-bqIJ2QXS.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-CzfXAbzR.js";
|
|
5
5
|
function Yt() {
|
|
6
6
|
return /(mac\sos|macintosh)/i.test(navigator.appVersion);
|
|
7
7
|
}
|