@kengic/vue 0.28.2-beta.2 → 0.28.2-beta.20
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 +10458 -10040
- package/dist/project/build/utils.ts +2 -2
- package/dist/src/api/WMS/models.d.ts +2 -0
- package/dist/src/component/KgButton/KgButton.event.d.ts +3 -9
- package/dist/src/component/KgButton/KgButton.hooks.d.ts +1 -15
- package/dist/src/component/KgForm/KgForm.event.d.ts +17 -7
- package/dist/src/component/KgForm/KgForm.hooks.d.ts +8 -1
- package/dist/src/component/KgForm.Item/KgForm.Item.service.d.ts +1 -1
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Image.d.ts +6 -0
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Link.d.ts +93 -0
- package/dist/src/component/KgResizable/KgResizable.d.ts +28 -0
- package/dist/src/component/KgSubmit/KgSubmit.event.d.ts +15 -9
- package/dist/src/component/KgSubmit/KgSubmit.hooks.d.ts +33 -5
- package/dist/src/component/KgSubmit/KgSubmit.service.d.ts +2 -2
- package/dist/src/component/KgSubmit/KgSubmit.store.d.ts +3 -4
- package/dist/src/component/KgVar/KgVar.hooks.d.ts +3 -1
- package/dist/src/component/KgVar/KgVarFactory.d.ts +12 -0
- package/dist/src/config/config.hooks.d.ts +13 -5
- package/dist/src/config/config.store.d.ts +55 -48
- package/dist/src/const/const.vm.d.ts +268 -108
- package/dist/src/i18n/i18n.setup.d.ts +3 -0
- package/dist/src/page/KgPageDda/components/KgPageDda.Create.store.d.ts +6 -0
- package/dist/src/util/kg.util.d.ts +19 -23
- package/package.json +9 -7
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ModalFuncProps } from 'ant-design-vue/lib/modal/Modal';
|
2
2
|
import dayjs, { Dayjs } from 'dayjs';
|
3
|
-
import { IKgVarButtonModalProperties,
|
3
|
+
import { IKgVarButtonModalProperties, KG_APP } from '../const';
|
4
4
|
import { Menu } from '../project/src/router/types';
|
5
5
|
/**
|
6
6
|
* 工具方法.
|
@@ -54,12 +54,7 @@ export declare class KgUtil {
|
|
54
54
|
* @param param.value 参数的原始值.
|
55
55
|
* @param param.varName 变量名称.
|
56
56
|
*/
|
57
|
-
static parseParamsFromString
|
58
|
-
$dayjs?: typeof dayjs;
|
59
|
-
formID?: string | null;
|
60
|
-
value: string;
|
61
|
-
varName?: string | null;
|
62
|
-
}): any;
|
57
|
+
private static parseParamsFromString;
|
63
58
|
/**
|
64
59
|
* 处理请求参数: 解析 Dayjs 类型的参数值.
|
65
60
|
*
|
@@ -68,12 +63,7 @@ export declare class KgUtil {
|
|
68
63
|
* @param param.key 属性名.
|
69
64
|
* @param param.value 参数的原始值.
|
70
65
|
*/
|
71
|
-
static parseParamsFromDayjs
|
72
|
-
formID?: string | null;
|
73
|
-
isPad?: boolean;
|
74
|
-
key: string;
|
75
|
-
value: any;
|
76
|
-
}): string;
|
66
|
+
private static parseParamsFromDayjs;
|
77
67
|
/**
|
78
68
|
* <p>确认弹窗.</p>
|
79
69
|
* <p>设置了多个属性的默认值, 简化使用.</p>
|
@@ -209,22 +199,22 @@ export declare class KgUtil {
|
|
209
199
|
*/
|
210
200
|
static parseRequestParamsToJSON(params: string | null | undefined): Record<string, any>;
|
211
201
|
/**
|
212
|
-
* <p>根据控件类型,
|
202
|
+
* <p>根据控件类型, 将表单控件的值转换为合法的值.</p>
|
213
203
|
*
|
214
204
|
* @param param.$dayjs dayjs.
|
215
205
|
* @param param.buttonVarName 「变量配置:表单控件」所属的按钮的变量名称.
|
216
|
-
* @param param.defaultValue 原始的默认值.
|
217
206
|
* @param param.formID 界面标识.
|
218
207
|
* @param param.isParseDynamicParam 是否替换动态参数. 默认为 true.
|
208
|
+
* @param param.oldValue 转换之前的值.
|
219
209
|
* @param param.varName 变量名称.
|
220
210
|
* @return {} 转换之后的值.
|
221
211
|
*/
|
222
|
-
static
|
212
|
+
static transformVarSubmitDetailValue(param: {
|
223
213
|
$dayjs: typeof dayjs;
|
224
214
|
buttonVarName: string | null | undefined;
|
225
|
-
defaultValue: any;
|
226
215
|
formID: string;
|
227
216
|
isParseDynamicParam?: boolean;
|
217
|
+
oldValue: any;
|
228
218
|
varName: string;
|
229
219
|
}): any;
|
230
220
|
/**
|
@@ -259,7 +249,7 @@ export declare class KgUtil {
|
|
259
249
|
* 根据控件类型获取高级查询操作符的下拉列表.
|
260
250
|
* @param controlType 控件类型.
|
261
251
|
*/
|
262
|
-
static getDynamicQueryOperatorSelectOptions(controlType:
|
252
|
+
static getDynamicQueryOperatorSelectOptions(controlType: string | null | undefined): any;
|
263
253
|
/**
|
264
254
|
* 如果属性值是动态参数值 {@link KG__DYNAMIC_PARAM}, 则给属性值的花括号里面的前后加上特殊字符 #, 防止它被解析成实际的值.
|
265
255
|
*
|
@@ -267,6 +257,7 @@ export declare class KgUtil {
|
|
267
257
|
*/
|
268
258
|
static insertHashToDynamicQueryParams(params: any): void;
|
269
259
|
/**
|
260
|
+
* <p>获取查询请求相关的请求头.</p>
|
270
261
|
* <p>根据查询条件拼接 SQL 语句片段.</p>
|
271
262
|
* <p>根据查询参数拼接 SQL, 格式如下: `WHERE ... ORDER BY ...`, 每一个片段会单独作为一个属性返回.</p>
|
272
263
|
* <ul>
|
@@ -287,21 +278,26 @@ export declare class KgUtil {
|
|
287
278
|
kgSearchFormID: string | null | undefined;
|
288
279
|
params: Record<string, any> | null | undefined;
|
289
280
|
}): {
|
290
|
-
|
281
|
+
operatorObjectJSON: string;
|
291
282
|
orderBySql: string;
|
292
283
|
sql: string;
|
284
|
+
whereObjectJSON: string;
|
293
285
|
whereSql: string;
|
294
286
|
} | {
|
295
287
|
/**
|
296
|
-
*
|
288
|
+
* 查询操作符对象的 JSON 字符串.
|
297
289
|
*/
|
298
|
-
|
290
|
+
operatorObjectJSON: string;
|
299
291
|
/**
|
300
|
-
* ORDER BY.
|
292
|
+
* ORDER BY SQL.
|
301
293
|
*/
|
302
294
|
orderBySql: string;
|
303
295
|
/**
|
304
|
-
* WHERE
|
296
|
+
* 查询字段的 WHERE 片段对象的 JSON 字符串.
|
297
|
+
*/
|
298
|
+
whereObjectJSON: string;
|
299
|
+
/**
|
300
|
+
* WHERE SQL.
|
305
301
|
*/
|
306
302
|
whereSql: string;
|
307
303
|
sql?: undefined;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@kengic/vue",
|
3
|
-
"version": "0.28.2-beta.
|
3
|
+
"version": "0.28.2-beta.20",
|
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",
|
@@ -10,20 +10,22 @@
|
|
10
10
|
"use-node": "nvm use 20.17.0 && corepack enable && corepack use pnpm@9.12.1",
|
11
11
|
"cnpm:sync": "npm run use-node && npx cnpm --yes sync @kengic/vue",
|
12
12
|
"-- -----------------------------------------------": "",
|
13
|
-
"publish:major": "npm run bump:major && tsx script/publish.ts",
|
14
|
-
"publish:minor": "npm run bump:minor && tsx script/publish.ts",
|
15
|
-
"publish:patch": "npm run bump:patch && tsx script/publish.ts",
|
16
|
-
"publish:beta": "npm run bump:beta && tsx script/publish.ts",
|
17
|
-
"------- ------------------------------------------": "",
|
18
13
|
"copy-to:luotao:smartfactory.product.wms.wms--dev-3.2": "npm run use-node && npm run build:dev && tsx script/copy-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts",
|
19
14
|
"bump-to:luotao:smartfactory.product.wms.wms--dev-3.2": "npm run use-node && tsx script/bump-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts",
|
15
|
+
"copy-to:luotao:smartfactory.product.wms.wms--project-kengic-factory": "npm run use-node && npm run build:dev && tsx script/copy-to.luotao.smartfactory.product.wms.wms--project-kengic-factory.ts",
|
16
|
+
"bump-to:luotao:smartfactory.product.wms.wms--project-kengic-factory": "npm run use-node && tsx script/bump-to.luotao.smartfactory.product.wms.wms--project-kengic-factory.ts",
|
20
17
|
"----- --------------------------------------------": "更新组件库的版本",
|
21
18
|
"bump:major": "npm run use-node && tsx script/bump.ts major",
|
22
19
|
"bump:minor": "npm run use-node && tsx script/bump.ts minor",
|
23
20
|
"bump:patch": "npm run use-node && tsx script/bump.ts patch",
|
24
21
|
"bump:beta": "npm run use-node && tsx script/bump.ts beta",
|
25
22
|
"---- ---------------------------------------------": "发布到 npmjs 仓库",
|
26
|
-
"publish:npm": "npm run use-node && npmrc kengic && npm publish ./ --registry https://registry.npmjs.org/ --access public"
|
23
|
+
"publish:npm": "npm run use-node && npmrc kengic && npm publish ./ --registry https://registry.npmjs.org/ --access public",
|
24
|
+
"publish:major": "npm run bump:major && tsx script/publish.ts",
|
25
|
+
"publish:minor": "npm run bump:minor && tsx script/publish.ts",
|
26
|
+
"publish:patch": "npm run bump:patch && tsx script/publish.ts",
|
27
|
+
"publish:beta": "npm run bump:beta && tsx script/publish.ts",
|
28
|
+
"------- ------------------------------------------": ""
|
27
29
|
},
|
28
30
|
"peerDependencies": {
|
29
31
|
"vue": "3.2.43"
|