@yqg/permission 1.3.2 → 1.3.4
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-bqIJ2QXS.js → apply-modal-BsokPhqu.js} +1484 -1465
- package/dist/{category-selector-B8MH3Q3G.js → category-selector-Bo1Upd0w.js} +68 -69
- package/dist/{index-u37w35am.js → index-CTndgjy2.js} +1 -1
- package/dist/{index-CzfXAbzR.js → index-Dl_VZBVk.js} +3 -3
- package/dist/index.js +2 -2
- package/dist/{permission-item-BlYq3oFU.js → permission-item-Cc_fF08Z.js} +4 -4
- package/dist/{yqg-permission-owkq3rvu.js → yqg-permission-ItXNxp6g.js} +6 -5
- package/dist/yqg-permission.umd.js +28 -28
- package/package.json +1 -1
- package/src/components/apply-modal.vue +60 -42
- package/src/components/category-selector.vue +1 -1
- package/src/components/yqg-permission.vue +7 -5
- package/src/style/reset.css +3 -0
|
@@ -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
|
|
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 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-CTndgjy2.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, aS as Ft } from "./yqg-permission-ItXNxp6g.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-Dl_VZBVk.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-BsokPhqu.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: B,
|
|
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: _,
|
|
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: B,
|
|
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: _,
|
|
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: P,
|
|
689
689
|
halfChecked: L
|
|
690
690
|
} = m;
|
|
691
691
|
let I;
|
|
692
|
-
const N = g.value.get(
|
|
692
|
+
const N = g.value.get(P);
|
|
693
693
|
return N && (k = k ?? K(N.node), I = N.node.disabled), {
|
|
694
694
|
label: k,
|
|
695
|
-
value:
|
|
695
|
+
value: P,
|
|
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: B,
|
|
710
710
|
levelEntities: le
|
|
711
|
-
} = Yt(S), [q, re] = Ca(T, z, o, S,
|
|
711
|
+
} = Yt(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;
|
|
@@ -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), P = k[0];
|
|
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
|
|
@@ -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 P = i;
|
|
732
|
+
o.value && (P = 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 = P;
|
|
744
744
|
if (e.treeCheckStrictly) {
|
|
745
|
-
const j = z.value.filter((te) => !
|
|
745
|
+
const j = z.value.filter((te) => !P.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 $ = d.value ? R : R.map((j) => j.value);
|
|
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
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 P, L, I;
|
|
764
|
+
const N = ae(S.value), R = ae(g.value), Z = N[i], ee = Z == null ? void 0 : Z.node, $ = (P = ee == null ? void 0 : ee[u.value.value]) !== null && P !== void 0 ? P : i;
|
|
765
765
|
if (!c.value)
|
|
766
|
-
ne([
|
|
766
|
+
ne([$], {
|
|
767
767
|
selected: !0,
|
|
768
|
-
triggerValue:
|
|
768
|
+
triggerValue: $
|
|
769
769
|
}, "option");
|
|
770
770
|
else {
|
|
771
|
-
let j = m ? [...Y.value,
|
|
771
|
+
let j = m ? [...Y.value, $] : q.value.filter((te) => te !== $);
|
|
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, B.value, le.value) : {
|
|
781
781
|
checkedKeys: He
|
|
782
782
|
} = Xe(Qe, {
|
|
783
783
|
checked: !1,
|
|
784
784
|
halfCheckedKeys: re.value
|
|
785
|
-
}, N,
|
|
785
|
+
}, N, B.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: $
|
|
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, $, 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 = {};
|
|
@@ -814,7 +814,7 @@ const xa = Ve({
|
|
|
814
814
|
// Data
|
|
815
815
|
loadData: ue,
|
|
816
816
|
treeLoadedKeys: C,
|
|
817
|
-
onTreeLoad:
|
|
817
|
+
onTreeLoad: _,
|
|
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: _e,
|
|
829
829
|
treeIcon: Ce,
|
|
830
|
-
showTreeIcon:
|
|
830
|
+
showTreeIcon: Pe,
|
|
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
|
+
Bt(lt({
|
|
838
838
|
checkable: r,
|
|
839
839
|
loadData: ue,
|
|
840
840
|
treeLoadedKeys: C,
|
|
841
|
-
onTreeLoad:
|
|
841
|
+
onTreeLoad: _,
|
|
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: Pe,
|
|
851
851
|
switcherIcon: De,
|
|
852
|
-
treeLine:
|
|
852
|
+
treeLine: _e,
|
|
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($t, 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: Pt(),
|
|
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)), $e(e.multiple !== !1 || !e.treeCheckable, "TreeSelect", "`multiple` will always be `true` when `treeCheckable` is true"), $e(e.replaceFields === void 0, "TreeSelect", "`replaceFields` is deprecated, please use fieldNames instead"), $e(!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)), B = y(() => g("tree-select", e.prefixCls)), [le, q] = Wt(c), [re] = Ia(B, Y), se = y(() => at(e.popupClassName || e.dropdownClassName, `${B.value}-dropdown`, {
|
|
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({
|
|
1068
1068
|
focus() {
|
|
1069
|
-
var C,
|
|
1070
|
-
(
|
|
1069
|
+
var C, _;
|
|
1070
|
+
(_ = (C = G.value).focus) === null || _ === void 0 || _.call(C);
|
|
1071
1071
|
},
|
|
1072
1072
|
blur() {
|
|
1073
|
-
var C,
|
|
1074
|
-
(
|
|
1073
|
+
var C, _;
|
|
1074
|
+
(_ = (C = G.value).blur) === null || _ === void 0 || _.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, _ = new Array(C), H = 0; H < C; H++)
|
|
1079
|
+
_[H] = arguments[H];
|
|
1080
|
+
n("update:value", _[0]), n("change", ..._), 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, _, 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: _e,
|
|
1098
1098
|
treeLine: Ce,
|
|
1099
|
-
showArrow:
|
|
1100
|
-
switcherIcon: De = (
|
|
1099
|
+
showArrow: Pe,
|
|
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
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 P;
|
|
1120
|
+
J !== void 0 ? P = J : P = u("Select");
|
|
1121
|
+
const L = Ie(e, ["suffixIcon", "itemIcon", "removeIcon", "clearIcon", "switcherIcon", "bordered", "status", "onUpdate:value", "onUpdate:treeExpandedKeys", "onUpdate:searchValue"]), I = at(!ke && B.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 = _t(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: _e,
|
|
1146
|
+
notFoundContent: P,
|
|
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 || Pe,
|
|
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
|
+
}, _a = { key: 1 }, Pa = {
|
|
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
|
+
Be("div", Ta, ye(W(xe)("category")), 1),
|
|
1227
|
+
Be("div", La, ye(W(xe)("categotySelectTips")), 1),
|
|
1228
|
+
f[1] || (f[1] = Be("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,7 +1242,6 @@ 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,
|
|
1246
1245
|
allowClear: "",
|
|
1247
1246
|
value: p.attributeValueIds_view,
|
|
1248
1247
|
"onUpdate:value": (g) => p.attributeValueIds_view = g,
|
|
@@ -1254,11 +1253,11 @@ const Ta = { class: "crane-required" }, La = { class: "crane-category-tips" }, E
|
|
|
1254
1253
|
"show-checked-strategy": W(l)
|
|
1255
1254
|
}, {
|
|
1256
1255
|
title: Me(({ attributeName: g }) => [
|
|
1257
|
-
r.value.toLowerCase() && g.includes(r.value.toLowerCase()) ? (ie(), we("span", Ea, ye(g), 1)) : (ie(), we("span",
|
|
1256
|
+
r.value.toLowerCase() && g.includes(r.value.toLowerCase()) ? (ie(), we("span", Ea, ye(g), 1)) : (ie(), we("span", _a, ye(g), 1))
|
|
1258
1257
|
]),
|
|
1259
1258
|
_: 2
|
|
1260
|
-
}, 1032, ["tree-data", "
|
|
1261
|
-
(S = p.attributeValueIds_view) != null && S.includes(-1) ? (ie(), we("span",
|
|
1259
|
+
}, 1032, ["tree-data", "value", "onUpdate:value", "searchValue", "show-checked-strategy"]),
|
|
1260
|
+
(S = p.attributeValueIds_view) != null && S.includes(-1) ? (ie(), we("span", Pa, ye(W(xe)("categoryChangeTips", { category: p.categoryName })), 1)) : et("", !0)
|
|
1262
1261
|
];
|
|
1263
1262
|
}),
|
|
1264
1263
|
_: 2
|
|
@@ -1270,7 +1269,7 @@ const Ta = { class: "crane-required" }, La = { class: "crane-category-tips" }, E
|
|
|
1270
1269
|
_: 1
|
|
1271
1270
|
}, 8, ["model"])) : et("", !0);
|
|
1272
1271
|
}
|
|
1273
|
-
}), Ha = /* @__PURE__ */ Ft(Da, [["__scopeId", "data-v-
|
|
1272
|
+
}), Ha = /* @__PURE__ */ Ft(Da, [["__scopeId", "data-v-21167b98"]]);
|
|
1274
1273
|
export {
|
|
1275
1274
|
Ha as default
|
|
1276
1275
|
};
|
|
@@ -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-ItXNxp6g.js").then((e) => e.b8)), Nf = (e) => {
|
|
4948
4948
|
customElements.define(
|
|
4949
4949
|
e,
|
|
4950
4950
|
/* @__PURE__ */ bf(If, {
|
|
@@ -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-ItXNxp6g.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-CTndgjy2.js";
|
|
3
|
+
import { B as vt, R as yn, p as bn, K as P, j as Sn, S as ht } from "./apply-modal-BsokPhqu.js";
|
|
4
4
|
function an(e, n) {
|
|
5
5
|
const {
|
|
6
6
|
key: o
|
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('.yqg-permission-message{z-index:10010}.crane-wraper[data-v-7fa83d92]{display:flex;align-items:center;flex-direction:column;font-size:14px;white-space:nowrap}.crane-margin10[data-v-7fa83d92]{margin:10px}.crane-margin-right10[data-v-7fa83d92]{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-0df23e11]{color:#ff4d4f;font-size:14px;margin-left:8px;font-weight:400}[data-v-0df23e11] .yqg-permission-tree-list{margin-top:4px}[data-v-0df23e11] .yqg-permission-tree-node-selected{background:none!important}[data-v-0df23e11] .yqg-permission-tree-checkbox{margin:0!important}[data-v-0df23e11] .yqg-permission-tree-switcher-noop{width:18px!important}[data-v-0df23e11] .yqg-permission-tree-checkbox+span:hover{background:none!important}[data-v-0df23e11] .yqg-permission-tree-treenode,[data-v-0df23e11] .yqg-permission-tree-node-content-wrapper-normal,[data-v-0df23e11] .yqg-permission-tree-title{width:100%!important}.crane-category-wraper[data-v-21167b98]{margin-top:16px;padding:12px;padding-bottom:1px!important;border-radius:4px;background-color:#f2f3f5}[data-v-21167b98] .crane-category-wraper label{font-size:12px!important}[data-v-21167b98] .yqg-permission-form-item-explain-error{font-size:12px}[data-v-21167b98] .yqg-permission-form-item{margin-bottom:18px}[data-v-21167b98] .yqg-permission-form-item-required{font-size:12px!important}[data-v-21167b98] .yqg-permission-form-item-required:before{display:none!important}.crane-required[data-v-21167b98]{font-size:14px;font-weight:700}.crane-required[data-v-21167b98]: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-21167b98]{color:#86909c;font-size:12px}.crane-category-line[data-v-21167b98]{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-CTndgjy2.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, 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-
|
|
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-ItXNxp6g.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-CTndgjy2.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-BsokPhqu.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-Dl_VZBVk.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 Ce, i as Fn, C as Eu, T as hs, p as Se, c as P, 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 hu, e as v, h as jt, f as jn, j as vu, k as At, l as Oe, m as vs, n as Lt, q as be, v as ko, x as CA, y as Iu, z as No, A as ni, B as mu, D as Is, E as ms, G as Ne, H as Qs, I as Qu, J as wu, K as st, L as oi, M as lt, N as ge, O as yu, P as ln, Q as bu, R as $e, S as Gn, U as ar, V as Pu } from "./index-
|
|
1
|
+
import { F as Ce, i as Fn, C as Eu, T as hs, p as Se, c as P, 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 hu, e as v, h as jt, f as jn, j as vu, k as At, l as Oe, m as vs, n as Lt, q as be, v as ko, x as CA, y as Iu, z as No, A as ni, B as mu, D as Is, E as ms, G as Ne, H as Qs, I as Qu, J as wu, K as st, L as oi, M as lt, N as ge, O as yu, P as ln, Q as bu, R as $e, S as Gn, U as ar, V as Pu } from "./index-CTndgjy2.js";
|
|
2
2
|
function Qn(e) {
|
|
3
3
|
"@babel/helpers - typeof";
|
|
4
4
|
return Qn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
@@ -14608,7 +14608,7 @@ const l0 = { class: "crane-wraper" }, c0 = ["src"], u0 = ["src"], g0 = { class:
|
|
|
14608
14608
|
CUSTOM: "custom"
|
|
14609
14609
|
};
|
|
14610
14610
|
Ge.config({ prefixCls: "yqg-permission-message" });
|
|
14611
|
-
const r = Pu(() => import("./apply-modal-
|
|
14611
|
+
const r = Pu(() => import("./apply-modal-BsokPhqu.js").then((Q) => Q.k)), A = t, i = e, a = F(!1), s = F(), l = F(!1), u = F([]), c = F(!1);
|
|
14612
14612
|
let g = F([]), f = F({
|
|
14613
14613
|
imageUrl: Bo,
|
|
14614
14614
|
status: ""
|
|
@@ -14760,8 +14760,9 @@ const l0 = { class: "crane-wraper" }, c0 = ["src"], u0 = ["src"], g0 = { class:
|
|
|
14760
14760
|
defaultCheckedIds: u.value,
|
|
14761
14761
|
isAllChecked: c.value,
|
|
14762
14762
|
onOnSuccess: y[1] || (y[1] = () => A("onSuccess")),
|
|
14763
|
-
onOnSubmit: B
|
|
14764
|
-
|
|
14763
|
+
onOnSubmit: B,
|
|
14764
|
+
color: e.color
|
|
14765
|
+
}, null, 8, ["modelValue", "permissionList", "spining", "workNumber", "zIndex", "defaultCheckedIds", "isAllChecked", "color"])
|
|
14765
14766
|
]),
|
|
14766
14767
|
_: 3
|
|
14767
14768
|
}, 8, ["theme"]));
|
|
@@ -14771,7 +14772,7 @@ const l0 = { class: "crane-wraper" }, c0 = ["src"], u0 = ["src"], g0 = { class:
|
|
|
14771
14772
|
for (const [o, r] of t)
|
|
14772
14773
|
n[o] = r;
|
|
14773
14774
|
return n;
|
|
14774
|
-
}, w0 = /* @__PURE__ */ Q0(m0, [["__scopeId", "data-v-
|
|
14775
|
+
}, w0 = /* @__PURE__ */ Q0(m0, [["__scopeId", "data-v-7fa83d92"]]), F0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14775
14776
|
__proto__: null,
|
|
14776
14777
|
default: w0
|
|
14777
14778
|
}, Symbol.toStringTag, { value: "Module" }));
|