@kengic/vue 0.25.3-beta.0 → 0.25.3-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/kengic-vue.js +1928 -1908
- package/package.json +33 -22
- package/dist/src/apis/WMS/Controllers/DescriptionController/List.d.ts +0 -49
- package/dist/src/apis/WMS/Controllers/DescriptionController/ListByCodeNamesAndCodeValues.d.ts +0 -16
- package/dist/src/apis/WMS/Controllers/DescriptionController/index.d.ts +0 -2
- package/dist/src/apis/WMS/Controllers/SysPermissionController/List.d.ts +0 -73
- package/dist/src/apis/WMS/Controllers/SysPermissionController/index.d.ts +0 -1
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/Add.d.ts +0 -16
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/index.d.ts +0 -1
- package/dist/src/apis/WMS/Controllers/VarConfigPossibilityController/ExecuteQuery.d.ts +0 -18
- package/dist/src/apis/WMS/Controllers/VarConfigPossibilityController/index.d.ts +0 -1
- package/dist/src/apis/WMS/Controllers/VarController/GetAll.d.ts +0 -19
- package/dist/src/apis/WMS/Controllers/VarController/index.d.ts +0 -1
- package/dist/src/apis/WMS/Controllers/VarDdaController/Create.d.ts +0 -16
- package/dist/src/apis/WMS/Controllers/VarDdaController/GetResultSetMetadataFromSql.d.ts +0 -16
- package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateCopySql.d.ts +0 -16
- package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateCreateSql.d.ts +0 -16
- package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateDeleteSql.d.ts +0 -16
- package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateFrmId.d.ts +0 -16
- package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateSearchSql.d.ts +0 -16
- package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateUpdateSql.d.ts +0 -16
- package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateVarButtonVarName.d.ts +0 -16
- package/dist/src/apis/WMS/Controllers/VarDdaController/index.d.ts +0 -9
- package/dist/src/apis/WMS/Controllers/VarGridMasterController/QueryByID.d.ts +0 -19
- package/dist/src/apis/WMS/Controllers/VarGridMasterController/Update.d.ts +0 -16
- package/dist/src/apis/WMS/Controllers/VarGridMasterController/index.d.ts +0 -2
- package/dist/src/apis/WMS/Controllers/VarProfileMasterController/QueryByID.d.ts +0 -19
- package/dist/src/apis/WMS/Controllers/VarProfileMasterController/index.d.ts +0 -1
- package/dist/src/apis/WMS/Controllers/VarVariableController/Delete.d.ts +0 -16
- package/dist/src/apis/WMS/Controllers/VarVariableController/index.d.ts +0 -1
- package/dist/src/apis/WMS/Controllers/WhController/ListVO.d.ts +0 -54
- package/dist/src/apis/WMS/Controllers/WhController/index.d.ts +0 -1
- package/dist/src/apis/WMS/Controllers/index.d.ts +0 -10
- package/dist/src/apis/WMS/index.d.ts +0 -2
- package/dist/src/apis/WMS/models.d.ts +0 -938
- package/dist/src/apis/api.d.ts +0 -1
- package/dist/src/apis/def.d.ts +0 -1
- package/dist/src/apis/index.d.ts +0 -2
- package/dist/src/components/KgAppSelect/KgAppSelect.d.ts +0 -47
- package/dist/src/components/KgAppSelect/index.d.ts +0 -3
- package/dist/src/components/KgAppSelect/index.hooks.d.ts +0 -41
- package/dist/src/components/KgAppSelect/index.store.d.ts +0 -74
- package/dist/src/components/KgButton/KgButton.Item.d.ts +0 -41
- package/dist/src/components/KgButton/KgButton.Item.data.d.ts +0 -31
- package/dist/src/components/KgButton/KgButton.d.ts +0 -40
- package/dist/src/components/KgButton/components/KgButton.Copy.d.ts +0 -40
- package/dist/src/components/KgButton/components/KgButton.Create.d.ts +0 -40
- package/dist/src/components/KgButton/components/KgButton.Delete.d.ts +0 -40
- package/dist/src/components/KgButton/components/KgButton.Export.d.ts +0 -40
- package/dist/src/components/KgButton/components/KgButton.Import.d.ts +0 -40
- package/dist/src/components/KgButton/components/KgButton.ImportTemplate.d.ts +0 -40
- package/dist/src/components/KgButton/components/KgButton.Other.d.ts +0 -40
- package/dist/src/components/KgButton/components/KgButton.Search.d.ts +0 -40
- package/dist/src/components/KgButton/components/KgButton.Update.d.ts +0 -40
- package/dist/src/components/KgButton/index.d.ts +0 -62
- package/dist/src/components/KgButton/index.hooks.d.ts +0 -183
- package/dist/src/components/KgButton/index.store.d.ts +0 -116
- package/dist/src/components/KgForm/KgForm.d.ts +0 -414
- package/dist/src/components/KgForm/index.d.ts +0 -604
- package/dist/src/components/KgForm/index.hooks.d.ts +0 -72
- package/dist/src/components/KgForm/index.store.d.ts +0 -221
- package/dist/src/components/KgForm/index.vm.d.ts +0 -9
- package/dist/src/components/KgForm.Item/KgForm.Item.d.ts +0 -97
- package/dist/src/components/KgForm.Item/KgForm.Item.service.d.ts +0 -17
- package/dist/src/components/KgForm.Item/addon/KgForm.Item.Addon.DynamicQueryOperator.d.ts +0 -49
- package/dist/src/components/KgForm.Item/addon/KgForm.Item.Addon.Lookup.Modal.d.ts +0 -16
- package/dist/src/components/KgForm.Item/addon/KgForm.Item.Addon.Lookup.d.ts +0 -31
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +0 -100
- package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +0 -99
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +0 -97
- package/dist/src/components/KgForm.Item/components/KgForm.Item.DateRange.d.ts +0 -97
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Image.d.ts +0 -92
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +0 -96
- package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +0 -96
- package/dist/src/components/KgForm.Item/components/KgForm.Item.InputPassword.d.ts +0 -96
- package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +0 -98
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +0 -98
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.service.d.ts +0 -29
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +0 -96
- package/dist/src/components/KgForm.Item/components/KgForm.Item.TextArea.d.ts +0 -96
- package/dist/src/components/KgForm.Item/index.d.ts +0 -2
- package/dist/src/components/KgForm.Item/index.vm.d.ts +0 -124
- package/dist/src/components/KgImage/KgImage.d.ts +0 -100
- package/dist/src/components/KgImage/index.d.ts +0 -1
- package/dist/src/components/KgLayoutHeader/index.d.ts +0 -1
- package/dist/src/components/KgLayoutHeader/index.hooks.d.ts +0 -4
- package/dist/src/components/KgModal/KgModal.d.ts +0 -817
- package/dist/src/components/KgModal/KgModal.service.d.ts +0 -39
- package/dist/src/components/KgModal/components/KgModal.HeaderButtons.d.ts +0 -92
- package/dist/src/components/KgModal/index.d.ts +0 -1
- package/dist/src/components/KgModal/index.vm.d.ts +0 -8
- package/dist/src/components/KgProgressA/KgProgressA.d.ts +0 -85
- package/dist/src/components/KgProgressA/index.d.ts +0 -1
- package/dist/src/components/KgResizable/KgResizable.d.ts +0 -91
- package/dist/src/components/KgResizable/KgResizable.service.d.ts +0 -12
- package/dist/src/components/KgResizable/index.d.ts +0 -1
- package/dist/src/components/KgSearch/KgSearch.d.ts +0 -26
- package/dist/src/components/KgSearch/KgSearch.service.d.ts +0 -32
- package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.d.ts +0 -16
- package/dist/src/components/KgSearch/index.d.ts +0 -3
- package/dist/src/components/KgSearch/index.hooks.d.ts +0 -66
- package/dist/src/components/KgSearch/index.store.d.ts +0 -147
- package/dist/src/components/KgSearch/index.vm.d.ts +0 -1
- package/dist/src/components/KgSubmit/KgSubmit.d.ts +0 -21
- package/dist/src/components/KgSubmit/KgSubmit.service.d.ts +0 -29
- package/dist/src/components/KgSubmit/index.d.ts +0 -4
- package/dist/src/components/KgSubmit/index.hooks.d.ts +0 -244
- package/dist/src/components/KgSubmit/index.store.d.ts +0 -175
- package/dist/src/components/KgSubmit/index.vm.d.ts +0 -57
- package/dist/src/components/KgTable/KgTable.d.ts +0 -39
- package/dist/src/components/KgTable/KgTable.service.d.ts +0 -32
- package/dist/src/components/KgTable/components/KgTable.BodyCell.d.ts +0 -60
- package/dist/src/components/KgTable/components/KgTable.HeaderCell.d.ts +0 -52
- package/dist/src/components/KgTable/components/KgTable.Info.d.ts +0 -57
- package/dist/src/components/KgTable/components/setting/KgTable.Setting.VarGridMaster.SaveAs.d.ts +0 -5
- package/dist/src/components/KgTable/components/setting/KgTable.Setting.d.ts +0 -21
- package/dist/src/components/KgTable/components/setting/KgTable.Setting.service.d.ts +0 -22
- package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.d.ts +0 -16
- package/dist/src/components/KgTable/index.d.ts +0 -4
- package/dist/src/components/KgTable/index.hooks.d.ts +0 -148
- package/dist/src/components/KgTable/index.store.d.ts +0 -241
- package/dist/src/components/KgTable/index.vm.d.ts +0 -67
- package/dist/src/components/KgVar/KgVar.d.ts +0 -114
- package/dist/src/components/KgVar/index.d.ts +0 -4
- package/dist/src/components/KgVar/index.hooks.d.ts +0 -154
- package/dist/src/components/KgVar/index.store.d.ts +0 -250
- package/dist/src/components/KgVar/index.store.service.d.ts +0 -22
- package/dist/src/components/KgVar/index.vm.d.ts +0 -55
- package/dist/src/components/KgVarConfig/KgVarConfig.d.ts +0 -3
- package/dist/src/components/KgVarConfig/components/KgVarConfig.Modal.d.ts +0 -16
- package/dist/src/components/KgVarConfig/components/KgVarConfig.SelectFormIdModal.d.ts +0 -27
- package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts +0 -7
- package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.d.ts +0 -7
- package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.d.ts +0 -5
- package/dist/src/components/KgVarConfig/components/child/KgVarConfig.Modal.Child.d.ts +0 -7
- package/dist/src/components/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileConfig.d.ts +0 -7
- package/dist/src/components/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileMaster.d.ts +0 -7
- package/dist/src/components/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileMaster.service.d.ts +0 -7
- package/dist/src/components/KgVarConfig/components/search/KgVarConfig.Modal.Search.d.ts +0 -5
- package/dist/src/components/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitConfig.d.ts +0 -7
- package/dist/src/components/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitDetail.d.ts +0 -7
- package/dist/src/components/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.d.ts +0 -5
- package/dist/src/components/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridConfig.d.ts +0 -7
- package/dist/src/components/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridMaster.d.ts +0 -7
- package/dist/src/components/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridMaster.service.d.ts +0 -23
- package/dist/src/components/KgVarConfig/components/table/KgVarConfig.Modal.Table.d.ts +0 -5
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigControl.d.ts +0 -2
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigDescription.d.ts +0 -2
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigInput.d.ts +0 -2
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigLookup.d.ts +0 -2
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigPossibility.d.ts +0 -2
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigTip.d.ts +0 -2
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariable.d.ts +0 -2
- package/dist/src/components/KgVarConfig/index.d.ts +0 -3
- package/dist/src/components/KgVarConfig/index.hooks.d.ts +0 -17
- package/dist/src/components/KgVarConfig/index.store.d.ts +0 -16
- package/dist/src/components/KgVarConfig/index.vm.d.ts +0 -50
- package/dist/src/components/KgWarehouse/KgWarehouse.d.ts +0 -38
- package/dist/src/components/KgWarehouse/index.d.ts +0 -4
- package/dist/src/components/KgWarehouse/index.guard.d.ts +0 -8
- package/dist/src/components/KgWarehouse/index.hooks.d.ts +0 -28
- package/dist/src/components/KgWarehouse/index.store.d.ts +0 -61
- package/dist/src/components/KgYesOrNo/KgYesOrNo.d.ts +0 -60
- package/dist/src/components/KgYesOrNo/index.d.ts +0 -1
- package/dist/src/components/index.d.ts +0 -18
- package/dist/src/components/util.d.ts +0 -14
- package/dist/src/config/index.d.ts +0 -3
- package/dist/src/config/index.hooks.d.ts +0 -35
- package/dist/src/config/index.store.d.ts +0 -294
- package/dist/src/config/setup.d.ts +0 -45
- package/dist/src/consts/i18n/en.d.ts +0 -265
- package/dist/src/consts/i18n/index.d.ts +0 -2
- package/dist/src/consts/i18n/zh_CN.d.ts +0 -265
- package/dist/src/consts/index.d.ts +0 -3
- package/dist/src/consts/index.vm.d.ts +0 -731
- package/dist/src/consts/injection-keys.const.d.ts +0 -9
- package/dist/src/helpers/ant-design-vue.d.ts +0 -347
- package/dist/src/helpers/tsx.helper.d.ts +0 -23
- package/dist/src/index.d.ts +0 -10
- package/dist/src/pages/KgPageDda/KgPageDda.d.ts +0 -8
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Basic.SqlModal.d.ts +0 -32
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Basic.d.ts +0 -7
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Button.d.ts +0 -7
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Menu.d.ts +0 -7
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Search.d.ts +0 -7
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Submit.d.ts +0 -7
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Table.d.ts +0 -7
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.d.ts +0 -33
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +0 -1346
- package/dist/src/pages/KgPageDda/index.d.ts +0 -5
- package/dist/src/pages/KgPageDda/index.vm.d.ts +0 -12
- package/dist/src/pages/KgVarFactory/KgVarFactory.d.ts +0 -62
- package/dist/src/pages/KgVarFactory/index.d.ts +0 -1
- package/dist/src/pages/index.d.ts +0 -9
- package/dist/src/project/index.d.ts +0 -2
- package/dist/src/project/src/api/index.d.ts +0 -3
- package/dist/src/project/src/api/sys/model/menuModel.d.ts +0 -15
- package/dist/src/project/src/api/sys/model/uploadModel.d.ts +0 -5
- package/dist/src/project/src/api/sys/model/userModel.d.ts +0 -46
- package/dist/src/project/src/components/Dropdown/index.d.ts +0 -1
- package/dist/src/project/src/components/Dropdown/src/typing.d.ts +0 -9
- package/dist/src/project/src/components/index.d.ts +0 -1
- package/dist/src/project/src/enums/CompTypeEnum.d.ts +0 -19
- package/dist/src/project/src/enums/DateTypeEnum.d.ts +0 -8
- package/dist/src/project/src/enums/appEnum.d.ts +0 -40
- package/dist/src/project/src/enums/breakpointEnum.d.ts +0 -18
- package/dist/src/project/src/enums/cacheEnum.d.ts +0 -18
- package/dist/src/project/src/enums/exceptionEnum.d.ts +0 -17
- package/dist/src/project/src/enums/httpEnum.d.ts +0 -38
- package/dist/src/project/src/enums/index.d.ts +0 -13
- package/dist/src/project/src/enums/jeecgEnum.d.ts +0 -16
- package/dist/src/project/src/enums/menuEnum.d.ts +0 -35
- package/dist/src/project/src/enums/pageEnum.d.ts +0 -14
- package/dist/src/project/src/enums/roleEnum.d.ts +0 -4
- package/dist/src/project/src/enums/sizeEnum.d.ts +0 -18
- package/dist/src/project/src/index.d.ts +0 -3
- package/dist/src/project/src/settings/componentSetting.d.ts +0 -44
- package/dist/src/project/src/settings/designSetting.d.ts +0 -6
- package/dist/src/project/src/settings/encryptionSetting.d.ts +0 -6
- package/dist/src/project/src/settings/index.d.ts +0 -4
- package/dist/src/project/src/settings/localeSetting.d.ts +0 -7
- package/dist/src/project/types/axios.d.ts +0 -35
- package/dist/src/project/types/config.d.ts +0 -109
- package/dist/src/project/types/index.d.ts +0 -4
- package/dist/src/project/types/store.d.ts +0 -42
- package/dist/src/project/types/utils.d.ts +0 -4
- package/dist/src/services/http-client.d.ts +0 -50
- package/dist/src/services/index.d.ts +0 -1
- package/dist/src/utils/index.d.ts +0 -6
- package/dist/src/utils/kg-auth.util.d.ts +0 -26
- package/dist/src/utils/kg-dom.util.d.ts +0 -12
- package/dist/src/utils/kg-logger.util.d.ts +0 -69
- package/dist/src/utils/kg-route.util.d.ts +0 -57
- package/dist/src/utils/kg-var.util.d.ts +0 -93
- package/dist/src/utils/kg.util.d.ts +0 -131
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Ref, UnwrapRef } from 'vue';
|
|
2
|
-
import { KgSubmitProps } from './KgSubmit';
|
|
3
|
-
export declare function _useFormModel(): {
|
|
4
|
-
model: Ref<Record<string, any>>;
|
|
5
|
-
};
|
|
6
|
-
export declare type IUseResizeObserver = {};
|
|
7
|
-
export declare function _useResizeObserver(kgFormRef: Ref<UnwrapRef<HTMLDivElement | null>>): IUseResizeObserver;
|
|
8
|
-
export declare function _useTitle(): {
|
|
9
|
-
/**
|
|
10
|
-
* 弹窗标题.
|
|
11
|
-
*/
|
|
12
|
-
title: import("vue").ComputedRef<string>;
|
|
13
|
-
};
|
|
14
|
-
export declare function _useClass(props: KgSubmitProps): {
|
|
15
|
-
/**
|
|
16
|
-
* 弹窗样式.
|
|
17
|
-
*/
|
|
18
|
-
getClass: import("vue").ComputedRef<string>;
|
|
19
|
-
/**
|
|
20
|
-
* 弹窗容器样式.
|
|
21
|
-
*/
|
|
22
|
-
getWrapClass: import("vue").ComputedRef<string>;
|
|
23
|
-
};
|
|
24
|
-
export declare function _useDefaultWidth(): {
|
|
25
|
-
/**
|
|
26
|
-
* 默认宽度.
|
|
27
|
-
*/
|
|
28
|
-
getDefaultWidth: import("vue").ComputedRef<number>;
|
|
29
|
-
};
|
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
import { FormInstance } from 'ant-design-vue';
|
|
2
|
-
import { ComputedRef, Ref } from 'vue';
|
|
3
|
-
import { VarSubmitConfig, VarSubmitDetail } from '../../apis/WMS/models';
|
|
4
|
-
import { IKgVarSubmitConfigProperties, IRemoveEventListenerHandler, KG__VAR_BUTTON__TYPE, KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE, KG__VAR_SUBMIT_CONFIG__LABEL_COLUMN_UNIT, KG__VAR_SUBMIT_CONFIG__LAYOUT } from '../../consts';
|
|
5
|
-
import { IKgSubmitAfterValidateEventListener, IKgSubmitBeforeOkEventListener, IKgSubmitBeforeOpenEventListener, IKgSubmitBeforeRequestEventListener, IKgSubmitCloseEventListener, IKgSubmitErrorEventListener, IKgSubmitOkEventListener, IKgSubmitOpenEventListener, IKgSubmitStore } from './index.store';
|
|
6
|
-
export interface IUseKgSubmit {
|
|
7
|
-
/**
|
|
8
|
-
* <p>「当前按钮」的「提交表单配置」.</p>
|
|
9
|
-
*/
|
|
10
|
-
currentVarSubmitConfig: ComputedRef<VarSubmitConfig | null>;
|
|
11
|
-
/**
|
|
12
|
-
* <p>「当前按钮」的「提交表单配置」的显示方式.</p>
|
|
13
|
-
*/
|
|
14
|
-
currentVarSubmitConfig$DisplayType: ComputedRef<KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE>;
|
|
15
|
-
/**
|
|
16
|
-
* <p>「当前按钮」的「提交表单配置」的布局.</p>
|
|
17
|
-
*/
|
|
18
|
-
currentVarSubmitConfig$Layout: ComputedRef<KG__VAR_SUBMIT_CONFIG__LAYOUT>;
|
|
19
|
-
/**
|
|
20
|
-
* <p>「当前按钮」的「提交表单配置」的配置属性.</p>
|
|
21
|
-
*/
|
|
22
|
-
currentVarSubmitConfig$Props: ComputedRef<IKgVarSubmitConfigProperties>;
|
|
23
|
-
/**
|
|
24
|
-
* <p>「当前按钮」的「提交表单字段」的所属分组(可见的).</p>
|
|
25
|
-
*/
|
|
26
|
-
currentVarSubmitDetailSectionsForVisible: ComputedRef<string[]>;
|
|
27
|
-
/**
|
|
28
|
-
* <p>「当前按钮」的「提交表单字段」.</p>
|
|
29
|
-
*/
|
|
30
|
-
currentVarSubmitDetails: ComputedRef<VarSubmitDetail[]>;
|
|
31
|
-
/**
|
|
32
|
-
* <p>「当前按钮」的「提交表单字段」(关键的).</p>
|
|
33
|
-
*/
|
|
34
|
-
currentVarSubmitDetailsForKey: ComputedRef<VarSubmitDetail[]>;
|
|
35
|
-
/**
|
|
36
|
-
* <p>「当前按钮」的「提交表单字段」(关键的, 可见的).</p>
|
|
37
|
-
*/
|
|
38
|
-
currentVarSubmitDetailsForKeyAndVisible: ComputedRef<VarSubmitDetail[]>;
|
|
39
|
-
/**
|
|
40
|
-
* <p>「当前按钮」的「提交表单字段」(非关键的).</p>
|
|
41
|
-
*/
|
|
42
|
-
currentVarSubmitDetailsForNotKey: ComputedRef<VarSubmitDetail[]>;
|
|
43
|
-
/**
|
|
44
|
-
* <p>「当前按钮」的「提交表单字段」(非关键的, 可见的).</p>
|
|
45
|
-
*/
|
|
46
|
-
currentVarSubmitDetailsForNotKeyAndVisible: ComputedRef<VarSubmitDetail[]>;
|
|
47
|
-
/**
|
|
48
|
-
* <p>「当前按钮」的「提交表单字段」(可见的).</p>
|
|
49
|
-
*/
|
|
50
|
-
currentVarSubmitDetailsForVisible: ComputedRef<VarSubmitDetail[]>;
|
|
51
|
-
/**
|
|
52
|
-
* 界面标识.
|
|
53
|
-
*/
|
|
54
|
-
formID: string;
|
|
55
|
-
/**
|
|
56
|
-
* 表单数据对象.
|
|
57
|
-
*/
|
|
58
|
-
formModel: ComputedRef<Record<string, any>>;
|
|
59
|
-
/**
|
|
60
|
-
* 表单组件.
|
|
61
|
-
*/
|
|
62
|
-
formRef: Ref<FormInstance | null>;
|
|
63
|
-
/**
|
|
64
|
-
* 自定义的表单验证规则.
|
|
65
|
-
*/
|
|
66
|
-
formRules: ReturnType<IKgSubmitStore['getFormRules']>;
|
|
67
|
-
/**
|
|
68
|
-
* <p>获取「提交表单配置」, 根据所传参数进行过滤.</p>
|
|
69
|
-
*
|
|
70
|
-
* <ul>
|
|
71
|
-
* <li>
|
|
72
|
-
* <p>如果参数 {@link param} 不传或者 {@link param} === undefined, 表示获取「当前按钮」的「提交表单配置」.</p>
|
|
73
|
-
* </li>
|
|
74
|
-
* <li>
|
|
75
|
-
* <p>如果参数 {@link param.buttonVarName} !== <code>undefined</code>, 则忽略参数 {@link param.buttonType}, 根据 {@link param.buttonVarName} 和 {@link VarSubmitConfig.button_var_name} 是否匹配进行过滤.</p>
|
|
76
|
-
* </li>
|
|
77
|
-
* <li>
|
|
78
|
-
* <p>如果参数 {@link param.buttonVarName} === <code>undefined</code> && {@link param.buttonType} !== <code>undefined</code>, 则先根据参数 {@link param.buttonType} 获取按钮, 然后根据 {@link VarButton.var_nam} 和 {@link VarSubmitConfig.button_var_name} 是否匹配进行过滤.</p>
|
|
79
|
-
* </li>
|
|
80
|
-
* </ul>
|
|
81
|
-
*
|
|
82
|
-
* @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
|
|
83
|
-
* @param param.buttonVarName <p>按钮的变量名称, 对应的是 {@link VarButton.var_nam} 属性.</p>
|
|
84
|
-
*/
|
|
85
|
-
getVarSubmitConfig(param?: {
|
|
86
|
-
buttonType?: KG__VAR_BUTTON__TYPE;
|
|
87
|
-
buttonVarName?: string | null;
|
|
88
|
-
}): VarSubmitConfig | null;
|
|
89
|
-
/**
|
|
90
|
-
* <p>获取提交表单字段, 根据所传参数进行过滤.</p>
|
|
91
|
-
*
|
|
92
|
-
* <ul>
|
|
93
|
-
* <li>
|
|
94
|
-
* <p>如果参数 {@link param} === null || {@link param} === undefined, 表示获取所有的提交表单字段.</p>
|
|
95
|
-
* </li>
|
|
96
|
-
* <li>
|
|
97
|
-
* <p>如果参数 {@link param.buttonVarName} !== <code>undefined</code>, 则忽略参数 {@link param.buttonType}, 根据 {@link param.buttonVarName} 和 {@link VarSubmitDetail.button_var_name} 是否匹配进行过滤.</p>
|
|
98
|
-
* </li>
|
|
99
|
-
* <li>
|
|
100
|
-
* <p>如果参数 {@link param.buttonVarName} === <code>undefined</code> && {@link param.buttonType} !== <code>undefined</code>, 则先根据参数 {@link param.buttonType} 获取按钮, 然后根据 {@link VarButton.var_nam} 和 {@link VarSubmitDetail.button_var_name} 是否匹配进行过滤.</p>
|
|
101
|
-
* </li>
|
|
102
|
-
* <li>
|
|
103
|
-
* <p>如果参数 {@link param.varName} !== <code>undefined</code> , 则根据 {@link param.varName} 和 {@link VarSubmitDetail.var_nam} 是否匹配进行过滤.</p>
|
|
104
|
-
* </li>
|
|
105
|
-
* <li>
|
|
106
|
-
* <p>如果参数 {@link param.isVisible} !== <code>undefined</code> , 则根据 {@link param.isVisible} 和 {@link VarSubmitDetail.visible_flag} 是否匹配进行过滤.</p>
|
|
107
|
-
* </li>
|
|
108
|
-
* </ul>
|
|
109
|
-
*
|
|
110
|
-
* @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
|
|
111
|
-
* @param param.buttonVarName <p>按钮的变量名称, 对应的是 {@link VarButton.var_nam} 属性.</p>
|
|
112
|
-
* @param param.isVisible 提交表单字段是否可见, 对应的是 {@link VarSubmitDetail.visible_flag} 属性.
|
|
113
|
-
* @param param.varName 提交表单字段的变量名, 对应的是 {@link VarSubmitDetail.var_nam} 属性.
|
|
114
|
-
*/
|
|
115
|
-
getVarSubmitDetails(param?: {
|
|
116
|
-
buttonType?: KG__VAR_BUTTON__TYPE;
|
|
117
|
-
buttonVarName?: string | null;
|
|
118
|
-
isVisible?: 0 | 1 | null;
|
|
119
|
-
varName?: string | null;
|
|
120
|
-
} | null): Array<VarSubmitDetail>;
|
|
121
|
-
/**
|
|
122
|
-
* 表单数据对象.
|
|
123
|
-
*
|
|
124
|
-
* @deprecated 请使用 {@link formModel}
|
|
125
|
-
*/
|
|
126
|
-
model: ComputedRef<Record<string, any>>;
|
|
127
|
-
/**
|
|
128
|
-
* <p>监听事件: 点击确认按钮之后, 表单验证完成.</p>
|
|
129
|
-
* <p>回调函数如果返回 true, 则不会再执行后面的代码.</p>
|
|
130
|
-
*
|
|
131
|
-
* @param listener 事件监听函数.
|
|
132
|
-
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
133
|
-
* @return {} 移除事件监听函数.
|
|
134
|
-
*/
|
|
135
|
-
onAfterValidate(listener: IKgSubmitAfterValidateEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
|
136
|
-
/**
|
|
137
|
-
* <p>监听事件: 点击确认按钮之后, 执行默认逻辑之前.</p>
|
|
138
|
-
* <ul>
|
|
139
|
-
* <li>可以在此时修改表单数据对象,</li>
|
|
140
|
-
* <li>可以在此时修改表单验证规则,</li>
|
|
141
|
-
* </ul>
|
|
142
|
-
* <p>回调函数如果返回 true, 则不会再执行后面的代码.</p>
|
|
143
|
-
*
|
|
144
|
-
* @param listener 事件监听函数.
|
|
145
|
-
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
146
|
-
* @return {} 移除事件监听函数.
|
|
147
|
-
*/
|
|
148
|
-
onBeforeOk(listener: IKgSubmitBeforeOkEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
|
149
|
-
/**
|
|
150
|
-
* <p>监听事件: 打开提交弹窗之前.</p>
|
|
151
|
-
* @param listener 事件监听函数.
|
|
152
|
-
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
153
|
-
* @return {} 移除事件监听函数.
|
|
154
|
-
*/
|
|
155
|
-
onBeforeOpen(listener: IKgSubmitBeforeOpenEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
|
156
|
-
/**
|
|
157
|
-
* <p>监听事件: 发起接口请求之前. 表单验证完成, 参数解析完成.</p>
|
|
158
|
-
* <p>回调函数如果返回 true, 则不会再执行后面的代码.</p>
|
|
159
|
-
*
|
|
160
|
-
* @param listener 事件监听函数.
|
|
161
|
-
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
162
|
-
* @return {} 移除事件监听函数.
|
|
163
|
-
*/
|
|
164
|
-
onBeforeRequest(listener: IKgSubmitBeforeRequestEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
|
165
|
-
/**
|
|
166
|
-
* <p>监听事件: 关闭提交弹窗. 下面几种场景都会触发此事件:</p>
|
|
167
|
-
* <ul>
|
|
168
|
-
* <li>点击右上角的关闭按钮,</li>
|
|
169
|
-
* <li>点击取消按钮,</li>
|
|
170
|
-
* <li>点击保存按钮之后, 调用接口成功, 关闭弹窗,</li>
|
|
171
|
-
* </ul>
|
|
172
|
-
* @param listener 事件监听函数.
|
|
173
|
-
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
174
|
-
* @return {} 移除事件监听函数.
|
|
175
|
-
*/
|
|
176
|
-
onClose(listener: IKgSubmitCloseEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
|
177
|
-
/**
|
|
178
|
-
* <p>监听事件: 请求失败. 请求失败了, 或者请求返回了错误消息.</p>
|
|
179
|
-
* @param listener 事件监听函数.
|
|
180
|
-
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
181
|
-
* @return {} 移除事件监听函数.
|
|
182
|
-
*/
|
|
183
|
-
onError(listener: IKgSubmitErrorEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
|
184
|
-
/**
|
|
185
|
-
* <p>监听事件: 点击保存按钮之后, 执行默认逻辑之后, 调用接口成功, 关闭提交弹窗之后.</p>
|
|
186
|
-
* @param listener 事件监听函数.
|
|
187
|
-
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
188
|
-
* @return {} 移除事件监听函数.
|
|
189
|
-
*/
|
|
190
|
-
onOk(listener: IKgSubmitOkEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
|
191
|
-
/**
|
|
192
|
-
* <p>监听事件: 打开提交弹窗.</p>
|
|
193
|
-
* @param listener 事件监听函数.
|
|
194
|
-
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
195
|
-
* @return {} 移除事件监听函数.
|
|
196
|
-
*/
|
|
197
|
-
onOpen(listener: IKgSubmitOpenEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
|
198
|
-
/**
|
|
199
|
-
* <p>修改某个「提交表单字段」的部分属性.</p>
|
|
200
|
-
* <p>如果参数 param.buttonType 和 param.buttonVarName 都为 undefined, 表示修改的是「当前按钮」的「提交表单字段」.</p>
|
|
201
|
-
*
|
|
202
|
-
* @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
|
|
203
|
-
* @param param.buttonVarName <p>按钮的变量名称, 对应的是 {@link VarButton.var_nam} 属性.</p>
|
|
204
|
-
* @param param.properties 要修改的部分属性.
|
|
205
|
-
* @param param.varName 「提交表单字段」的变量名称, 对应的是 {@link VarSubmitDetail.var_nam} 属性.
|
|
206
|
-
*/
|
|
207
|
-
patchVarSubmitDetail(param: {
|
|
208
|
-
buttonType?: KG__VAR_BUTTON__TYPE;
|
|
209
|
-
buttonVarName?: string | null;
|
|
210
|
-
properties: VarSubmitDetail;
|
|
211
|
-
varName: string | null | undefined;
|
|
212
|
-
}): void;
|
|
213
|
-
/**
|
|
214
|
-
* 表单验证规则.
|
|
215
|
-
*
|
|
216
|
-
* @deprecated 请使用 {@link formRules}.
|
|
217
|
-
*/
|
|
218
|
-
rules: ReturnType<IKgSubmitStore['getFormRules']>;
|
|
219
|
-
/**
|
|
220
|
-
* <p>「查询按钮」的「提交表单配置」.</p>
|
|
221
|
-
*/
|
|
222
|
-
searchVarSubmitConfig: ComputedRef<VarSubmitConfig | null>;
|
|
223
|
-
/**
|
|
224
|
-
* <p>「查询按钮」的「提交表单配置」的文本宽度.</p>
|
|
225
|
-
*/
|
|
226
|
-
searchVarSubmitConfig$LabelColumn: ComputedRef<number>;
|
|
227
|
-
/**
|
|
228
|
-
* <p>「查询按钮」的「提交表单配置」的文本宽度单位.</p>
|
|
229
|
-
*/
|
|
230
|
-
searchVarSubmitConfig$LabelColumnUnit: ComputedRef<KG__VAR_SUBMIT_CONFIG__LABEL_COLUMN_UNIT>;
|
|
231
|
-
/**
|
|
232
|
-
* <p>「查询按钮」的「提交表单配置」的布局.</p>
|
|
233
|
-
*/
|
|
234
|
-
searchVarSubmitConfig$Layout: ComputedRef<KG__VAR_SUBMIT_CONFIG__LAYOUT>;
|
|
235
|
-
/**
|
|
236
|
-
* 状态数据.
|
|
237
|
-
*/
|
|
238
|
-
store: IKgSubmitStore;
|
|
239
|
-
varSubmitConfigs: ComputedRef<Array<VarSubmitConfig>>;
|
|
240
|
-
}
|
|
241
|
-
/**
|
|
242
|
-
* @param formID 界面标识.
|
|
243
|
-
*/
|
|
244
|
-
export declare function useKgSubmit(formID?: string | null): IUseKgSubmit;
|
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
import { RuleObject } from 'ant-design-vue/es/form';
|
|
2
|
-
import { FormInstance } from 'ant-design-vue/lib/form/Form';
|
|
3
|
-
import { StoreDefinition } from 'pinia';
|
|
4
|
-
import { Ref } from 'vue';
|
|
5
|
-
import { VarSubmitConfig, VarSubmitDetail } from '../../apis/WMS/models';
|
|
6
|
-
import { IKgEventListener, KG__VAR_BUTTON__TYPE } from '../../consts';
|
|
7
|
-
import { KgAny } from '../../types';
|
|
8
|
-
import { IKgTableRow } from '../KgTable';
|
|
9
|
-
/**
|
|
10
|
-
* 事件类型.
|
|
11
|
-
* 'beforeOpen': 打开提交弹窗之前
|
|
12
|
-
* 'open': 打开提交弹窗
|
|
13
|
-
* 'beforeOk': 点击确认按钮之后, 执行默认逻辑之前
|
|
14
|
-
* 'afterValidate': 点击确认按钮之后, 表单验证完成,
|
|
15
|
-
* 'beforeRequest': 发起接口请求之前. 表单验证完成, 参数解析完成,
|
|
16
|
-
* 'ok': 请求成功, 关闭提交弹窗之后
|
|
17
|
-
* 'error': 请求失败. 请求失败了, 或者请求返回了错误消息
|
|
18
|
-
* 'close': 关闭提交弹窗
|
|
19
|
-
*/
|
|
20
|
-
export declare type IKgSubmitEvent = 'beforeOpen' | 'open' | 'beforeOk' | 'afterValidate' | 'beforeRequest' | 'ok' | 'error' | 'close';
|
|
21
|
-
export declare type IKgSubmitBeforeOpenEventListenerParameter = {
|
|
22
|
-
isCreating: boolean | null;
|
|
23
|
-
isUpdating: boolean | null;
|
|
24
|
-
isCopying: boolean | null;
|
|
25
|
-
isDeleting: boolean | null;
|
|
26
|
-
row: IKgTableRow | null;
|
|
27
|
-
};
|
|
28
|
-
export declare type IKgSubmitBeforeOpenEventListener = ((param: IKgSubmitBeforeOpenEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
29
|
-
export declare type IKgSubmitOpenEventListenerParameter = {
|
|
30
|
-
/** @deprecated 请直接使用 {@link IUseKgVar.isCreating} */
|
|
31
|
-
isCreating: boolean | null;
|
|
32
|
-
/** @deprecated 请直接使用 {@link IUseKgVar.isUpdating} */
|
|
33
|
-
isUpdating: boolean | null;
|
|
34
|
-
/** @deprecated 请直接使用 {@link IUseKgVar.isCopying} */
|
|
35
|
-
isCopying: boolean | null;
|
|
36
|
-
/** @deprecated 请直接使用 {@link IUseKgVar.isDeleting} */
|
|
37
|
-
isDeleting: boolean | null;
|
|
38
|
-
/** @deprecated 请直接使用 {@link IUseKgTable.selectedRow} */
|
|
39
|
-
row: IKgTableRow | null;
|
|
40
|
-
/** @deprecated 请直接使用 {@link IUseKgSearch.formModel} */
|
|
41
|
-
model: Ref<Record<string, any>>;
|
|
42
|
-
};
|
|
43
|
-
export declare type IKgSubmitOpenEventListener = ((param: IKgSubmitOpenEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
44
|
-
export declare type IKgSubmitBeforeOkEventListenerParameter = {
|
|
45
|
-
/**
|
|
46
|
-
* 表单数据对象.
|
|
47
|
-
* @deprecated 已弃用, 请使用 {@link IUseKgSubmit.formModel}
|
|
48
|
-
*/
|
|
49
|
-
model: Ref<Record<string, any>>;
|
|
50
|
-
};
|
|
51
|
-
export declare type IKgSubmitBeforeOkEventListener = ((param: IKgSubmitBeforeOkEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
52
|
-
export declare type IKgSubmitAfterValidateEventListenerParameter = {
|
|
53
|
-
isCopying: boolean | null;
|
|
54
|
-
isCreating: boolean | null;
|
|
55
|
-
isDeleting: boolean | null;
|
|
56
|
-
isUpdating: boolean | null;
|
|
57
|
-
model: Ref<Record<string, any>>;
|
|
58
|
-
row: IKgTableRow | null;
|
|
59
|
-
rows: Array<IKgTableRow> | null;
|
|
60
|
-
};
|
|
61
|
-
export declare type IKgSubmitAfterValidateEventListener = ((param: IKgSubmitAfterValidateEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
62
|
-
export declare type IKgSubmitBeforeRequestEventListenerParameter = {
|
|
63
|
-
/**
|
|
64
|
-
* <p>请求参数. 是一个对象或者列表. 是对「表单数据对象」解析之后得到的请求参数, 如果需要修改某些参数, 则直接修改该对象的属性即可.</p>
|
|
65
|
-
*/
|
|
66
|
-
data: Ref<KgAny>;
|
|
67
|
-
/** @deprecated */
|
|
68
|
-
isCopying: boolean | null;
|
|
69
|
-
/** @deprecated */
|
|
70
|
-
isCreating: boolean | null;
|
|
71
|
-
/** @deprecated */
|
|
72
|
-
isDeleting: boolean | null;
|
|
73
|
-
/** @deprecated */
|
|
74
|
-
isUpdating: boolean | null;
|
|
75
|
-
/** @deprecated */
|
|
76
|
-
model: Ref<Record<string, any>>;
|
|
77
|
-
/**
|
|
78
|
-
* 请求参数.
|
|
79
|
-
*/
|
|
80
|
-
params: Ref<Record<string, any>>;
|
|
81
|
-
/** @deprecated */
|
|
82
|
-
row: IKgTableRow | null;
|
|
83
|
-
/** @deprecated */
|
|
84
|
-
rows: Array<IKgTableRow> | null;
|
|
85
|
-
};
|
|
86
|
-
export declare type IKgSubmitBeforeRequestEventListener = ((param: IKgSubmitBeforeRequestEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
87
|
-
export declare type IKgSubmitOkEventListenerParameter = {
|
|
88
|
-
isCreating: boolean | null;
|
|
89
|
-
isUpdating: boolean | null;
|
|
90
|
-
isCopying: boolean | null;
|
|
91
|
-
isDeleting: boolean | null;
|
|
92
|
-
row: IKgTableRow | null;
|
|
93
|
-
model: Ref<Record<string, any>>;
|
|
94
|
-
/** 接口返回结果. */
|
|
95
|
-
result: any | null;
|
|
96
|
-
};
|
|
97
|
-
export declare type IKgSubmitOkEventListener = ((param: IKgSubmitOkEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
98
|
-
export declare type IKgSubmitErrorEventListenerParameter = {};
|
|
99
|
-
export declare type IKgSubmitErrorEventListener = ((param: IKgSubmitErrorEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
100
|
-
export declare type IKgSubmitCloseEventListenerParameter = {} | null | undefined;
|
|
101
|
-
export declare type IKgSubmitCloseEventListener = ((param: IKgSubmitCloseEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
102
|
-
export declare type IKgSubmitEventListenerParameter = IKgSubmitBeforeOpenEventListenerParameter | IKgSubmitOpenEventListenerParameter | IKgSubmitBeforeOkEventListenerParameter | IKgSubmitAfterValidateEventListenerParameter | IKgSubmitBeforeRequestEventListenerParameter | IKgSubmitOkEventListenerParameter | IKgSubmitErrorEventListenerParameter | IKgSubmitCloseEventListenerParameter;
|
|
103
|
-
export declare type IKgSubmitEventListener = IKgSubmitBeforeOpenEventListener | IKgSubmitOpenEventListener | IKgSubmitBeforeOkEventListener | IKgSubmitAfterValidateEventListener | IKgSubmitBeforeRequestEventListener | IKgSubmitOkEventListener | IKgSubmitErrorEventListener | IKgSubmitCloseEventListener;
|
|
104
|
-
export interface IUseKgSubmitStoreState {
|
|
105
|
-
afterValidateEventListenersMap: Map<string, Array<IKgSubmitAfterValidateEventListener>>;
|
|
106
|
-
beforeOkEventListenersMap: Map<string, Array<IKgSubmitBeforeOkEventListener>>;
|
|
107
|
-
beforeOpenEventListenersMap: Map<string, Array<IKgSubmitBeforeOpenEventListener>>;
|
|
108
|
-
beforeRequestEventListenersMap: Map<string, Array<IKgSubmitBeforeRequestEventListener>>;
|
|
109
|
-
closeEventListenersMap: Map<string, Array<IKgSubmitCloseEventListener>>;
|
|
110
|
-
errorEventListenersMap: Map<string, Array<IKgSubmitErrorEventListener>>;
|
|
111
|
-
/** 表单数据对象. */
|
|
112
|
-
formModelMap: Map<string, Record<string, any>>;
|
|
113
|
-
/** 表单对象. */
|
|
114
|
-
formRefMap: Map<string, Ref<FormInstance | null>>;
|
|
115
|
-
/**
|
|
116
|
-
* <p>自定义的表单验证规则.</p>
|
|
117
|
-
* <p>在 beforeOk 事件中会将此对象传给调用者, 调用者可以修改此对象, 从而添加自定义的表单验证规则.</p>
|
|
118
|
-
*/
|
|
119
|
-
formRulesMap: Map<string, Ref<Record<string, Array<RuleObject>>>>;
|
|
120
|
-
isLoadingMap: Map<string, boolean>;
|
|
121
|
-
okEventListenersMap: Map<string, Array<IKgSubmitOkEventListener>>;
|
|
122
|
-
openEventListenersMap: Map<string, Array<IKgSubmitOpenEventListener>>;
|
|
123
|
-
}
|
|
124
|
-
export interface IUseKgSubmitStoreGetters {
|
|
125
|
-
getFormModel(): (formID?: string | null) => Record<string, any> | null;
|
|
126
|
-
getFormRef(): (formID?: string | null) => Ref<FormInstance | null>;
|
|
127
|
-
getFormRules(): (formID?: string | null) => Ref<Record<string, Array<RuleObject>>>;
|
|
128
|
-
getVarSubmitConfig(): (formID: string | null | undefined, param?: {
|
|
129
|
-
buttonType?: KG__VAR_BUTTON__TYPE;
|
|
130
|
-
buttonVarName?: string | null;
|
|
131
|
-
}) => VarSubmitConfig | null;
|
|
132
|
-
getVarSubmitConfigs(): (formID: string | null | undefined) => Array<VarSubmitConfig>;
|
|
133
|
-
getVarSubmitDetails(): (formID: string | null | undefined, param?: {
|
|
134
|
-
buttonType?: KG__VAR_BUTTON__TYPE;
|
|
135
|
-
buttonVarName?: string | null;
|
|
136
|
-
isKey?: 0 | 1 | null;
|
|
137
|
-
isVisible?: 0 | 1 | null;
|
|
138
|
-
varName?: string | null;
|
|
139
|
-
} | null) => Array<VarSubmitDetail>;
|
|
140
|
-
/** 是否处于加载状态. */
|
|
141
|
-
isLoading(): (formID?: string | null) => boolean;
|
|
142
|
-
}
|
|
143
|
-
export interface IUseKgSubmitStoreActions {
|
|
144
|
-
/**
|
|
145
|
-
* 注册事件监听.
|
|
146
|
-
* @param formID 界面标识.
|
|
147
|
-
* @param event 事件名称.
|
|
148
|
-
* @param listener 事件监听函数.
|
|
149
|
-
*/
|
|
150
|
-
addEventListener(formID: string, event: IKgSubmitEvent, listener: IKgSubmitEventListener): void;
|
|
151
|
-
/**
|
|
152
|
-
* 清理数据.
|
|
153
|
-
* @param formID 页面标识.
|
|
154
|
-
*/
|
|
155
|
-
dispose(formID?: string | null): void;
|
|
156
|
-
emit<T = IKgSubmitEventListenerParameter>(formID: string, event: IKgSubmitEvent, param: T): Promise<boolean>;
|
|
157
|
-
patchVarSubmitDetail(formID: string | null | undefined, param: {
|
|
158
|
-
buttonType?: KG__VAR_BUTTON__TYPE;
|
|
159
|
-
buttonVarName?: string | null;
|
|
160
|
-
properties: VarSubmitDetail;
|
|
161
|
-
varName: string | null | undefined;
|
|
162
|
-
}): void;
|
|
163
|
-
/**
|
|
164
|
-
* 退订事件监听.
|
|
165
|
-
* @param formID 界面标识.
|
|
166
|
-
* @param event 事件名称.
|
|
167
|
-
* @param listener 事件监听函数.
|
|
168
|
-
*/
|
|
169
|
-
removeEventListener(formID: string, event: IKgSubmitEvent, listener?: IKgSubmitEventListener): void;
|
|
170
|
-
setFormModel(formID?: string | null, model?: Record<string, any> | null): void;
|
|
171
|
-
setIsLoading(formID: string, value: boolean): void;
|
|
172
|
-
}
|
|
173
|
-
export declare type IUseKgSubmitStore = StoreDefinition<'KgSubmit', IUseKgSubmitStoreState, IUseKgSubmitStoreGetters, IUseKgSubmitStoreActions>;
|
|
174
|
-
export declare type IKgSubmitStore = ReturnType<IUseKgSubmitStore>;
|
|
175
|
-
export declare const useKgSubmitStore: IUseKgSubmitStore;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { KG__VAR_SUBMIT_CONFIG__LAYOUT } from '../../consts';
|
|
2
|
-
/**
|
|
3
|
-
* 表单的左边距.
|
|
4
|
-
*/
|
|
5
|
-
export declare const FORM_PADDING_LEFT = 6;
|
|
6
|
-
/**
|
|
7
|
-
* 表单的右边距.
|
|
8
|
-
*/
|
|
9
|
-
export declare const FOMR_PADDING_RIGHT = 6;
|
|
10
|
-
/**
|
|
11
|
-
* 表单控件宽度.
|
|
12
|
-
*/
|
|
13
|
-
export declare const FOMR_ITEM_WIDTH = 400;
|
|
14
|
-
/**
|
|
15
|
-
* 表单控件间隔距离.
|
|
16
|
-
*/
|
|
17
|
-
export declare const FOMR_ITEM_MARGIN = 12;
|
|
18
|
-
/**
|
|
19
|
-
* 除去表单之外, 其他部分所有的宽度之和.
|
|
20
|
-
*/
|
|
21
|
-
export declare const KG_SUBMIT_FRAME_WIDTH: number;
|
|
22
|
-
/**
|
|
23
|
-
* 获取弹窗宽度.
|
|
24
|
-
*
|
|
25
|
-
* @param param.span 列数.
|
|
26
|
-
*/
|
|
27
|
-
export declare function getKgModalWidth(param: {
|
|
28
|
-
span: number;
|
|
29
|
-
}): number;
|
|
30
|
-
/**
|
|
31
|
-
* 获取栅格布局行的宽度.
|
|
32
|
-
*
|
|
33
|
-
* @param param.span 列数.
|
|
34
|
-
*/
|
|
35
|
-
export declare function getRowWidth(param: {
|
|
36
|
-
span: number;
|
|
37
|
-
}): number;
|
|
38
|
-
/**
|
|
39
|
-
* 默认最小宽度, 刚好放下一个表单控件.
|
|
40
|
-
*/
|
|
41
|
-
export declare const SUBMIT_DEFAULT_MIN_WIDTH: number;
|
|
42
|
-
/**
|
|
43
|
-
* 默认宽度.
|
|
44
|
-
*/
|
|
45
|
-
export declare const SUBMIT_DEFAULT_WIDTH: number;
|
|
46
|
-
/**
|
|
47
|
-
* 默认布局方式.
|
|
48
|
-
*/
|
|
49
|
-
export declare const SUBMIT_DEFAULT_LAYOUT = KG__VAR_SUBMIT_CONFIG__LAYOUT.VERTICAL;
|
|
50
|
-
/**
|
|
51
|
-
* 单位为 SPAN 时, 文本的默认宽度.
|
|
52
|
-
*/
|
|
53
|
-
export declare const SUBMIT_DEFAULT_LABEL_COL_FOR_SPAN = 4;
|
|
54
|
-
/**
|
|
55
|
-
* 单位为 PX 时, 文本的默认宽度.
|
|
56
|
-
*/
|
|
57
|
-
export declare const SUBMIT_DEFAULT_LABEL_COL_FOR_PX = 100;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { RowClassName } from 'ant-design-vue/es/vc-table/interface';
|
|
2
|
-
import { ExtractPropTypes, PropType } from 'vue';
|
|
3
|
-
import './KgTable.less';
|
|
4
|
-
export declare const getProps: () => {
|
|
5
|
-
/** 是否禁用表格. */
|
|
6
|
-
kgDisabled: {
|
|
7
|
-
type: PropType<boolean>;
|
|
8
|
-
default: undefined;
|
|
9
|
-
};
|
|
10
|
-
/** 是否禁用某行的勾选框. */
|
|
11
|
-
kgCheckboxDisabled: PropType<(row: any) => boolean>;
|
|
12
|
-
/** 设置行的样式类名. */
|
|
13
|
-
kgRowClassName: PropType<RowClassName<any>>;
|
|
14
|
-
};
|
|
15
|
-
export declare type IKgTableProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
16
|
-
declare const _default: import("vue").DefineComponent<{
|
|
17
|
-
/** 是否禁用表格. */
|
|
18
|
-
kgDisabled: {
|
|
19
|
-
type: PropType<boolean>;
|
|
20
|
-
default: undefined;
|
|
21
|
-
};
|
|
22
|
-
/** 是否禁用某行的勾选框. */
|
|
23
|
-
kgCheckboxDisabled: PropType<(row: any) => boolean>;
|
|
24
|
-
/** 设置行的样式类名. */
|
|
25
|
-
kgRowClassName: PropType<RowClassName<any>>;
|
|
26
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
27
|
-
/** 是否禁用表格. */
|
|
28
|
-
kgDisabled: {
|
|
29
|
-
type: PropType<boolean>;
|
|
30
|
-
default: undefined;
|
|
31
|
-
};
|
|
32
|
-
/** 是否禁用某行的勾选框. */
|
|
33
|
-
kgCheckboxDisabled: PropType<(row: any) => boolean>;
|
|
34
|
-
/** 设置行的样式类名. */
|
|
35
|
-
kgRowClassName: PropType<RowClassName<any>>;
|
|
36
|
-
}>>, {
|
|
37
|
-
kgDisabled: boolean;
|
|
38
|
-
}>;
|
|
39
|
-
export default _default;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { ColumnsType } from 'ant-design-vue/es/table';
|
|
2
|
-
import { SorterResult } from 'ant-design-vue/es/table/interface';
|
|
3
|
-
import { ComputedRef, Ref, UnwrapRef } from 'vue';
|
|
4
|
-
import { IKgTableRow, KG_TABLE_CELL_CONTEXT } from './index.vm';
|
|
5
|
-
import { IKgTableProps } from './KgTable';
|
|
6
|
-
export declare function _useRenderBodyCell(): {
|
|
7
|
-
renderBodyCell: (args: any, context?: KG_TABLE_CELL_CONTEXT) => any;
|
|
8
|
-
};
|
|
9
|
-
export declare type IUseColumns = {
|
|
10
|
-
/** 表格的列. */
|
|
11
|
-
columns: ComputedRef<ColumnsType<IKgTableRow>>;
|
|
12
|
-
/** 当前过滤状态(哪些列有过滤, 哪些列没过滤). */
|
|
13
|
-
filterInfo: Ref<Record<string, any>>;
|
|
14
|
-
/** 当前排序状态. */
|
|
15
|
-
sorterInfo: Ref<SorterResult<any>>;
|
|
16
|
-
/** 横向滚动宽度. */
|
|
17
|
-
scrollX: ComputedRef<string>;
|
|
18
|
-
};
|
|
19
|
-
export declare function _useColumns(props: IKgTableProps): IUseColumns;
|
|
20
|
-
export declare function _useLoading(): {
|
|
21
|
-
/** 是否显示加载状态. */
|
|
22
|
-
isLoading: ComputedRef<boolean>;
|
|
23
|
-
};
|
|
24
|
-
export declare function _useResizeObserver(kgTableRef: Ref<UnwrapRef<HTMLDivElement | null>>): {};
|
|
25
|
-
export declare function _useDragColumn(kgTableRef: Ref<UnwrapRef<HTMLDivElement | null>>, columns: ComputedRef<ColumnsType<IKgTableRow>>): {};
|
|
26
|
-
export declare function _useDatas(): {
|
|
27
|
-
transformDatas: (response: Ref<any>) => {
|
|
28
|
-
datas: Ref<Array<IKgTableRow>>;
|
|
29
|
-
total: Ref<number>;
|
|
30
|
-
};
|
|
31
|
-
requestDescriptions: () => Promise<void>;
|
|
32
|
-
};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
import { IKgTableRow, KG_TABLE_CELL_CONTEXT } from '../index.vm';
|
|
3
|
-
export declare const getProps: () => {
|
|
4
|
-
/** 行对象. */
|
|
5
|
-
kgRow: PropType<IKgTableRow>;
|
|
6
|
-
/** 列数据. */
|
|
7
|
-
kgValue: PropType<any>;
|
|
8
|
-
/** 变量名称. */
|
|
9
|
-
kgVarName: PropType<string | null>;
|
|
10
|
-
/**
|
|
11
|
-
* 所处环境.
|
|
12
|
-
* @default KG_TABLE_CELL_CONTEXT.TABLE_CELL
|
|
13
|
-
*/
|
|
14
|
-
kgContext: {
|
|
15
|
-
type: PropType<string>;
|
|
16
|
-
default: KG_TABLE_CELL_CONTEXT;
|
|
17
|
-
};
|
|
18
|
-
/** 点击链接, 打开更新弹窗. */
|
|
19
|
-
onKgUpdateLinkClick: PropType<() => void>;
|
|
20
|
-
};
|
|
21
|
-
declare const _default: import("vue").DefineComponent<{
|
|
22
|
-
/** 行对象. */
|
|
23
|
-
kgRow: PropType<IKgTableRow>;
|
|
24
|
-
/** 列数据. */
|
|
25
|
-
kgValue: PropType<any>;
|
|
26
|
-
/** 变量名称. */
|
|
27
|
-
kgVarName: PropType<string | null>;
|
|
28
|
-
/**
|
|
29
|
-
* 所处环境.
|
|
30
|
-
* @default KG_TABLE_CELL_CONTEXT.TABLE_CELL
|
|
31
|
-
*/
|
|
32
|
-
kgContext: {
|
|
33
|
-
type: PropType<string>;
|
|
34
|
-
default: KG_TABLE_CELL_CONTEXT;
|
|
35
|
-
};
|
|
36
|
-
/** 点击链接, 打开更新弹窗. */
|
|
37
|
-
onKgUpdateLinkClick: PropType<() => void>;
|
|
38
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgUpdateLinkClick"[], "kgUpdateLinkClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
39
|
-
/** 行对象. */
|
|
40
|
-
kgRow: PropType<IKgTableRow>;
|
|
41
|
-
/** 列数据. */
|
|
42
|
-
kgValue: PropType<any>;
|
|
43
|
-
/** 变量名称. */
|
|
44
|
-
kgVarName: PropType<string | null>;
|
|
45
|
-
/**
|
|
46
|
-
* 所处环境.
|
|
47
|
-
* @default KG_TABLE_CELL_CONTEXT.TABLE_CELL
|
|
48
|
-
*/
|
|
49
|
-
kgContext: {
|
|
50
|
-
type: PropType<string>;
|
|
51
|
-
default: KG_TABLE_CELL_CONTEXT;
|
|
52
|
-
};
|
|
53
|
-
/** 点击链接, 打开更新弹窗. */
|
|
54
|
-
onKgUpdateLinkClick: PropType<() => void>;
|
|
55
|
-
}>> & {
|
|
56
|
-
onKgUpdateLinkClick?: ((...args: any[]) => any) | undefined;
|
|
57
|
-
}, {
|
|
58
|
-
kgContext: string;
|
|
59
|
-
}>;
|
|
60
|
-
export default _default;
|