@kengic/vue 0.25.4-beta.8 → 0.25.4-beta.9
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/kengic-vue.js +5796 -8960
- package/dist/project/assets/flag/en.png +0 -0
- package/dist/project/assets/flag/es_ES.png +0 -0
- package/dist/project/assets/flag/fr_FR.png +0 -0
- package/dist/project/assets/flag/km_KH.png +0 -0
- package/dist/project/assets/flag/ko_KR.png +0 -0
- package/dist/project/assets/flag/vi_VN.png +0 -0
- package/dist/project/assets/flag/zh_CN.png +0 -0
- package/dist/src/config/index.store.d.ts +9 -0
- package/dist/src/config/setup.d.ts +5 -0
- package/dist/src/project/src/locales/index.d.ts +0 -1
- package/dist/src/utils/kg-logger.util.d.ts +1 -1
- package/package.json +1 -1
- package/dist/src/project/src/locales/setupI18n.d.ts +0 -3
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
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
|
/** 权限方法, 用来判断是否具有某个(某些)权限. */
|
@@ -35,7 +35,7 @@ declare class KgLogger {
|
|
35
35
|
* @param collapsed 是否折叠.
|
36
36
|
* @param style 样式.
|
37
37
|
*/
|
38
|
-
static log(level: "error" | "
|
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.
|
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",
|