@kengic/vue 0.0.2-beta.41 → 0.0.2-beta.43
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 +1628 -150
- package/dist/src/consts/i18n/t.d.ts +3 -3
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/utils/logger.util.d.ts +40 -0
- package/package.json +5 -2
|
@@ -7,10 +7,10 @@ declare type T = {
|
|
|
7
7
|
(key: string, named: Record<string, unknown>): string;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
* @param
|
|
10
|
+
* 配置翻译方法.
|
|
11
|
+
* @param i18n vue-i18n 的国际化配置.
|
|
12
12
|
*/
|
|
13
|
-
export declare function
|
|
13
|
+
export declare function setupT(i18n: any): void;
|
|
14
14
|
/**
|
|
15
15
|
* 翻译.
|
|
16
16
|
* @param key
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 日志服务.
|
|
3
|
+
*/
|
|
4
|
+
declare class Logger {
|
|
5
|
+
/**
|
|
6
|
+
* 打印错误日志.
|
|
7
|
+
*
|
|
8
|
+
* @param message 提示消息.
|
|
9
|
+
* @param args 数据对象.
|
|
10
|
+
* @param collapsed 是否折叠.
|
|
11
|
+
*/
|
|
12
|
+
static error(message: string, args?: Record<string, any>, collapsed?: boolean): void;
|
|
13
|
+
/**
|
|
14
|
+
* 打印普通日志.
|
|
15
|
+
*
|
|
16
|
+
* @param message 提示消息.
|
|
17
|
+
* @param args 数据对象.
|
|
18
|
+
* @param collapsed 是否折叠.
|
|
19
|
+
*/
|
|
20
|
+
static info(message: string, args: Record<string, any>, collapsed?: boolean): void;
|
|
21
|
+
/**
|
|
22
|
+
* 打印日志.
|
|
23
|
+
*
|
|
24
|
+
* @param level 日志等级.
|
|
25
|
+
* @param message 提示消息.
|
|
26
|
+
* @param args 数据对象.
|
|
27
|
+
* @param collapsed 是否折叠.
|
|
28
|
+
* @param style 提示消息样式.
|
|
29
|
+
*/
|
|
30
|
+
static log(level: "info" | "warn" | "error" | undefined, message: string, args?: Record<string, any>, collapsed?: boolean, style?: string): void;
|
|
31
|
+
/**
|
|
32
|
+
* 打印警告日志.
|
|
33
|
+
*
|
|
34
|
+
* @param message 提示消息.
|
|
35
|
+
* @param args 数据对象.
|
|
36
|
+
* @param collapsed 是否折叠.
|
|
37
|
+
*/
|
|
38
|
+
static warn(message: string, args: Record<string, any>, collapsed?: boolean): void;
|
|
39
|
+
}
|
|
40
|
+
export { Logger };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kengic/vue",
|
|
3
|
-
"version": "0.0.2-beta.
|
|
3
|
+
"version": "0.0.2-beta.43",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "rimraf dist && vue-tsc && vite build",
|
|
6
6
|
"publish:all:beta": "npm run bump-version:beta && npm run publish:all",
|
|
@@ -21,10 +21,13 @@
|
|
|
21
21
|
"vue": "~3.2.45"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
+
"@ant-design/icons-vue": "~6.1.0",
|
|
24
25
|
"ant-design-vue": "~3.2.15",
|
|
25
|
-
"filesize": "10.0.6"
|
|
26
|
+
"filesize": "10.0.6",
|
|
27
|
+
"lodash-es": "~4.17.21"
|
|
26
28
|
},
|
|
27
29
|
"devDependencies": {
|
|
30
|
+
"@types/lodash-es": "~4.17.7",
|
|
28
31
|
"@types/node": "~18.14.6",
|
|
29
32
|
"@types/semver": "~7.3.13",
|
|
30
33
|
"@vitejs/plugin-vue": "~3.2.0",
|