@yqg/permission 1.3.6 → 1.3.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-Cuq8bcON.js → apply-modal-CTYgpCDi.js} +2805 -2796
- package/dist/{category-selector-VaRwpr33.js → category-selector-DyIpOw0V.js} +23 -23
- package/dist/{index-A7VWXi0B.js → index-BSXxLRqm.js} +3 -3
- package/dist/{index-CGFeNdWc.js → index-B_8TwHV1.js} +3 -3
- package/dist/index.js +2 -2
- package/dist/{permission-item-DQ3Te7k1.js → permission-item-EPKvQkXL.js} +4 -4
- package/dist/{yqg-permission-D8iQbOgO.js → yqg-permission-EZ-WtiwC.js} +2 -2
- package/dist/yqg-permission.umd.js +35 -35
- package/package.json +1 -1
- package/src/components/apply-modal.vue +40 -15
|
@@ -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,
|
|
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 Bt, t as lt, B 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, 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-B_8TwHV1.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 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 Ft } from "./yqg-permission-EZ-WtiwC.js";
|
|
3
|
+
import { u as Ot, 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-BSXxLRqm.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-CTYgpCDi.js";
|
|
5
5
|
function na(e) {
|
|
6
6
|
return Array.isArray(e) ? e : e !== void 0 ? [e] : [];
|
|
7
7
|
}
|
|
@@ -484,7 +484,7 @@ const ya = (e) => {
|
|
|
484
484
|
});
|
|
485
485
|
};
|
|
486
486
|
function ft() {
|
|
487
|
-
return b(b({}, Ie(
|
|
487
|
+
return b(b({}, Ie($t(), ["mode"])), {
|
|
488
488
|
prefixCls: String,
|
|
489
489
|
id: String,
|
|
490
490
|
value: {
|
|
@@ -742,8 +742,8 @@ const xa = Ve({
|
|
|
742
742
|
};
|
|
743
743
|
let N = P;
|
|
744
744
|
if (e.treeCheckStrictly) {
|
|
745
|
-
const
|
|
746
|
-
N = [...N,
|
|
745
|
+
const $ = z.value.filter((te) => !P.includes(te.value));
|
|
746
|
+
N = [...N, ...$];
|
|
747
747
|
}
|
|
748
748
|
const R = v(N), Z = {
|
|
749
749
|
// [Legacy] Always return as array contains label & value
|
|
@@ -752,8 +752,8 @@ 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 j = d.value ? R : R.map(($) => $.value);
|
|
756
|
+
e.onChange(c.value ? j : j[0], d.value ? null : R.map(($) => $.label), Z);
|
|
757
757
|
}
|
|
758
758
|
}, G = (i, h) => {
|
|
759
759
|
let {
|
|
@@ -761,19 +761,19 @@ const xa = Ve({
|
|
|
761
761
|
source: k
|
|
762
762
|
} = h;
|
|
763
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,
|
|
764
|
+
const N = ae(S.value), R = ae(g.value), Z = N[i], ee = Z == null ? void 0 : Z.node, j = (P = ee == null ? void 0 : ee[u.value.value]) !== null && P !== void 0 ? P : i;
|
|
765
765
|
if (!c.value)
|
|
766
|
-
ne([
|
|
766
|
+
ne([j], {
|
|
767
767
|
selected: !0,
|
|
768
|
-
triggerValue:
|
|
768
|
+
triggerValue: j
|
|
769
769
|
}, "option");
|
|
770
770
|
else {
|
|
771
|
-
let
|
|
771
|
+
let $ = m ? [...Y.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
|
-
} = F(
|
|
776
|
+
} = F($), Qe = Se.map((Re) => R.get(Re).key);
|
|
777
777
|
let He;
|
|
778
778
|
m ? {
|
|
779
779
|
checkedKeys: He
|
|
@@ -782,14 +782,14 @@ const xa = Ve({
|
|
|
782
782
|
} = Xe(Qe, {
|
|
783
783
|
checked: !1,
|
|
784
784
|
halfCheckedKeys: re.value
|
|
785
|
-
}, N, B.value, le.value),
|
|
785
|
+
}, N, B.value, le.value), $ = [...te, ...He.map((Re) => N[Re].node[u.value.value])];
|
|
786
786
|
}
|
|
787
|
-
ne(
|
|
787
|
+
ne($, {
|
|
788
788
|
selected: m,
|
|
789
|
-
triggerValue:
|
|
789
|
+
triggerValue: j
|
|
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, j, qe(ee)) : (I = e.onDeselect) === null || I === void 0 || I.call(e, j, qe(ee));
|
|
793
793
|
}, pe = (i) => {
|
|
794
794
|
if (e.onDropdownVisibleChange) {
|
|
795
795
|
const h = {};
|
|
@@ -930,7 +930,7 @@ const xa = Ve({
|
|
|
930
930
|
"switcherIcon",
|
|
931
931
|
"treeMotion"
|
|
932
932
|
]);
|
|
933
|
-
return U(
|
|
933
|
+
return U(jt, X(X(X({
|
|
934
934
|
ref: Q
|
|
935
935
|
}, l), h), {}, {
|
|
936
936
|
id: n,
|
|
@@ -1009,12 +1009,12 @@ const rt = (e, s, l) => l !== void 0 ? l : `${e}-${s}`;
|
|
|
1009
1009
|
function ka() {
|
|
1010
1010
|
return b(b({}, Ie(ft(), ["showTreeIcon", "treeMotion", "inputIcon", "getInputElement", "treeLine", "customSlots"])), {
|
|
1011
1011
|
suffixIcon: ve.any,
|
|
1012
|
-
size:
|
|
1012
|
+
size: $e(),
|
|
1013
1013
|
bordered: Pt(),
|
|
1014
1014
|
treeLine: Dt([Boolean, Object]),
|
|
1015
1015
|
replaceFields: At(),
|
|
1016
|
-
placement:
|
|
1017
|
-
status:
|
|
1016
|
+
placement: $e(),
|
|
1017
|
+
status: $e(),
|
|
1018
1018
|
popupClassName: String,
|
|
1019
1019
|
/** @deprecated Please use `popupClassName` instead */
|
|
1020
1020
|
dropdownClassName: String,
|
|
@@ -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)), je(e.multiple !== !1 || !e.treeCheckable, "TreeSelect", "`multiple` will always be `true` when `treeCheckable` is true"), je(e.replaceFields === void 0, "TreeSelect", "`replaceFields` is deprecated, please use fieldNames instead"), je(!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,
|
|
@@ -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,
|
|
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-EZ-WtiwC.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-B_8TwHV1.js";
|
|
3
|
+
import { B as vt, R as yn, p as bn, K as P, j as Sn, S as ht } from "./apply-modal-CTYgpCDi.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-EZ-WtiwC.js").then((e) => e.b8)), Nf = (e) => {
|
|
4948
4948
|
customElements.define(
|
|
4949
4949
|
e,
|
|
4950
4950
|
/* @__PURE__ */ bf(If, {
|
|
@@ -4979,7 +4979,7 @@ class Ff {
|
|
|
4979
4979
|
const _r = new Ff();
|
|
4980
4980
|
document.readyState === "complete" || document.readyState === "interactive" ? _r.init() : document.addEventListener("DOMContentLoaded", () => _r.init());
|
|
4981
4981
|
export {
|
|
4982
|
-
|
|
4982
|
+
fn as $,
|
|
4983
4983
|
Qf as A,
|
|
4984
4984
|
zo as B,
|
|
4985
4985
|
_e as C,
|
|
@@ -5008,7 +5008,7 @@ export {
|
|
|
5008
5008
|
kf as Z,
|
|
5009
5009
|
Gf as _,
|
|
5010
5010
|
Xt as a,
|
|
5011
|
-
|
|
5011
|
+
Hf as a0,
|
|
5012
5012
|
_r as a1,
|
|
5013
5013
|
qf as b,
|
|
5014
5014
|
Gl as c,
|
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-a76c8fea]{display:flex;align-items:center;flex-direction:column;font-size:14px;white-space:nowrap}.crane-margin10[data-v-a76c8fea]{margin:10px}.crane-margin-right10[data-v-a76c8fea]{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-
|
|
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-a76c8fea]{display:flex;align-items:center;flex-direction:column;font-size:14px;white-space:nowrap}.crane-margin10[data-v-a76c8fea]{margin:10px}.crane-margin-right10[data-v-a76c8fea]{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-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-B_8TwHV1.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,
|
|
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-EZ-WtiwC.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-B_8TwHV1.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-CTYgpCDi.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-BSXxLRqm.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 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 vu, e as v, 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 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 vu, e as v, 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-B_8TwHV1.js";
|
|
2
2
|
function Qn(e) {
|
|
3
3
|
"@babel/helpers - typeof";
|
|
4
4
|
return Qn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
@@ -14604,7 +14604,7 @@ const u0 = ["src"], g0 = ["src"], f0 = { class: "crane-margin10" }, d0 = ["src"]
|
|
|
14604
14604
|
CUSTOM: "custom"
|
|
14605
14605
|
};
|
|
14606
14606
|
Ge.config({ prefixCls: "yqg-permission-message" });
|
|
14607
|
-
const r = Du(() => import("./apply-modal-
|
|
14607
|
+
const r = Du(() => import("./apply-modal-CTYgpCDi.js").then((Q) => Q.k)), A = t, i = e, a = F(!1), s = F(), l = F(!1), u = F([]), c = F(!1);
|
|
14608
14608
|
let g = F([]), f = F({
|
|
14609
14609
|
imageUrl: Bo,
|
|
14610
14610
|
status: ""
|