@kengic/vue 0.5.38 → 0.6.0
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/index.css +1 -1
- package/dist/kengic-vue.js +5217 -5027
- package/dist/src/components/KgAppSelect/KgAppSelect.d.ts +47 -0
- package/dist/src/components/KgAppSelect/index.d.ts +3 -0
- package/dist/src/components/KgAppSelect/index.hooks.d.ts +11 -0
- package/dist/src/components/KgAppSelect/index.store.d.ts +51 -0
- package/dist/src/components/KgForm/KgForm.d.ts +24 -24
- package/dist/src/components/KgForm/index.d.ts +48 -48
- package/dist/src/components/KgForm/index.vm.d.ts +12 -12
- package/dist/src/components/KgModal/KgModal.d.ts +6 -6
- package/dist/src/components/KgModal/index.vm.d.ts +1 -1
- package/dist/src/components/KgResizable/KgResizable.d.ts +4 -4
- package/dist/src/components/index.d.ts +1 -0
- package/dist/src/config/index.store.d.ts +12 -1
- package/dist/src/config/setup.d.ts +2 -2
- package/dist/src/consts/i18n/en.d.ts +6 -0
- package/dist/src/consts/i18n/zh_CN.d.ts +6 -0
- package/dist/src/consts/index.d.ts +6 -4
- package/dist/src/helpers/ant-design-vue.d.ts +13 -13
- package/dist/src/utils/dom.util.d.ts +1 -1
- package/dist/src/utils/index.d.ts +1 -1
- package/dist/src/utils/kg.util.d.ts +3 -3
- package/dist/src/utils/route.util.d.ts +17 -1
- package/package.json +1 -1
- package/dist/src/utils/app.util.d.ts +0 -17
@@ -9,11 +9,11 @@ export declare const formProps: () => {
|
|
9
9
|
layout: PropType<"horizontal" | "inline" | "vertical">;
|
10
10
|
labelCol: {
|
11
11
|
type: PropType<Partial<ExtractPropTypes<{
|
12
|
-
span: (
|
13
|
-
order: (
|
14
|
-
offset: (
|
15
|
-
push: (
|
16
|
-
pull: (
|
12
|
+
span: (NumberConstructor | StringConstructor)[];
|
13
|
+
order: (NumberConstructor | StringConstructor)[];
|
14
|
+
offset: (NumberConstructor | StringConstructor)[];
|
15
|
+
push: (NumberConstructor | StringConstructor)[];
|
16
|
+
pull: (NumberConstructor | StringConstructor)[];
|
17
17
|
xs: {
|
18
18
|
type: PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
|
19
19
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
@@ -43,16 +43,16 @@ export declare const formProps: () => {
|
|
43
43
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
44
44
|
};
|
45
45
|
prefixCls: StringConstructor;
|
46
|
-
flex: (
|
46
|
+
flex: (NumberConstructor | StringConstructor)[];
|
47
47
|
}>> & HTMLAttributes>;
|
48
48
|
};
|
49
49
|
wrapperCol: {
|
50
50
|
type: PropType<Partial<ExtractPropTypes<{
|
51
|
-
span: (
|
52
|
-
order: (
|
53
|
-
offset: (
|
54
|
-
push: (
|
55
|
-
pull: (
|
51
|
+
span: (NumberConstructor | StringConstructor)[];
|
52
|
+
order: (NumberConstructor | StringConstructor)[];
|
53
|
+
offset: (NumberConstructor | StringConstructor)[];
|
54
|
+
push: (NumberConstructor | StringConstructor)[];
|
55
|
+
pull: (NumberConstructor | StringConstructor)[];
|
56
56
|
xs: {
|
57
57
|
type: PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
|
58
58
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
@@ -82,7 +82,7 @@ export declare const formProps: () => {
|
|
82
82
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
83
83
|
};
|
84
84
|
prefixCls: StringConstructor;
|
85
|
-
flex: (
|
85
|
+
flex: (NumberConstructor | StringConstructor)[];
|
86
86
|
}>> & HTMLAttributes>;
|
87
87
|
};
|
88
88
|
colon: {
|
@@ -166,7 +166,7 @@ export declare const modalProps: () => {
|
|
166
166
|
type: BooleanConstructor;
|
167
167
|
default: undefined;
|
168
168
|
};
|
169
|
-
width: (
|
169
|
+
width: (NumberConstructor | StringConstructor)[];
|
170
170
|
footer: PropType<any>;
|
171
171
|
okText: PropType<any>;
|
172
172
|
okType: PropType<LegacyButtonType>;
|
@@ -24,7 +24,7 @@ export declare class KgUtil {
|
|
24
24
|
*/
|
25
25
|
static downloadFile(data: string | BlobPart, fileName: string, contentType?: string): void;
|
26
26
|
/**
|
27
|
-
*
|
27
|
+
* 处理请求参数.
|
28
28
|
* 1. 填充通用参数的值
|
29
29
|
* a. 仓库: '{WAREHOUSE}'
|
30
30
|
* @param params 请求参数.
|
@@ -33,12 +33,12 @@ export declare class KgUtil {
|
|
33
33
|
*/
|
34
34
|
static parseParams(params?: Record<string, any> | null, formID?: string, $dayjs?: typeof dayjs): any;
|
35
35
|
/**
|
36
|
-
*
|
36
|
+
* 处理请求参数: 解析字符串类型的参数值.
|
37
37
|
* @param value 参数的原始值.
|
38
38
|
*/
|
39
39
|
private static parseParamFromString;
|
40
40
|
/**
|
41
|
-
*
|
41
|
+
* 处理请求参数: 解析 DayJS 类型的参数值.
|
42
42
|
* @param key 属性名.
|
43
43
|
* @param value 参数的原始值.
|
44
44
|
* @param formID 界面标识.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Menu } from '../consts';
|
1
|
+
import { KG_APP, Menu } from '../consts';
|
2
2
|
export declare class KgRouteUtil {
|
3
3
|
/**
|
4
4
|
* 给所有模块都添加在线表单的路由.
|
@@ -18,4 +18,20 @@ export declare class KgRouteUtil {
|
|
18
18
|
* @param titleKey 标题的属性名, 即要将哪个属性作为菜单的标题.
|
19
19
|
*/
|
20
20
|
static translateMenus(menus?: Array<Menu> | null, titleKey?: string): Array<Menu>;
|
21
|
+
/**
|
22
|
+
* 判断某个路径是否属于某个模块.
|
23
|
+
* @param path 路径.
|
24
|
+
* @param app 模块.
|
25
|
+
*/
|
26
|
+
static isPathInApp(path: string | undefined | null, app: KG_APP | null): boolean;
|
27
|
+
/**
|
28
|
+
* 根据地址获取模块.
|
29
|
+
* @param path 地址.
|
30
|
+
*/
|
31
|
+
static getAppByPath(path: string): KG_APP;
|
32
|
+
/**
|
33
|
+
* 根据模块获取该模块的首页地址.
|
34
|
+
* @param app 模块.
|
35
|
+
*/
|
36
|
+
static getAppIndexPath(app: KG_APP): string;
|
21
37
|
}
|
package/package.json
CHANGED
@@ -1,17 +0,0 @@
|
|
1
|
-
import { KG_APP } from '../consts';
|
2
|
-
/**
|
3
|
-
* 判断某个路径是否属于某个模块.
|
4
|
-
* @param path 路径.
|
5
|
-
* @param app 模块.
|
6
|
-
*/
|
7
|
-
export declare function isPathInApp(path: string | undefined | null, app: KG_APP): boolean;
|
8
|
-
/**
|
9
|
-
* 根据地址获取模块.
|
10
|
-
* @param path 地址.
|
11
|
-
*/
|
12
|
-
export declare function getAppByPath(path: string): KG_APP;
|
13
|
-
/**
|
14
|
-
* 根据模块获取首页地址.
|
15
|
-
* @param app 模块.
|
16
|
-
*/
|
17
|
-
export declare function getAppIndexPath(app: KG_APP): string;
|