@kengic/vue 0.30.1-beta.6 → 0.30.1-beta.61
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/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 +130992 -118225
- 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/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.hooks.d.ts +2 -2
- 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 +42 -5
- package/dist/src/component/KgCanvas/KgCanvas.hooks.d.ts +33 -5
- 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 +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/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 +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/KgSearch/KgSearch.hooks.d.ts +2 -2
- 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 +99 -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 +1494 -0
- package/dist/src/component/KgSimulator/KgSimulator.store.d.ts +462 -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 +20 -15
- 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/setting/KgTable.Setting.service.d.ts → KgTable.Setting.service.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 +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/index.d.ts +3 -0
- package/dist/src/config/config.store.d.ts +9 -5
- package/dist/src/config/index.d.ts +9 -3
- package/dist/src/const/const.model.d.ts +524 -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 +1 -1
- 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/utils/env.d.ts +0 -16
- package/dist/src/project/types/config.d.ts +2 -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 +1 -2
- package/dist/src/util/tsx.helper.d.ts +7 -7
- package/package.json +9 -8
- 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.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
- /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
|
@@ -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
|
}
|
|
@@ -88,4 +88,4 @@ export interface KgTableStoreActions {
|
|
|
88
88
|
setSelectedRowKeys(selectedRowKeys: Array<string>): void;
|
|
89
89
|
setTableWidth(value: number): void;
|
|
90
90
|
}
|
|
91
|
-
export declare function buildKgTableStore(
|
|
91
|
+
export declare function buildKgTableStore(fid: string | null | undefined): KgStoreDefinition<KgTableStoreGetters, KgTableStoreActions>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { VxeTableDefines } from 'vxe-table';
|
|
3
|
+
import { KG_TABLE_CELL_CONTEXT } from '../KgTable';
|
|
3
4
|
export declare const getProps: () => {
|
|
4
5
|
/**
|
|
5
6
|
* 列的数据.
|
|
@@ -13,8 +14,16 @@ export declare const getProps: () => {
|
|
|
13
14
|
row: {
|
|
14
15
|
type: PropType<any>;
|
|
15
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
|
+
};
|
|
16
25
|
};
|
|
17
|
-
export declare const
|
|
26
|
+
export declare const KgTable02BodyCell: import("vue").DefineComponent<{
|
|
18
27
|
/**
|
|
19
28
|
* 列的数据.
|
|
20
29
|
*/
|
|
@@ -27,7 +36,15 @@ export declare const KgTable02HeadCell: import("vue").DefineComponent<{
|
|
|
27
36
|
row: {
|
|
28
37
|
type: PropType<any>;
|
|
29
38
|
};
|
|
30
|
-
|
|
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<{
|
|
31
48
|
/**
|
|
32
49
|
* 列的数据.
|
|
33
50
|
*/
|
|
@@ -40,4 +57,16 @@ export declare const KgTable02HeadCell: import("vue").DefineComponent<{
|
|
|
40
57
|
row: {
|
|
41
58
|
type: PropType<any>;
|
|
42
59
|
};
|
|
43
|
-
|
|
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;
|
|
@@ -2,6 +2,12 @@ import { ExtractPropTypes, PropType } from 'vue';
|
|
|
2
2
|
import { IKgProps, IKgSlots } from './KgVar.model';
|
|
3
3
|
import './KgVar.css';
|
|
4
4
|
export declare function getProps(): {
|
|
5
|
+
/**
|
|
6
|
+
* 界面标识.
|
|
7
|
+
*
|
|
8
|
+
* @default undefined
|
|
9
|
+
*/
|
|
10
|
+
id: PropType<string>;
|
|
5
11
|
/**
|
|
6
12
|
* 是否使用灰色背景.
|
|
7
13
|
*
|
|
@@ -11,11 +17,7 @@ export declare function getProps(): {
|
|
|
11
17
|
type: PropType<boolean>;
|
|
12
18
|
default: undefined;
|
|
13
19
|
};
|
|
14
|
-
/**
|
|
15
|
-
* 界面标识.
|
|
16
|
-
*
|
|
17
|
-
* @default undefined
|
|
18
|
-
*/
|
|
20
|
+
/** @deprecated 已弃用, 请使用 id */
|
|
19
21
|
kgFormID: PropType<string>;
|
|
20
22
|
/**
|
|
21
23
|
* <p>界面层级.</p>
|
|
@@ -36,10 +38,16 @@ export declare function getProps(): {
|
|
|
36
38
|
*/
|
|
37
39
|
kgSlots: PropType<IKgSlots>;
|
|
38
40
|
};
|
|
39
|
-
/** @deprecated */
|
|
40
|
-
export declare type IKgVarProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
41
41
|
export declare type KgVarProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
42
|
+
/** @deprecated 已弃用, 请使用 {@link KgVarProps} */
|
|
43
|
+
export declare type IKgVarProps = KgVarProps;
|
|
42
44
|
declare const _default: import("vue").DefineComponent<{
|
|
45
|
+
/**
|
|
46
|
+
* 界面标识.
|
|
47
|
+
*
|
|
48
|
+
* @default undefined
|
|
49
|
+
*/
|
|
50
|
+
id: PropType<string>;
|
|
43
51
|
/**
|
|
44
52
|
* 是否使用灰色背景.
|
|
45
53
|
*
|
|
@@ -49,11 +57,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
49
57
|
type: PropType<boolean>;
|
|
50
58
|
default: undefined;
|
|
51
59
|
};
|
|
52
|
-
/**
|
|
53
|
-
* 界面标识.
|
|
54
|
-
*
|
|
55
|
-
* @default undefined
|
|
56
|
-
*/
|
|
60
|
+
/** @deprecated 已弃用, 请使用 id */
|
|
57
61
|
kgFormID: PropType<string>;
|
|
58
62
|
/**
|
|
59
63
|
* <p>界面层级.</p>
|
|
@@ -74,6 +78,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
74
78
|
*/
|
|
75
79
|
kgSlots: PropType<IKgSlots>;
|
|
76
80
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
81
|
+
/**
|
|
82
|
+
* 界面标识.
|
|
83
|
+
*
|
|
84
|
+
* @default undefined
|
|
85
|
+
*/
|
|
86
|
+
id: PropType<string>;
|
|
77
87
|
/**
|
|
78
88
|
* 是否使用灰色背景.
|
|
79
89
|
*
|
|
@@ -83,11 +93,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
83
93
|
type: PropType<boolean>;
|
|
84
94
|
default: undefined;
|
|
85
95
|
};
|
|
86
|
-
/**
|
|
87
|
-
* 界面标识.
|
|
88
|
-
*
|
|
89
|
-
* @default undefined
|
|
90
|
-
*/
|
|
96
|
+
/** @deprecated 已弃用, 请使用 id */
|
|
91
97
|
kgFormID: PropType<string>;
|
|
92
98
|
/**
|
|
93
99
|
* <p>界面层级.</p>
|
|
@@ -2,14 +2,26 @@ import { IKgEventListener } from '@kengic/core.core';
|
|
|
2
2
|
/**
|
|
3
3
|
* 事件类型.
|
|
4
4
|
*/
|
|
5
|
-
export declare type IKgVarEvent = '
|
|
6
|
-
export declare type
|
|
5
|
+
export declare type IKgVarEvent = 'onBeforeRequest' | 'onAfterRequest' | 'onSetup' | 'onUnmounted';
|
|
6
|
+
export declare type IKgVarOnBeforeRequestEventListenerParameter = {
|
|
7
|
+
/**
|
|
8
|
+
* 界面标识.
|
|
9
|
+
*/
|
|
10
|
+
id: string;
|
|
11
|
+
/**
|
|
12
|
+
* <p>模拟请求返回数据.</p>
|
|
13
|
+
* <p>用户可以修改该属性, 如果该属性的值不为 undefined, 则不会请求变量配置数据, 而是直接使用该属性值作为变量配置数据,</p>
|
|
14
|
+
*/
|
|
15
|
+
mock: any | undefined;
|
|
16
|
+
};
|
|
17
|
+
export declare type IKgVarOnBeforeRequestEventListener = ((param: IKgVarOnBeforeRequestEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
18
|
+
export declare type IKgVarOnAfterRequestEventListenerParameter = {
|
|
7
19
|
/**
|
|
8
20
|
* 界面标识.
|
|
9
21
|
*/
|
|
10
22
|
formID: string;
|
|
11
23
|
};
|
|
12
|
-
export declare type
|
|
24
|
+
export declare type IKgVarOnAfterRequestEventListener = ((param: IKgVarOnAfterRequestEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
13
25
|
export declare type IKgVarOnSetupEventListenerParameter = {
|
|
14
26
|
/**
|
|
15
27
|
* 界面标识.
|
|
@@ -24,10 +36,11 @@ export declare type IKgVarOnUnmountedEventListenerParameter = {
|
|
|
24
36
|
formID: string;
|
|
25
37
|
};
|
|
26
38
|
export declare type IKgVarOnUnmountedEventListener = ((param: IKgVarOnUnmountedEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
27
|
-
export declare type IKgVarEventListenerParameter =
|
|
28
|
-
export declare type IKgVarEventListener =
|
|
39
|
+
export declare type IKgVarEventListenerParameter = IKgVarOnBeforeRequestEventListenerParameter | IKgVarOnAfterRequestEventListenerParameter | IKgVarOnSetupEventListenerParameter | IKgVarOnUnmountedEventListenerParameter;
|
|
40
|
+
export declare type IKgVarEventListener = IKgVarOnBeforeRequestEventListener | IKgVarOnAfterRequestEventListener | IKgVarOnSetupEventListener | IKgVarOnUnmountedEventListener;
|
|
29
41
|
export declare const eventListeners: Record<string, {
|
|
30
|
-
|
|
42
|
+
onAfterRequest: Array<IKgVarOnAfterRequestEventListener>;
|
|
43
|
+
onBeforeRequest: Array<IKgVarOnBeforeRequestEventListener>;
|
|
31
44
|
onSetup: Array<IKgVarOnSetupEventListener>;
|
|
32
45
|
onUnmounted: Array<IKgVarOnUnmountedEventListener>;
|
|
33
46
|
}>;
|
|
@@ -9,7 +9,7 @@ import { IUseKgSubmit } from '../KgSubmit';
|
|
|
9
9
|
import { IUseKgTable } from '../KgTable';
|
|
10
10
|
import { IUseKgTable02 } from '../KgTable02';
|
|
11
11
|
import { IUseKgVarConfig } from '../KgVarConfig';
|
|
12
|
-
import { eventListeners,
|
|
12
|
+
import { eventListeners, IKgVarOnAfterRequestEventListener, IKgVarOnBeforeRequestEventListener, IKgVarOnSetupEventListener, IKgVarOnUnmountedEventListener } from './KgVar.event';
|
|
13
13
|
import { IKgProps, IKgSlots } from './KgVar.model';
|
|
14
14
|
import { useKgVarStore } from './KgVar.store';
|
|
15
15
|
export declare type IUseKgVar = {
|
|
@@ -55,21 +55,21 @@ export declare type IUseKgVar = {
|
|
|
55
55
|
*
|
|
56
56
|
* <ul>
|
|
57
57
|
* <li>
|
|
58
|
-
* <p>如果参数
|
|
58
|
+
* <p>如果参数 param.buttonVarName !== <code>undefined</code>, 则忽略参数 param.buttonType, 根据 param.buttonVarName 过滤.</p>
|
|
59
59
|
* </li>
|
|
60
60
|
* <li>
|
|
61
|
-
* <p>如果参数
|
|
61
|
+
* <p>如果参数 param.buttonVarName === <code>undefined</code> && param.buttonType !== <code>undefined</code>, 则先根据参数 param.buttonType 获取按钮, 然后根据 VarButton.var_nam 和 {@link VarConfigControl.button_var_name} 是否匹配进行过滤.</p>
|
|
62
62
|
* </li>
|
|
63
63
|
* <li>
|
|
64
|
-
* <p>如果参数
|
|
64
|
+
* <p>如果参数 param.buttonVarName === <code>undefined</code> && param.buttonType === <code>undefined</code>, 则先获取「当前按钮」, 然后根据「当前按钮」的 VarButton.var_nam 和 {@link VarConfigControl.button_var_name} 是否匹配进行过滤.</p>
|
|
65
65
|
* </li>
|
|
66
66
|
* <li>
|
|
67
67
|
* <p>参数 {@link param.varName} 必传, 将根据 {@link param.varName} 和 {@link VarConfigControl.var_nam} 是否匹配进行过滤.</p>
|
|
68
68
|
* </li>
|
|
69
69
|
* </ul>
|
|
70
70
|
*
|
|
71
|
-
* @param param.buttonType <p>按钮的类型, 对应的是
|
|
72
|
-
* @param param.buttonVarName <p>按钮的变量名称, 对应的是
|
|
71
|
+
* @param param.buttonType <p>按钮的类型, 对应的是 VarButton.typ 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
|
|
72
|
+
* @param param.buttonVarName <p>按钮的变量名称, 对应的是 VarButton.var_nam 属性.</p>
|
|
73
73
|
* @param param.varName 提交表单字段的变量名, 对应的是 {@link VarConfigControl.var_nam} 属性.
|
|
74
74
|
*/
|
|
75
75
|
getVarConfigControl(param: {
|
|
@@ -95,6 +95,10 @@ export declare type IUseKgVar = {
|
|
|
95
95
|
getVarGridDetail(param: {
|
|
96
96
|
varName: string | null | undefined;
|
|
97
97
|
}): VarGridDetail | null;
|
|
98
|
+
/**
|
|
99
|
+
* 界面标识.
|
|
100
|
+
*/
|
|
101
|
+
id: string;
|
|
98
102
|
/**
|
|
99
103
|
* 是否正在复制.
|
|
100
104
|
*/
|
|
@@ -148,7 +152,16 @@ export declare type IUseKgVar = {
|
|
|
148
152
|
* @param listener 事件监听函数.
|
|
149
153
|
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
150
154
|
*/
|
|
151
|
-
|
|
155
|
+
onAfterRequest(listener: IKgVarOnAfterRequestEventListener, isOnce?: boolean): IRemoveEventListener;
|
|
156
|
+
/**
|
|
157
|
+
* 监听事件: 变量配置数据查询之前.
|
|
158
|
+
*
|
|
159
|
+
* @param listener 事件监听函数.
|
|
160
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
161
|
+
*/
|
|
162
|
+
onBeforeRequest(listener: IKgVarOnBeforeRequestEventListener, isOnce?: boolean): IRemoveEventListener;
|
|
163
|
+
/** @deprecated 已废弃, 请使用 {@link kgTable.onAfterRequest()} */
|
|
164
|
+
onRetrieve(listener: IKgVarOnAfterRequestEventListener, isOnce?: boolean): IRemoveEventListener;
|
|
152
165
|
/**
|
|
153
166
|
* 监听事件: 页面创建.
|
|
154
167
|
*
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ComputedRef, InjectionKey } from 'vue';
|
|
2
1
|
import { IKgButtonProps } from '../KgButton';
|
|
3
2
|
import { IKgFormItemSlotControlParameter, IKgFormItemSlotControlRightParameter } from '../KgForm.Item/KgForm.Item.model';
|
|
4
3
|
import { IKgSearchProps } from '../KgSearch';
|
|
@@ -61,8 +60,6 @@ export declare type IKgSlots = {
|
|
|
61
60
|
[childFormID: string]: () => any;
|
|
62
61
|
};
|
|
63
62
|
};
|
|
64
|
-
/** 注入 kgSlots 参数. */
|
|
65
|
-
export declare const KG__DI__KG_VAR__KG_SLOTS: InjectionKey<IKgSlots | undefined>;
|
|
66
63
|
export declare type IKgProps = {
|
|
67
64
|
KgButton?: IKgButtonProps;
|
|
68
65
|
KgSearch?: IKgSearchProps;
|
|
@@ -71,5 +68,3 @@ export declare type IKgProps = {
|
|
|
71
68
|
KgTable02?: KgTable02Props;
|
|
72
69
|
KgVar?: KgVarProps;
|
|
73
70
|
};
|
|
74
|
-
/** 注入 kgProps 参数. */
|
|
75
|
-
export declare const KG__DI__KG_VAR__KG_PROPS: InjectionKey<ComputedRef<IKgProps | undefined>>;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
export * from './KgAppSelect';
|
|
2
2
|
export * from './KgCanvas';
|
|
3
|
+
export * from './KgCircularShuttleMonitor';
|
|
3
4
|
export * from './KgImage';
|
|
4
5
|
export * from './KgLayoutHeader';
|
|
5
6
|
export * from './KgModal';
|
|
7
|
+
export * from './KgModal02';
|
|
6
8
|
export * from './KgProgressA';
|
|
7
9
|
export * from './KgResizable';
|
|
8
10
|
export * from './KgSearch';
|
|
11
|
+
export * from './KgSimulator';
|
|
9
12
|
export * from './KgSubmit';
|
|
10
13
|
export * from './KgTable';
|
|
11
14
|
export * from './KgVar';
|