@yqg/permission 1.3.0-alpha.1 → 1.3.0-alpha.10
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-CpmDDWWV.js → apply-modal-Ct9rKeUf.js} +3180 -3163
- package/dist/{category-selector-BQ0-kg3o.js → category-selector-BnUMBDty.js} +156 -156
- package/dist/{index-D_0ZQip-.js → index-CAVNFmBo.js} +3 -3
- package/dist/{index-wLkVeDMW.js → index-XvlOgi6s.js} +10 -12
- package/dist/index.js +2 -2
- package/dist/permission-item-2JurQrn-.js +1250 -0
- package/dist/{yqg-permission-BjVCs5lN.js → yqg-permission-BrOMv4sA.js} +43 -47
- package/dist/yqg-permission.umd.js +58 -58
- package/package.json +1 -1
- package/src/App.vue +11 -22
- package/src/components/apply-modal.vue +34 -14
- package/src/components/category-selector.vue +2 -2
- package/src/components/permission-item.vue +6 -40
- package/src/components/success-modal.vue +3 -3
- package/src/components/yqg-permission.vue +9 -14
- package/src/hooks/useAttributesCache.ts +4 -4
- package/src/hooks/useDefaultTime.ts +20 -0
- package/src/hooks/useFormat.ts +2 -2
- package/src/i18n/zh-CH.ts +2 -2
- package/src/utils/index.ts +2 -2
- package/src/yqg-permission/index.ts +0 -1
- package/tsconfig.app.json +3 -2
- package/vite.config.ts.timestamp-1742445090907-a3605e27049cc.mjs +292 -0
- package/dist/permission-item-Df_aagL1.js +0 -1266
|
@@ -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-BrOMv4sA.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-XvlOgi6s.js";
|
|
3
|
+
import { B as vt, R as yn, p as bn, K as P, j as Sn, S as ht } from "./apply-modal-Ct9rKeUf.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-BrOMv4sA.js").then((e) => e.b8)), Nf = (e) => {
|
|
4948
4948
|
customElements.define(
|
|
4949
4949
|
e,
|
|
4950
4950
|
/* @__PURE__ */ bf(If, {
|
|
@@ -4964,18 +4964,16 @@ class Ff {
|
|
|
4964
4964
|
console.error("yqg-permission is not supported in this environment");
|
|
4965
4965
|
return;
|
|
4966
4966
|
}
|
|
4967
|
-
if (this.hasInit) {
|
|
4968
|
-
|
|
4969
|
-
|
|
4967
|
+
if (!this.hasInit) {
|
|
4968
|
+
if (this.hasInit = !0, t != null && t.tagName)
|
|
4969
|
+
if (/^yqg-permission(-\S+)?/.test(t.tagName))
|
|
4970
|
+
this.tagName = t.tagName;
|
|
4971
|
+
else {
|
|
4972
|
+
console.error(`${t.tagName} is invalid tagName`);
|
|
4973
|
+
return;
|
|
4974
|
+
}
|
|
4975
|
+
window.customElements.get(this.tagName) || Nf(this.tagName);
|
|
4970
4976
|
}
|
|
4971
|
-
if (this.hasInit = !0, t != null && t.tagName)
|
|
4972
|
-
if (/^yqg-permission(-\S+)?/.test(t.tagName))
|
|
4973
|
-
this.tagName = t.tagName;
|
|
4974
|
-
else {
|
|
4975
|
-
console.error(`${t.tagName} is invalid tagName`);
|
|
4976
|
-
return;
|
|
4977
|
-
}
|
|
4978
|
-
window.customElements.get(this.tagName) || Nf(this.tagName);
|
|
4979
4977
|
}
|
|
4980
4978
|
}
|
|
4981
4979
|
const _r = new Ff();
|
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-1b3b9804]{display:flex;align-items:center;flex-direction:column;font-size:14px;white-space:nowrap}.crane-margin10[data-v-1b3b9804]{margin:10px}.crane-margin-right10[data-v-1b3b9804]{margin-right:10px}.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-55315dbc] .yqg-permission-tree-list{margin-top:4px}[data-v-55315dbc] .yqg-permission-tree-node-selected{background:none!important}[data-v-55315dbc] .yqg-permission-tree-checkbox{margin:0!important}[data-v-55315dbc] .yqg-permission-tree-switcher-noop{width:18px!important}[data-v-55315dbc] .yqg-permission-tree-checkbox+span:hover{background:none!important}[data-v-55315dbc] .yqg-permission-tree-treenode,[data-v-55315dbc] .yqg-permission-tree-node-content-wrapper-normal,[data-v-55315dbc] .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-XvlOgi6s.js";
|
|
3
3
|
export {
|
|
4
4
|
f as default
|
|
5
5
|
};
|