@kengic/vue 0.28.2-beta.16 → 0.28.2-beta.17

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.
@@ -18,20 +18,28 @@ export interface IUseKg {
18
18
  codeName: string | null | undefined;
19
19
  codeValue: string | null | undefined;
20
20
  }): Description | null;
21
- /** 当前语言. */
22
- locale: ComputedRef<LocaleType>;
23
21
  /**
24
- * 组件库的配置参数.
22
+ * 当前语言.
25
23
  */
24
+ locale: ComputedRef<LocaleType>;
25
+ /** @deprecated 已废弃, 请使用 {@link IUseKg.option$$} */
26
26
  option: ComputedRef<IKgOption>;
27
- /** 检查权限. */
27
+ /**
28
+ * 配置参数.
29
+ */
30
+ option$$: ComputedRef<IKgOption>;
31
+ /**
32
+ * 检查权限方法.
33
+ */
28
34
  p: P;
29
35
  /**
30
36
  * 路由对象.
31
37
  */
32
38
  router: ComputedRef<Router | null>;
33
39
  store: IKgStore;
34
- /** 翻译. */
40
+ /**
41
+ * 翻译方法.
42
+ */
35
43
  t: T;
36
44
  }
37
45
  export declare function useKg(): IUseKg;
@@ -48,14 +48,39 @@ export declare type IKgOption = {
48
48
  on?: boolean;
49
49
  };
50
50
  };
51
+ /** 工作站选择. */
52
+ KgStation?: {
53
+ /**
54
+ * 是否启用功能.
55
+ * @default true
56
+ */
57
+ isOn?: boolean;
58
+ };
51
59
  KgTable?: {
52
- /** 列的过滤. */
53
- filter?: {
60
+ /**
61
+ * 表头.
62
+ */
63
+ HeaderCell?: {
54
64
  /**
55
- * 是否启用功能.
56
- * @default false
65
+ * 右键菜单.
57
66
  */
58
- on?: boolean;
67
+ contextMenu?: {
68
+ /**
69
+ * @default false
70
+ */
71
+ isOn?: boolean;
72
+ };
73
+ };
74
+ Info?: {
75
+ /**
76
+ * 定位勾选的行.
77
+ */
78
+ locateSelectedRows: {
79
+ /**
80
+ * @default false
81
+ */
82
+ isOn?: boolean;
83
+ };
59
84
  };
60
85
  /**
61
86
  * 表格设置菜单.
@@ -86,72 +111,54 @@ export declare type IKgOption = {
86
111
  };
87
112
  };
88
113
  };
89
- /**
90
- * 表头.
91
- */
92
- HeaderCell?: {
93
- /**
94
- * 右键菜单.
95
- */
96
- contextMenu?: {
97
- /**
98
- * @default false
99
- */
100
- isOn?: boolean;
101
- };
102
- };
103
- Info?: {
114
+ /** 列的过滤. */
115
+ filter?: {
104
116
  /**
105
- * 定位勾选的行.
117
+ * 是否启用功能.
118
+ * @default false
106
119
  */
107
- locateSelectedRows: {
108
- /**
109
- * @default false
110
- */
111
- isOn?: boolean;
112
- };
120
+ on?: boolean;
113
121
  };
114
122
  };
115
123
  /** 仓库选择. */
116
124
  KgWarehouse?: {
117
- /**
118
- * 是否启用功能.
119
- * @default true
120
- */
121
- on?: boolean;
122
125
  /** 默认的仓库编码, 只有在 {@link IKgOption.KgWarehouse.on} 为 false 时才生效. */
123
126
  defaultWarehouseID?: string;
124
- };
125
- /** 工作站选择. */
126
- KgStation?: {
127
127
  /**
128
128
  * 是否启用功能.
129
129
  * @default true
130
130
  */
131
- isOn?: boolean;
131
+ on?: boolean;
132
132
  };
133
133
  /** 模块首页地址. */
134
134
  appIndex?: {
135
- /** 默认为 '/wms/data-manager/index'. */
136
- [KG_APP.WMS_DATA_MANAGER]?: string;
137
- /** 默认为 '/wms/business-manager/index'. */
138
- [KG_APP.WMS_BUSINESS_MANAGER]?: string;
139
- /** 默认为 '/wcs/index'. */
140
- [KG_APP.WCS]?: string;
141
135
  /** 默认为 '/sys/index'. */
142
136
  [KG_APP.SYS]?: string;
137
+ /** 默认为 '/wcs/index'. */
138
+ [KG_APP.WCS]?: string;
139
+ /** 默认为 '/wms/business-manager/index'. */
140
+ [KG_APP.WMS_BUSINESS_MANAGER]?: string;
141
+ /** 默认为 '/wms/data-manager/index'. */
142
+ [KG_APP.WMS_DATA_MANAGER]?: string;
143
143
  };
144
144
  /** 模块标题. */
145
145
  appTitle?: {
146
- /** 默认为 '数据管理'. */
147
- [KG_APP.WMS_DATA_MANAGER]?: string;
148
- /** 默认为 '仓库管理'. */
149
- [KG_APP.WMS_BUSINESS_MANAGER]?: string;
150
- /** 默认为 'WCS'. */
151
- [KG_APP.WCS]?: string;
152
146
  /** 默认为 '系统配置'. */
153
147
  [KG_APP.SYS]?: string;
148
+ /** 默认为 'WCS'. */
149
+ [KG_APP.WCS]?: string;
150
+ /** 默认为 '仓库管理'. */
151
+ [KG_APP.WMS_BUSINESS_MANAGER]?: string;
152
+ /** 默认为 '数据管理'. */
153
+ [KG_APP.WMS_DATA_MANAGER]?: string;
154
154
  };
155
+ /**
156
+ * 数据库的类型.
157
+ *
158
+ * @see {@link KG_CONST.DB_TYPE}
159
+ * @default {@link KG_CONST.DB_TYPE.SQLSERVER}
160
+ */
161
+ dbType?: string;
155
162
  /**
156
163
  * <p>项目的版本号. 即 package.json 中的 version 值.</p>
157
164
  *
@@ -1,6 +1,82 @@
1
1
  import { type TooltipProps } from 'ant-design-vue';
2
2
  import { ModalFuncProps } from 'ant-design-vue/lib/modal/Modal';
3
3
  import { KgModalProps } from '../component';
4
+ /**
5
+ * 常量.
6
+ * TODO LT 将所有常量都统一放到这个常量中
7
+ */
8
+ export declare const KG_CONST: {
9
+ /**
10
+ * 数据库的列的类型.
11
+ */
12
+ DB_COLUMN_TYPE: {
13
+ NCHAR: string;
14
+ NVARCHAR: string;
15
+ };
16
+ /**
17
+ * 数据库的类型.
18
+ */
19
+ DB_TYPE: {
20
+ /**
21
+ * 达梦.
22
+ */
23
+ DM: string;
24
+ MYSQL: string;
25
+ ORACLE: string;
26
+ POSTGRESQL: string;
27
+ SQLITE: string;
28
+ SQLSERVER: string;
29
+ };
30
+ /**
31
+ * HTTP 请求头.
32
+ */
33
+ HTTP_HEADER: {
34
+ KG_BUTTON_VAR_NAME: string;
35
+ /**
36
+ * 数据库的类型.
37
+ */
38
+ KG_DB_TYPE: string;
39
+ /** 界面标识. */
40
+ KG_FORM_ID: string;
41
+ /** 是否启用高级查询. */
42
+ KG_IS_DYNAMIC_QUERY: string;
43
+ /** 当前页码. */
44
+ KG_PAGE_INDEX: string;
45
+ /** 每页条数. */
46
+ KG_PAGE_SIZE: string;
47
+ /**
48
+ * <p>高级查询时, 每个查询字段的参数值.</p>
49
+ * <p>是一个 JSON 字符串, 由后端进行解析. 其中的 key 表示查询字段的名称, 其中的 value 表示查询字段的值.</p>
50
+ */
51
+ KG_QUERY_OBJECT: string;
52
+ /**
53
+ * <p>高级查询时, 每个查询字段的操作符.</p>
54
+ * <p>是一个 JSON 字符串, 由后端进行解析. 其中的 key 表示查询字段的名称, 其中的 value 表示查询字段的操作符.</p>
55
+ */
56
+ KG_QUERY_OPERATOR_OBJECT: string;
57
+ /** 查询语句中的 ORDER BY 片段. */
58
+ KG_QUERY_ORDER_BY_SQL: string;
59
+ /**
60
+ * <p>高级查询时, 每个查询字段的 WHERE 片段.</p>
61
+ * <p>是一个 JSON 字符串, 由后端进行解析. 其中的 key 表示查询字段的名称, 其中的 value 表示查询字段的 WHERE 片段.</p>
62
+ */
63
+ KG_QUERY_WHERE_OBJECT: string;
64
+ /** 查询语句中的 WHERE 片段. */
65
+ KG_QUERY_WHERE_SQL: string;
66
+ /**
67
+ * 仓库编号.
68
+ */
69
+ KG_WAREHOUSE: string;
70
+ /**
71
+ * 工作区.
72
+ */
73
+ KG_WORK_AREA: string;
74
+ /**
75
+ * 工作站.
76
+ */
77
+ KG_WORK_STATION: string;
78
+ };
79
+ };
4
80
  /** 模块. */
5
81
  export declare const enum KG_APP {
6
82
  /** 数据管理. */
@@ -539,49 +615,6 @@ export declare enum KG_DYNAMIC_QUERY_OPERATOR {
539
615
  /** 范围之内. */
540
616
  BETWEEN = "BETWEEN"
541
617
  }
542
- /** 请求头部. */
543
- export declare const KG_HTTP_HEADER: {
544
- KG_BUTTON_VAR_NAME: string;
545
- /** 界面标识. */
546
- KG_FORM_ID: string;
547
- /** 是否启用高级查询. */
548
- KG_IS_DYNAMIC_QUERY: string;
549
- /** 当前页码. */
550
- KG_PAGE_INDEX: string;
551
- /** 每页条数. */
552
- KG_PAGE_SIZE: string;
553
- /**
554
- * <p>高级查询时, 每个查询字段的参数值.</p>
555
- * <p>是一个 JSON 字符串, 由后端进行解析. 其中的 key 表示查询字段的名称, 其中的 value 表示查询字段的值.</p>
556
- */
557
- KG_QUERY_OBJECT: string;
558
- /**
559
- * <p>高级查询时, 每个查询字段的操作符.</p>
560
- * <p>是一个 JSON 字符串, 由后端进行解析. 其中的 key 表示查询字段的名称, 其中的 value 表示查询字段的操作符.</p>
561
- */
562
- KG_QUERY_OPERATOR_OBJECT: string;
563
- /** 查询语句中的 ORDER BY 片段. */
564
- KG_QUERY_ORDER_BY_SQL: string;
565
- /**
566
- * <p>高级查询时, 每个查询字段的 WHERE 片段.</p>
567
- * <p>是一个 JSON 字符串, 由后端进行解析. 其中的 key 表示查询字段的名称, 其中的 value 表示查询字段的 WHERE 片段.</p>
568
- */
569
- KG_QUERY_WHERE_OBJECT: string;
570
- /** 查询语句中的 WHERE 片段. */
571
- KG_QUERY_WHERE_SQL: string;
572
- /**
573
- * 仓库编号.
574
- */
575
- KG_WAREHOUSE: string;
576
- /**
577
- * 工作区.
578
- */
579
- KG_WORK_AREA: string;
580
- /**
581
- * 工作站.
582
- */
583
- KG_WORK_STATION: string;
584
- };
585
618
  /** 特殊属性:请求返回的原始响应数据. */
586
619
  export declare const __KG__RESPONSE__ = "__KG__RESPONSE__";
587
620
  /** 模块菜单的临时ID:数据管理. */
@@ -257,6 +257,7 @@ export declare class KgUtil {
257
257
  */
258
258
  static insertHashToDynamicQueryParams(params: any): void;
259
259
  /**
260
+ * <p>获取查询请求相关的请求头.</p>
260
261
  * <p>根据查询条件拼接 SQL 语句片段.</p>
261
262
  * <p>根据查询参数拼接 SQL, 格式如下: `WHERE ... ORDER BY ...`, 每一个片段会单独作为一个属性返回.</p>
262
263
  * <ul>
@@ -277,7 +278,7 @@ export declare class KgUtil {
277
278
  kgSearchFormID: string | null | undefined;
278
279
  params: Record<string, any> | null | undefined;
279
280
  }): {
280
- operatorJSON: string;
281
+ operatorObjectJSON: string;
281
282
  orderBySql: string;
282
283
  sql: string;
283
284
  whereObjectJSON: string;
@@ -286,9 +287,9 @@ export declare class KgUtil {
286
287
  /**
287
288
  * 查询操作符对象的 JSON 字符串.
288
289
  */
289
- operatorJSON: string;
290
+ operatorObjectJSON: string;
290
291
  /**
291
- * ORDER BY.
292
+ * ORDER BY SQL.
292
293
  */
293
294
  orderBySql: string;
294
295
  /**
@@ -296,7 +297,7 @@ export declare class KgUtil {
296
297
  */
297
298
  whereObjectJSON: string;
298
299
  /**
299
- * WHERE .
300
+ * WHERE SQL.
300
301
  */
301
302
  whereSql: string;
302
303
  sql?: undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.28.2-beta.16",
3
+ "version": "0.28.2-beta.17",
4
4
  "scripts": {
5
5
  "build": "npm run use-node && rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "npm run use-node && rimraf dist && vue-tsc && vite build --mode development",