@peng_kai/kit 0.2.0-beta.11 → 0.2.0-beta.12

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.
@@ -2,7 +2,7 @@
2
2
  import { computed, ref, watch } from 'vue';
3
3
  import { Menu as AMenu } from 'ant-design-vue';
4
4
  import type { ItemType } from 'ant-design-vue';
5
- import { adminPlugin } from '../../adminPlugin';
5
+ import { injectTTAdmin } from '../../adminPlugin';
6
6
  import type { TMenu } from '../../stores/createUseMenuStore';
7
7
 
8
8
  function formatMenu(menu: TMenu): ItemType {
@@ -21,7 +21,7 @@ function formatMenu(menu: TMenu): ItemType {
21
21
  </script>
22
22
 
23
23
  <script setup lang="ts">
24
- const { router, useMenuStore } = adminPlugin.deps;
24
+ const { router, useMenuStore } = injectTTAdmin()!.deps;
25
25
  const menuStore = useMenuStore();
26
26
  const items = computed(() => menuStore.menus.map(formatMenu));
27
27
  const openKeys = ref<string[]>([]);
@@ -1,8 +1,8 @@
1
1
  <script setup lang="ts">
2
2
  import { TabPane as ATabPane, Tabs as ATabs } from 'ant-design-vue';
3
- import { adminPlugin } from '../../adminPlugin';
3
+ import { injectTTAdmin } from '../../adminPlugin';
4
4
 
5
- const pageTabStore = adminPlugin.deps.usePageTabStore();
5
+ const pageTabStore = injectTTAdmin()!.deps.usePageTabStore();
6
6
  </script>
7
7
 
8
8
  <template>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@peng_kai/kit",
3
3
  "type": "module",
4
- "version": "0.2.0-beta.11",
4
+ "version": "0.2.0-beta.12",
5
5
  "description": "",
6
6
  "author": "",
7
7
  "license": "ISC",