@kengic/vue 0.23.0 → 0.23.2
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +6 -0
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +9391 -8199
- package/dist/project/build/script/buildConf.ts +1 -2
- package/dist/project/build/script/postBuild.ts +1 -1
- package/dist/project/src/api/sys/model/userModel.ts +1 -0
- package/dist/setting-outlined.7f72790b.mjs +8 -0
- package/dist/src/apis/WMS/Controllers/DescriptionController/List.d.ts +2 -0
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/index.d.ts +0 -7
- package/dist/src/apis/WMS/Controllers/VarConfigPossibilityController/ExecuteQuery.d.ts +18 -0
- package/dist/src/apis/WMS/Controllers/VarConfigPossibilityController/index.d.ts +1 -0
- package/dist/src/apis/WMS/Controllers/WhController/ListVO.d.ts +2 -0
- package/dist/src/apis/WMS/Controllers/index.d.ts +1 -0
- package/dist/src/apis/WMS/models.d.ts +27 -11
- package/dist/src/components/KgAppSelect/index.hooks.d.ts +3 -3
- package/dist/src/components/KgAppSelect/index.store.d.ts +30 -29
- package/dist/src/components/KgButton/KgButton.Item.d.ts +15 -15
- package/dist/src/components/KgButton/KgButton.Item.data.d.ts +15 -15
- package/dist/src/components/KgButton/KgButton.d.ts +18 -12
- package/dist/src/components/KgButton/components/KgButton.Copy.d.ts +14 -14
- package/dist/src/components/KgButton/components/KgButton.Create.d.ts +14 -14
- package/dist/src/components/KgButton/components/KgButton.Delete.d.ts +15 -15
- package/dist/src/components/KgButton/components/KgButton.Export.d.ts +14 -14
- package/dist/src/components/KgButton/components/KgButton.ExportTemplate.d.ts +14 -14
- package/dist/src/components/KgButton/components/KgButton.Import.d.ts +14 -14
- package/dist/src/components/KgButton/components/KgButton.Other.d.ts +15 -15
- package/dist/src/components/KgButton/components/KgButton.Search.d.ts +15 -15
- package/dist/src/components/KgButton/components/KgButton.Update.d.ts +14 -14
- package/dist/src/components/KgButton/index.d.ts +4 -4
- package/dist/src/components/KgButton/index.hooks.d.ts +7 -5
- package/dist/src/components/KgButton/index.store.d.ts +19 -16
- package/dist/src/components/KgForm/KgForm.d.ts +3 -3
- package/dist/src/components/KgForm/index.d.ts +4 -4
- package/dist/src/components/KgForm/index.hooks.d.ts +21 -8
- package/dist/src/components/KgForm/index.store.d.ts +74 -34
- package/dist/src/components/KgForm.Item/KgForm.Item.d.ts +3 -3
- package/dist/src/components/KgForm.Item/KgForm.Item.service.d.ts +3 -3
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +8 -7
- package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +6 -7
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +6 -5
- package/dist/src/components/KgForm.Item/components/KgForm.Item.DateRange.d.ts +6 -5
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Image.d.ts +3 -3
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +6 -5
- package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +6 -5
- package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +6 -5
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +7 -3
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.service.d.ts +16 -13
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +6 -5
- package/dist/src/components/KgForm.Item/components/KgForm.Item.TextArea.d.ts +6 -5
- package/dist/src/components/KgForm.Item/index.d.ts +1 -1
- package/dist/src/components/KgForm.Item/index.vm.d.ts +9 -7
- package/dist/src/components/KgModal/KgModal.d.ts +105 -21
- package/dist/src/components/KgModal/KgModal.service.d.ts +1 -1
- package/dist/src/components/KgModal/components/KgModal.HeaderButtons.d.ts +18 -0
- package/dist/src/components/KgResizable/KgResizable.d.ts +55 -55
- package/dist/src/components/KgSearch/KgSearch.d.ts +0 -16
- package/dist/src/components/KgSearch/KgSearch.service.d.ts +20 -16
- package/dist/src/components/KgSearch/index.hooks.d.ts +30 -12
- package/dist/src/components/KgSearch/index.store.d.ts +44 -37
- package/dist/src/components/KgSubmit/index.hooks.d.ts +48 -15
- package/dist/src/components/KgSubmit/index.store.d.ts +53 -47
- package/dist/src/components/KgSubmit/index.vm.d.ts +2 -1
- package/dist/src/components/KgTable/components/setting/KgTable.Setting.service.d.ts +1 -1
- package/dist/src/components/KgTable/index.hooks.d.ts +23 -8
- package/dist/src/components/KgTable/index.store.d.ts +48 -34
- package/dist/src/components/KgTable/index.vm.d.ts +1 -1
- package/dist/src/components/KgVar/index.hooks.d.ts +15 -11
- package/dist/src/components/KgVar/index.store.d.ts +55 -60
- package/dist/src/components/KgVar/index.store.service.d.ts +2 -1
- package/dist/src/components/KgVar/index.vm.d.ts +7 -7
- package/dist/src/components/KgVarConfig/components/KgVarConfig.Modal.d.ts +1 -1
- package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts +6 -23
- package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.d.ts +0 -16
- package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.d.ts +4 -21
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigInput.d.ts +2 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigLookup.d.ts +2 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigPossibility.d.ts +2 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigTip.d.ts +2 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariable.d.ts +2 -0
- package/dist/src/components/KgVarConfig/index.d.ts +1 -0
- package/dist/src/components/KgVarConfig/index.hooks.d.ts +17 -0
- package/dist/src/components/KgVarConfig/index.store.d.ts +29 -16
- package/dist/src/components/KgVarConfig/index.vm.d.ts +40 -0
- package/dist/src/components/KgWarehouse/index.hooks.d.ts +10 -6
- package/dist/src/components/KgWarehouse/index.store.d.ts +15 -14
- package/dist/src/components/util.d.ts +7 -7
- package/dist/src/consts/i18n/en.d.ts +31 -11
- package/dist/src/consts/i18n/zh_CN.d.ts +31 -11
- package/dist/src/consts/index.d.ts +0 -284
- package/dist/src/consts/index.vm.d.ts +435 -24
- package/dist/src/helpers/ant-design-vue.d.ts +1 -1
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Button.d.ts +0 -1
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +117 -192
- package/dist/src/pages/KgPageDda/{index.const.d.ts → index.vm.d.ts} +1 -0
- package/dist/src/services/http-client.d.ts +2 -2
- package/dist/src/utils/kg-var.util.d.ts +4 -3
- package/dist/src/utils/kg.util.d.ts +42 -25
- package/package.json +2 -2
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/Delete.d.ts +0 -18
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/DeleteBatch.d.ts +0 -18
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/Edit.d.ts +0 -16
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/ExportXls.d.ts +0 -30
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/ImportExcel.d.ts +0 -15
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/List.d.ts +0 -37
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/QueryById.d.ts +0 -19
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.CreateModal.d.ts +0 -32
- /package/dist/src/components/KgTable/components/setting/config/{KgTable.Setting.ConfigModal.VarGridMaster.hooks.d.ts → KgTable.Setting.ConfigModal.VarGridMaster.service.d.ts} +0 -0
- /package/dist/src/components/KgVarConfig/components/var/{KgVarConfig.Modal.Var.Vars.d.ts → KgVarConfig.Modal.Var.VarConfigControl.d.ts} +0 -0
@@ -31,8 +31,7 @@ function createConfig(params: CreateConfigParams) {
|
|
31
31
|
fs.mkdirp(getRootPath(OUTPUT_DIR));
|
32
32
|
writeFileSync(getRootPath(`${OUTPUT_DIR}/${configFileName}`), configStr);
|
33
33
|
|
34
|
-
console.log(colors.
|
35
|
-
console.log(colors.gray(OUTPUT_DIR + '/' + colors.green(configFileName)) + '\n');
|
34
|
+
console.log(colors.green(`配置文件构建成功: `) + colors.gray(OUTPUT_DIR + '/' + colors.green(configFileName)));
|
36
35
|
} catch (error) {
|
37
36
|
console.log(colors.red('configuration file configuration file failed to package:\n' + error));
|
38
37
|
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
const l = {
|
2
|
+
width: 1024,
|
3
|
+
height: 1024,
|
4
|
+
body: '<path fill="currentColor" d="m924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 0 0 9.3-35.2l-.9-2.6a443.74 443.74 0 0 0-79.7-137.9l-1.8-2.1a32.12 32.12 0 0 0-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 0 0-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 0 0-25.8 25.7l-15.8 85.4a351.86 351.86 0 0 0-99 57.4l-81.9-29.1a32 32 0 0 0-35.1 9.5l-1.8 2.1a446.02 446.02 0 0 0-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1c0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 0 0-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0 0 35.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0 0 25.8 25.7l2.7.5a449.4 449.4 0 0 0 159 0l2.7-.5a32.05 32.05 0 0 0 25.8-25.7l15.7-85a350 350 0 0 0 99.7-57.6l81.3 28.9a32 32 0 0 0 35.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1l74.7 63.9a370.03 370.03 0 0 1-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3l-17.9 97a377.5 377.5 0 0 1-85 0l-17.9-97.2l-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9l-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5l-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5c0-15.3 1.2-30.6 3.7-45.5l6.5-40l-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2l31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3l17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97l38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8l92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176s176-78.8 176-176s-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 0 1 512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 0 1 400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 0 1 624 502c0 29.9-11.7 58-32.8 79.2z"/>'
|
5
|
+
};
|
6
|
+
export {
|
7
|
+
l as default
|
8
|
+
};
|
@@ -1,8 +1 @@
|
|
1
1
|
export { Add, AddQuery } from './Add';
|
2
|
-
export { Delete, DeleteQuery } from './Delete';
|
3
|
-
export { DeleteBatch, DeleteBatchQuery } from './DeleteBatch';
|
4
|
-
export { Edit, EditQuery } from './Edit';
|
5
|
-
export { ExportXls, ExportXlsQuery } from './ExportXls';
|
6
|
-
export { ImportExcel, ImportExcelQuery } from './ImportExcel';
|
7
|
-
export { List, ListQuery } from './List';
|
8
|
-
export { QueryById, QueryByIdQuery } from './QueryById';
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { IRequestConfig, IRequestOptions } from '../../../../services';
|
2
|
+
/** 请求参数. */
|
3
|
+
export declare class ExecuteQueryQuery {
|
4
|
+
/** 主键. */
|
5
|
+
id: string | null;
|
6
|
+
constructor(obj?: ExecuteQueryQuery);
|
7
|
+
}
|
8
|
+
/**
|
9
|
+
* 执行查询语句, 查询列表数据.
|
10
|
+
*
|
11
|
+
* @param config 请求配置.
|
12
|
+
* @param option 请求选项.
|
13
|
+
*/
|
14
|
+
export declare function ExecuteQuery(config?: IRequestConfig<ExecuteQueryQuery, {}>, option?: IRequestOptions): Promise<Array<Record<string, Record<string, any>>>>;
|
15
|
+
export declare namespace ExecuteQuery {
|
16
|
+
var method: "GET";
|
17
|
+
var url: string;
|
18
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { ExecuteQuery, ExecuteQueryQuery } from './ExecuteQuery';
|
@@ -2,6 +2,7 @@ export * as DescriptionController from './DescriptionController';
|
|
2
2
|
export * as SysPermissionController from './SysPermissionController';
|
3
3
|
export * as VarController from './VarController';
|
4
4
|
export * as VarConfigDescriptionController from './VarConfigDescriptionController';
|
5
|
+
export * as VarConfigPossibilityController from './VarConfigPossibilityController';
|
5
6
|
export * as VarDdaController from './VarDdaController';
|
6
7
|
export * as VarGridMasterController from './VarGridMasterController';
|
7
8
|
export * as VarProfileMasterController from './VarProfileMasterController';
|
@@ -6,8 +6,6 @@ export declare class CreateVarDdaQuery {
|
|
6
6
|
sysPermissions?: Array<SysPermission> | null;
|
7
7
|
/** 按钮. */
|
8
8
|
varButtons?: Array<VarButton> | null;
|
9
|
-
/** 变量配置:表单控件. */
|
10
|
-
varConfigControls?: Array<VarConfigControl> | null;
|
11
9
|
/** 变量配置:变量翻译. */
|
12
10
|
varConfigDescriptions?: Array<VarConfigDescription> | null;
|
13
11
|
/** DDA. */
|
@@ -25,7 +23,7 @@ export declare class CreateVarDdaQuery {
|
|
25
23
|
/** 查询条件视图. */
|
26
24
|
varProfileMaster?: VarProfileMaster | null;
|
27
25
|
/** 提交表单配置. */
|
28
|
-
|
26
|
+
varSubmitConfigs?: Array<VarSubmitConfig> | null;
|
29
27
|
/** 提交表单字段. */
|
30
28
|
varSubmitDetails?: Array<VarSubmitDetail> | null;
|
31
29
|
/** 变量. */
|
@@ -94,6 +92,8 @@ export declare class Description {
|
|
94
92
|
srtseq?: number | null;
|
95
93
|
/** 系统定义. */
|
96
94
|
sysDefFlg?: number | null;
|
95
|
+
/** 版本 */
|
96
|
+
version?: number | null;
|
97
97
|
constructor(obj?: Description);
|
98
98
|
}
|
99
99
|
/** 根据多个 codeName 和 codeValue 批量查询描述数据. */
|
@@ -355,19 +355,19 @@ export declare class VarButton {
|
|
355
355
|
icon?: string | null;
|
356
356
|
/** 主键. */
|
357
357
|
id?: string | null;
|
358
|
-
/**
|
358
|
+
/** 确认弹窗属性. */
|
359
359
|
modal_props?: string | null;
|
360
360
|
/** 权限码. */
|
361
361
|
permission_code?: string | null;
|
362
362
|
/** 是否使用主要按钮样式(PrimaryFlag). */
|
363
363
|
primary_flg?: number | null;
|
364
|
-
/**
|
364
|
+
/** 重新查询之后, 是否保持勾选. */
|
365
365
|
re_select_after_reload_flg?: number | null;
|
366
|
-
/**
|
366
|
+
/** 执行成功之后, 是否重新查询. */
|
367
367
|
reload_all_after_done_flg?: number | null;
|
368
368
|
/** 是否显示确认弹窗. */
|
369
369
|
show_modal_flg?: number | null;
|
370
|
-
/**
|
370
|
+
/** 是否显示成功消息. */
|
371
371
|
show_success_message_flg?: number | null;
|
372
372
|
/** SQL. */
|
373
373
|
sql?: string | null;
|
@@ -449,10 +449,18 @@ export declare class VarConfigInput {
|
|
449
449
|
max?: number | null;
|
450
450
|
/** 是否包含最大值. */
|
451
451
|
max_include_flg?: number | null;
|
452
|
+
/** 最大长度. */
|
453
|
+
max_length?: number | null;
|
452
454
|
/** 最小值. */
|
453
455
|
min?: number | null;
|
454
456
|
/** 是否包含最小值. */
|
455
457
|
min_include_flg?: number | null;
|
458
|
+
/** 最小长度. */
|
459
|
+
min_length?: number | null;
|
460
|
+
/** 正则表达式. */
|
461
|
+
regular_expression?: string | null;
|
462
|
+
/** 验证方式. */
|
463
|
+
validation_type?: string | null;
|
456
464
|
/** 变量名称(VariableName). */
|
457
465
|
var_nam?: string | null;
|
458
466
|
constructor(obj?: VarConfigInput);
|
@@ -461,8 +469,6 @@ export declare class VarConfigInput {
|
|
461
469
|
export declare class VarConfigLookup {
|
462
470
|
/** 定制级别(CustomLevel). */
|
463
471
|
cust_lvl?: number | null;
|
464
|
-
/** 是否启用(EnableFlag). */
|
465
|
-
ena_flg?: number | null;
|
466
472
|
/** 界面标识(FormID). */
|
467
473
|
frm_id?: string | null;
|
468
474
|
/** 分组(GroupName). */
|
@@ -491,6 +497,8 @@ export declare class VarConfigPossibility {
|
|
491
497
|
cmd_prm?: string | null;
|
492
498
|
/** 定制级别(CustomLevel). */
|
493
499
|
cust_lvl?: number | null;
|
500
|
+
/** 数据源的类型. */
|
501
|
+
data_source_type?: string | null;
|
494
502
|
/** 界面标识(FormID). */
|
495
503
|
frm_id?: string | null;
|
496
504
|
/** 分组(GroupName). */
|
@@ -501,9 +509,11 @@ export declare class VarConfigPossibility {
|
|
501
509
|
lbl_clm?: string | null;
|
502
510
|
/** 语言(LocaleID). */
|
503
511
|
locale_id?: string | null;
|
512
|
+
/** SQL. */
|
513
|
+
sql?: string | null;
|
504
514
|
/** 数据列(ValueColumn). */
|
505
515
|
val_clm?: string | null;
|
506
|
-
/**
|
516
|
+
/** 数据类型. */
|
507
517
|
val_data_type?: string | null;
|
508
518
|
/** 变量名称(VariableName). */
|
509
519
|
var_nam?: string | null;
|
@@ -519,6 +529,8 @@ export declare class VarConfigTip {
|
|
519
529
|
id?: string | null;
|
520
530
|
/** 语言(LocaleID). */
|
521
531
|
locale_id?: string | null;
|
532
|
+
/** 位置. */
|
533
|
+
placement?: string | null;
|
522
534
|
/** 提示文本. */
|
523
535
|
tip?: string | null;
|
524
536
|
/** 变量名称(VariableName). */
|
@@ -699,6 +711,8 @@ export declare class VarProfileConfig {
|
|
699
711
|
id?: string | null;
|
700
712
|
/** 是否支持拖动高度. */
|
701
713
|
resizable_flg?: number | null;
|
714
|
+
/** 是否显示视图下拉列表以及配置按钮. */
|
715
|
+
show_config_button_flag?: number | null;
|
702
716
|
/** 是否显示(VisibleFlag). */
|
703
717
|
vis_flg?: number | null;
|
704
718
|
constructor(obj?: VarProfileConfig);
|
@@ -733,7 +747,7 @@ export declare class VarProfileDetail {
|
|
733
747
|
var_nam?: string | null;
|
734
748
|
/** 是否可见(VisibleFlag). */
|
735
749
|
vis_flg?: number | null;
|
736
|
-
/**
|
750
|
+
/** 表单控件宽度. */
|
737
751
|
width?: number | null;
|
738
752
|
constructor(obj?: VarProfileDetail);
|
739
753
|
}
|
@@ -889,6 +903,8 @@ export declare class WhDTO {
|
|
889
903
|
permCreLod?: string | null;
|
890
904
|
/** 永久创建箱 */
|
891
905
|
permCreSub?: string | null;
|
906
|
+
/** 版本 */
|
907
|
+
version?: number | null;
|
892
908
|
/** 仓库名称 */
|
893
909
|
whDsc?: string | null;
|
894
910
|
/** 仓库编号 */
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { IRemoveEventListenerHandler, KG_APP, Menu } from '../../consts';
|
2
|
-
import {
|
2
|
+
import { IKgAppSelectGotoAppEventListener, IKgAppSelectGotoPathEventListener, IKgAppSelectStore } from './index.store';
|
3
3
|
export declare type IUseKgAppSelect = {
|
4
4
|
/** 状态数据. */
|
5
5
|
store: IKgAppSelectStore;
|
@@ -30,12 +30,12 @@ export declare type IUseKgAppSelect = {
|
|
30
30
|
* @param cb 回调函数.
|
31
31
|
* @param once 是否只会触发一次. 默认为 undefined.
|
32
32
|
*/
|
33
|
-
onGotoApp(cb:
|
33
|
+
onGotoApp(cb: IKgAppSelectGotoAppEventListener, once?: boolean): IRemoveEventListenerHandler;
|
34
34
|
/**
|
35
35
|
* 事件: 进入某个地址.
|
36
36
|
* @param cb 回调函数.
|
37
37
|
* @param once 是否只会触发一次. 默认为 undefined.
|
38
38
|
*/
|
39
|
-
onGotoPath(cb:
|
39
|
+
onGotoPath(cb: IKgAppSelectGotoPathEventListener, once?: boolean): IRemoveEventListenerHandler;
|
40
40
|
};
|
41
41
|
export declare function useKgAppSelect(): IUseKgAppSelect;
|
@@ -1,51 +1,45 @@
|
|
1
1
|
import { StoreDefinition } from 'pinia';
|
2
|
-
import {
|
2
|
+
import { IKgEventListener, KG_APP, Menu } from '../../consts';
|
3
3
|
/**
|
4
4
|
* 事件类型.
|
5
5
|
* 'gotoApp': 进入某个模块
|
6
6
|
* 'gotoPath': 进入某个地址
|
7
7
|
*/
|
8
8
|
export declare type IKgAppSelectEvent = 'gotoApp' | 'gotoPath';
|
9
|
-
|
10
|
-
export declare type IKgAppSelectGotoAppCbParam = {
|
9
|
+
export declare type IKgAppSelectGotoAppEventListenerParameter = {
|
11
10
|
app: string;
|
12
11
|
};
|
13
|
-
export declare type
|
14
|
-
|
15
|
-
export declare type IKgAppSelectGotoPathCbParam = {
|
12
|
+
export declare type IKgAppSelectGotoAppEventListener = ((param: IKgAppSelectGotoAppEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
13
|
+
export declare type IKgAppSelectGotoPathEventListenerParameter = {
|
16
14
|
path: string;
|
17
15
|
};
|
18
|
-
export declare type
|
19
|
-
export declare type
|
20
|
-
export
|
21
|
-
|
22
|
-
gotoAppListenersMap: Map<string, Array<IKgAppSelectGotoAppCb>>;
|
23
|
-
gotoPathListenersMap: Map<string, Array<IKgAppSelectGotoPathCb>>;
|
24
|
-
}
|
25
|
-
export declare type IKgAppSelectStoreDefinition = StoreDefinition<'KgAppSelect', IKgAppSelectState, {
|
16
|
+
export declare type IKgAppSelectGotoPathEventListener = ((param: IKgAppSelectGotoPathEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
17
|
+
export declare type IKgAppSelectEventListenerParameter = IKgAppSelectGotoAppEventListenerParameter | IKgAppSelectGotoPathEventListenerParameter;
|
18
|
+
export declare type IKgAppSelectEventListener = IKgAppSelectGotoAppEventListener | IKgAppSelectGotoPathEventListener;
|
19
|
+
export interface IUseKgAppSelectStoreState {
|
26
20
|
/**
|
27
21
|
* 当前模块.
|
28
22
|
*/
|
23
|
+
currentApp: KG_APP | null;
|
24
|
+
gotoAppEventListenersMap: Map<string, Array<IKgAppSelectGotoAppEventListener>>;
|
25
|
+
gotoPathEventListenersMap: Map<string, Array<IKgAppSelectGotoPathEventListener>>;
|
26
|
+
}
|
27
|
+
export interface IUseKgAppSelectStoreGetters {
|
29
28
|
getCurrentApp(): KG_APP;
|
30
|
-
}
|
29
|
+
}
|
30
|
+
export interface IUseKgAppSelectStoreActions {
|
31
31
|
/**
|
32
32
|
* 注册事件监听.
|
33
33
|
* @param event 事件名称.
|
34
34
|
* @param cb 回调函数.
|
35
35
|
*/
|
36
|
-
addEventListener(event: IKgAppSelectEvent, cb:
|
37
|
-
/**
|
38
|
-
* 退订事件监听.
|
39
|
-
* @param event 事件名称.
|
40
|
-
* @param cb 回调函数.
|
41
|
-
*/
|
42
|
-
removeEventListener(event: IKgAppSelectEvent, cb?: IKgAppSelectCb): void;
|
36
|
+
addEventListener(event: IKgAppSelectEvent, cb: IKgAppSelectEventListener): void;
|
43
37
|
/**
|
44
38
|
* 触发事件.
|
45
39
|
* @param event 事件名称.
|
46
40
|
* @param param 参数.
|
47
41
|
*/
|
48
|
-
emit(event: IKgAppSelectEvent, param?:
|
42
|
+
emit<T = IKgAppSelectEventListenerParameter>(event: IKgAppSelectEvent, param?: T | null): Promise<boolean>;
|
49
43
|
/**
|
50
44
|
* 进入某个模块.
|
51
45
|
* @param app 要进入的模块.
|
@@ -57,6 +51,11 @@ export declare type IKgAppSelectStoreDefinition = StoreDefinition<'KgAppSelect',
|
|
57
51
|
* @param path 要进入的地址.
|
58
52
|
*/
|
59
53
|
gotoPath(path: string): Promise<void>;
|
54
|
+
/**
|
55
|
+
* 初始化.
|
56
|
+
* 1. 需要根据当前地址设置当前模块.
|
57
|
+
*/
|
58
|
+
init(): void;
|
60
59
|
/**
|
61
60
|
* 判断某个菜单是否属于当前模块.
|
62
61
|
* @param menu 菜单.
|
@@ -64,10 +63,12 @@ export declare type IKgAppSelectStoreDefinition = StoreDefinition<'KgAppSelect',
|
|
64
63
|
*/
|
65
64
|
isMenuInCurrentApp(menu: Menu): boolean;
|
66
65
|
/**
|
67
|
-
*
|
68
|
-
*
|
66
|
+
* 退订事件监听.
|
67
|
+
* @param event 事件名称.
|
68
|
+
* @param cb 回调函数.
|
69
69
|
*/
|
70
|
-
|
71
|
-
}
|
72
|
-
export declare type
|
73
|
-
export declare
|
70
|
+
removeEventListener(event: IKgAppSelectEvent, cb?: IKgAppSelectEventListener): void;
|
71
|
+
}
|
72
|
+
export declare type IUseKgAppSelectStore = StoreDefinition<'KgAppSelect', IUseKgAppSelectStoreState, IUseKgAppSelectStoreGetters, IUseKgAppSelectStoreActions>;
|
73
|
+
export declare type IKgAppSelectStore = ReturnType<IUseKgAppSelectStore>;
|
74
|
+
export declare const useKgAppSelectStore: IUseKgAppSelectStore;
|
@@ -1,38 +1,38 @@
|
|
1
|
-
import {
|
1
|
+
import { KG__VAR_BUTTON__COLOR, KG_BUTTON_TYPE } from '../../consts';
|
2
2
|
import './KgButton.Item.less';
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
4
4
|
kgButton: import("vue").PropType<import("../..").VarButton>;
|
5
|
-
|
6
|
-
|
7
|
-
kgPrimary: {
|
5
|
+
kgColor: import("vue").PropType<KG__VAR_BUTTON__COLOR | null>;
|
6
|
+
kgDisabled: {
|
8
7
|
type: import("vue").PropType<boolean | null | undefined>;
|
9
8
|
default: undefined;
|
10
9
|
};
|
11
10
|
kgIcon: import("vue").PropType<string | null>;
|
12
|
-
|
13
|
-
|
14
|
-
kgDisabled: {
|
11
|
+
kgLoading: import("vue").PropType<boolean>;
|
12
|
+
kgPrimary: {
|
15
13
|
type: import("vue").PropType<boolean | null | undefined>;
|
16
14
|
default: undefined;
|
17
15
|
};
|
18
|
-
|
16
|
+
kgText: import("vue").PropType<string | null>;
|
17
|
+
kgType: import("vue").PropType<KG_BUTTON_TYPE | null>;
|
18
|
+
kgVarName: import("vue").PropType<string | null>;
|
19
19
|
onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
|
20
20
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
21
21
|
kgButton: import("vue").PropType<import("../..").VarButton>;
|
22
|
-
|
23
|
-
|
24
|
-
kgPrimary: {
|
22
|
+
kgColor: import("vue").PropType<KG__VAR_BUTTON__COLOR | null>;
|
23
|
+
kgDisabled: {
|
25
24
|
type: import("vue").PropType<boolean | null | undefined>;
|
26
25
|
default: undefined;
|
27
26
|
};
|
28
27
|
kgIcon: import("vue").PropType<string | null>;
|
29
|
-
|
30
|
-
|
31
|
-
kgDisabled: {
|
28
|
+
kgLoading: import("vue").PropType<boolean>;
|
29
|
+
kgPrimary: {
|
32
30
|
type: import("vue").PropType<boolean | null | undefined>;
|
33
31
|
default: undefined;
|
34
32
|
};
|
35
|
-
|
33
|
+
kgText: import("vue").PropType<string | null>;
|
34
|
+
kgType: import("vue").PropType<KG_BUTTON_TYPE | null>;
|
35
|
+
kgVarName: import("vue").PropType<string | null>;
|
36
36
|
onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
|
37
37
|
}>>, {
|
38
38
|
kgDisabled: boolean | null | undefined;
|
@@ -1,31 +1,31 @@
|
|
1
1
|
import { ExtractPropTypes, PropType } from 'vue';
|
2
2
|
import { VarButton } from '../../apis/WMS/models';
|
3
|
-
import {
|
3
|
+
import { KG__VAR_BUTTON__COLOR, KG_BUTTON_TYPE } from '../../consts';
|
4
4
|
export declare const getProps: () => {
|
5
5
|
/** 按钮. */
|
6
6
|
kgButton: PropType<VarButton>;
|
7
|
-
/** 变量名称. */
|
8
|
-
kgVarName: PropType<string | null>;
|
9
|
-
/** 按钮类型. */
|
10
|
-
kgType: PropType<KG_BUTTON_TYPE | null>;
|
11
|
-
/** 是否使用主要按钮样式. */
|
12
|
-
kgPrimary: {
|
13
|
-
type: PropType<boolean | null | undefined>;
|
14
|
-
default: undefined;
|
15
|
-
};
|
16
|
-
/** 图标. */
|
17
|
-
kgIcon: PropType<string | null>;
|
18
|
-
/** 文本. */
|
19
|
-
kgText: PropType<string | null>;
|
20
7
|
/** 颜色. */
|
21
|
-
kgColor: PropType<
|
8
|
+
kgColor: PropType<KG__VAR_BUTTON__COLOR | null>;
|
22
9
|
/** 是否禁用. */
|
23
10
|
kgDisabled: {
|
24
11
|
type: PropType<boolean | null | undefined>;
|
25
12
|
default: undefined;
|
26
13
|
};
|
14
|
+
/** 图标. */
|
15
|
+
kgIcon: PropType<string | null>;
|
27
16
|
/** 是否正在加载. */
|
28
17
|
kgLoading: PropType<boolean>;
|
18
|
+
/** 是否使用主要按钮样式. */
|
19
|
+
kgPrimary: {
|
20
|
+
type: PropType<boolean | null | undefined>;
|
21
|
+
default: undefined;
|
22
|
+
};
|
23
|
+
/** 文本. */
|
24
|
+
kgText: PropType<string | null>;
|
25
|
+
/** 按钮类型. */
|
26
|
+
kgType: PropType<KG_BUTTON_TYPE | null>;
|
27
|
+
/** 变量名称. */
|
28
|
+
kgVarName: PropType<string | null>;
|
29
29
|
onKgClick: PropType<(args?: any) => Promise<boolean>>;
|
30
30
|
};
|
31
31
|
export declare type IKgButtonItemProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
@@ -3,32 +3,38 @@ import { VarButton } from '../../apis/WMS/models';
|
|
3
3
|
import './KgButton.less';
|
4
4
|
export declare const getProps: () => {
|
5
5
|
/**
|
6
|
-
*
|
6
|
+
* <p>按钮是否处于加载状态.</p>
|
7
|
+
* <p>返回 true 表示处于加载状态.</p>
|
7
8
|
*/
|
8
|
-
|
9
|
+
KgLoading: PropType<(button: VarButton) => boolean | undefined>;
|
9
10
|
/**
|
10
|
-
*
|
11
|
+
* <p>按钮是否禁用.</p>
|
12
|
+
* <p>返回 true 表示禁用. 返回 undefined 表示由组件决定是否禁用.</p>
|
11
13
|
*/
|
12
|
-
|
14
|
+
kgDisabled: PropType<(button: VarButton) => boolean | undefined>;
|
13
15
|
};
|
14
16
|
export declare type IKgButtonProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
15
17
|
declare const _default: import("vue").DefineComponent<{
|
16
18
|
/**
|
17
|
-
*
|
18
|
-
|
19
|
-
kgDisabled: PropType<(button: VarButton) => boolean | undefined>;
|
20
|
-
/**
|
21
|
-
* 按钮是否处于加载状态. 返回 true 表示处于加载状态.
|
19
|
+
* <p>按钮是否处于加载状态.</p>
|
20
|
+
* <p>返回 true 表示处于加载状态.</p>
|
22
21
|
*/
|
23
22
|
KgLoading: PropType<(button: VarButton) => boolean | undefined>;
|
24
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
25
23
|
/**
|
26
|
-
*
|
24
|
+
* <p>按钮是否禁用.</p>
|
25
|
+
* <p>返回 true 表示禁用. 返回 undefined 表示由组件决定是否禁用.</p>
|
27
26
|
*/
|
28
27
|
kgDisabled: PropType<(button: VarButton) => boolean | undefined>;
|
28
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
29
29
|
/**
|
30
|
-
*
|
30
|
+
* <p>按钮是否处于加载状态.</p>
|
31
|
+
* <p>返回 true 表示处于加载状态.</p>
|
31
32
|
*/
|
32
33
|
KgLoading: PropType<(button: VarButton) => boolean | undefined>;
|
34
|
+
/**
|
35
|
+
* <p>按钮是否禁用.</p>
|
36
|
+
* <p>返回 true 表示禁用. 返回 undefined 表示由组件决定是否禁用.</p>
|
37
|
+
*/
|
38
|
+
kgDisabled: PropType<(button: VarButton) => boolean | undefined>;
|
33
39
|
}>>, {}>;
|
34
40
|
export default _default;
|
@@ -1,37 +1,37 @@
|
|
1
1
|
import { KG_BUTTON_TYPE } from '../../../consts';
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
3
3
|
kgButton: import("vue").PropType<import("../../..").VarButton>;
|
4
|
-
|
5
|
-
|
6
|
-
kgPrimary: {
|
4
|
+
kgColor: import("vue").PropType<import("../../../consts").KG__VAR_BUTTON__COLOR | null>;
|
5
|
+
kgDisabled: {
|
7
6
|
type: import("vue").PropType<boolean | null | undefined>;
|
8
7
|
default: undefined;
|
9
8
|
};
|
10
9
|
kgIcon: import("vue").PropType<string | null>;
|
11
|
-
|
12
|
-
|
13
|
-
kgDisabled: {
|
10
|
+
kgLoading: import("vue").PropType<boolean>;
|
11
|
+
kgPrimary: {
|
14
12
|
type: import("vue").PropType<boolean | null | undefined>;
|
15
13
|
default: undefined;
|
16
14
|
};
|
17
|
-
|
15
|
+
kgText: import("vue").PropType<string | null>;
|
16
|
+
kgType: import("vue").PropType<KG_BUTTON_TYPE | null>;
|
17
|
+
kgVarName: import("vue").PropType<string | null>;
|
18
18
|
onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
|
19
19
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
20
20
|
kgButton: import("vue").PropType<import("../../..").VarButton>;
|
21
|
-
|
22
|
-
|
23
|
-
kgPrimary: {
|
21
|
+
kgColor: import("vue").PropType<import("../../../consts").KG__VAR_BUTTON__COLOR | null>;
|
22
|
+
kgDisabled: {
|
24
23
|
type: import("vue").PropType<boolean | null | undefined>;
|
25
24
|
default: undefined;
|
26
25
|
};
|
27
26
|
kgIcon: import("vue").PropType<string | null>;
|
28
|
-
|
29
|
-
|
30
|
-
kgDisabled: {
|
27
|
+
kgLoading: import("vue").PropType<boolean>;
|
28
|
+
kgPrimary: {
|
31
29
|
type: import("vue").PropType<boolean | null | undefined>;
|
32
30
|
default: undefined;
|
33
31
|
};
|
34
|
-
|
32
|
+
kgText: import("vue").PropType<string | null>;
|
33
|
+
kgType: import("vue").PropType<KG_BUTTON_TYPE | null>;
|
34
|
+
kgVarName: import("vue").PropType<string | null>;
|
35
35
|
onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
|
36
36
|
}>>, {
|
37
37
|
kgDisabled: boolean | null | undefined;
|
@@ -1,37 +1,37 @@
|
|
1
1
|
import { KG_BUTTON_TYPE } from '../../../consts';
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
3
3
|
kgButton: import("vue").PropType<import("../../..").VarButton>;
|
4
|
-
|
5
|
-
|
6
|
-
kgPrimary: {
|
4
|
+
kgColor: import("vue").PropType<import("../../../consts").KG__VAR_BUTTON__COLOR | null>;
|
5
|
+
kgDisabled: {
|
7
6
|
type: import("vue").PropType<boolean | null | undefined>;
|
8
7
|
default: undefined;
|
9
8
|
};
|
10
9
|
kgIcon: import("vue").PropType<string | null>;
|
11
|
-
|
12
|
-
|
13
|
-
kgDisabled: {
|
10
|
+
kgLoading: import("vue").PropType<boolean>;
|
11
|
+
kgPrimary: {
|
14
12
|
type: import("vue").PropType<boolean | null | undefined>;
|
15
13
|
default: undefined;
|
16
14
|
};
|
17
|
-
|
15
|
+
kgText: import("vue").PropType<string | null>;
|
16
|
+
kgType: import("vue").PropType<KG_BUTTON_TYPE | null>;
|
17
|
+
kgVarName: import("vue").PropType<string | null>;
|
18
18
|
onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
|
19
19
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
20
20
|
kgButton: import("vue").PropType<import("../../..").VarButton>;
|
21
|
-
|
22
|
-
|
23
|
-
kgPrimary: {
|
21
|
+
kgColor: import("vue").PropType<import("../../../consts").KG__VAR_BUTTON__COLOR | null>;
|
22
|
+
kgDisabled: {
|
24
23
|
type: import("vue").PropType<boolean | null | undefined>;
|
25
24
|
default: undefined;
|
26
25
|
};
|
27
26
|
kgIcon: import("vue").PropType<string | null>;
|
28
|
-
|
29
|
-
|
30
|
-
kgDisabled: {
|
27
|
+
kgLoading: import("vue").PropType<boolean>;
|
28
|
+
kgPrimary: {
|
31
29
|
type: import("vue").PropType<boolean | null | undefined>;
|
32
30
|
default: undefined;
|
33
31
|
};
|
34
|
-
|
32
|
+
kgText: import("vue").PropType<string | null>;
|
33
|
+
kgType: import("vue").PropType<KG_BUTTON_TYPE | null>;
|
34
|
+
kgVarName: import("vue").PropType<string | null>;
|
35
35
|
onKgClick: import("vue").PropType<(args?: any) => Promise<boolean>>;
|
36
36
|
}>>, {
|
37
37
|
kgDisabled: boolean | null | undefined;
|