@yqg/permission 1.3.0-alpha.4 → 1.3.0-alpha.6
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-D9_2FmCa.js → apply-modal-BLik7xOg.js} +1861 -1850
- package/dist/{category-selector-D1G2Jo59.js → category-selector-z1eemTKz.js} +59 -59
- package/dist/{index-BeojUeOt.js → index-3gtBphGl.js} +1 -1
- package/dist/{index-Du2KvF0g.js → index-okxSyYmx.js} +3 -3
- package/dist/index.js +2 -2
- package/dist/permission-item-C6mMM6Km.js +1250 -0
- package/dist/{yqg-permission-CFRz6J1H.js → yqg-permission-BZ4qZKdy.js} +6 -6
- package/dist/yqg-permission.umd.js +54 -54
- package/package.json +1 -1
- package/src/App.vue +9 -6
- package/src/components/apply-modal.vue +21 -11
- package/src/components/category-selector.vue +1 -1
- package/src/components/permission-item.vue +3 -32
- package/src/components/yqg-permission.vue +1 -1
- package/src/hooks/useDefaultTime.ts +20 -0
- package/src/i18n/zh-CH.ts +2 -2
- package/src/utils/index.ts +2 -2
- package/tsconfig.app.json +3 -2
- package/dist/permission-item-C5rPuclI.js +0 -1264
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as Ce, i as Fn, C as Eu, T as hs, p as Se, c as b, a as ue, r as L, 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 b, a as ue, r as L, 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-3gtBphGl.js";
|
|
2
2
|
function Qn(e) {
|
|
3
3
|
"@babel/helpers - typeof";
|
|
4
4
|
return Qn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
@@ -14399,8 +14399,8 @@ const Cn = "/crane", e0 = {
|
|
|
14399
14399
|
categoryTips: "当前您所拥有的数据范围如下:",
|
|
14400
14400
|
empty: "空",
|
|
14401
14401
|
category: "数据权限",
|
|
14402
|
-
categotySelectTips: "
|
|
14403
|
-
categoryChangeTips: "
|
|
14402
|
+
categotySelectTips: "上方选中的权限包含数据权限,请根据实际工作需要申请/更改数据范围。",
|
|
14403
|
+
categoryChangeTips: "提醒:您选择的数据权限范围较大!请确认实际工作场景是否需要全量「{category}」权限,并在申请理由中写明,避免审批不通过!",
|
|
14404
14404
|
availiables: {
|
|
14405
14405
|
SEVEN_DAYS: "7天",
|
|
14406
14406
|
THIRTY_DAYS: "30天",
|
|
@@ -14428,7 +14428,7 @@ const Cn = "/crane", e0 = {
|
|
|
14428
14428
|
"zh-CN": n0,
|
|
14429
14429
|
"en-US": t0
|
|
14430
14430
|
}, Me = (e, t) => {
|
|
14431
|
-
const n = localStorage.getItem("permission_locale") || "
|
|
14431
|
+
const n = localStorage.getItem("permission_locale") || "zh-CN", o = e.split(".");
|
|
14432
14432
|
let r = Es[n] || Es["en-US"];
|
|
14433
14433
|
for (let A = 0; A < o.length; A++)
|
|
14434
14434
|
r = r[o[A]];
|
|
@@ -14597,7 +14597,7 @@ const l0 = { class: "crane-wraper" }, c0 = ["src"], u0 = ["src"], g0 = { class:
|
|
|
14597
14597
|
CUSTOM: "custom"
|
|
14598
14598
|
};
|
|
14599
14599
|
Ge.config({ prefixCls: "yqg-permission-message" });
|
|
14600
|
-
const r = Pu(() => import("./apply-modal-
|
|
14600
|
+
const r = Pu(() => import("./apply-modal-BLik7xOg.js").then((m) => m.k)), A = t, i = e, a = L(!1), l = L(), s = L(!1);
|
|
14601
14601
|
let c = L([]), u = L({
|
|
14602
14602
|
imageUrl: Bo,
|
|
14603
14603
|
status: ""
|
|
@@ -14759,7 +14759,7 @@ const l0 = { class: "crane-wraper" }, c0 = ["src"], u0 = ["src"], g0 = { class:
|
|
|
14759
14759
|
for (const [o, r] of t)
|
|
14760
14760
|
n[o] = r;
|
|
14761
14761
|
return n;
|
|
14762
|
-
}, w0 = /* @__PURE__ */ Q0(m0, [["__scopeId", "data-v-
|
|
14762
|
+
}, w0 = /* @__PURE__ */ Q0(m0, [["__scopeId", "data-v-2d1f4aea"]]), F0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14763
14763
|
__proto__: null,
|
|
14764
14764
|
default: w0
|
|
14765
14765
|
}, Symbol.toStringTag, { value: "Module" }));
|