@jnrs/vue-core 1.1.5 → 1.1.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.
@@ -33,7 +33,7 @@ export declare const useAuthStore: import('pinia').StoreDefinition<"@jnrs/vue-co
33
33
  workgroup?: string | undefined;
34
34
  avatarFileName?: string | undefined;
35
35
  } | null>;
36
- dict: import('vue').Ref<[] | Dict, [] | Dict>;
36
+ dict: import('vue').Ref<Dict | undefined, Dict | undefined>;
37
37
  role: import('vue').Ref<{
38
38
  [x: string]: unknown;
39
39
  label: string;
@@ -74,7 +74,7 @@ export declare const useAuthStore: import('pinia').StoreDefinition<"@jnrs/vue-co
74
74
  workgroup?: string | undefined;
75
75
  avatarFileName?: string | undefined;
76
76
  } | null>;
77
- dict: import('vue').Ref<[] | Dict, [] | Dict>;
77
+ dict: import('vue').Ref<Dict | undefined, Dict | undefined>;
78
78
  role: import('vue').Ref<{
79
79
  [x: string]: unknown;
80
80
  label: string;
@@ -115,7 +115,7 @@ export declare const useAuthStore: import('pinia').StoreDefinition<"@jnrs/vue-co
115
115
  workgroup?: string | undefined;
116
116
  avatarFileName?: string | undefined;
117
117
  } | null>;
118
- dict: import('vue').Ref<[] | Dict, [] | Dict>;
118
+ dict: import('vue').Ref<Dict | undefined, Dict | undefined>;
119
119
  role: import('vue').Ref<{
120
120
  [x: string]: unknown;
121
121
  label: string;
@@ -1,3 +1,4 @@
1
+ export * from './mock';
1
2
  export * from './base/system';
2
3
  export * from './base/auth';
3
4
  export * from './base/menu';
@@ -1,8 +1,9 @@
1
1
  import "pinia-plugin-persistedstate";
2
- import { u as t } from "../system-KZETuQYC.js";
3
- import { u, a } from "../index-CfK0PRAy.js";
2
+ import { a as s, b as t, u } from "../index-9Ug4oygq.js";
3
+ import { u as S } from "../system-KZETuQYC.js";
4
4
  export {
5
- u as useAuthStore,
6
- a as useMenuStore,
7
- t as useSystemStore
5
+ s as useAuthStore,
6
+ t as useMenuStore,
7
+ u as useMockStore,
8
+ S as useSystemStore
8
9
  };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Mock仓库
3
+ * @returns isMock 是否使用mock数据
4
+ */
5
+ export declare const useMockStore: import('pinia').StoreDefinition<"jnrs-app-mock", Pick<{
6
+ isMock: import('vue').Ref<boolean, boolean>;
7
+ }, "isMock">, Pick<{
8
+ isMock: import('vue').Ref<boolean, boolean>;
9
+ }, never>, Pick<{
10
+ isMock: import('vue').Ref<boolean, boolean>;
11
+ }, never>>;
@@ -0,0 +1,6 @@
1
+ import { BusinessRequest, BusinessResponse } from '@jnrs/core/axios';
2
+ /**
3
+ * axios 请求方法(泛型拓展)
4
+ */
5
+ declare const request: <T = BusinessResponse>(options: BusinessRequest) => Promise<T>;
6
+ export { request };
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jnrs/vue-core",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "巨能前端工程化开发,Vue 专用核心功能包。",
5
5
  "keywords": [
6
6
  "jnrs",
@@ -57,8 +57,8 @@
57
57
  "vue": "^3.5.22",
58
58
  "vue-router": "^4.5.1",
59
59
  "vue-i18n": "^9.14.5",
60
- "@jnrs/shared": "1.1.5",
61
- "@jnrs/core": "1.1.5"
60
+ "@jnrs/shared": "1.1.6",
61
+ "@jnrs/core": "1.1.6"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@vitejs/plugin-vue": "^6.0.1",