@ebiz/designer-components 0.1.59 → 0.1.60

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/index.mjs CHANGED
@@ -58965,7 +58965,7 @@ const uht = /* @__PURE__ */ yt(z5e, [["render", H5e], ["__scopeId", "data-v-d22a
58965
58965
  return !0;
58966
58966
  try {
58967
58967
  const o = localStorage.getItem("permissionKeys") || "[]";
58968
- return JSON.parse(o).includes(t.key);
58968
+ return JSON.parse(o).includes(t.permissionKey);
58969
58969
  } catch {
58970
58970
  return !1;
58971
58971
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebiz/designer-components",
3
- "version": "0.1.59",
3
+ "version": "0.1.60",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -9,7 +9,7 @@ const props = defineProps({
9
9
  });
10
10
 
11
11
  const isShow = computed(() => {
12
- if( !props.permissionKey ) {
12
+ if (!props.permissionKey) {
13
13
  return true;
14
14
  }
15
15
  const developMode = localStorage.getItem('ebiz-develop-mode')
@@ -20,7 +20,7 @@ const isShow = computed(() => {
20
20
  try {
21
21
  const permissionKeysStr = localStorage.getItem('permissionKeys') || '[]';
22
22
  const permissionKeys = JSON.parse(permissionKeysStr);
23
- const hasPermission = permissionKeys.includes(props.key);
23
+ const hasPermission = permissionKeys.includes(props.permissionKey);
24
24
  return hasPermission;
25
25
  } catch (error) {
26
26
  return false;
@@ -28,7 +28,7 @@ const isShow = computed(() => {
28
28
  });
29
29
 
30
30
  const checkPermission = () => {
31
-
31
+
32
32
  };
33
33
 
34
34
  watch(() => props.key, checkPermission, { immediate: true });
@@ -38,4 +38,4 @@ watch(() => props.key, checkPermission, { immediate: true });
38
38
  <div v-if="isShow">
39
39
  <slot name="default"></slot>
40
40
  </div>
41
- </template>
41
+ </template>