@kengic/vue 0.30.1-beta.3 → 0.30.1-beta.31
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/CHANGELOG.md +1 -1
- package/dist/align-left-outlined.579b01c6.mjs +8 -0
- package/dist/caret-down-outlined.c0564a3f.mjs +8 -0
- package/dist/caret-left-outlined.35b1d7d1.mjs +8 -0
- package/dist/caret-up-outlined.81b559ad.mjs +8 -0
- package/dist/check-box-outline-blank.d01a2055.mjs +8 -0
- package/dist/collapse-all-rounded.26ee73fc.mjs +8 -0
- package/dist/double-right-outlined.f057a6b2.mjs +8 -0
- package/dist/expand-all-rounded.e01e6cb9.mjs +8 -0
- package/dist/eye-invisible-outlined.5f8d6151.mjs +8 -0
- package/dist/holder-outlined.9e698750.mjs +8 -0
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +171350 -127577
- package/dist/loading-outlined.13a15197.mjs +8 -0
- package/dist/more-outlined.8e1202ac.mjs +8 -0
- package/dist/palette-swatch-variant.f7258843.mjs +8 -0
- package/dist/partition-outlined.1bcf4f37.mjs +8 -0
- package/dist/profile-outlined.1059fb0d.mjs +8 -0
- package/dist/project/build/utils.ts +20 -15
- package/dist/src/api/WMS/Controllers/DescriptionController/List.d.ts +2 -2
- package/dist/src/api/WMS/Controllers/DescriptionController/ListByCodeNamesAndCodeValues.d.ts +2 -2
- package/dist/src/api/WMS/Controllers/SqlClientController/Execute.d.ts +2 -2
- package/dist/src/api/WMS/Controllers/SqlClientController/ExecutePage.d.ts +2 -2
- package/dist/src/api/WMS/Controllers/SysPermissionController/List.d.ts +2 -2
- package/dist/src/api/WMS/Controllers/VarConfigDescriptionController/Add.d.ts +3 -3
- package/dist/src/api/WMS/Controllers/VarConfigDescriptionController/ListByFormId.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarConfigDescriptionController/index.d.ts +1 -0
- package/dist/src/api/WMS/Controllers/VarConfigPossibilityController/ExecuteQuery.d.ts +2 -2
- package/dist/src/api/WMS/Controllers/VarController/GetAll.d.ts +2 -2
- package/dist/src/api/WMS/Controllers/VarDdaController/Create.d.ts +2 -2
- package/dist/src/api/WMS/Controllers/VarDdaController/GetResultSetMetadataFromSql.d.ts +2 -2
- package/dist/src/api/WMS/Controllers/VarDdaController/ValidateCopySql.d.ts +2 -2
- package/dist/src/api/WMS/Controllers/VarDdaController/ValidateCreateSql.d.ts +2 -2
- package/dist/src/api/WMS/Controllers/VarDdaController/ValidateDeleteSql.d.ts +2 -2
- package/dist/src/api/WMS/Controllers/VarDdaController/ValidateFrmId.d.ts +2 -2
- package/dist/src/api/WMS/Controllers/VarDdaController/ValidateSearchSql.d.ts +2 -2
- package/dist/src/api/WMS/Controllers/VarDdaController/ValidateUpdateSql.d.ts +2 -2
- package/dist/src/api/WMS/Controllers/VarDdaController/ValidateVarButtonVarName.d.ts +2 -2
- package/dist/src/api/WMS/Controllers/VarGridMasterController/QueryByID.d.ts +2 -2
- package/dist/src/api/WMS/Controllers/VarGridMasterController/Update.d.ts +2 -2
- package/dist/src/api/WMS/Controllers/VarProfileMasterController/QueryByID.d.ts +2 -2
- package/dist/src/api/WMS/Controllers/VarVariableController/Delete.d.ts +2 -2
- package/dist/src/api/WMS/Controllers/WarehouseController/ListVO.d.ts +25 -0
- package/dist/src/api/WMS/Controllers/WorkstationController/List.d.ts +2 -2
- package/dist/src/api/WMS/Controllers/index.d.ts +1 -1
- package/dist/src/api/WMS/models.d.ts +11 -5
- package/dist/src/component/KgCanvas/KgCanvas.ContextMenu.d.ts +1 -2
- package/dist/src/component/KgCanvas/KgCanvas.event.d.ts +26 -5
- package/dist/src/component/KgCanvas/KgCanvas.hooks.d.ts +21 -5
- package/dist/src/component/KgCanvas/KgCanvas.model.d.ts +1 -33
- package/dist/src/component/KgCanvas/KgCanvas.service.d.ts +4 -4
- package/dist/src/component/KgCanvas/KgCanvas.store.d.ts +4 -1
- package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.AreaSelect.d.ts +5 -0
- package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Canvas.d.ts +5 -0
- package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Legend.d.ts +5 -0
- package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Offline.d.ts +5 -0
- package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Setting.d.ts +5 -0
- package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Tab.Log.d.ts +5 -0
- package/dist/src/{page/KgCircleVis/components/KgCircleVis.Tab.Rgv.d.ts → component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Tab.Rgv.d.ts} +5 -5
- package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.d.ts +5 -0
- package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.hooks.d.ts +29 -0
- package/dist/src/{page/KgCircleVis/components/KgCircleVis.model.d.ts → component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.model.d.ts} +1 -1
- package/dist/src/{page/KgCircleVis/components/KgCircleVis.store.d.ts → component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.store.d.ts} +41 -41
- package/dist/src/component/KgCircularShuttleMonitor/index.d.ts +3 -0
- package/dist/src/component/KgForm/KgForm.d.ts +3 -3
- package/dist/src/component/KgForm/index.d.ts +4 -4
- package/dist/src/component/KgForm.Item/KgForm.Item.d.ts +35 -35
- package/dist/src/component/KgForm.Item/KgForm.Item.model.d.ts +31 -33
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +34 -34
- package/dist/src/component/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +38 -36
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Date.d.ts +34 -34
- package/dist/src/component/KgForm.Item/components/KgForm.Item.DateRange.d.ts +34 -34
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Image.d.ts +34 -34
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Input.d.ts +34 -34
- package/dist/src/component/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +34 -34
- package/dist/src/component/KgForm.Item/components/KgForm.Item.InputPassword.d.ts +34 -34
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Link.d.ts +34 -34
- package/dist/src/component/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +34 -36
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Select.d.ts +35 -35
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Switch.d.ts +34 -34
- package/dist/src/component/KgForm.Item/components/KgForm.Item.TextArea.d.ts +34 -34
- package/dist/src/component/KgLayoutHeader/{components/KgLayoutHeaderLocale.d.ts → KgLayoutHeader.Locale.d.ts} +1 -1
- package/dist/src/component/KgLayoutHeader/index.d.ts +1 -1
- package/dist/src/component/KgModal/KgModal.d.ts +18 -18
- package/dist/src/component/KgModal/{hooks/useDragToResize.d.ts → KgModal.service.d.ts} +13 -2
- package/dist/src/component/KgModal02/KgModal02.d.ts +591 -0
- package/dist/src/component/KgModal02/KgModal02.model.d.ts +1 -0
- package/dist/src/component/KgModal02/index.d.ts +1 -0
- package/dist/src/component/KgResizable/KgResizable.d.ts +4 -4
- package/dist/src/component/KgSimulator/KgSimulator.Canvas.d.ts +11 -0
- package/dist/src/component/KgSimulator/KgSimulator.Canvas.service.d.ts +71 -0
- package/dist/src/component/KgSimulator/KgSimulator.Menu.Scene.Create.CircularConveyor.d.ts +36 -0
- package/dist/src/component/KgSimulator/KgSimulator.Menu.Scene.Open.CircularConveyor.d.ts +36 -0
- package/dist/src/component/KgSimulator/KgSimulator.Menu.d.ts +4 -0
- package/dist/src/component/KgSimulator/KgSimulator.Panel.Prefab.d.ts +4 -0
- package/dist/src/component/KgSimulator/KgSimulator.Panel.Property.d.ts +4 -0
- package/dist/src/{page/KgCircleVis/components/KgCircleVis.AreaSelect.d.ts → component/KgSimulator/KgSimulator.Panel.Scene.d.ts} +2 -3
- package/dist/src/component/KgSimulator/KgSimulator.Panel.d.ts +92 -0
- package/dist/src/component/KgSimulator/KgSimulator.Prefab.d.ts +108 -0
- package/dist/src/component/KgSimulator/KgSimulator.Title.d.ts +11 -0
- package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Prefab.d.ts +9 -0
- package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Property.d.ts +9 -0
- package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Scene.d.ts +9 -0
- package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.d.ts +113 -0
- package/dist/src/component/KgSimulator/KgSimulator.d.ts +33 -0
- package/dist/src/component/KgSimulator/KgSimulator.event.d.ts +63 -0
- package/dist/src/component/KgSimulator/KgSimulator.hooks.d.ts +68 -0
- package/dist/src/component/KgSimulator/KgSimulator.icons.d.ts +10 -0
- package/dist/src/component/KgSimulator/KgSimulator.model.d.ts +517 -0
- package/dist/src/component/KgSimulator/KgSimulator.store.d.ts +172 -0
- package/dist/src/component/KgSimulator/index.d.ts +3 -0
- package/dist/src/component/KgSubmit/KgSubmit.event.d.ts +14 -9
- package/dist/src/component/KgSubmit/KgSubmit.hooks.d.ts +46 -14
- package/dist/src/component/KgSubmit/KgSubmit.store.d.ts +46 -0
- package/dist/src/component/KgTable/{components/KgTable.BodyCell.d.ts → KgTable.BodyCell.d.ts} +1 -1
- package/dist/src/component/KgTable/{components/KgTable.HeaderCell.d.ts → KgTable.HeadCell.d.ts} +1 -1
- package/dist/src/component/KgTable/{components/setting/KgTable.Setting.service.d.ts → KgTable.Setting.service.d.ts} +1 -1
- package/dist/src/component/KgTable/KgTable.model.d.ts +0 -2
- package/dist/src/component/KgTable02/KgTable02.BodyCell.d.ts +72 -0
- package/dist/src/component/KgTable02/KgTable02.event.d.ts +13 -3
- package/dist/src/component/KgTable02/KgTable02.hooks.d.ts +9 -0
- package/dist/src/component/KgVar/{KgVarFactory.d.ts → KgVar.Factory.d.ts} +9 -0
- package/dist/src/component/KgVar/KgVar.d.ts +23 -17
- package/dist/src/component/KgVar/KgVar.event.d.ts +19 -6
- package/dist/src/component/KgVar/KgVar.hooks.d.ts +20 -7
- package/dist/src/component/KgVar/KgVar.model.d.ts +0 -5
- package/dist/src/component/KgVar/index.d.ts +1 -1
- package/dist/src/component/KgVarConfig/KgVarConfig.model.d.ts +0 -3
- package/dist/src/component/KgWarehouse/KgWarehouse.hooks.d.ts +2 -2
- package/dist/src/component/KgWarehouse/KgWarehouse.store.d.ts +4 -4
- package/dist/src/component/index.d.ts +3 -0
- package/dist/src/config/config.store.d.ts +15 -3
- package/dist/src/config/index.d.ts +9 -3
- package/dist/src/const/const.model.d.ts +533 -5
- package/dist/src/const/form-id.const.d.ts +22 -10
- package/dist/src/const/index.d.ts +0 -1
- package/dist/src/i18n/cs_CZ.d.ts +1 -1
- package/dist/src/i18n/en.d.ts +1 -1
- package/dist/src/i18n/es_ES.d.ts +1 -1
- package/dist/src/i18n/fr_FR.d.ts +1 -1
- package/dist/src/i18n/i18n.setup.d.ts +1 -1
- package/dist/src/i18n/km_KH.d.ts +1 -1
- package/dist/src/i18n/ko_KR.d.ts +1 -1
- package/dist/src/i18n/vi_VN.d.ts +1 -1
- package/dist/src/i18n/zh_CN.d.ts +1 -1
- package/dist/src/page/{KgCircleVis/KgPageCircleVis.d.ts → KgPageCircularShuttleMonitor/KgPageCircularShuttleMonitor.d.ts} +1 -1
- package/dist/src/page/KgPageCircularShuttleMonitor/index.d.ts +1 -0
- package/dist/src/page/KgPageDda/KgPageDda.d.ts +1 -1
- package/dist/src/page/KgPageDda/components/KgPageDda.Create.store.d.ts +3 -3
- package/dist/src/page/index.d.ts +2 -2
- package/dist/src/project/src/utils/env.d.ts +0 -16
- package/dist/src/service/http-client.d.ts +5 -1
- package/dist/src/util/ant-design-vue.d.ts +1 -1
- package/dist/src/util/tsx.helper.d.ts +7 -7
- package/package.json +9 -7
- package/dist/src/api/WMS/Controllers/WhController/ListVO.d.ts +0 -54
- package/dist/src/component/KgForm/KgForm.model.d.ts +0 -9
- package/dist/src/component/KgModal/hooks/useDragToMove.d.ts +0 -12
- package/dist/src/const/injection-keys.const.d.ts +0 -11
- package/dist/src/page/KgCircleVis/components/KgCircleVis.Canvas.d.ts +0 -5
- package/dist/src/page/KgCircleVis/components/KgCircleVis.Legend.d.ts +0 -5
- package/dist/src/page/KgCircleVis/components/KgCircleVis.Offline.d.ts +0 -5
- package/dist/src/page/KgCircleVis/components/KgCircleVis.Setting.d.ts +0 -5
- package/dist/src/page/KgCircleVis/components/KgCircleVis.Tab.Log.d.ts +0 -5
- package/dist/src/page/KgCircleVis/components/KgCircleVis.d.ts +0 -5
- package/dist/src/page/KgCircleVis/components/KgCircleVis.hooks.d.ts +0 -29
- package/dist/src/page/KgCircleVis/index.d.ts +0 -1
- /package/dist/src/api/WMS/Controllers/{WhController → WarehouseController}/index.d.ts +0 -0
- /package/dist/src/{page/KgCircleVis/components/KgCircleVis.Canvas.service.d.ts → component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Canvas.service.d.ts} +0 -0
- /package/dist/src/component/KgTable/{components/KgTable.Info.d.ts → KgTable.Info.d.ts} +0 -0
- /package/dist/src/component/KgTable/{components/setting/KgTable.Setting.VarGridMaster.SaveAs.d.ts → KgTable.Setting.VarGridMaster.SaveAs.d.ts} +0 -0
- /package/dist/src/component/KgTable/{components/setting/KgTable.Setting.d.ts → KgTable.Setting.d.ts} +0 -0
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { Q } from '@thymine/xunee';
|
|
2
|
+
import { KgStoreDefinition } from '../../const';
|
|
3
|
+
import { IToolbarPlacement, Scene } from './KgSimulator.model';
|
|
4
|
+
export interface IKgSimulatorStoreGetters {
|
|
5
|
+
/**
|
|
6
|
+
* 环形输送线--当前场景.
|
|
7
|
+
*/
|
|
8
|
+
$circularConveyor$currentScene: Scene | null;
|
|
9
|
+
/**
|
|
10
|
+
* 环形输送线--当前场景--是否已经保存.
|
|
11
|
+
*/
|
|
12
|
+
$circularConveyor$currentScene$isSave: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* 环形输送线--当前场景--是否正在保存.
|
|
15
|
+
*/
|
|
16
|
+
$circularConveyor$currentScene$isSaving: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* 环形穿梭车--当前场景.
|
|
19
|
+
*/
|
|
20
|
+
$circularShuttle$currentScene: any | null;
|
|
21
|
+
/**
|
|
22
|
+
* 环形穿梭车--当前场景--是否已经保存.
|
|
23
|
+
*/
|
|
24
|
+
$circularShuttle$currentScene$isSave: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* 环形穿梭车--当前场景--是否正在保存.
|
|
27
|
+
*/
|
|
28
|
+
$circularShuttle$currentScene$isSaving: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* 配置--环形输送线--接口地址--创建场景.
|
|
31
|
+
*
|
|
32
|
+
* @default '/Scene/CreateScene'
|
|
33
|
+
*/
|
|
34
|
+
$config$circularConveyor$api$createScene: string;
|
|
35
|
+
/**
|
|
36
|
+
* 配置--环形输送线--接口地址--查询场景列表.
|
|
37
|
+
*
|
|
38
|
+
* @default '/Scene/GetScenes'
|
|
39
|
+
*/
|
|
40
|
+
$config$circularConveyor$api$requestSceneList: string;
|
|
41
|
+
/**
|
|
42
|
+
* 配置--环形输送线--接口地址--更新场景.
|
|
43
|
+
*
|
|
44
|
+
* @default '/Scene/SaveScene'
|
|
45
|
+
*/
|
|
46
|
+
$config$circularConveyor$api$updateScene: string;
|
|
47
|
+
/**
|
|
48
|
+
* 配置--环境--是否是环形输送线.
|
|
49
|
+
*
|
|
50
|
+
* @default true
|
|
51
|
+
*/
|
|
52
|
+
$config$env$isCircularConveyor: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* 配置--环境--是否是环形穿梭车.
|
|
55
|
+
*
|
|
56
|
+
* @default false
|
|
57
|
+
*/
|
|
58
|
+
$config$env$isCircularShuttle: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* 配置--模式--是否是编辑模式.
|
|
61
|
+
*
|
|
62
|
+
* @default true
|
|
63
|
+
*/
|
|
64
|
+
$config$mode$isEdit: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* 配置--模式--是否是仿真模式.
|
|
67
|
+
*
|
|
68
|
+
* @default false
|
|
69
|
+
*/
|
|
70
|
+
$config$mode$isSimulate: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* 配置--工具栏--预制组件--是否打开.
|
|
73
|
+
*
|
|
74
|
+
* @default true
|
|
75
|
+
*/
|
|
76
|
+
$config$toolbar$prefab$isOpen: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* 配置--工具栏--预制组件--是否显示.
|
|
79
|
+
*
|
|
80
|
+
* @default true
|
|
81
|
+
*/
|
|
82
|
+
$config$toolbar$prefab$isVisible: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* 配置--工具栏--预制组件--位置.
|
|
85
|
+
*
|
|
86
|
+
* @default 'LEFT_TOP'
|
|
87
|
+
*/
|
|
88
|
+
$config$toolbar$prefab$placement: IToolbarPlacement;
|
|
89
|
+
/**
|
|
90
|
+
* 配置--工具栏--属性--是否打开.
|
|
91
|
+
*
|
|
92
|
+
* @default true
|
|
93
|
+
*/
|
|
94
|
+
$config$toolbar$property$isOpen: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* 配置--工具栏--属性--是否显示.
|
|
97
|
+
*
|
|
98
|
+
* @default true
|
|
99
|
+
*/
|
|
100
|
+
$config$toolbar$property$isVisible: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* 配置--工具栏--属性--位置.
|
|
103
|
+
*
|
|
104
|
+
* @default 'RIGHT_TOP'
|
|
105
|
+
*/
|
|
106
|
+
$config$toolbar$property$placement: IToolbarPlacement;
|
|
107
|
+
/**
|
|
108
|
+
* 配置--工具栏--场景--是否打开.
|
|
109
|
+
*
|
|
110
|
+
* @default true
|
|
111
|
+
*/
|
|
112
|
+
$config$toolbar$scene$isOpen: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* 配置--工具栏--场景--是否显示.
|
|
115
|
+
*
|
|
116
|
+
* @default true
|
|
117
|
+
*/
|
|
118
|
+
$config$toolbar$scene$isVisible: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* 配置--工具栏--场景--位置.
|
|
121
|
+
*
|
|
122
|
+
* @default 'LEFT_TOP'
|
|
123
|
+
*/
|
|
124
|
+
$config$toolbar$scene$placement: IToolbarPlacement;
|
|
125
|
+
}
|
|
126
|
+
export interface IKgSimulatorStoreActions {
|
|
127
|
+
get$graph(): Q.Graph | null;
|
|
128
|
+
/**
|
|
129
|
+
* 保存场景.
|
|
130
|
+
*/
|
|
131
|
+
saveScene(): Promise<void>;
|
|
132
|
+
set$circularConveyor$currentScene(value: Scene | null | undefined): void;
|
|
133
|
+
set$circularConveyor$currentScene$isSave(value: boolean | null | undefined): void;
|
|
134
|
+
set$circularConveyor$currentScene$isSaving(value: boolean | null | undefined): void;
|
|
135
|
+
set$circularShuttle$currentScene(value: any | null | undefined): void;
|
|
136
|
+
set$circularShuttle$currentScene$isSave(value: boolean | null | undefined): void;
|
|
137
|
+
set$circularShuttle$currentScene$isSaving(value: boolean | null | undefined): void;
|
|
138
|
+
set$config$circularConveyor$api$createScene(value: string | null | undefined): void;
|
|
139
|
+
set$config$circularConveyor$api$requestSceneList(value: string | null | undefined): void;
|
|
140
|
+
set$config$circularConveyor$api$updateScene(value: string | null | undefined): void;
|
|
141
|
+
/**
|
|
142
|
+
* <p>设置环境.</p>
|
|
143
|
+
* <ul>
|
|
144
|
+
* <li>CIRCULAR_CONVEYOR: 环形输送线</li>
|
|
145
|
+
* <li>CIRCULAR_SHUTTLE: 环形穿梭车</li>
|
|
146
|
+
* </ul>
|
|
147
|
+
*
|
|
148
|
+
* @param value
|
|
149
|
+
*/
|
|
150
|
+
set$config$env(value: 'CIRCULAR_CONVEYOR' | 'CIRCULAR_SHUTTLE' | null | undefined): void;
|
|
151
|
+
/**
|
|
152
|
+
* <p>设置模式. 默认为编辑模式.</p>
|
|
153
|
+
* <ul>
|
|
154
|
+
* <li>EDIT: 编辑</li>
|
|
155
|
+
* <li>SIMULATE: 仿真</li>
|
|
156
|
+
* </ul>
|
|
157
|
+
*
|
|
158
|
+
* @param value
|
|
159
|
+
*/
|
|
160
|
+
set$config$mode(value: 'EDIT' | 'SIMULATE' | null | undefined): void;
|
|
161
|
+
set$config$toolbar$prefab$isOpen(value: boolean | null | undefined): void;
|
|
162
|
+
set$config$toolbar$prefab$isVisible(value: boolean | null | undefined): void;
|
|
163
|
+
set$config$toolbar$prefab$placement(value: IToolbarPlacement | null | undefined): void;
|
|
164
|
+
set$config$toolbar$property$isOpen(value: boolean | null | undefined): void;
|
|
165
|
+
set$config$toolbar$property$isVisible(value: boolean | null | undefined): void;
|
|
166
|
+
set$config$toolbar$property$placement(value: IToolbarPlacement | null | undefined): void;
|
|
167
|
+
set$config$toolbar$scene$isOpen(value: boolean | null | undefined): void;
|
|
168
|
+
set$config$toolbar$scene$isVisible(value: boolean | null | undefined): void;
|
|
169
|
+
set$config$toolbar$scene$placement(value: IToolbarPlacement | null | undefined): void;
|
|
170
|
+
set$graph(value: Q.Graph | null | undefined): void;
|
|
171
|
+
}
|
|
172
|
+
export declare function buildKgSimulatorStore(id: string | null | undefined): KgStoreDefinition<IKgSimulatorStoreGetters, IKgSimulatorStoreActions>;
|
|
@@ -5,7 +5,7 @@ import { IKgTableRow } from '../KgTable';
|
|
|
5
5
|
/**
|
|
6
6
|
* 事件类型.
|
|
7
7
|
*/
|
|
8
|
-
export declare type IKgSubmitEvent = 'onBeforeOpen' | 'onOpen' | 'onBeforeOk' | 'onAfterValidate' | 'onBeforeRequest' | 'onOk' | 'onBeforeCancel' | 'onCancel' | 'onError' | 'onClose' | 'onOkButtonClick' | 'onCancelButtonClick';
|
|
8
|
+
export declare type IKgSubmitEvent = 'onBeforeOpen' | 'onOpen' | 'onBeforeOk' | 'onAfterValidate' | 'onBeforeRequest' | 'onOk' | 'onBeforeCancel' | 'onCancel' | 'onError' | 'onClose' | 'onOkButtonClick' | 'onCancelButtonClick' | 'onAfterSetFormModel';
|
|
9
9
|
export declare type IKgSubmitOnBeforeOpenEventListenerParameter = {
|
|
10
10
|
isCreating: boolean | null;
|
|
11
11
|
isUpdating: boolean | null;
|
|
@@ -70,20 +70,22 @@ export declare type IKgSubmitOnBeforeRequestEventListenerParameter = {
|
|
|
70
70
|
};
|
|
71
71
|
export declare type IKgSubmitOnBeforeRequestEventListener = ((param: IKgSubmitOnBeforeRequestEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
72
72
|
export declare type IKgSubmitOnOkEventListenerParameter = {
|
|
73
|
-
/** @deprecated */
|
|
74
|
-
isCreating: boolean | null;
|
|
75
|
-
/** @deprecated */
|
|
76
|
-
isUpdating: boolean | null;
|
|
77
73
|
/** @deprecated */
|
|
78
74
|
isCopying: boolean | null;
|
|
79
75
|
/** @deprecated */
|
|
76
|
+
isCreating: boolean | null;
|
|
77
|
+
/** @deprecated */
|
|
80
78
|
isDeleting: boolean | null;
|
|
81
79
|
/** @deprecated */
|
|
82
|
-
|
|
80
|
+
isUpdating: boolean | null;
|
|
83
81
|
/** @deprecated */
|
|
84
82
|
model: Ref<Record<string, any>>;
|
|
85
|
-
/**
|
|
83
|
+
/**
|
|
84
|
+
* 接口返回结果.
|
|
85
|
+
*/
|
|
86
86
|
result: any | null;
|
|
87
|
+
/** @deprecated */
|
|
88
|
+
row: IKgTableRow | null;
|
|
87
89
|
};
|
|
88
90
|
export declare type IKgSubmitOnOkEventListener = ((param: IKgSubmitOnOkEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
89
91
|
export declare type IKgSubmitOnBeforeCancelEventListenerParameter = {};
|
|
@@ -98,9 +100,12 @@ export declare type IKgSubmitOnSubmitSaveEventListenerParameter = {};
|
|
|
98
100
|
export declare type IKgSubmitOnSubmitSaveEventListener = ((param: IKgSubmitOnSubmitSaveEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
99
101
|
export declare type IKgSubmitOnSubmitCancelEventListenerParameter = {};
|
|
100
102
|
export declare type IKgSubmitOnSubmitCancelEventListener = ((param: IKgSubmitOnSubmitCancelEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
101
|
-
export declare type
|
|
102
|
-
export declare type
|
|
103
|
+
export declare type IKgSubmitOnAfterSetFormModelEventListenerParameter = {};
|
|
104
|
+
export declare type IKgSubmitOnAfterSetFormModelEventListener = ((param: IKgSubmitOnAfterSetFormModelEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
105
|
+
export declare type IKgSubmitEventListenerParameter = IKgSubmitOnBeforeOpenEventListenerParameter | IKgSubmitOnOpenEventListenerParameter | IKgSubmitOnBeforeOkEventListenerParameter | IKgSubmitOnAfterValidateEventListenerParameter | IKgSubmitOnBeforeRequestEventListenerParameter | IKgSubmitOnOkEventListenerParameter | IKgSubmitOnBeforeCancelEventListenerParameter | IKgSubmitOnCancelEventListenerParameter | IKgSubmitOnErrorEventListenerParameter | IKgSubmitOnCloseEventListenerParameter | IKgSubmitOnSubmitSaveEventListenerParameter | IKgSubmitOnSubmitCancelEventListenerParameter | IKgSubmitOnAfterSetFormModelEventListenerParameter;
|
|
106
|
+
export declare type IKgSubmitEventListener = IKgSubmitOnBeforeOpenEventListener | IKgSubmitOnOpenEventListener | IKgSubmitOnBeforeOkEventListener | IKgSubmitOnAfterValidateEventListener | IKgSubmitOnBeforeRequestEventListener | IKgSubmitOnOkEventListener | IKgSubmitOnBeforeCancelEventListener | IKgSubmitOnCancelEventListener | IKgSubmitOnErrorEventListener | IKgSubmitOnCloseEventListener | IKgSubmitOnSubmitSaveEventListener | IKgSubmitOnSubmitCancelEventListener | IKgSubmitOnAfterSetFormModelEventListener;
|
|
103
107
|
export declare const eventListeners: Record<string, {
|
|
108
|
+
onAfterSetFormModel: Array<IKgSubmitOnAfterSetFormModelEventListener>;
|
|
104
109
|
onAfterValidate: Array<IKgSubmitOnAfterValidateEventListener>;
|
|
105
110
|
onBeforeCancel: Array<IKgSubmitOnBeforeCancelEventListener>;
|
|
106
111
|
onBeforeOk: Array<IKgSubmitOnBeforeOkEventListener>;
|
|
@@ -4,7 +4,7 @@ import { RuleObject } from 'ant-design-vue/es/form';
|
|
|
4
4
|
import { ComputedRef, Ref } from 'vue';
|
|
5
5
|
import { VarProfileDetail, VarSubmitConfig, VarSubmitDetail } from '../../api/WMS/models';
|
|
6
6
|
import { IKgVarSubmitConfigProperties, KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE, KG__VAR_SUBMIT_CONFIG__LABEL_COLUMN_UNIT, KG__VAR_SUBMIT_CONFIG__LAYOUT } from '../../const';
|
|
7
|
-
import { eventListeners, IKgSubmitOnAfterValidateEventListener, IKgSubmitOnBeforeCancelEventListener, IKgSubmitOnBeforeOkEventListener, IKgSubmitOnBeforeOpenEventListener, IKgSubmitOnBeforeRequestEventListener, IKgSubmitOnCancelEventListener, IKgSubmitOnCloseEventListener, IKgSubmitOnErrorEventListener, IKgSubmitOnOkEventListener, IKgSubmitOnOpenEventListener, IKgSubmitOnSubmitCancelEventListener, IKgSubmitOnSubmitSaveEventListener } from './KgSubmit.event';
|
|
7
|
+
import { eventListeners, IKgSubmitOnAfterSetFormModelEventListener, IKgSubmitOnAfterValidateEventListener, IKgSubmitOnBeforeCancelEventListener, IKgSubmitOnBeforeOkEventListener, IKgSubmitOnBeforeOpenEventListener, IKgSubmitOnBeforeRequestEventListener, IKgSubmitOnCancelEventListener, IKgSubmitOnCloseEventListener, IKgSubmitOnErrorEventListener, IKgSubmitOnOkEventListener, IKgSubmitOnOpenEventListener, IKgSubmitOnSubmitCancelEventListener, IKgSubmitOnSubmitSaveEventListener } from './KgSubmit.event';
|
|
8
8
|
import { useKgSubmitStore } from './KgSubmit.store';
|
|
9
9
|
export interface IUseKgSubmit {
|
|
10
10
|
/**
|
|
@@ -94,15 +94,15 @@ export interface IUseKgSubmit {
|
|
|
94
94
|
* <p>如果参数 {@link param} 不传或者 {@link param} === undefined, 表示获取「当前按钮」的「提交表单配置」.</p>
|
|
95
95
|
* </li>
|
|
96
96
|
* <li>
|
|
97
|
-
* <p>如果参数
|
|
97
|
+
* <p>如果参数 param.buttonVarName !== <code>undefined</code>, 则忽略参数 param.buttonType, 根据 param.buttonVarName 和 {@link VarSubmitConfig.button_var_name} 是否匹配进行过滤.</p>
|
|
98
98
|
* </li>
|
|
99
99
|
* <li>
|
|
100
|
-
* <p>如果参数
|
|
100
|
+
* <p>如果参数 param.buttonVarName === <code>undefined</code> && param.buttonType !== <code>undefined</code>, 则先根据参数 param.buttonType 获取按钮, 然后根据 VarButton.var_nam 和 {@link VarSubmitConfig.button_var_name} 是否匹配进行过滤.</p>
|
|
101
101
|
* </li>
|
|
102
102
|
* </ul>
|
|
103
103
|
*
|
|
104
|
-
* @param param.buttonType <p>按钮的类型, 对应的是
|
|
105
|
-
* @param param.buttonVarName <p>按钮的变量名称, 对应的是
|
|
104
|
+
* @param param.buttonType <p>按钮的类型, 对应的是 VarButton.typ 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
|
|
105
|
+
* @param param.buttonVarName <p>按钮的变量名称, 对应的是 VarButton.var_nam 属性.</p>
|
|
106
106
|
*/
|
|
107
107
|
getVarSubmitConfig(param?: {
|
|
108
108
|
buttonType?: string;
|
|
@@ -124,10 +124,10 @@ export interface IUseKgSubmit {
|
|
|
124
124
|
* <p>如果参数 {@link param} === null || {@link param} === undefined, 表示获取所有的提交表单字段.</p>
|
|
125
125
|
* </li>
|
|
126
126
|
* <li>
|
|
127
|
-
* <p>如果参数
|
|
127
|
+
* <p>如果参数 param.buttonVarName !== <code>undefined</code>, 则忽略参数 param.buttonType, 根据 param.buttonVarName 和 {@link VarSubmitDetail.button_var_name} 是否匹配进行过滤.</p>
|
|
128
128
|
* </li>
|
|
129
129
|
* <li>
|
|
130
|
-
* <p>如果参数
|
|
130
|
+
* <p>如果参数 param.buttonVarName === <code>undefined</code> && param.buttonType !== <code>undefined</code>, 则先根据参数 param.buttonType 获取按钮, 然后根据 VarButton.var_nam 和 {@link VarSubmitDetail.button_var_name} 是否匹配进行过滤.</p>
|
|
131
131
|
* </li>
|
|
132
132
|
* <li>
|
|
133
133
|
* <p>如果参数 {@link param.varName} !== <code>undefined</code> , 则根据 {@link param.varName} 和 {@link VarSubmitDetail.var_nam} 是否匹配进行过滤.</p>
|
|
@@ -143,8 +143,8 @@ export interface IUseKgSubmit {
|
|
|
143
143
|
* </li>
|
|
144
144
|
* </ul>
|
|
145
145
|
*
|
|
146
|
-
* @param param.buttonType <p>按钮的类型, 对应的是
|
|
147
|
-
* @param param.buttonVarName <p>按钮的变量名称, 对应的是
|
|
146
|
+
* @param param.buttonType <p>按钮的类型, 对应的是 VarButton.typ 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
|
|
147
|
+
* @param param.buttonVarName <p>按钮的变量名称, 对应的是 VarButton.var_nam 属性.</p>
|
|
148
148
|
* @param param.isKey 提交表单字段是否可见, 对应的是 {@link VarSubmitDetail.key_flg} 属性.
|
|
149
149
|
* @param param.isVisible 提交表单字段是否可见, 对应的是 {@link VarSubmitDetail.visible_flag} 属性.
|
|
150
150
|
* @param param.searchProfileVarName 提交表单字段的所属查询条件视图的变量名称, 对应的是 {@link VarSubmitDetail.prf_var_nam} 属性.
|
|
@@ -164,6 +164,13 @@ export interface IUseKgSubmit {
|
|
|
164
164
|
isLoading: ComputedRef<boolean>;
|
|
165
165
|
/** @deprecated 请使用 {@link formModel} */
|
|
166
166
|
model: ComputedRef<Record<string, any>>;
|
|
167
|
+
/**
|
|
168
|
+
* <p>监听事件: 表单对象设置完成.</p>
|
|
169
|
+
* @param listener 事件监听函数.
|
|
170
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
171
|
+
* @return {} 移除事件监听函数.
|
|
172
|
+
*/
|
|
173
|
+
onAfterSetFormModel(listener: IKgSubmitOnAfterSetFormModelEventListener, isOnce?: boolean): IRemoveEventListener;
|
|
167
174
|
/**
|
|
168
175
|
* <p>监听事件: 点击确认按钮之后, 表单验证完成.</p>
|
|
169
176
|
* <p>回调函数如果返回 true, 则不会再执行后面的代码.</p>
|
|
@@ -269,18 +276,18 @@ export interface IUseKgSubmit {
|
|
|
269
276
|
* <p>由于提交表单肯定是关联某个按钮的, 因此需要先确认是哪个按钮, 确认逻辑如下:</p>
|
|
270
277
|
* <ul>
|
|
271
278
|
* <li>
|
|
272
|
-
* <p>如果参数
|
|
279
|
+
* <p>如果参数 param.buttonVarName === <code>undefined</code> && param.buttonType === <code>undefined</code>, 表示修改的是「当前按钮」.</p>
|
|
273
280
|
* </li>
|
|
274
281
|
* <li>
|
|
275
|
-
* <p>如果参数
|
|
282
|
+
* <p>如果参数 param.buttonVarName !== <code>undefined</code>, 则忽略参数 param.buttonType, 根据 param.buttonVarName 和 VarButton.var_nam 是否匹配来确认按钮.</p>
|
|
276
283
|
* </li>
|
|
277
284
|
* <li>
|
|
278
|
-
* <p>如果参数
|
|
285
|
+
* <p>如果参数 param.buttonType !== <code>undefined</code> && param.buttonType !== <code>OTHER</code>, 根据 param.buttonType 和 VarButton.typ 是否匹配来确认按钮.</p>
|
|
279
286
|
* </li>
|
|
280
287
|
* </ul>
|
|
281
288
|
*
|
|
282
|
-
* @param param.buttonType <p>按钮的类型, 对应的是
|
|
283
|
-
* @param param.buttonVarName <p>按钮的变量名称, 对应的是
|
|
289
|
+
* @param param.buttonType <p>按钮的类型, 对应的是 VarButton.typ 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
|
|
290
|
+
* @param param.buttonVarName <p>按钮的变量名称, 对应的是 VarButton.var_nam 属性.</p>
|
|
284
291
|
* @param param.properties 要修改的部分属性.
|
|
285
292
|
* @param param.varName 「提交表单字段」的变量名称, 对应的是 {@link VarSubmitDetail.var_nam} 属性.
|
|
286
293
|
*/
|
|
@@ -290,6 +297,31 @@ export interface IUseKgSubmit {
|
|
|
290
297
|
properties: VarSubmitDetail;
|
|
291
298
|
varName: string | null | undefined;
|
|
292
299
|
}): Promise<void>;
|
|
300
|
+
/**
|
|
301
|
+
* <p>修改某些「提交表单字段」的部分属性.</p>
|
|
302
|
+
*
|
|
303
|
+
* <p>由于提交表单肯定是关联某个按钮的, 因此需要先确认是哪个按钮, 确认逻辑如下:</p>
|
|
304
|
+
* <ul>
|
|
305
|
+
* <li>
|
|
306
|
+
* <p>如果参数 param.buttonVarName === <code>undefined</code> && param.buttonType === <code>undefined</code>, 表示修改的是「当前按钮」.</p>
|
|
307
|
+
* </li>
|
|
308
|
+
* <li>
|
|
309
|
+
* <p>如果参数 param.buttonVarName !== <code>undefined</code>, 则忽略参数 param.buttonType, 根据 param.buttonVarName 和 VarButton.var_nam 是否匹配来确认按钮.</p>
|
|
310
|
+
* </li>
|
|
311
|
+
* <li>
|
|
312
|
+
* <p>如果参数 param.buttonType !== <code>undefined</code> && param.buttonType !== <code>OTHER</code>, 根据 param.buttonType 和 VarButton.typ 是否匹配来确认按钮.</p>
|
|
313
|
+
* </li>
|
|
314
|
+
* </ul>
|
|
315
|
+
*
|
|
316
|
+
* @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton#typ} 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
|
|
317
|
+
* @param param.buttonVarName <p>按钮的变量名称, 对应的是 VarButton.var_nam 属性.</p>
|
|
318
|
+
* @param param.varSubmitDetailList 要修改的「提交表单字段」列表, 列表中的每个对象只需要包含要修改的属性, 注意 VarSubmitDetail.frm_id 和 VarSubmitDetail.var_nam 必须包含.
|
|
319
|
+
*/
|
|
320
|
+
patchVarSubmitDetailList(param: {
|
|
321
|
+
buttonType?: string;
|
|
322
|
+
buttonVarName?: string | null;
|
|
323
|
+
varSubmitDetailList: Array<VarSubmitDetail>;
|
|
324
|
+
}): Promise<void>;
|
|
293
325
|
/** @deprecated 请使用 {@link formRules}. */
|
|
294
326
|
rules: Ref<Record<string, RuleObject[]>>;
|
|
295
327
|
/**
|
|
@@ -52,12 +52,58 @@ export interface IUseKgSubmitStoreActions {
|
|
|
52
52
|
* @param formID 页面标识.
|
|
53
53
|
*/
|
|
54
54
|
dispose(formID: string | null | undefined): void;
|
|
55
|
+
/**
|
|
56
|
+
* <p>修改某个「提交表单字段」的部分属性.</p>
|
|
57
|
+
*
|
|
58
|
+
* <p>由于提交表单肯定是关联某个按钮的, 因此需要先确认是哪个按钮, 确认逻辑如下:</p>
|
|
59
|
+
* <ul>
|
|
60
|
+
* <li>
|
|
61
|
+
* <p>如果参数 param.buttonVarName === <code>undefined</code> && param.buttonType === <code>undefined</code>, 表示修改的是「当前按钮」.</p>
|
|
62
|
+
* </li>
|
|
63
|
+
* <li>
|
|
64
|
+
* <p>如果参数 param.buttonVarName !== <code>undefined</code>, 则忽略参数 param.buttonType, 根据 param.buttonVarName 和 VarButton.var_nam 是否匹配来确认按钮.</p>
|
|
65
|
+
* </li>
|
|
66
|
+
* <li>
|
|
67
|
+
* <p>如果参数 param.buttonType !== <code>undefined</code> && param.buttonType !== <code>OTHER</code>, 根据 param.buttonType 和 VarButton.typ 是否匹配来确认按钮.</p>
|
|
68
|
+
* </li>
|
|
69
|
+
* </ul>
|
|
70
|
+
*
|
|
71
|
+
* @param param.buttonType <p>按钮的类型, 对应的是 VarButton.typ 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
|
|
72
|
+
* @param param.buttonVarName <p>按钮的变量名称, 对应的是 VarButton.var_nam 属性.</p>
|
|
73
|
+
* @param param.properties 要修改的部分属性.
|
|
74
|
+
* @param param.varName 「提交表单字段」的变量名称, 对应的是 {@link VarSubmitDetail.var_nam} 属性.
|
|
75
|
+
*/
|
|
55
76
|
patchVarSubmitDetail(formID: string | null | undefined, param: {
|
|
56
77
|
buttonType?: string;
|
|
57
78
|
buttonVarName?: string | null;
|
|
58
79
|
properties: VarSubmitDetail;
|
|
59
80
|
varName: string | null | undefined;
|
|
60
81
|
}): Promise<void>;
|
|
82
|
+
/**
|
|
83
|
+
* <p>修改某些「提交表单字段」的部分属性.</p>
|
|
84
|
+
*
|
|
85
|
+
* <p>由于提交表单肯定是关联某个按钮的, 因此需要先确认是哪个按钮, 确认逻辑如下:</p>
|
|
86
|
+
* <ul>
|
|
87
|
+
* <li>
|
|
88
|
+
* <p>如果参数 param.buttonVarName === <code>undefined</code> && param.buttonType === <code>undefined</code>, 表示修改的是「当前按钮」.</p>
|
|
89
|
+
* </li>
|
|
90
|
+
* <li>
|
|
91
|
+
* <p>如果参数 param.buttonVarName !== <code>undefined</code>, 则忽略参数 param.buttonType, 根据 param.buttonVarName 和 VarButton.var_nam 是否匹配来确认按钮.</p>
|
|
92
|
+
* </li>
|
|
93
|
+
* <li>
|
|
94
|
+
* <p>如果参数 param.buttonType !== <code>undefined</code> && param.buttonType !== <code>OTHER</code>, 根据 param.buttonType 和 VarButton.typ 是否匹配来确认按钮.</p>
|
|
95
|
+
* </li>
|
|
96
|
+
* </ul>
|
|
97
|
+
*
|
|
98
|
+
* @param param.buttonType <p>按钮的类型, 对应的是 VarButton.typ 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
|
|
99
|
+
* @param param.buttonVarName <p>按钮的变量名称, 对应的是 VarButton.var_nam 属性.</p>
|
|
100
|
+
* @param param.varSubmitDetailList 要修改的「提交表单字段」列表, 列表中的每个对象只需要包含要修改的属性, 注意 {@link VarSubmitDetail.frm_id} 和 {@link VarSubmitDetail.var_nam} 必须包含.
|
|
101
|
+
*/
|
|
102
|
+
patchVarSubmitDetailList(param: {
|
|
103
|
+
buttonType?: string;
|
|
104
|
+
buttonVarName?: string | null;
|
|
105
|
+
varSubmitDetailList: Array<VarSubmitDetail>;
|
|
106
|
+
}): Promise<void>;
|
|
61
107
|
setFormModel(formID: string | null | undefined, model?: Record<string, any> | null): void;
|
|
62
108
|
setIsLoading(formID: string, value: boolean): void;
|
|
63
109
|
}
|
|
@@ -63,5 +63,3 @@ export declare const KG_TABLE_TD_MAX_WIDTH = 1920;
|
|
|
63
63
|
export declare const KG_TABLE_TD_CHECK_WIDTH = 32;
|
|
64
64
|
/** 序号列的宽度. */
|
|
65
65
|
export declare const KG_TABLE_TD_INDEX_WIDTH = 55;
|
|
66
|
-
/** 在表格内创建时, 空白行的临时主键. */
|
|
67
|
-
export declare const KG_TABLE_TEMP_ID = "__KG_TABLE_TEMP_ID__";
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { VxeTableDefines } from 'vxe-table';
|
|
3
|
+
import { KG_TABLE_CELL_CONTEXT } from '../KgTable';
|
|
4
|
+
export declare const getProps: () => {
|
|
5
|
+
/**
|
|
6
|
+
* 列的数据.
|
|
7
|
+
*/
|
|
8
|
+
column: {
|
|
9
|
+
type: PropType<VxeTableDefines.ColumnInfo<any>>;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* 行的数据.
|
|
13
|
+
*/
|
|
14
|
+
row: {
|
|
15
|
+
type: PropType<any>;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* 所处环境.
|
|
19
|
+
* @default KG_TABLE_CELL_CONTEXT.TABLE_CELL
|
|
20
|
+
*/
|
|
21
|
+
kgContext: {
|
|
22
|
+
type: PropType<string>;
|
|
23
|
+
default: KG_TABLE_CELL_CONTEXT;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export declare const KgTable02BodyCell: import("vue").DefineComponent<{
|
|
27
|
+
/**
|
|
28
|
+
* 列的数据.
|
|
29
|
+
*/
|
|
30
|
+
column: {
|
|
31
|
+
type: PropType<VxeTableDefines.ColumnInfo<any>>;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* 行的数据.
|
|
35
|
+
*/
|
|
36
|
+
row: {
|
|
37
|
+
type: PropType<any>;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* 所处环境.
|
|
41
|
+
* @default KG_TABLE_CELL_CONTEXT.TABLE_CELL
|
|
42
|
+
*/
|
|
43
|
+
kgContext: {
|
|
44
|
+
type: PropType<string>;
|
|
45
|
+
default: KG_TABLE_CELL_CONTEXT;
|
|
46
|
+
};
|
|
47
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgUpdateLinkClick"[], "kgUpdateLinkClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
48
|
+
/**
|
|
49
|
+
* 列的数据.
|
|
50
|
+
*/
|
|
51
|
+
column: {
|
|
52
|
+
type: PropType<VxeTableDefines.ColumnInfo<any>>;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* 行的数据.
|
|
56
|
+
*/
|
|
57
|
+
row: {
|
|
58
|
+
type: PropType<any>;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* 所处环境.
|
|
62
|
+
* @default KG_TABLE_CELL_CONTEXT.TABLE_CELL
|
|
63
|
+
*/
|
|
64
|
+
kgContext: {
|
|
65
|
+
type: PropType<string>;
|
|
66
|
+
default: KG_TABLE_CELL_CONTEXT;
|
|
67
|
+
};
|
|
68
|
+
}>> & {
|
|
69
|
+
onKgUpdateLinkClick?: ((...args: any[]) => any) | undefined;
|
|
70
|
+
}, {
|
|
71
|
+
kgContext: string;
|
|
72
|
+
}>;
|
|
@@ -6,7 +6,7 @@ import { IKgTableRow } from '../KgTable';
|
|
|
6
6
|
/**
|
|
7
7
|
* 事件类型.
|
|
8
8
|
*/
|
|
9
|
-
export declare type KgTable02Event = 'onReady' | 'onRowDoubleClick' | 'onBeforeParseRequestParameter' | 'onBeforeRequest' | 'onBeforeTransformDatas' | 'onBeforeSetDatas' | 'onAfterRequest' | 'onRequestError';
|
|
9
|
+
export declare type KgTable02Event = 'onReady' | 'onRowDoubleClick' | 'onBeforeParseRequestParameter' | 'onBeforeRequest' | 'onAfterRequestResponse' | 'onBeforeTransformDatas' | 'onBeforeSetDatas' | 'onAfterRequest' | 'onRequestError';
|
|
10
10
|
export declare type KgTable02OnReadyEventListenerParameter = {};
|
|
11
11
|
export declare type KgTable02OnReadyEventListener = ((param: KgTable02OnReadyEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
12
12
|
export declare type KgTable02OnRowDoubleClickEventListenerParameter = {
|
|
@@ -32,6 +32,15 @@ export declare type KgTable02OnBeforeRequestEventListenerParameter = {
|
|
|
32
32
|
response$: Ref;
|
|
33
33
|
};
|
|
34
34
|
export declare type KgTable02OnBeforeRequestEventListener = ((param: KgTable02OnBeforeRequestEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
35
|
+
export declare type KgTable02OnAfterRequestResponseEventListenerParameter = {
|
|
36
|
+
/**
|
|
37
|
+
* 查询接口返回的数据, 调用者可以直接修改该数据, 从而实现手动提供表格数据.
|
|
38
|
+
*/
|
|
39
|
+
axiosResponse: {
|
|
40
|
+
value: AxiosResponse<any>;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
export declare type KgTable02OnAfterRequestResponseEventListener = ((param: KgTable02OnAfterRequestResponseEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
35
44
|
export declare type KgTable02OnBeforeTransformDatasEventListenerParameter = {
|
|
36
45
|
/** 查询接口返回的数据, 调用者可以直接修改该数据. */
|
|
37
46
|
response: Ref;
|
|
@@ -71,10 +80,11 @@ export declare type KgTable02OnRequestErrorEventListenerParameter = {
|
|
|
71
80
|
e: Error;
|
|
72
81
|
};
|
|
73
82
|
export declare type KgTable02OnRequestErrorEventListener = ((param: KgTable02OnRequestErrorEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
74
|
-
export declare type KgTable02EventListenerParameter = KgTable02OnReadyEventListenerParameter | KgTable02OnRowDoubleClickEventListenerParameter | KgTable02OnBeforeParseRequestParameterEventListenerParameter | KgTable02OnBeforeRequestEventListenerParameter | KgTable02OnBeforeTransformDatasEventListenerParameter | KgTable02OnBeforeSetDatasEventListenerParameter | KgTable02OnRequestErrorEventListenerParameter | KgTable02OnAfterRequestEventListenerParameter;
|
|
75
|
-
export declare type KgTable02EventListener = KgTable02OnReadyEventListener | KgTable02OnRowDoubleClickEventListener | KgTable02OnBeforeParseRequestParameterEventListener | KgTable02OnBeforeRequestEventListener | KgTable02OnBeforeTransformDatasEventListener | KgTable02OnBeforeSetDatasEventListener | KgTable02OnRequestErrorEventListener | KgTable02OnAfterRequestEventListener;
|
|
83
|
+
export declare type KgTable02EventListenerParameter = KgTable02OnReadyEventListenerParameter | KgTable02OnRowDoubleClickEventListenerParameter | KgTable02OnBeforeParseRequestParameterEventListenerParameter | KgTable02OnBeforeRequestEventListenerParameter | KgTable02OnAfterRequestResponseEventListenerParameter | KgTable02OnBeforeTransformDatasEventListenerParameter | KgTable02OnBeforeSetDatasEventListenerParameter | KgTable02OnRequestErrorEventListenerParameter | KgTable02OnAfterRequestEventListenerParameter;
|
|
84
|
+
export declare type KgTable02EventListener = KgTable02OnReadyEventListener | KgTable02OnRowDoubleClickEventListener | KgTable02OnBeforeParseRequestParameterEventListener | KgTable02OnBeforeRequestEventListener | KgTable02OnAfterRequestResponseEventListener | KgTable02OnBeforeTransformDatasEventListener | KgTable02OnBeforeSetDatasEventListener | KgTable02OnRequestErrorEventListener | KgTable02OnAfterRequestEventListener;
|
|
76
85
|
export declare const eventListeners: Record<string, {
|
|
77
86
|
onAfterRequest: Array<KgTable02OnAfterRequestEventListener>;
|
|
87
|
+
onAfterRequestResponse: Array<KgTable02OnAfterRequestResponseEventListener>;
|
|
78
88
|
onBeforeParseRequestParameter: Array<KgTable02OnBeforeParseRequestParameterEventListener>;
|
|
79
89
|
onBeforeRequest: Array<KgTable02OnBeforeRequestEventListener>;
|
|
80
90
|
onBeforeSetDatas: Array<KgTable02OnBeforeSetDatasEventListener>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { IRemoveEventListener } from '@kengic/core.core';
|
|
1
2
|
import { ComputedRef } from 'vue';
|
|
3
|
+
import { KgTable02OnAfterRequestResponseEventListener } from './KgTable02.event';
|
|
2
4
|
import { buildKgTable02Store } from './KgTable02.store';
|
|
3
5
|
export declare type IUseKgTable02 = {
|
|
4
6
|
/**
|
|
@@ -17,6 +19,13 @@ export declare type IUseKgTable02 = {
|
|
|
17
19
|
* 查询条件的界面标识.
|
|
18
20
|
*/
|
|
19
21
|
kgSearchFormId$$: ComputedRef<string>;
|
|
22
|
+
/**
|
|
23
|
+
* 监听事件: 查询请求成功, 刚刚拿到请求返回数据.
|
|
24
|
+
*
|
|
25
|
+
* @param listener 事件监听函数.
|
|
26
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
27
|
+
*/
|
|
28
|
+
onAfterRequestResponse(listener: KgTable02OnAfterRequestResponseEventListener, isOnce?: boolean): IRemoveEventListener;
|
|
20
29
|
/**
|
|
21
30
|
* 当前分页选项.
|
|
22
31
|
*/
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 工厂方法, 用户构造 KgVar 组件.
|
|
3
|
+
*
|
|
4
|
+
* @param param
|
|
5
|
+
*/
|
|
1
6
|
export declare function KgVarFactory(param?: {
|
|
2
7
|
formID?: string | null | undefined;
|
|
3
8
|
}): import("vue").DefineComponent<{
|
|
9
|
+
id: import("vue").PropType<string>;
|
|
4
10
|
kgBackgroundGray: {
|
|
5
11
|
type: import("vue").PropType<boolean>;
|
|
6
12
|
default: undefined;
|
|
@@ -13,6 +19,7 @@ export declare function KgVarFactory(param?: {
|
|
|
13
19
|
kgProps: import("vue").PropType<import("./KgVar.model").IKgProps>;
|
|
14
20
|
kgSlots: import("vue").PropType<import("./KgVar.model").IKgSlots>;
|
|
15
21
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
+
id: import("vue").PropType<string>;
|
|
16
23
|
kgBackgroundGray: {
|
|
17
24
|
type: import("vue").PropType<boolean>;
|
|
18
25
|
default: undefined;
|
|
@@ -32,6 +39,7 @@ export declare function KgVarFactory(param?: {
|
|
|
32
39
|
* 默认的 KgVar 组件.
|
|
33
40
|
*/
|
|
34
41
|
export declare const KgVar2: import("vue").DefineComponent<{
|
|
42
|
+
id: import("vue").PropType<string>;
|
|
35
43
|
kgBackgroundGray: {
|
|
36
44
|
type: import("vue").PropType<boolean>;
|
|
37
45
|
default: undefined;
|
|
@@ -44,6 +52,7 @@ export declare const KgVar2: import("vue").DefineComponent<{
|
|
|
44
52
|
kgProps: import("vue").PropType<import("./KgVar.model").IKgProps>;
|
|
45
53
|
kgSlots: import("vue").PropType<import("./KgVar.model").IKgSlots>;
|
|
46
54
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
55
|
+
id: import("vue").PropType<string>;
|
|
47
56
|
kgBackgroundGray: {
|
|
48
57
|
type: import("vue").PropType<boolean>;
|
|
49
58
|
default: undefined;
|