@kengic/vue 0.25.4-beta.7 → 0.25.4-beta.9

Sign up to get free protection for your applications and to get access to all the features.
Binary file
@@ -197,11 +197,16 @@ export interface PermissionState {
197
197
  allAuthList: AuthItem[];
198
198
  }
199
199
  export interface IUseKgStoreState {
200
+ /**
201
+ * 语言数据.
202
+ */
203
+ I18N: Record<string, any>;
200
204
  /**
201
205
  * <p>系统描述.</p>
202
206
  * <p>第一层 key 为 codeName, 第二层 key 为 codeValue.</p>
203
207
  */
204
208
  descriptionMap: Map<string, Map<string, Description>>;
209
+ i18n: any;
205
210
  /**
206
211
  * <p>某个系统描述是否正在查询.</p>
207
212
  * <p>其中的 key 表示 codeName.</p>
@@ -235,6 +240,8 @@ export interface IUseKgStoreGetters {
235
240
  getDescriptions(): (param: {
236
241
  codeName: string | null | undefined;
237
242
  }) => Array<Description>;
243
+ getI18N(): Record<string, any>;
244
+ getI18n(): any;
238
245
  /**
239
246
  * 配置参数.
240
247
  */
@@ -283,6 +290,8 @@ export interface IUseKgStoreActions {
283
290
  codeName: string | null | undefined;
284
291
  descriptions: Array<Description>;
285
292
  }): void;
293
+ setI18N(I18N: Record<string, any>): void;
294
+ setI18n(i18n: any): void;
286
295
  setOption(option: IKgOption): void;
287
296
  setP(fn: P): void;
288
297
  setRouter(router: Router): void;
@@ -20,7 +20,12 @@ export declare function getPinia(): Pinia | null;
20
20
  */
21
21
  export declare function setupKgStore(pinia: Pinia): void;
22
22
  export declare type IKgOptions = {
23
+ /**
24
+ * 语言数据.
25
+ */
26
+ I18N: Record<string, any>;
23
27
  app: App;
28
+ i18n: any;
24
29
  /** 配置参数. */
25
30
  option?: IKgOption;
26
31
  /** 权限方法, 用来判断是否具有某个(某些)权限. */
@@ -1,3 +1,2 @@
1
1
  export * from './helper';
2
- export * from './setupI18n';
3
2
  export * from './useLocale';
@@ -35,7 +35,7 @@ declare class KgLogger {
35
35
  * @param collapsed 是否折叠.
36
36
  * @param style 样式.
37
37
  */
38
- static log(level: "error" | "warn" | "debug" | "info" | "deprecated" | undefined, message: string, args?: Record<string, any>, collapsed?: boolean, style?: string | null): void;
38
+ static log(level: "error" | "debug" | "info" | "warn" | "deprecated" | undefined, message: string, args?: Record<string, any>, collapsed?: boolean, style?: string | null): void;
39
39
  /**
40
40
  * 打印警告日志.
41
41
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.25.4-beta.7",
3
+ "version": "0.25.4-beta.9",
4
4
  "scripts": {
5
5
  "build": "npm run switch-node-version && rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "npm run switch-node-version && rimraf dist && vue-tsc && vite build --mode development",
@@ -1,3 +0,0 @@
1
- import type { App } from 'vue';
2
- export declare let i18n: any;
3
- export declare function setupI18n(app: App): Promise<void>;