@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.
@@ -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: (StringConstructor | NumberConstructor)[];
13
- order: (StringConstructor | NumberConstructor)[];
14
- offset: (StringConstructor | NumberConstructor)[];
15
- push: (StringConstructor | NumberConstructor)[];
16
- pull: (StringConstructor | NumberConstructor)[];
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: (StringConstructor | NumberConstructor)[];
46
+ flex: (NumberConstructor | StringConstructor)[];
47
47
  }>> & HTMLAttributes>;
48
48
  };
49
49
  wrapperCol: {
50
50
  type: PropType<Partial<ExtractPropTypes<{
51
- span: (StringConstructor | NumberConstructor)[];
52
- order: (StringConstructor | NumberConstructor)[];
53
- offset: (StringConstructor | NumberConstructor)[];
54
- push: (StringConstructor | NumberConstructor)[];
55
- pull: (StringConstructor | NumberConstructor)[];
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: (StringConstructor | NumberConstructor)[];
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: (StringConstructor | NumberConstructor)[];
169
+ width: (NumberConstructor | StringConstructor)[];
170
170
  footer: PropType<any>;
171
171
  okText: PropType<any>;
172
172
  okType: PropType<LegacyButtonType>;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * DOM 工具.
3
3
  */
4
- export declare class DomUtil {
4
+ export declare class KgDomUtil {
5
5
  /**
6
6
  * 判断元素是否不能响应点击事件.
7
7
  * 如果不想让某个元素响应点击事件, 则可以给它的父元素加上 kg-not-clickable 样式类.
@@ -1,5 +1,5 @@
1
- export * from './app.util';
2
1
  export * from './dom.util';
3
2
  export * from './kg.util';
4
3
  export * from './logger.util';
5
4
  export * from './route.util';
5
+ export * from './var.util';
@@ -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
- * 解析请求参数: 解析 DayJS 类型的参数值.
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.5.38",
3
+ "version": "0.6.0",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "rimraf dist && vue-tsc && vite build --mode development",
@@ -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;