skyline-vue-admin 0.0.3 → 0.0.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.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@vueuse/core"),s=require("vue"),r=e.createGlobalState(()=>({permissions:s.shallowRef([])}));exports.usePermission=r;
|
|
2
2
|
//# sourceMappingURL=usePermission.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePermission.cjs","sources":["../../src/hooks/usePermission.ts"],"sourcesContent":["import type { CanAccessItem } from '@/provides'\r\nimport {
|
|
1
|
+
{"version":3,"file":"usePermission.cjs","sources":["../../src/hooks/usePermission.ts"],"sourcesContent":["import type { CanAccessItem } from '@/provides'\r\nimport { createGlobalState } from '@vueuse/core'\r\nimport { shallowRef } from 'vue'\r\n\r\nexport const usePermission = createGlobalState(() => {\r\n const permissions = shallowRef<CanAccessItem[]>([])\r\n return {\r\n permissions,\r\n }\r\n})\r\n"],"names":["usePermission","createGlobalState","shallowRef"],"mappings":"iIAIaA,EAAgBC,EAAAA,kBAAkB,KAEtC,CACL,YAFkBC,EAAAA,WAA4B,EAAE,CAEhD,EAEH"}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return e.dataProvider?.getPermissions?.().then((r) => o.value = r), {
|
|
7
|
-
permissions: o
|
|
8
|
-
};
|
|
9
|
-
});
|
|
1
|
+
import { createGlobalState as o } from "@vueuse/core";
|
|
2
|
+
import { shallowRef as s } from "vue";
|
|
3
|
+
const i = o(() => ({
|
|
4
|
+
permissions: s([])
|
|
5
|
+
}));
|
|
10
6
|
export {
|
|
11
|
-
|
|
7
|
+
i as usePermission
|
|
12
8
|
};
|
|
13
9
|
//# sourceMappingURL=usePermission.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePermission.mjs","sources":["../../src/hooks/usePermission.ts"],"sourcesContent":["import type { CanAccessItem } from '@/provides'\r\nimport {
|
|
1
|
+
{"version":3,"file":"usePermission.mjs","sources":["../../src/hooks/usePermission.ts"],"sourcesContent":["import type { CanAccessItem } from '@/provides'\r\nimport { createGlobalState } from '@vueuse/core'\r\nimport { shallowRef } from 'vue'\r\n\r\nexport const usePermission = createGlobalState(() => {\r\n const permissions = shallowRef<CanAccessItem[]>([])\r\n return {\r\n permissions,\r\n }\r\n})\r\n"],"names":["usePermission","createGlobalState","shallowRef"],"mappings":";;AAIO,MAAMA,IAAgBC,EAAkB,OAEtC;AAAA,EACL,aAFkBC,EAA4B,EAAE;AAEhD,EAEH;"}
|