@yqg/permission 1.3.1-alpha.1 → 1.3.1-alpha.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-D6PPjuwj.js → apply-modal-B1eNJqJL.js} +10 -10
- package/dist/{category-selector-CBXngn-1.js → category-selector-BZ9Ey78Q.js} +4 -4
- package/dist/{index-Dg2700ps.js → index-BRpbbBN8.js} +1 -1
- package/dist/{index-DtfXYXKF.js → index-DytyCa5K.js} +3 -3
- package/dist/index.js +2 -2
- package/dist/{permission-item-CWqYi5qX.js → permission-item-j4WKkIAB.js} +178 -178
- package/dist/{yqg-permission-CU6eVyg6.js → yqg-permission-DhTL2aNj.js} +11 -11
- package/dist/yqg-permission.umd.js +34 -34
- package/package.json +1 -1
- package/src/App.vue +0 -1
- package/src/components/apply-modal.vue +6 -6
- package/src/components/permission-item.vue +1 -3
- package/src/components/yqg-permission.vue +5 -5
- package/src/hooks/useFormat.ts +9 -9
- package/src/i18n/zh-CH.ts +2 -2
|
@@ -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, 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-
|
|
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-BRpbbBN8.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-DhTL2aNj.js";
|
|
3
3
|
const ii = ie({
|
|
4
4
|
compatConfig: {
|
|
5
5
|
MODE: 3
|
|
@@ -12657,7 +12657,7 @@ const Gg = { key: 0 }, Ug = { key: 0 }, Xg = {
|
|
|
12657
12657
|
type: Array,
|
|
12658
12658
|
default: () => []
|
|
12659
12659
|
},
|
|
12660
|
-
|
|
12660
|
+
isAllChecked: {
|
|
12661
12661
|
type: Boolean,
|
|
12662
12662
|
default: !1
|
|
12663
12663
|
}
|
|
@@ -12671,9 +12671,9 @@ const Gg = { key: 0 }, Ug = { key: 0 }, Xg = {
|
|
|
12671
12671
|
emits: /* @__PURE__ */ So(["onSubmit", "onSuccess"], ["update:modelValue"]),
|
|
12672
12672
|
setup(e, { emit: t }) {
|
|
12673
12673
|
const n = $o(
|
|
12674
|
-
() => import("./category-selector-
|
|
12674
|
+
() => import("./category-selector-BZ9Ey78Q.js")
|
|
12675
12675
|
), r = $o(
|
|
12676
|
-
() => import("./permission-item-
|
|
12676
|
+
() => import("./permission-item-j4WKkIAB.js")
|
|
12677
12677
|
), 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();
|
|
12678
12678
|
let g = ae([]);
|
|
12679
12679
|
const S = ae([]), m = ae([]), p = ae([]), v = at({
|
|
@@ -12691,7 +12691,7 @@ const Gg = { key: 0 }, Ug = { key: 0 }, Xg = {
|
|
|
12691
12691
|
})();
|
|
12692
12692
|
const h = async () => {
|
|
12693
12693
|
var _, F, A;
|
|
12694
|
-
if (o.
|
|
12694
|
+
if (o.isAllChecked || !s.value.length) {
|
|
12695
12695
|
i.value = !1;
|
|
12696
12696
|
return;
|
|
12697
12697
|
}
|
|
@@ -12773,7 +12773,7 @@ const Gg = { key: 0 }, Ug = { key: 0 }, Xg = {
|
|
|
12773
12773
|
]),
|
|
12774
12774
|
_: 1
|
|
12775
12775
|
}, 512), [
|
|
12776
|
-
[Rt, !e.
|
|
12776
|
+
[Rt, !e.isAllChecked && s.value.length]
|
|
12777
12777
|
]),
|
|
12778
12778
|
w(ce(Kt), {
|
|
12779
12779
|
type: "primary",
|
|
@@ -12789,7 +12789,7 @@ const Gg = { key: 0 }, Ug = { key: 0 }, Xg = {
|
|
|
12789
12789
|
title: Be(() => [
|
|
12790
12790
|
Vt("span", null, Ge(ce($e)("permissionApply")), 1),
|
|
12791
12791
|
_t(Vt("span", { class: "crane-permission-title-tips" }, Ge(ce($e)("isAllOwnTips")), 513), [
|
|
12792
|
-
[Rt, e.
|
|
12792
|
+
[Rt, e.isAllChecked]
|
|
12793
12793
|
])
|
|
12794
12794
|
]),
|
|
12795
12795
|
default: Be(() => [
|
|
@@ -12865,7 +12865,7 @@ const Gg = { key: 0 }, Ug = { key: 0 }, Xg = {
|
|
|
12865
12865
|
valueModifiers: { trim: !0 },
|
|
12866
12866
|
placeholder: ce($e)("applyReasonPlaceholder"),
|
|
12867
12867
|
"auto-size": { minRows: 4, maxRows: 4 },
|
|
12868
|
-
disabled: e.
|
|
12868
|
+
disabled: e.isAllChecked || !s.value.length
|
|
12869
12869
|
}, null, 8, ["value", "placeholder", "disabled"]),
|
|
12870
12870
|
Vt("span", Xg, Ge(ce($e)("applyReasonTips")), 1)
|
|
12871
12871
|
]),
|
|
@@ -12890,7 +12890,7 @@ const Gg = { key: 0 }, Ug = { key: 0 }, Xg = {
|
|
|
12890
12890
|
_: 1
|
|
12891
12891
|
}, 8, ["open"]));
|
|
12892
12892
|
}
|
|
12893
|
-
}), Zg = /* @__PURE__ */ ai(Qg, [["__scopeId", "data-v-
|
|
12893
|
+
}), Zg = /* @__PURE__ */ ai(Qg, [["__scopeId", "data-v-96ad3b31"]]), th = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12894
12894
|
__proto__: null,
|
|
12895
12895
|
default: Zg
|
|
12896
12896
|
}, 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, 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, aS 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 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-BRpbbBN8.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-DhTL2aNj.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-DytyCa5K.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-B1eNJqJL.js";
|
|
5
5
|
function na(e) {
|
|
6
6
|
return Array.isArray(e) ? e : e !== void 0 ? [e] : [];
|
|
7
7
|
}
|
|
@@ -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-DhTL2aNj.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-DhTL2aNj.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-BRpbbBN8.js";
|
|
3
|
+
import { B as vt, R as yn, p as bn, K as P, j as Sn, S as ht } from "./apply-modal-B1eNJqJL.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('.crane-wraper[data-v-3753c3d6]{display:flex;align-items:center;flex-direction:column;font-size:14px;white-space:nowrap}.crane-margin10[data-v-3753c3d6]{margin:10px}.crane-margin-right10[data-v-3753c3d6]{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-96ad3b31]{color:#ff4d4f;font-size:14px;margin-left:8px;font-weight:400}[data-v-96ad3b31] .yqg-permission-tree-list{margin-top:4px}[data-v-96ad3b31] .yqg-permission-tree-node-selected{background:none!important}[data-v-96ad3b31] .yqg-permission-tree-checkbox{margin:0!important}[data-v-96ad3b31] .yqg-permission-tree-switcher-noop{width:18px!important}[data-v-96ad3b31] .yqg-permission-tree-checkbox+span:hover{background:none!important}[data-v-96ad3b31] .yqg-permission-tree-treenode,[data-v-96ad3b31] .yqg-permission-tree-node-content-wrapper-normal,[data-v-96ad3b31] .yqg-permission-tree-title{width:100%!important}.crane-category-wraper[data-v-990a59cb]{margin-top:16px;padding:12px;padding-bottom:1px!important;border-radius:4px;background-color:#f2f3f5}[data-v-990a59cb] .crane-category-wraper label{font-size:12px!important}[data-v-990a59cb] .yqg-permission-form-item-explain-error{font-size:12px}[data-v-990a59cb] .yqg-permission-form-item{margin-bottom:18px}[data-v-990a59cb] .yqg-permission-form-item-required{font-size:12px!important}[data-v-990a59cb] .yqg-permission-form-item-required:before{display:none!important}.crane-required[data-v-990a59cb]{font-size:14px;font-weight:700}.crane-required[data-v-990a59cb]: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-990a59cb]{color:#86909c;font-size:12px}.crane-category-line[data-v-990a59cb]{height:1px;background-color:#c9cdd4;margin:10px 0}.crane-flex-center[data-v-fbd29c4b]{display:flex;align-items:center;white-space:nowrap}.permission-item-wraper[data-v-fbd29c4b]{padding-right:32px}.crane-checkbox-line[data-v-fbd29c4b]{line-height:28px;display:flex;align-items:center}.crane-tag-position[data-v-fbd29c4b]{margin-right:4px;font-size:10px;padding:2px 4px;line-height:12px;font-weight:500}.crane-margin-right-0[data-v-fbd29c4b]{margin-right:0}.crane-margin-left-4[data-v-fbd29c4b]{margin-left:4px}.crane-margin-right-4[data-v-fbd29c4b]{margin-right:4px}.crane-margin-left-12[data-v-fbd29c4b]{margin-left:12px}.crane-disabled-color[data-v-fbd29c4b]{color:#c9cdd4}.crane-weak-color[data-v-fbd29c4b]{color:#86909c}.crane-text-overflow[data-v-fbd29c4b]{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-BRpbbBN8.js";
|
|
3
3
|
export {
|
|
4
4
|
f as default
|
|
5
5
|
};
|