@yqg/permission 1.3.0-alpha.5 → 1.3.0-alpha.7
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-B7qjeZSE.js → apply-modal-BcN1RhQi.js} +1886 -1875
- package/dist/{category-selector-CFl6Hloy.js → category-selector-BvBV-lpA.js} +59 -59
- package/dist/{index-rX3BorbX.js → index-BFByVNRT.js} +3 -3
- package/dist/{index-jGgeGy8X.js → index-CWuyMc3g.js} +1 -1
- package/dist/index.js +2 -2
- package/dist/permission-item-AXg2_ddM.js +1250 -0
- package/dist/{yqg-permission-DM6aHNXO.js → yqg-permission-D65t3nRR.js} +4 -4
- package/dist/yqg-permission.umd.js +57 -57
- package/package.json +1 -1
- package/src/App.vue +8 -6
- package/src/components/apply-modal.vue +21 -10
- package/src/components/category-selector.vue +1 -1
- package/src/components/permission-item.vue +3 -32
- package/src/hooks/useDefaultTime.ts +20 -0
- package/src/i18n/zh-CH.ts +2 -2
- package/tsconfig.app.json +3 -2
- package/dist/permission-item-CWYGj1L0.js +0 -1264
|
@@ -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, N as Be, 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-
|
|
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 $e, $ as Nt, ar as Tt, as as Lt, aY as Et, c as at, b as _t, ak as je, aj as Pt, a0 as Dt, ai as At, am as We, aU as Kt, aP as xe, aQ as Ft } from "./yqg-permission-
|
|
3
|
-
import { u as Ot, a as Ht, b as Rt, c as Mt, d as Bt, t as lt, B as $t, e as jt, f as Wt, g as Ut } from "./index-
|
|
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 Qt, F as Jt, 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 Be, 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-CWuyMc3g.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 $e, $ as Nt, ar as Tt, as as Lt, aY as Et, c as at, b as _t, ak as je, aj as Pt, a0 as Dt, ai as At, am as We, aU as Kt, aP as xe, aQ as Ft } from "./yqg-permission-D65t3nRR.js";
|
|
3
|
+
import { u as Ot, a as Ht, b as Rt, c as Mt, d as Bt, t as lt, B as $t, e as jt, f as Wt, g as Ut } from "./index-BFByVNRT.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 Qt, F as Jt, e as Zt, f as ea, r as ta, h as aa, i as la } from "./apply-modal-BcN1RhQi.js";
|
|
5
5
|
function na(e) {
|
|
6
6
|
return Array.isArray(e) ? e : e !== void 0 ? [e] : [];
|
|
7
7
|
}
|
|
@@ -84,15 +84,15 @@ const ua = {
|
|
|
84
84
|
immediate: !0,
|
|
85
85
|
flush: "post"
|
|
86
86
|
});
|
|
87
|
-
const u = y(() => String(a.searchValue).toLowerCase()), f = (v) => u.value ? String(v[n.treeNodeFilterProp]).toLowerCase().includes(u.value) : !1,
|
|
87
|
+
const u = y(() => String(a.searchValue).toLowerCase()), f = (v) => u.value ? String(v[n.treeNodeFilterProp]).toLowerCase().includes(u.value) : !1, p = M(n.treeDefaultExpandedKeys), w = M(null);
|
|
88
88
|
be(() => a.searchValue, () => {
|
|
89
89
|
a.searchValue && (w.value = ra(ae(o.treeData), ae(o.fieldNames)));
|
|
90
90
|
}, {
|
|
91
91
|
immediate: !0
|
|
92
92
|
});
|
|
93
|
-
const x = y(() => n.treeExpandedKeys ? n.treeExpandedKeys.slice() : a.searchValue ? w.value :
|
|
93
|
+
const x = y(() => n.treeExpandedKeys ? n.treeExpandedKeys.slice() : a.searchValue ? w.value : p.value), S = (v) => {
|
|
94
94
|
var V;
|
|
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
|
}, F = (v, V) => {
|
|
@@ -272,13 +272,13 @@ function ha(e) {
|
|
|
272
272
|
const {
|
|
273
273
|
isLeaf: u,
|
|
274
274
|
checkable: f,
|
|
275
|
-
selectable:
|
|
275
|
+
selectable: p,
|
|
276
276
|
disabled: w,
|
|
277
277
|
disableCheckbox: x
|
|
278
278
|
} = c, S = {
|
|
279
279
|
isLeaf: u || u === "" || void 0,
|
|
280
280
|
checkable: f || f === "" || void 0,
|
|
281
|
-
selectable:
|
|
281
|
+
selectable: p || p === "" || void 0,
|
|
282
282
|
disabled: w || w === "" || void 0,
|
|
283
283
|
disableCheckbox: x || x === "" || void 0
|
|
284
284
|
}, g = b(b({}, c), S), {
|
|
@@ -309,7 +309,7 @@ function pa(e, s, l, t, a, n) {
|
|
|
309
309
|
let o = null, r = null;
|
|
310
310
|
function d() {
|
|
311
311
|
function c(u) {
|
|
312
|
-
let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "0",
|
|
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
314
|
const S = `${f}-${x}`, g = w[n.value], F = l.includes(g), A = c(w[n.children] || [], S, F), K = U(he, w, {
|
|
315
315
|
default: () => [A.map((O) => O.node)]
|
|
@@ -320,7 +320,7 @@ function pa(e, s, l, t, a, n) {
|
|
|
320
320
|
node: K,
|
|
321
321
|
children: A
|
|
322
322
|
};
|
|
323
|
-
return
|
|
323
|
+
return p || r.push(O), O;
|
|
324
324
|
}
|
|
325
325
|
return null;
|
|
326
326
|
}).filter((w) => w);
|
|
@@ -329,7 +329,7 @@ function pa(e, s, l, t, a, n) {
|
|
|
329
329
|
let {
|
|
330
330
|
node: {
|
|
331
331
|
props: {
|
|
332
|
-
value:
|
|
332
|
+
value: p
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
335
|
} = u, {
|
|
@@ -339,7 +339,7 @@ function pa(e, s, l, t, a, n) {
|
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
341
|
} = f;
|
|
342
|
-
const x = l.indexOf(
|
|
342
|
+
const x = l.indexOf(p), S = l.indexOf(w);
|
|
343
343
|
return x - S;
|
|
344
344
|
}));
|
|
345
345
|
}
|
|
@@ -432,14 +432,14 @@ const ya = (e) => {
|
|
|
432
432
|
return Ge(() => {
|
|
433
433
|
let d = e.value.map((f) => {
|
|
434
434
|
let {
|
|
435
|
-
value:
|
|
435
|
+
value: p
|
|
436
436
|
} = f;
|
|
437
|
-
return
|
|
437
|
+
return p;
|
|
438
438
|
}), c = s.value.map((f) => {
|
|
439
439
|
let {
|
|
440
|
-
value:
|
|
440
|
+
value: p
|
|
441
441
|
} = f;
|
|
442
|
-
return
|
|
442
|
+
return p;
|
|
443
443
|
});
|
|
444
444
|
const u = d.filter((f) => !t.value[f]);
|
|
445
445
|
l.value && ({
|
|
@@ -464,16 +464,16 @@ const ya = (e) => {
|
|
|
464
464
|
c = a.value;
|
|
465
465
|
else {
|
|
466
466
|
const f = r.toUpperCase();
|
|
467
|
-
c = (
|
|
467
|
+
c = (p, w) => {
|
|
468
468
|
const x = w[d];
|
|
469
469
|
return String(x).toUpperCase().includes(f);
|
|
470
470
|
};
|
|
471
471
|
}
|
|
472
472
|
function u(f) {
|
|
473
|
-
let
|
|
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], F = g[o], A =
|
|
476
|
+
const g = f[x], F = g[o], A = p || c(r, qe(g)), K = u(F || [], A);
|
|
477
477
|
(A || K.length) && w.push(b(b({}, g), {
|
|
478
478
|
[o]: K
|
|
479
479
|
}));
|
|
@@ -644,22 +644,22 @@ const xa = Ve({
|
|
|
644
644
|
expose: t,
|
|
645
645
|
slots: a
|
|
646
646
|
} = s;
|
|
647
|
-
const n = Mt(oe(e, "id")), o = y(() => e.treeCheckable && !e.treeCheckStrictly), r = y(() => e.treeCheckable || e.treeCheckStrictly), d = y(() => e.treeCheckStrictly || e.labelInValue), c = y(() => r.value || e.multiple), u = y(() => oa(e.fieldNames)), [f,
|
|
647
|
+
const n = Mt(oe(e, "id")), o = y(() => e.treeCheckable && !e.treeCheckStrictly), r = y(() => e.treeCheckable || e.treeCheckStrictly), d = y(() => e.treeCheckStrictly || e.labelInValue), c = y(() => r.value || e.multiple), u = y(() => oa(e.fieldNames)), [f, p] = tt("", {
|
|
648
648
|
value: y(() => e.searchValue !== void 0 ? e.searchValue : e.inputValue),
|
|
649
649
|
postState: (i) => i || ""
|
|
650
650
|
}), w = (i) => {
|
|
651
651
|
var h;
|
|
652
|
-
|
|
652
|
+
p(i), (h = e.onSearch) === null || h === void 0 || h.call(e, i);
|
|
653
653
|
}, x = ga(oe(e, "treeData"), oe(e, "children"), oe(e, "treeDataSimpleMode")), {
|
|
654
654
|
keyEntities: S,
|
|
655
655
|
valueEntities: g
|
|
656
656
|
} = ba(x, u), F = (i) => {
|
|
657
|
-
const h = [],
|
|
657
|
+
const h = [], m = [];
|
|
658
658
|
return i.forEach((k) => {
|
|
659
|
-
g.value.has(k) ?
|
|
659
|
+
g.value.has(k) ? m.push(k) : h.push(k);
|
|
660
660
|
}), {
|
|
661
661
|
missingRawValues: h,
|
|
662
|
-
existRawValues:
|
|
662
|
+
existRawValues: m
|
|
663
663
|
};
|
|
664
664
|
}, A = Sa(x, f, {
|
|
665
665
|
fieldNames: u,
|
|
@@ -672,22 +672,22 @@ const xa = Ve({
|
|
|
672
672
|
const {
|
|
673
673
|
_title: h
|
|
674
674
|
} = u.value;
|
|
675
|
-
for (let
|
|
676
|
-
const k = i[h[
|
|
675
|
+
for (let m = 0; m < h.length; m += 1) {
|
|
676
|
+
const k = i[h[m]];
|
|
677
677
|
if (k !== void 0)
|
|
678
678
|
return k;
|
|
679
679
|
}
|
|
680
680
|
}
|
|
681
|
-
}, O = (i) => na(i).map((
|
|
682
|
-
value:
|
|
683
|
-
} :
|
|
681
|
+
}, O = (i) => na(i).map((m) => wa(m) ? {
|
|
682
|
+
value: m
|
|
683
|
+
} : m), v = (i) => O(i).map((m) => {
|
|
684
684
|
let {
|
|
685
685
|
label: k
|
|
686
|
-
} =
|
|
686
|
+
} = m;
|
|
687
687
|
const {
|
|
688
688
|
value: P,
|
|
689
689
|
halfChecked: L
|
|
690
|
-
} =
|
|
690
|
+
} = m;
|
|
691
691
|
let I;
|
|
692
692
|
const N = g.value.get(P);
|
|
693
693
|
return N && (k = k ?? K(N.node), I = N.node.disabled), {
|
|
@@ -701,15 +701,15 @@ const xa = Ve({
|
|
|
701
701
|
}), D = y(() => O(V.value)), T = M([]), z = M([]);
|
|
702
702
|
Ge(() => {
|
|
703
703
|
const i = [], h = [];
|
|
704
|
-
D.value.forEach((
|
|
705
|
-
|
|
704
|
+
D.value.forEach((m) => {
|
|
705
|
+
m.halfChecked ? h.push(m) : i.push(m);
|
|
706
706
|
}), T.value = i, z.value = h;
|
|
707
707
|
});
|
|
708
708
|
const Y = y(() => T.value.map((i) => i.value)), {
|
|
709
709
|
maxLevel: B,
|
|
710
710
|
levelEntities: le
|
|
711
711
|
} = Yt(S), [q, re] = Ca(T, z, o, S, B, le), se = y(() => {
|
|
712
|
-
const
|
|
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;
|
|
715
715
|
}).map((L) => {
|
|
@@ -718,16 +718,16 @@ const xa = Ve({
|
|
|
718
718
|
value: L,
|
|
719
719
|
label: I == null ? void 0 : I.label
|
|
720
720
|
};
|
|
721
|
-
}), k = v(
|
|
721
|
+
}), k = v(m), P = k[0];
|
|
722
722
|
return !c.value && P && nt(P.value) && nt(P.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
|
|
726
726
|
});
|
|
727
727
|
});
|
|
728
|
-
}), [ce] = ya(se), ne = (i, h,
|
|
728
|
+
}), [ce] = ya(se), ne = (i, h, m) => {
|
|
729
729
|
const k = v(i);
|
|
730
|
-
if (E(k), e.autoClearSearchValue &&
|
|
730
|
+
if (E(k), e.autoClearSearchValue && p(""), e.onChange) {
|
|
731
731
|
let P = i;
|
|
732
732
|
o.value && (P = ot(i, e.showCheckedStrategy, S.value, u.value).map((te) => {
|
|
733
733
|
const Se = g.value.get(te);
|
|
@@ -751,13 +751,13 @@ const xa = Ve({
|
|
|
751
751
|
triggerValue: L
|
|
752
752
|
};
|
|
753
753
|
let ee = !0;
|
|
754
|
-
(e.treeCheckStrictly ||
|
|
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
755
|
const $ = d.value ? R : R.map((j) => j.value);
|
|
756
756
|
e.onChange(c.value ? $ : $[0], d.value ? null : R.map((j) => j.label), Z);
|
|
757
757
|
}
|
|
758
758
|
}, G = (i, h) => {
|
|
759
759
|
let {
|
|
760
|
-
selected:
|
|
760
|
+
selected: m,
|
|
761
761
|
source: k
|
|
762
762
|
} = h;
|
|
763
763
|
var P, L, I;
|
|
@@ -768,14 +768,14 @@ const xa = Ve({
|
|
|
768
768
|
triggerValue: $
|
|
769
769
|
}, "option");
|
|
770
770
|
else {
|
|
771
|
-
let j =
|
|
771
|
+
let j = m ? [...Y.value, $] : q.value.filter((te) => te !== $);
|
|
772
772
|
if (o.value) {
|
|
773
773
|
const {
|
|
774
774
|
missingRawValues: te,
|
|
775
775
|
existRawValues: Se
|
|
776
776
|
} = F(j), Je = Se.map((Re) => R.get(Re).key);
|
|
777
777
|
let He;
|
|
778
|
-
|
|
778
|
+
m ? {
|
|
779
779
|
checkedKeys: He
|
|
780
780
|
} = Xe(Je, !0, N, B.value, le.value) : {
|
|
781
781
|
checkedKeys: He
|
|
@@ -785,11 +785,11 @@ const xa = Ve({
|
|
|
785
785
|
}, N, B.value, le.value), j = [...te, ...He.map((Re) => N[Re].node[u.value.value])];
|
|
786
786
|
}
|
|
787
787
|
ne(j, {
|
|
788
|
-
selected:
|
|
788
|
+
selected: m,
|
|
789
789
|
triggerValue: $
|
|
790
790
|
}, k || "option");
|
|
791
791
|
}
|
|
792
|
-
|
|
792
|
+
m || !c.value ? (L = e.onSelect) === null || L === void 0 || L.call(e, $, qe(ee)) : (I = e.onDeselect) === null || I === void 0 || I.call(e, $, qe(ee));
|
|
793
793
|
}, pe = (i) => {
|
|
794
794
|
if (e.onDropdownVisibleChange) {
|
|
795
795
|
const h = {};
|
|
@@ -800,9 +800,9 @@ const xa = Ve({
|
|
|
800
800
|
}), e.onDropdownVisibleChange(i, h);
|
|
801
801
|
}
|
|
802
802
|
}, me = (i, h) => {
|
|
803
|
-
const
|
|
803
|
+
const m = i.map((k) => k.value);
|
|
804
804
|
if (h.type === "clear") {
|
|
805
|
-
ne(
|
|
805
|
+
ne(m, {}, "selection");
|
|
806
806
|
return;
|
|
807
807
|
}
|
|
808
808
|
h.values.length && G(h.values[0].value, {
|
|
@@ -1049,7 +1049,7 @@ const Ue = Ve({
|
|
|
1049
1049
|
prefixCls: c,
|
|
1050
1050
|
renderEmpty: u,
|
|
1051
1051
|
direction: f,
|
|
1052
|
-
virtual:
|
|
1052
|
+
virtual: p,
|
|
1053
1053
|
dropdownMatchSelectWidth: w,
|
|
1054
1054
|
size: x,
|
|
1055
1055
|
getPopupContainer: S,
|
|
@@ -1107,7 +1107,7 @@ const Ue = Ve({
|
|
|
1107
1107
|
feedbackIcon: i
|
|
1108
1108
|
} = r, {
|
|
1109
1109
|
suffixIcon: h,
|
|
1110
|
-
removeIcon:
|
|
1110
|
+
removeIcon: m,
|
|
1111
1111
|
clearIcon: k
|
|
1112
1112
|
} = Ut(b(b({}, e), {
|
|
1113
1113
|
multiple: ce.value,
|
|
@@ -1127,7 +1127,7 @@ const Ue = Ve({
|
|
|
1127
1127
|
}, ea(c.value, d.value, J), K.value, l.class, q.value), N = {};
|
|
1128
1128
|
return e.treeData === void 0 && t.default && (N.children = _t(t.default())), le(re(U(xa, X(X(X(X({}, l), L), {}, {
|
|
1129
1129
|
disabled: V.value,
|
|
1130
|
-
virtual:
|
|
1130
|
+
virtual: p.value,
|
|
1131
1131
|
dropdownMatchSelectWidth: w.value,
|
|
1132
1132
|
id: Ke,
|
|
1133
1133
|
fieldNames: Ae,
|
|
@@ -1139,7 +1139,7 @@ const Ue = Ve({
|
|
|
1139
1139
|
treeLine: !!Ce,
|
|
1140
1140
|
inputIcon: h,
|
|
1141
1141
|
multiple: Ee,
|
|
1142
|
-
removeIcon:
|
|
1142
|
+
removeIcon: m,
|
|
1143
1143
|
clearIcon: k,
|
|
1144
1144
|
switcherIcon: (R) => ta(Y.value, De, R, t.leafIcon, Ce),
|
|
1145
1145
|
showTreeIcon: _e,
|
|
@@ -1226,11 +1226,11 @@ const Ta = { class: "crane-required" }, La = { class: "crane-category-tips" }, E
|
|
|
1226
1226
|
Be("div", Ta, ye(W(xe)("category")), 1),
|
|
1227
1227
|
Be("div", La, ye(W(xe)("categotySelectTips")), 1),
|
|
1228
1228
|
f[1] || (f[1] = Be("div", { class: "crane-category-line" }, null, -1)),
|
|
1229
|
-
(ie(!0), we(bt, null, Ct(a.value.categoryList, (
|
|
1229
|
+
(ie(!0), we(bt, null, Ct(a.value.categoryList, (p, w) => {
|
|
1230
1230
|
var x;
|
|
1231
1231
|
return St((ie(), Ze(W(aa), {
|
|
1232
|
-
key:
|
|
1233
|
-
label:
|
|
1232
|
+
key: p.id,
|
|
1233
|
+
label: p.categoryName,
|
|
1234
1234
|
name: ["categoryList", w, "attributeValueIds_view"],
|
|
1235
1235
|
rules: [{ required: !0, message: W(xe)("pleaseChoose"), trigger: ["change", "blur"] }]
|
|
1236
1236
|
}, {
|
|
@@ -1240,11 +1240,11 @@ const Ta = { class: "crane-required" }, La = { class: "crane-category-tips" }, E
|
|
|
1240
1240
|
U(W(ct), {
|
|
1241
1241
|
treeCheckable: "",
|
|
1242
1242
|
treeDefaultExpandAll: "",
|
|
1243
|
-
"tree-data": W(d)[
|
|
1243
|
+
"tree-data": W(d)[p.id],
|
|
1244
1244
|
showSearch: "",
|
|
1245
1245
|
allowClear: "",
|
|
1246
|
-
value:
|
|
1247
|
-
"onUpdate:value": (g) =>
|
|
1246
|
+
value: p.attributeValueIds_view,
|
|
1247
|
+
"onUpdate:value": (g) => p.attributeValueIds_view = g,
|
|
1248
1248
|
treeNodeFilterProp: "attributeName",
|
|
1249
1249
|
searchValue: r.value,
|
|
1250
1250
|
"onUpdate:searchValue": f[0] || (f[0] = (g) => r.value = g),
|
|
@@ -1257,19 +1257,19 @@ 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 =
|
|
1260
|
+
(S = p.attributeValueIds_view) != null && S.includes(-1) ? (ie(), we("span", Pa, ye(W(xe)("categoryChangeTips", { category: p.categoryName })), 1)) : et("", !0)
|
|
1261
1261
|
];
|
|
1262
1262
|
}),
|
|
1263
1263
|
_: 2
|
|
1264
1264
|
}, 1032, ["label", "name", "rules"])), [
|
|
1265
|
-
[wt, (x = W(d)[
|
|
1265
|
+
[wt, (x = W(d)[p.id]) == null ? void 0 : x.length]
|
|
1266
1266
|
]);
|
|
1267
1267
|
}), 128))
|
|
1268
1268
|
]),
|
|
1269
1269
|
_: 1
|
|
1270
1270
|
}, 8, ["model"])) : et("", !0);
|
|
1271
1271
|
}
|
|
1272
|
-
}), Ha = /* @__PURE__ */ Ft(Da, [["__scopeId", "data-v-
|
|
1272
|
+
}), Ha = /* @__PURE__ */ Ft(Da, [["__scopeId", "data-v-1b90e3f1"]]);
|
|
1273
1273
|
export {
|
|
1274
1274
|
Ha 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, $ 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-D65t3nRR.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-CWuyMc3g.js";
|
|
3
|
+
import { B as vt, R as yn, p as bn, K as P, j as Sn, S as ht } from "./apply-modal-BcN1RhQi.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-D65t3nRR.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
|
|
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-2d1f4aea]{display:flex;align-items:center;flex-direction:column;font-size:14px;white-space:nowrap}.crane-margin10[data-v-2d1f4aea]{margin:10px}.crane-margin-right10[data-v-2d1f4aea]{margin-right:10px}[data-v-5dd58742] .yqg-permission-modal-wrap .yqg-permission-modal-confirm-btns{text-align:center!important}.crane-step-wraper[data-v-f3d62522]{display:flex;align-items:center;width:100%;overflow-x:scroll;line-height:32px;padding-bottom:8px}.crane-step-node[data-v-f3d62522]{display:flex;align-items:center}.crane-step-icon[data-v-f3d62522]{margin:0 8px;height:auto;max-width:none}[data-v-318cb6f3] .yqg-permission-tree-list{margin-top:4px}[data-v-318cb6f3] .yqg-permission-tree-node-selected{background:none!important}[data-v-318cb6f3] .yqg-permission-tree-checkbox{margin:0!important}[data-v-318cb6f3] .yqg-permission-tree-switcher-noop{width:18px!important}[data-v-318cb6f3] .yqg-permission-tree-checkbox+span:hover{background:none!important}[data-v-318cb6f3] .yqg-permission-tree-treenode,[data-v-318cb6f3] .yqg-permission-tree-node-content-wrapper-normal,[data-v-318cb6f3] .yqg-permission-tree-title{width:100%!important}.crane-category-wraper[data-v-1b90e3f1]{margin-top:16px;padding:12px;padding-bottom:1px!important;border-radius:4px;background-color:#f2f3f5}[data-v-1b90e3f1] .crane-category-wraper label{font-size:12px!important}[data-v-1b90e3f1] .yqg-permission-form-item-explain-error{font-size:12px}[data-v-1b90e3f1] .yqg-permission-form-item{margin-bottom:18px}[data-v-1b90e3f1] .yqg-permission-form-item-required{font-size:12px!important}[data-v-1b90e3f1] .yqg-permission-form-item-required:before{display:none!important}.crane-required[data-v-1b90e3f1]{font-size:14px;font-weight:700}.crane-required[data-v-1b90e3f1]: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-1b90e3f1]{color:#86909c;font-size:12px}.crane-category-line[data-v-1b90e3f1]{height:1px;background-color:#c9cdd4;margin:10px 0}.crane-flex-center[data-v-ee71dc45]{display:flex;align-items:center;white-space:nowrap}.permission-item-wraper[data-v-ee71dc45]{padding-right:32px}.crane-checkbox-line[data-v-ee71dc45]{line-height:28px;display:flex;align-items:center}.crane-tag-position[data-v-ee71dc45]{margin-right:4px;font-size:10px;padding:2px 4px;line-height:12px;font-weight:500}.crane-margin-right-0[data-v-ee71dc45]{margin-right:0}.crane-margin-left-4[data-v-ee71dc45]{margin-left:4px}.crane-margin-right-4[data-v-ee71dc45]{margin-right:4px}.crane-margin-left-12[data-v-ee71dc45]{margin-left:12px}.crane-disabled-color[data-v-ee71dc45]{color:#c9cdd4}.crane-weak-color[data-v-ee71dc45]{color:#86909c}.crane-text-overflow[data-v-ee71dc45]{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-CWuyMc3g.js";
|
|
3
3
|
export {
|
|
4
4
|
f as default
|
|
5
5
|
};
|