@kengic/vue 0.30.1-beta.7 → 0.30.1-beta.71
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 +10 -1
- package/README.md +4 -3
- package/dist/check-box-outline-blank.d01a2055.mjs +8 -0
- package/dist/collapse-all-rounded.26ee73fc.mjs +8 -0
- package/dist/expand-all-rounded.e01e6cb9.mjs +8 -0
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +157798 -140907
- 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/pause-rounded.1ed7cc39.mjs +8 -0
- package/dist/play-arrow-rounded.90fc4173.mjs +8 -0
- package/dist/profile-outlined.1059fb0d.mjs +8 -0
- package/dist/project/build/utils.ts +20 -15
- package/dist/src/component/KgButton/KgButton.event.d.ts +21 -21
- package/dist/src/component/KgButton/KgButton.hooks.d.ts +9 -9
- package/dist/src/component/KgButton/KgButton.store.d.ts +1 -1
- package/dist/src/component/KgCanvas/KgCanvas.ContextMenu.d.ts +1 -2
- package/dist/src/component/KgCanvas/{KgCanvas.Toolbar.Fullscreen.d.ts → KgCanvas.ToolbarButton.Fullscreen.d.ts} +2 -3
- package/dist/src/component/KgCanvas/KgCanvas.ToolbarButton.Mode.d.ts +7 -0
- package/dist/src/component/KgCanvas/{KgCanvas.Toolbar.OverviewScale.d.ts → KgCanvas.ToolbarButton.OverviewScale.d.ts} +2 -3
- package/dist/src/component/KgCanvas/KgCanvas.Tooltip.d.ts +1 -2
- package/dist/src/component/KgCanvas/KgCanvas.d.ts +59 -3
- package/dist/src/component/KgCanvas/KgCanvas.event.d.ts +48 -11
- package/dist/src/component/KgCanvas/KgCanvas.hooks.d.ts +34 -6
- package/dist/src/component/KgCanvas/KgCanvas.model.d.ts +26 -32
- package/dist/src/component/KgCanvas/KgCanvas.service.d.ts +5 -31
- package/dist/src/component/KgCanvas/KgCanvas.store.d.ts +4 -1
- package/dist/src/component/KgCanvas/index.d.ts +1 -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 +39 -39
- package/dist/src/component/KgForm/KgForm.hooks.d.ts +2 -2
- package/dist/src/component/KgForm/KgForm.store.d.ts +4 -4
- package/dist/src/component/KgForm/index.d.ts +52 -52
- 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 +40 -38
- 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/KgImage/KgImage.d.ts +6 -6
- 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 +20 -20
- package/dist/src/component/KgModal/{hooks/useDragToResize.d.ts → KgModal.service.d.ts} +13 -2
- package/dist/src/component/KgModal02/KgModal02.d.ts +476 -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/KgSearch/KgSearch.event.d.ts +12 -12
- package/dist/src/component/KgSearch/KgSearch.hooks.d.ts +6 -6
- package/dist/src/component/KgSearch/KgSearch.store.d.ts +26 -26
- package/dist/src/component/KgSimulator/KgSimulator.Canvas.Title.d.ts +11 -0
- package/dist/src/component/KgSimulator/KgSimulator.Canvas.d.ts +11 -0
- package/dist/src/component/KgSimulator/KgSimulator.Canvas.service.d.ts +80 -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/component/KgSimulator/KgSimulator.Panel.Scene.d.ts +4 -0
- package/dist/src/component/KgSimulator/KgSimulator.Panel.d.ts +97 -0
- package/dist/src/component/KgSimulator/KgSimulator.Prefab.d.ts +108 -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 +93 -0
- package/dist/src/component/KgSimulator/KgSimulator.hooks.d.ts +103 -0
- package/dist/src/component/KgSimulator/KgSimulator.icons.d.ts +10 -0
- package/dist/src/component/KgSimulator/KgSimulator.model.d.ts +1502 -0
- package/dist/src/component/KgSimulator/KgSimulator.store.d.ts +474 -0
- package/dist/src/component/KgSimulator/KgSimulator.utils.d.ts +21 -0
- package/dist/src/component/KgSimulator/index.d.ts +3 -0
- package/dist/src/component/KgSubmit/KgSubmit.event.d.ts +26 -21
- package/dist/src/component/KgSubmit/KgSubmit.hooks.d.ts +48 -16
- 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/KgTable.Setting.VarGridMaster.SaveAs.d.ts +4 -0
- package/dist/src/component/KgTable/{components/setting/KgTable.Setting.d.ts → KgTable.Setting.d.ts} +5 -6
- 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.event.d.ts +41 -31
- package/dist/src/component/KgTable/KgTable.hooks.d.ts +19 -15
- package/dist/src/component/KgTable/KgTable.model.d.ts +1 -1
- package/dist/src/component/KgTable/KgTable.store.d.ts +1 -1
- package/dist/src/component/KgTable02/KgTable02.BodyCell.d.ts +32 -3
- package/dist/src/component/KgTable02/KgTable02.event.d.ts +57 -31
- package/dist/src/component/KgTable02/KgTable02.hooks.d.ts +31 -1
- 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/index.d.ts +3 -0
- package/dist/src/config/config.store.d.ts +9 -5
- package/dist/src/config/index.d.ts +19 -13
- package/dist/src/const/const.model.d.ts +530 -11
- 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 -300
- package/dist/src/i18n/en.d.ts +234 -297
- package/dist/src/i18n/es_ES.d.ts +1 -299
- package/dist/src/i18n/fr_FR.d.ts +1 -299
- package/dist/src/i18n/i18n.setup.d.ts +2 -2
- package/dist/src/i18n/km_KH.d.ts +1 -299
- package/dist/src/i18n/ko_KR.d.ts +1 -299
- package/dist/src/i18n/vi_VN.d.ts +1 -299
- package/dist/src/i18n/zh_CN.d.ts +235 -298
- 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/hooks/index.d.ts +0 -1
- package/dist/src/project/src/locales/useLocale.d.ts +1 -0
- package/dist/src/project/src/router/types.d.ts +19 -0
- package/dist/src/project/src/utils/env.d.ts +4 -19
- package/dist/src/project/types/config.d.ts +10 -2
- package/dist/src/service/http-client.d.ts +5 -1
- package/dist/src/util/ant-design-vue.d.ts +16 -16
- package/dist/src/util/kg-auth.util.d.ts +7 -6
- package/dist/src/util/kg-route.util.d.ts +9 -9
- package/dist/src/util/kg.util.d.ts +2 -2
- package/dist/src/util/tsx.helper.d.ts +7 -7
- package/package.json +11 -9
- 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/component/KgTable/components/setting/KgTable.Setting.VarGridMaster.SaveAs.d.ts +0 -5
- package/dist/src/const/injection-keys.const.d.ts +0 -11
- package/dist/src/page/KgCircleVis/components/KgCircleVis.AreaSelect.d.ts +0 -5
- 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/project/src/hooks/web/useI18n.d.ts +0 -13
- /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.HeadCell.d.ts → KgTable.HeadCell.d.ts} +0 -0
- /package/dist/src/component/KgTable/{components/KgTable.Info.d.ts → KgTable.Info.d.ts} +0 -0
|
@@ -0,0 +1,474 @@
|
|
|
1
|
+
import { Q } from '@thymine/xunee';
|
|
2
|
+
import { WebSocketResult } from '@vueuse/core';
|
|
3
|
+
import { KgStoreDefinition } from '../../const';
|
|
4
|
+
import { IToolbarPlacement, Scene } from './KgSimulator.model';
|
|
5
|
+
export interface IKgSimulatorStoreGetters {
|
|
6
|
+
/**
|
|
7
|
+
* 配置--环形输送线--代理者--全局加速度.
|
|
8
|
+
*
|
|
9
|
+
* @default 16 m/min/s, 16 * 1000 / (60 * 1000 * 1000) mm/ms^2
|
|
10
|
+
*/
|
|
11
|
+
$Config$CircularConveyor$Agent$GlobalAcceleration: number;
|
|
12
|
+
/**
|
|
13
|
+
* 配置--环形输送线--代理者--全局最大速度.
|
|
14
|
+
*
|
|
15
|
+
* @default 16 m/min, 16*1000/(60*1000) mm/ms
|
|
16
|
+
*/
|
|
17
|
+
$Config$CircularConveyor$Agent$GlobalMaxVelocity: number;
|
|
18
|
+
/**
|
|
19
|
+
* 配置--环形输送线--接口地址--创建代理者.
|
|
20
|
+
*
|
|
21
|
+
* @default '/Agent/CreateAgent'
|
|
22
|
+
*/
|
|
23
|
+
$Config$CircularConveyor$Api$CreateAgent: string;
|
|
24
|
+
/**
|
|
25
|
+
* 配置--环形输送线--接口地址--创建场景.
|
|
26
|
+
*
|
|
27
|
+
* @default '/Scene/CreateScene'
|
|
28
|
+
*/
|
|
29
|
+
$Config$CircularConveyor$Api$CreateScene: string;
|
|
30
|
+
/**
|
|
31
|
+
* 配置--环形输送线--接口地址--销毁代理者.
|
|
32
|
+
*
|
|
33
|
+
* @default '/Agent/DestroyAgent'
|
|
34
|
+
*/
|
|
35
|
+
$Config$CircularConveyor$Api$DestroyAgent: string;
|
|
36
|
+
/**
|
|
37
|
+
* 配置--环形输送线--接口地址--查询场景列表.
|
|
38
|
+
*
|
|
39
|
+
* @default '/Scene/GetScenes'
|
|
40
|
+
*/
|
|
41
|
+
$Config$CircularConveyor$Api$RequestSceneList: string;
|
|
42
|
+
/**
|
|
43
|
+
* 配置--环形输送线--接口地址--更新场景.
|
|
44
|
+
*
|
|
45
|
+
* @default '/Scene/SaveScene'
|
|
46
|
+
*/
|
|
47
|
+
$Config$CircularConveyor$Api$UpdateScene: string;
|
|
48
|
+
/**
|
|
49
|
+
* 配置--环形输送线--接口地址--WEBSOCKET.
|
|
50
|
+
*
|
|
51
|
+
* @default '/ws'
|
|
52
|
+
*/
|
|
53
|
+
$Config$CircularConveyor$Api$WebSocket: string;
|
|
54
|
+
/**
|
|
55
|
+
* 配置--环形输送线--默认的传感器--离设备边缘的距离(远).
|
|
56
|
+
*
|
|
57
|
+
* @default 200 mm
|
|
58
|
+
*/
|
|
59
|
+
$Config$CircularConveyor$DefaultPhotoelectricSensor$LongDistance: number;
|
|
60
|
+
/**
|
|
61
|
+
* 配置--环形输送线--默认的传感器--离设备边缘的距离(近).
|
|
62
|
+
*
|
|
63
|
+
* @default 20 mm
|
|
64
|
+
*/
|
|
65
|
+
$Config$CircularConveyor$DefaultPhotoelectricSensor$ShortDistance: number;
|
|
66
|
+
/**
|
|
67
|
+
* <p>配置--环形输送线--默认的传感器--离设备边缘的距离(近)--开始减速距离.</p>
|
|
68
|
+
* <p>即距离光电多远时开始减速,</p>
|
|
69
|
+
*
|
|
70
|
+
* @default 128 mm
|
|
71
|
+
*/
|
|
72
|
+
$Config$CircularConveyor$DefaultPhotoelectricSensor$ShortDistance$StartDecelerateDistance: number;
|
|
73
|
+
/**
|
|
74
|
+
* 配置--环形输送线--是否绘制默认的传感器.
|
|
75
|
+
*
|
|
76
|
+
* @default false
|
|
77
|
+
*/
|
|
78
|
+
$Config$CircularConveyor$IsDrawDefaultPhotoelectricSensor: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* 配置--环形输送线--是否启用选中动画.
|
|
81
|
+
*
|
|
82
|
+
* @default true
|
|
83
|
+
*/
|
|
84
|
+
$Config$CircularConveyor$IsEnableSelectAnimation: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* 配置--环形输送线--移栽机--操作持续时间.
|
|
87
|
+
*
|
|
88
|
+
* @default 2 * 1000 ms
|
|
89
|
+
*/
|
|
90
|
+
$Config$CircularConveyor$JackUpTransferStation$Duration: number;
|
|
91
|
+
/**
|
|
92
|
+
* 配置--环形输送线--叠盘机--操作持续时间.
|
|
93
|
+
*
|
|
94
|
+
* @default 15 * 1000 ms
|
|
95
|
+
*/
|
|
96
|
+
$Config$CircularConveyor$PalletStackerStation$Duration: number;
|
|
97
|
+
/**
|
|
98
|
+
* 配置--环境--是否是环形输送线.
|
|
99
|
+
*
|
|
100
|
+
* @default true
|
|
101
|
+
*/
|
|
102
|
+
$Config$Env$IsCircularConveyor: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* 配置--环境--是否是环形穿梭车.
|
|
105
|
+
*
|
|
106
|
+
* @default false
|
|
107
|
+
*/
|
|
108
|
+
$Config$Env$IsCircularShuttle: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* 配置--是否自动打开上一次的场景.
|
|
111
|
+
*
|
|
112
|
+
* @default true
|
|
113
|
+
*/
|
|
114
|
+
$Config$IsReopenSceneOnStart: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* 配置--工具栏--预制组件--是否打开.
|
|
117
|
+
*
|
|
118
|
+
* @default true
|
|
119
|
+
*/
|
|
120
|
+
$Config$Toolbar$Prefab$IsOpen: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* 配置--工具栏--预制组件--是否显示.
|
|
123
|
+
*
|
|
124
|
+
* @default true
|
|
125
|
+
*/
|
|
126
|
+
$Config$Toolbar$Prefab$IsVisible: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* 配置--工具栏--预制组件--位置.
|
|
129
|
+
*
|
|
130
|
+
* @default 'LEFT_TOP'
|
|
131
|
+
*/
|
|
132
|
+
$Config$Toolbar$Prefab$Placement: IToolbarPlacement;
|
|
133
|
+
/**
|
|
134
|
+
* 配置--工具栏--属性--是否打开.
|
|
135
|
+
*
|
|
136
|
+
* @default true
|
|
137
|
+
*/
|
|
138
|
+
$Config$Toolbar$Property$IsOpen: boolean;
|
|
139
|
+
/**
|
|
140
|
+
* 配置--工具栏--属性--是否显示.
|
|
141
|
+
*
|
|
142
|
+
* @default true
|
|
143
|
+
*/
|
|
144
|
+
$Config$Toolbar$Property$IsVisible: boolean;
|
|
145
|
+
/**
|
|
146
|
+
* 配置--工具栏--属性--位置.
|
|
147
|
+
*
|
|
148
|
+
* @default 'RIGHT_TOP'
|
|
149
|
+
*/
|
|
150
|
+
$Config$Toolbar$Property$Placement: IToolbarPlacement;
|
|
151
|
+
/**
|
|
152
|
+
* 配置--工具栏--场景--是否打开.
|
|
153
|
+
*
|
|
154
|
+
* @default true
|
|
155
|
+
*/
|
|
156
|
+
$Config$Toolbar$Scene$IsOpen: boolean;
|
|
157
|
+
/**
|
|
158
|
+
* 配置--工具栏--场景--是否显示.
|
|
159
|
+
*
|
|
160
|
+
* @default true
|
|
161
|
+
*/
|
|
162
|
+
$Config$Toolbar$Scene$IsVisible: boolean;
|
|
163
|
+
/**
|
|
164
|
+
* 配置--工具栏--场景--位置.
|
|
165
|
+
*
|
|
166
|
+
* @default 'LEFT_TOP'
|
|
167
|
+
*/
|
|
168
|
+
$Config$Toolbar$Scene$Placement: IToolbarPlacement;
|
|
169
|
+
/**
|
|
170
|
+
* 环境--环形输送线--当前场景.
|
|
171
|
+
*/
|
|
172
|
+
$Env$CircularConveyor$CurrentScene: Scene | null;
|
|
173
|
+
/**
|
|
174
|
+
* 环境--环形输送线--当前场景--是否已经保存.
|
|
175
|
+
*/
|
|
176
|
+
$Env$CircularConveyor$CurrentScene$IsSave: boolean;
|
|
177
|
+
/**
|
|
178
|
+
* 环境--环形输送线--当前场景--是否正在保存.
|
|
179
|
+
*/
|
|
180
|
+
$Env$CircularConveyor$CurrentScene$IsSaving: boolean;
|
|
181
|
+
/**
|
|
182
|
+
* 环境--环形穿梭车--当前场景.
|
|
183
|
+
*/
|
|
184
|
+
$Env$CircularShuttle$CurrentScene: any | null;
|
|
185
|
+
/**
|
|
186
|
+
* 环境--环形穿梭车--当前场景--是否已经保存.
|
|
187
|
+
*/
|
|
188
|
+
$Env$CircularShuttle$CurrentScene$IsSave: boolean;
|
|
189
|
+
/**
|
|
190
|
+
* 环境--环形穿梭车--当前场景--是否正在保存.
|
|
191
|
+
*/
|
|
192
|
+
$Env$CircularShuttle$CurrentScene$IsSaving: boolean;
|
|
193
|
+
/**
|
|
194
|
+
* 模式--是否是编辑模式.
|
|
195
|
+
*
|
|
196
|
+
* @default true
|
|
197
|
+
*/
|
|
198
|
+
$Mode$IsEdit: boolean;
|
|
199
|
+
/**
|
|
200
|
+
* 模式--是否是监控模式.
|
|
201
|
+
*
|
|
202
|
+
* @default false
|
|
203
|
+
*/
|
|
204
|
+
$Mode$IsMonitor: boolean;
|
|
205
|
+
/**
|
|
206
|
+
* 配置--模式--是否是仿真模式.
|
|
207
|
+
*
|
|
208
|
+
* @default false
|
|
209
|
+
*/
|
|
210
|
+
$Mode$IsSimulate: boolean;
|
|
211
|
+
/**
|
|
212
|
+
* 配置--模式--仿真模式--正在运行.
|
|
213
|
+
*
|
|
214
|
+
* @default false
|
|
215
|
+
*/
|
|
216
|
+
$Mode$Simulate$IsRunning: boolean;
|
|
217
|
+
}
|
|
218
|
+
export interface IKgSimulatorStoreActions {
|
|
219
|
+
/**
|
|
220
|
+
* WEBSOCKET--建立连接.
|
|
221
|
+
*
|
|
222
|
+
* @param param.url 连接地址.
|
|
223
|
+
*/
|
|
224
|
+
$WebSocket$connect(param: {
|
|
225
|
+
url: string;
|
|
226
|
+
}): void;
|
|
227
|
+
/**
|
|
228
|
+
* WEBSOCKET--获取连接结果.
|
|
229
|
+
*/
|
|
230
|
+
$WebSocket$getConnection(): WebSocketResult<any> | null;
|
|
231
|
+
get$graph(): Q.Graph | null;
|
|
232
|
+
/**
|
|
233
|
+
* 打开场景.
|
|
234
|
+
*
|
|
235
|
+
* @param scene 被打开的场景.
|
|
236
|
+
*/
|
|
237
|
+
openScene(scene: Scene): Promise<void>;
|
|
238
|
+
/**
|
|
239
|
+
* 保存场景.
|
|
240
|
+
*/
|
|
241
|
+
saveScene(): Promise<void>;
|
|
242
|
+
/**
|
|
243
|
+
* 配置--环形输送线--代理者--全局加速度. 默认为 16 m/min/s, (16 * 1000) / (60 * 1000 * 1000) mm/ms^2.
|
|
244
|
+
*
|
|
245
|
+
* @see IKgSimulatorStoreGetters.$Config$CircularConveyor$Agent$GlobalAcceleration
|
|
246
|
+
*/
|
|
247
|
+
set$Config$CircularConveyor$Agent$GlobalAcceleration(value: number | null | undefined): void;
|
|
248
|
+
/**
|
|
249
|
+
* 配置--环形输送线--代理者--全局最大速度. 默认为 16 m/min, (16 * 1000) / (60 * 1000) mm/ms.
|
|
250
|
+
*
|
|
251
|
+
* @see IKgSimulatorStoreGetters.$Config$CircularConveyor$Agent$GlobalMaxVelocity
|
|
252
|
+
*/
|
|
253
|
+
set$Config$CircularConveyor$Agent$GlobalMaxVelocity(value: number | null | undefined): void;
|
|
254
|
+
/**
|
|
255
|
+
* 配置--环形输送线--接口地址--创建代理者. 默认为 '/Agent/CreateAgent'.
|
|
256
|
+
*
|
|
257
|
+
* @see IKgSimulatorStoreGetters.$Config$CircularConveyor$Api$CreateAgent
|
|
258
|
+
*/
|
|
259
|
+
set$Config$CircularConveyor$Api$CreateAgent(value: string | null | undefined): void;
|
|
260
|
+
/**
|
|
261
|
+
* 配置--环形输送线--接口地址--创建场景. 默认为 '/Scene/CreateScene'.
|
|
262
|
+
*
|
|
263
|
+
* @see IKgSimulatorStoreGetters.$Config$CircularConveyor$Api$CreateScene
|
|
264
|
+
*/
|
|
265
|
+
set$Config$CircularConveyor$Api$CreateScene(value: string | null | undefined): void;
|
|
266
|
+
/**
|
|
267
|
+
* 配置--环形输送线--接口地址--销毁代理者. 默认为 '/Agent/DestroyAgent'.
|
|
268
|
+
*
|
|
269
|
+
* @see IKgSimulatorStoreGetters.$Config$CircularConveyor$Api$DestroyAgent
|
|
270
|
+
*/
|
|
271
|
+
set$Config$CircularConveyor$Api$DestroyAgent(value: string | null | undefined): void;
|
|
272
|
+
/**
|
|
273
|
+
* 配置--环形输送线--接口地址--查询场景列表. 默认为 '/Scene/GetScenes'.
|
|
274
|
+
*
|
|
275
|
+
* @see IKgSimulatorStoreGetters.$Config$CircularConveyor$Api$RequestSceneList
|
|
276
|
+
*/
|
|
277
|
+
set$Config$CircularConveyor$Api$RequestSceneList(value: string | null | undefined): void;
|
|
278
|
+
/**
|
|
279
|
+
* 配置--环形输送线--接口地址--更新场景. 默认为 '/Scene/SaveScene'.
|
|
280
|
+
*
|
|
281
|
+
* @see IKgSimulatorStoreGetters.$Config$CircularConveyor$Api$UpdateScene
|
|
282
|
+
*/
|
|
283
|
+
set$Config$CircularConveyor$Api$UpdateScene(value: string | null | undefined): void;
|
|
284
|
+
/**
|
|
285
|
+
* 配置--环形输送线--接口地址--WEBSOCKET. 默认为 '/ws'.
|
|
286
|
+
*
|
|
287
|
+
* @see IKgSimulatorStoreGetters.$Config$CircularConveyor$Api$WebSocket
|
|
288
|
+
*/
|
|
289
|
+
set$Config$CircularConveyor$Api$WebSocket(value: string | null | undefined): void;
|
|
290
|
+
/**
|
|
291
|
+
* 配置--环形输送线--默认的传感器--离设备边缘的距离(远). 默认为 200 mm.
|
|
292
|
+
*
|
|
293
|
+
* @see IKgSimulatorStoreGetters.$Config$CircularConveyor$DefaultPhotoelectricSensor$LongDistance
|
|
294
|
+
*/
|
|
295
|
+
set$Config$CircularConveyor$DefaultPhotoelectricSensor$LongDistance(value: number | null | undefined): void;
|
|
296
|
+
/**
|
|
297
|
+
* 配置--环形输送线--默认的传感器--离设备边缘的距离(近). 默认为 20 mm.
|
|
298
|
+
*
|
|
299
|
+
* @see IKgSimulatorStoreGetters.$Config$CircularConveyor$DefaultPhotoelectricSensor$ShortDistance
|
|
300
|
+
*/
|
|
301
|
+
set$Config$CircularConveyor$DefaultPhotoelectricSensor$ShortDistance(value: number | null | undefined): void;
|
|
302
|
+
/**
|
|
303
|
+
* <p>配置--环形输送线--默认的传感器--离设备边缘的距离(近)--开始减速距离. 默认为 128 mm.</p>
|
|
304
|
+
* <p>即距离光电多远时开始减速,</p>
|
|
305
|
+
*
|
|
306
|
+
* @see IKgSimulatorStoreGetters.$Config$CircularConveyor$DefaultPhotoelectricSensor$ShortDistance$StartDecelerateDistance
|
|
307
|
+
*/
|
|
308
|
+
set$Config$CircularConveyor$DefaultPhotoelectricSensor$ShortDistance$StartDecelerateDistance(value: number | null | undefined): void;
|
|
309
|
+
/**
|
|
310
|
+
* 配置--环形输送线--是否绘制默认的传感器. 默认为 false.
|
|
311
|
+
*
|
|
312
|
+
* @see IKgSimulatorStoreGetters.$Config$CircularConveyor$IsDrawDefaultPhotoelectricSensor
|
|
313
|
+
*/
|
|
314
|
+
set$Config$CircularConveyor$IsDrawDefaultPhotoelectricSensor(value: boolean | null | undefined): void;
|
|
315
|
+
/**
|
|
316
|
+
* 配置--环形输送线--是否启用选中动画. 默认为 true.
|
|
317
|
+
*
|
|
318
|
+
* @see IKgSimulatorStoreGetters.$Config$CircularConveyor$IsEnableSelectAnimation
|
|
319
|
+
*/
|
|
320
|
+
set$Config$CircularConveyor$IsEnableSelectAnimation(value: boolean | null | undefined): void;
|
|
321
|
+
/**
|
|
322
|
+
* 配置--环形输送线--移栽机--操作持续时间. 默认为 2 * 1000 ms.
|
|
323
|
+
*
|
|
324
|
+
* @see IKgSimulatorStoreGetters.$Config$CircularConveyor$JackUpTransferStation$Duration
|
|
325
|
+
*/
|
|
326
|
+
set$Config$CircularConveyor$JackUpTransferStation$Duration(value: number | null | undefined): void;
|
|
327
|
+
/**
|
|
328
|
+
* 配置--环形输送线--叠盘机--操作持续时间. 默认为 15 * 1000 ms.
|
|
329
|
+
*
|
|
330
|
+
* @see IKgSimulatorStoreGetters.$Config$CircularConveyor$PalletStackerStation$Duration
|
|
331
|
+
*/
|
|
332
|
+
set$Config$CircularConveyor$PalletStackerStation$Duration(value: number | null | undefined): void;
|
|
333
|
+
/**
|
|
334
|
+
* <p>设置环境. 默认为环形输送线.</p>
|
|
335
|
+
* <ul>
|
|
336
|
+
* <li>CIRCULAR_CONVEYOR: 环形输送线</li>
|
|
337
|
+
* <li>CIRCULAR_SHUTTLE: 环形穿梭车</li>
|
|
338
|
+
* </ul>
|
|
339
|
+
*
|
|
340
|
+
* @param value
|
|
341
|
+
*/
|
|
342
|
+
set$Config$Env(value: 'CIRCULAR_CONVEYOR' | 'CIRCULAR_SHUTTLE' | null | undefined): void;
|
|
343
|
+
/**
|
|
344
|
+
* 配置--是否自动打开上一次的场景. 默认为 true.
|
|
345
|
+
*
|
|
346
|
+
* @see IKgSimulatorStoreGetters.$Config$IsReopenSceneOnStart
|
|
347
|
+
*/
|
|
348
|
+
set$Config$IsReopenSceneOnStart(value: boolean | null | undefined): void;
|
|
349
|
+
/**
|
|
350
|
+
* <p>设置模式. 默认为编辑模式.</p>
|
|
351
|
+
* <ul>
|
|
352
|
+
* <li>EDIT: 编辑</li>
|
|
353
|
+
* <li>MONITOR: 监控</li>
|
|
354
|
+
* <li>SIMULATE: 仿真</li>
|
|
355
|
+
* </ul>
|
|
356
|
+
*
|
|
357
|
+
* @param value
|
|
358
|
+
*/
|
|
359
|
+
set$Config$Mode(value: 'EDIT' | 'MONITOR' | 'SIMULATE' | null | undefined): void;
|
|
360
|
+
/**
|
|
361
|
+
* 配置--工具栏--预制组件--是否打开. 默认为 true.
|
|
362
|
+
*
|
|
363
|
+
* @see IKgSimulatorStoreGetters.$Config$Toolbar$Prefab$IsOpen
|
|
364
|
+
* @param value
|
|
365
|
+
*/
|
|
366
|
+
set$Config$Toolbar$Prefab$IsOpen(value: boolean | null | undefined): void;
|
|
367
|
+
/**
|
|
368
|
+
* 配置--工具栏--预制组件--是否显示. 默认为 true.
|
|
369
|
+
*
|
|
370
|
+
* @see IKgSimulatorStoreGetters.$Config$Toolbar$Prefab$IsVisible
|
|
371
|
+
* @param value
|
|
372
|
+
*/
|
|
373
|
+
set$Config$Toolbar$Prefab$IsVisible(value: boolean | null | undefined): void;
|
|
374
|
+
/**
|
|
375
|
+
* 配置--工具栏--预制组件--位置. 默认为 'LEFT_TOP'.
|
|
376
|
+
*
|
|
377
|
+
* @see IKgSimulatorStoreGetters.$Config$Toolbar$Prefab$Placement
|
|
378
|
+
* @param value
|
|
379
|
+
*/
|
|
380
|
+
set$Config$Toolbar$Prefab$Placement(value: IToolbarPlacement | null | undefined): void;
|
|
381
|
+
/**
|
|
382
|
+
* 配置--工具栏--属性--是否打开. 默认为 true.
|
|
383
|
+
*
|
|
384
|
+
* @see IKgSimulatorStoreGetters.$Config$Toolbar$Property$IsOpen
|
|
385
|
+
* @param value
|
|
386
|
+
*/
|
|
387
|
+
set$Config$Toolbar$Property$IsOpen(value: boolean | null | undefined): void;
|
|
388
|
+
/**
|
|
389
|
+
* 配置--工具栏--属性--是否显示. 默认为 true.
|
|
390
|
+
*
|
|
391
|
+
* @see IKgSimulatorStoreGetters.$Config$Toolbar$Property$IsVisible
|
|
392
|
+
* @param value
|
|
393
|
+
*/
|
|
394
|
+
set$Config$Toolbar$Property$IsVisible(value: boolean | null | undefined): void;
|
|
395
|
+
/**
|
|
396
|
+
* 配置--工具栏--属性--位置. 默认为 'RIGHT_TOP'.
|
|
397
|
+
*
|
|
398
|
+
* @see IKgSimulatorStoreGetters.$Config$Toolbar$Property$Placement
|
|
399
|
+
* @param value
|
|
400
|
+
*/
|
|
401
|
+
set$Config$Toolbar$Property$Placement(value: IToolbarPlacement | null | undefined): void;
|
|
402
|
+
/**
|
|
403
|
+
* 配置--工具栏--场景--是否打开. 默认为 true.
|
|
404
|
+
*
|
|
405
|
+
* @see IKgSimulatorStoreGetters.$Config$Toolbar$Scene$IsOpen
|
|
406
|
+
* @param value
|
|
407
|
+
*/
|
|
408
|
+
set$Config$Toolbar$Scene$IsOpen(value: boolean | null | undefined): void;
|
|
409
|
+
/**
|
|
410
|
+
* 配置--工具栏--场景--是否显示. 默认为 true.
|
|
411
|
+
*
|
|
412
|
+
* @see IKgSimulatorStoreGetters.$Config$Toolbar$Scene$IsVisible
|
|
413
|
+
* @param value
|
|
414
|
+
*/
|
|
415
|
+
set$Config$Toolbar$Scene$IsVisible(value: boolean | null | undefined): void;
|
|
416
|
+
/**
|
|
417
|
+
* 配置--工具栏--场景--位置. 默认为 'LEFT_TOP'.
|
|
418
|
+
*
|
|
419
|
+
* @see IKgSimulatorStoreGetters.$Config$Toolbar$Scene$Placement
|
|
420
|
+
* @param value
|
|
421
|
+
*/
|
|
422
|
+
set$Config$Toolbar$Scene$Placement(value: IToolbarPlacement | null | undefined): void;
|
|
423
|
+
/**
|
|
424
|
+
* 环境--环形输送线--当前场景.
|
|
425
|
+
*
|
|
426
|
+
* @see IKgSimulatorStoreGetters.$Env$CircularConveyor$CurrentScene
|
|
427
|
+
* @param value
|
|
428
|
+
*/
|
|
429
|
+
set$Env$CircularConveyor$CurrentScene(value: Scene | null | undefined): void;
|
|
430
|
+
/**
|
|
431
|
+
* 环境--环形输送线--当前场景--是否已经保存.
|
|
432
|
+
*
|
|
433
|
+
* @see IKgSimulatorStoreGetters.$Env$CircularConveyor$CurrentScene$IsSave
|
|
434
|
+
* @param value
|
|
435
|
+
*/
|
|
436
|
+
set$Env$CircularConveyor$CurrentScene$IsSave(value: boolean | null | undefined): void;
|
|
437
|
+
/**
|
|
438
|
+
* 环境--环形输送线--当前场景--是否正在保存.
|
|
439
|
+
*
|
|
440
|
+
* @see IKgSimulatorStoreGetters.$Env$CircularConveyor$CurrentScene$IsSaving
|
|
441
|
+
* @param value
|
|
442
|
+
*/
|
|
443
|
+
set$Env$CircularConveyor$CurrentScene$IsSaving(value: boolean | null | undefined): void;
|
|
444
|
+
/**
|
|
445
|
+
* 环境--环形穿梭车--当前场景.
|
|
446
|
+
*
|
|
447
|
+
* @see IKgSimulatorStoreGetters.$Env$CircularShuttle$CurrentScene
|
|
448
|
+
* @param value
|
|
449
|
+
*/
|
|
450
|
+
set$Env$CircularShuttle$CurrentScene(value: any | null | undefined): void;
|
|
451
|
+
/**
|
|
452
|
+
* 环境--环形穿梭车--当前场景--是否已经保存.
|
|
453
|
+
*
|
|
454
|
+
* @see IKgSimulatorStoreGetters.$Env$CircularShuttle$CurrentScene$IsSave
|
|
455
|
+
* @param value
|
|
456
|
+
*/
|
|
457
|
+
set$Env$CircularShuttle$CurrentScene$IsSave(value: boolean | null | undefined): void;
|
|
458
|
+
/**
|
|
459
|
+
* 环境--环形穿梭车--当前场景--是否正在保存.
|
|
460
|
+
*
|
|
461
|
+
* @see IKgSimulatorStoreGetters.$Env$CircularShuttle$CurrentScene$IsSaving
|
|
462
|
+
* @param value
|
|
463
|
+
*/
|
|
464
|
+
set$Env$CircularShuttle$CurrentScene$IsSaving(value: boolean | null | undefined): void;
|
|
465
|
+
/**
|
|
466
|
+
* 配置--模式--仿真模式--正在运行. 默认为 false.
|
|
467
|
+
*
|
|
468
|
+
* @see IKgSimulatorStoreGetters.$Mode$Simulate$IsRunning
|
|
469
|
+
* @param value
|
|
470
|
+
*/
|
|
471
|
+
set$Mode$Simulate$IsRunning(value: boolean | null | undefined): void;
|
|
472
|
+
set$graph(value: Q.Graph | null | undefined): void;
|
|
473
|
+
}
|
|
474
|
+
export declare function buildKgSimulatorStore(id: string | null | undefined): KgStoreDefinition<IKgSimulatorStoreGetters, IKgSimulatorStoreActions>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Q } from '@thymine/xunee';
|
|
2
|
+
/**
|
|
3
|
+
* 判断是不是同一个点, 考虑一定误差.
|
|
4
|
+
*/
|
|
5
|
+
export declare function isSamePoint(x1: number | null | undefined, x2: number | null | undefined): boolean;
|
|
6
|
+
/**
|
|
7
|
+
* 获取时间戳.
|
|
8
|
+
*/
|
|
9
|
+
export declare function timestamp(): string;
|
|
10
|
+
/**
|
|
11
|
+
* 获取节点下的界面元素.
|
|
12
|
+
*
|
|
13
|
+
* @param param.code 编号.
|
|
14
|
+
* @param param.node 节点.
|
|
15
|
+
*/
|
|
16
|
+
export declare function getNodeUiByCode<T extends Q.BaseUI>(param: {
|
|
17
|
+
code: string;
|
|
18
|
+
node: Q.Node;
|
|
19
|
+
}): {
|
|
20
|
+
ui: T;
|
|
21
|
+
};
|
|
@@ -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;
|
|
@@ -15,18 +15,18 @@ export declare type IKgSubmitOnBeforeOpenEventListenerParameter = {
|
|
|
15
15
|
};
|
|
16
16
|
export declare type IKgSubmitOnBeforeOpenEventListener = ((param: IKgSubmitOnBeforeOpenEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
17
17
|
export declare type IKgSubmitOnOpenEventListenerParameter = {
|
|
18
|
-
/** @deprecated 请直接使用 {@link IUseKgVar.isCreating} */
|
|
19
|
-
isCreating: boolean | null;
|
|
20
|
-
/** @deprecated 请直接使用 {@link IUseKgVar.isUpdating} */
|
|
21
|
-
isUpdating: boolean | null;
|
|
22
18
|
/** @deprecated 请直接使用 {@link IUseKgVar.isCopying} */
|
|
23
19
|
isCopying: boolean | null;
|
|
20
|
+
/** @deprecated 请直接使用 {@link IUseKgVar.isCreating} */
|
|
21
|
+
isCreating: boolean | null;
|
|
24
22
|
/** @deprecated 请直接使用 {@link IUseKgVar.isDeleting} */
|
|
25
23
|
isDeleting: boolean | null;
|
|
24
|
+
/** @deprecated 请直接使用 {@link IUseKgVar.isUpdating} */
|
|
25
|
+
isUpdating: boolean | null;
|
|
26
|
+
/** @deprecated 请直接使用 {@link IUseKgSubmit.formModel} */
|
|
27
|
+
model: Ref<Record<string, any>>;
|
|
26
28
|
/** @deprecated 请直接使用 {@link IUseKgTable.selectedRow} */
|
|
27
29
|
row: IKgTableRow | null;
|
|
28
|
-
/** @deprecated 请直接使用 {@link IUseKgSearch.formModel} */
|
|
29
|
-
model: Ref<Record<string, any>>;
|
|
30
30
|
};
|
|
31
31
|
export declare type IKgSubmitOnOpenEventListener = ((param: IKgSubmitOnOpenEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
32
32
|
export declare type IKgSubmitOnBeforeOkEventListenerParameter = {
|
|
@@ -44,7 +44,7 @@ export declare type IKgSubmitOnAfterValidateEventListenerParameter = {
|
|
|
44
44
|
rows: Array<IKgTableRow> | null;
|
|
45
45
|
};
|
|
46
46
|
export declare type IKgSubmitOnAfterValidateEventListener = ((param: IKgSubmitOnAfterValidateEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
47
|
-
export declare type
|
|
47
|
+
export declare type IKgSubmit$EventListenerParameter$onBeforeRequest = {
|
|
48
48
|
/**
|
|
49
49
|
* <p>请求参数. 是一个对象或者列表. 是对「表单数据对象」解析之后得到的请求参数, 如果需要修改某些参数, 则直接修改该对象的属性即可.</p>
|
|
50
50
|
*/
|
|
@@ -68,48 +68,53 @@ export declare type IKgSubmitOnBeforeRequestEventListenerParameter = {
|
|
|
68
68
|
/** @deprecated */
|
|
69
69
|
rows: Array<IKgTableRow> | null;
|
|
70
70
|
};
|
|
71
|
-
export declare type
|
|
71
|
+
export declare type IKgSubmit$EventListener$onBeforeRequest = ((param: IKgSubmit$EventListenerParameter$onBeforeRequest) => 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 = {};
|
|
90
92
|
export declare type IKgSubmitOnBeforeCancelEventListener = ((param: IKgSubmitOnBeforeCancelEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
91
93
|
export declare type IKgSubmitOnCancelEventListenerParameter = {};
|
|
92
94
|
export declare type IKgSubmitOnCancelEventListener = ((param: IKgSubmitOnCancelEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
93
|
-
export declare type
|
|
94
|
-
export declare type
|
|
95
|
+
export declare type IKgSubmit$EventListenerParameter$onError = {};
|
|
96
|
+
export declare type IKgSubmit$EventListener$onError = ((param: IKgSubmit$EventListenerParameter$onError) => Promise<boolean>) & IKgEventListener;
|
|
95
97
|
export declare type IKgSubmitOnCloseEventListenerParameter = {} | null | undefined;
|
|
96
98
|
export declare type IKgSubmitOnCloseEventListener = ((param: IKgSubmitOnCloseEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
97
99
|
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 | IKgSubmit$EventListenerParameter$onBeforeRequest | IKgSubmitOnOkEventListenerParameter | IKgSubmitOnBeforeCancelEventListenerParameter | IKgSubmitOnCancelEventListenerParameter | IKgSubmit$EventListenerParameter$onError | IKgSubmitOnCloseEventListenerParameter | IKgSubmitOnSubmitSaveEventListenerParameter | IKgSubmitOnSubmitCancelEventListenerParameter | IKgSubmitOnAfterSetFormModelEventListenerParameter;
|
|
106
|
+
export declare type IKgSubmitEventListener = IKgSubmitOnBeforeOpenEventListener | IKgSubmitOnOpenEventListener | IKgSubmitOnBeforeOkEventListener | IKgSubmitOnAfterValidateEventListener | IKgSubmit$EventListener$onBeforeRequest | IKgSubmitOnOkEventListener | IKgSubmitOnBeforeCancelEventListener | IKgSubmitOnCancelEventListener | IKgSubmit$EventListener$onError | 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>;
|
|
107
112
|
onBeforeOpen: Array<IKgSubmitOnBeforeOpenEventListener>;
|
|
108
|
-
onBeforeRequest: Array<
|
|
113
|
+
onBeforeRequest: Array<IKgSubmit$EventListener$onBeforeRequest>;
|
|
109
114
|
onCancel: Array<IKgSubmitOnCancelEventListener>;
|
|
110
115
|
onCancelButtonClick: Array<IKgSubmitOnSubmitCancelEventListener>;
|
|
111
116
|
onClose: Array<IKgSubmitOnCloseEventListener>;
|
|
112
|
-
onError: Array<
|
|
117
|
+
onError: Array<IKgSubmit$EventListener$onError>;
|
|
113
118
|
onOk: Array<IKgSubmitOnOkEventListener>;
|
|
114
119
|
onOkButtonClick: Array<IKgSubmitOnSubmitSaveEventListener>;
|
|
115
120
|
onOpen: Array<IKgSubmitOnOpenEventListener>;
|