@kengic/vue 0.26.6-beta.10 → 0.26.6-beta.100
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +16 -0
- package/dist/bulb-outlined.93f68e9f.mjs +8 -0
- package/dist/caret-right-outlined.f3fc4d46.mjs +8 -0
- package/dist/close-outlined-DMcSQWxQ.36beccf9.mjs +8 -0
- package/dist/fullscreen-exit-outlined-X1iYkFc4.19c370ee.mjs +8 -0
- package/dist/fullscreen-exit-outlined.a75b82c2.mjs +8 -0
- package/dist/fullscreen-outlined-DDBrsRcy.55126763.mjs +8 -0
- package/dist/fullscreen-outlined.c9ba7960.mjs +8 -0
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +59276 -41149
- package/dist/pause-outlined.a5f6ccbd.mjs +8 -0
- package/dist/project/build/vite/plugin/index.ts +14 -1
- package/dist/src/api/WMS/Controllers/DescriptionController/List.d.ts +51 -0
- package/dist/src/api/WMS/Controllers/DescriptionController/ListByCodeNamesAndCodeValues.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/DescriptionController/index.d.ts +2 -0
- package/dist/src/api/WMS/Controllers/SysPermissionController/List.d.ts +73 -0
- package/dist/src/api/WMS/Controllers/SysPermissionController/index.d.ts +1 -0
- package/dist/src/api/WMS/Controllers/VarConfigDescriptionController/Add.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarConfigDescriptionController/index.d.ts +1 -0
- package/dist/src/api/WMS/Controllers/VarConfigPossibilityController/ExecuteQuery.d.ts +18 -0
- package/dist/src/api/WMS/Controllers/VarConfigPossibilityController/index.d.ts +1 -0
- package/dist/src/api/WMS/Controllers/VarController/GetAll.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarController/index.d.ts +1 -0
- package/dist/src/api/WMS/Controllers/VarDdaController/Create.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarDdaController/GetResultSetMetadataFromSql.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarDdaController/ValidateCopySql.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarDdaController/ValidateCreateSql.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarDdaController/ValidateDeleteSql.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarDdaController/ValidateFrmId.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarDdaController/ValidateSearchSql.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarDdaController/ValidateUpdateSql.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarDdaController/ValidateVarButtonVarName.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarDdaController/index.d.ts +9 -0
- package/dist/src/api/WMS/Controllers/VarGridMasterController/QueryByID.d.ts +19 -0
- package/dist/src/api/WMS/Controllers/VarGridMasterController/Update.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarGridMasterController/index.d.ts +2 -0
- package/dist/src/api/WMS/Controllers/VarProfileMasterController/QueryByID.d.ts +19 -0
- package/dist/src/api/WMS/Controllers/VarProfileMasterController/index.d.ts +1 -0
- package/dist/src/api/WMS/Controllers/VarVariableController/Delete.d.ts +16 -0
- package/dist/src/api/WMS/Controllers/VarVariableController/index.d.ts +1 -0
- package/dist/src/api/WMS/Controllers/WhController/ListVO.d.ts +54 -0
- package/dist/src/api/WMS/Controllers/WhController/index.d.ts +1 -0
- package/dist/src/api/WMS/Controllers/WorkstationController/List.d.ts +25 -0
- package/dist/src/api/WMS/Controllers/WorkstationController/index.d.ts +1 -0
- package/dist/src/api/WMS/Controllers/index.d.ts +11 -0
- package/dist/src/api/WMS/index.d.ts +2 -0
- package/dist/src/api/WMS/models.d.ts +1018 -0
- package/dist/src/api/api.d.ts +1 -0
- package/dist/src/api/def.d.ts +1 -0
- package/dist/src/api/index.d.ts +2 -0
- package/dist/src/component/KgAppSelect/KgAppSelect.d.ts +47 -0
- package/dist/src/component/KgAppSelect/index.d.ts +3 -0
- package/dist/src/component/KgAppSelect/index.hooks.d.ts +41 -0
- package/dist/src/component/KgAppSelect/index.store.d.ts +74 -0
- package/dist/src/component/KgButton/KgButton.Item.d.ts +41 -0
- package/dist/src/component/KgButton/KgButton.Item.data.d.ts +31 -0
- package/dist/src/component/KgButton/KgButton.d.ts +40 -0
- package/dist/src/component/KgButton/components/KgButton.Copy.d.ts +40 -0
- package/dist/src/component/KgButton/components/KgButton.Create.d.ts +40 -0
- package/dist/src/component/KgButton/components/KgButton.Delete.d.ts +40 -0
- package/dist/src/component/KgButton/components/KgButton.Export.d.ts +40 -0
- package/dist/src/component/KgButton/components/KgButton.Import.d.ts +40 -0
- package/dist/src/component/KgButton/components/KgButton.ImportTemplate.d.ts +40 -0
- package/dist/src/component/KgButton/components/KgButton.Other.d.ts +40 -0
- package/dist/src/component/KgButton/components/KgButton.Search.d.ts +40 -0
- package/dist/src/component/KgButton/components/KgButton.Update.d.ts +40 -0
- package/dist/src/component/KgButton/index.d.ts +62 -0
- package/dist/src/component/KgButton/index.hooks.d.ts +183 -0
- package/dist/src/component/KgButton/index.store.d.ts +116 -0
- package/dist/src/component/KgCanvas/KgCanvas.ContextMenu.d.ts +104 -0
- package/dist/src/component/KgCanvas/KgCanvas.Toolbar.Fullscreen.d.ts +38 -0
- package/dist/src/component/KgCanvas/KgCanvas.Toolbar.OverviewScale.d.ts +38 -0
- package/dist/src/component/KgCanvas/KgCanvas.Tooltip.d.ts +28 -0
- package/dist/src/component/KgCanvas/KgCanvas.d.ts +155 -0
- package/dist/src/component/KgCanvas/KgCanvas.service.d.ts +43 -0
- package/dist/src/component/KgCanvas/index.d.ts +4 -0
- package/dist/src/component/KgCanvas/index.hooks.d.ts +67 -0
- package/dist/src/component/KgCanvas/index.store.d.ts +239 -0
- package/dist/src/component/KgCanvas/index.vm.d.ts +29 -0
- package/dist/src/component/KgForm/KgForm.d.ts +414 -0
- package/dist/src/component/KgForm/index.d.ts +604 -0
- package/dist/src/component/KgForm/index.hooks.d.ts +73 -0
- package/dist/src/component/KgForm/index.store.d.ts +221 -0
- package/dist/src/component/KgForm/index.vm.d.ts +9 -0
- package/dist/src/component/KgForm.Item/KgForm.Item.d.ts +97 -0
- package/dist/src/component/KgForm.Item/KgForm.Item.service.d.ts +17 -0
- package/dist/src/component/KgForm.Item/addon/KgForm.Item.Addon.DynamicQueryOperator.d.ts +49 -0
- package/dist/src/component/KgForm.Item/addon/KgForm.Item.Addon.Lookup.Modal.d.ts +16 -0
- package/dist/src/component/KgForm.Item/addon/KgForm.Item.Addon.Lookup.d.ts +31 -0
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +100 -0
- package/dist/src/component/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +99 -0
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Date.d.ts +97 -0
- package/dist/src/component/KgForm.Item/components/KgForm.Item.DateRange.d.ts +97 -0
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Image.d.ts +92 -0
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Input.d.ts +96 -0
- package/dist/src/component/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +96 -0
- package/dist/src/component/KgForm.Item/components/KgForm.Item.InputPassword.d.ts +96 -0
- package/dist/src/component/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +98 -0
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Select.d.ts +98 -0
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Select.service.d.ts +29 -0
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Switch.d.ts +96 -0
- package/dist/src/component/KgForm.Item/components/KgForm.Item.TextArea.d.ts +96 -0
- package/dist/src/component/KgForm.Item/index.d.ts +2 -0
- package/dist/src/component/KgForm.Item/index.vm.d.ts +124 -0
- package/dist/src/component/KgImage/KgImage.d.ts +100 -0
- package/dist/src/component/KgImage/index.d.ts +1 -0
- package/dist/src/component/KgLayoutHeader/components/KgLayoutHeaderLocale.d.ts +38 -0
- package/dist/src/component/KgLayoutHeader/index.d.ts +2 -0
- package/dist/src/component/KgLayoutHeader/index.hooks.d.ts +4 -0
- package/dist/src/component/KgModal/KgModal.d.ts +823 -0
- package/dist/src/component/KgModal/KgModalHeaderButtons.d.ts +92 -0
- package/dist/src/component/KgModal/hooks/useDragToMove.d.ts +12 -0
- package/dist/src/component/KgModal/hooks/useDragToResize.d.ts +29 -0
- package/dist/src/component/KgModal/index.d.ts +1 -0
- package/dist/src/component/KgModal/index.vm.d.ts +8 -0
- package/dist/src/component/KgProgressA/KgProgressA.d.ts +85 -0
- package/dist/src/component/KgProgressA/index.d.ts +1 -0
- package/dist/src/component/KgResizable/KgResizable.d.ts +91 -0
- package/dist/src/component/KgResizable/KgResizable.service.d.ts +12 -0
- package/dist/src/component/KgResizable/index.d.ts +1 -0
- package/dist/src/component/KgSearch/KgSearch.d.ts +26 -0
- package/dist/src/component/KgSearch/KgSearch.service.d.ts +32 -0
- package/dist/src/component/KgSearch/components/KgSearch.ConfigModal.d.ts +16 -0
- package/dist/src/component/KgSearch/index.d.ts +3 -0
- package/dist/src/component/KgSearch/index.hooks.d.ts +67 -0
- package/dist/src/component/KgSearch/index.store.d.ts +147 -0
- package/dist/src/component/KgSearch/index.vm.d.ts +1 -0
- package/dist/src/component/KgStation/KgStation.d.ts +47 -0
- package/dist/src/component/KgStation/index.d.ts +3 -0
- package/dist/src/component/KgStation/index.hooks.d.ts +29 -0
- package/dist/src/component/KgStation/index.store.d.ts +45 -0
- package/dist/src/component/KgSubmit/KgSubmit.d.ts +21 -0
- package/dist/src/component/KgSubmit/KgSubmit.service.d.ts +29 -0
- package/dist/src/component/KgSubmit/index.d.ts +4 -0
- package/dist/src/component/KgSubmit/index.hooks.d.ts +295 -0
- package/dist/src/component/KgSubmit/index.store.d.ts +194 -0
- package/dist/src/component/KgSubmit/index.vm.d.ts +57 -0
- package/dist/src/component/KgTable/KgTable.d.ts +39 -0
- package/dist/src/component/KgTable/KgTable.service.d.ts +34 -0
- package/dist/src/component/KgTable/components/KgTable.BodyCell.d.ts +60 -0
- package/dist/src/component/KgTable/components/KgTable.HeaderCell.d.ts +52 -0
- package/dist/src/component/KgTable/components/KgTable.Info.d.ts +57 -0
- package/dist/src/component/KgTable/components/setting/KgTable.Setting.VarGridMaster.SaveAs.d.ts +5 -0
- package/dist/src/component/KgTable/components/setting/KgTable.Setting.d.ts +21 -0
- package/dist/src/component/KgTable/components/setting/KgTable.Setting.service.d.ts +22 -0
- package/dist/src/component/KgTable/components/setting/config/KgTable.Setting.ConfigModal.d.ts +16 -0
- package/dist/src/component/KgTable/index.d.ts +4 -0
- package/dist/src/component/KgTable/index.hooks.d.ts +148 -0
- package/dist/src/component/KgTable/index.store.d.ts +241 -0
- package/dist/src/component/KgTable/index.vm.d.ts +67 -0
- package/dist/src/component/KgVar/KgVar.d.ts +114 -0
- package/dist/src/component/KgVar/KgVarFactory.d.ts +61 -0
- package/dist/src/component/KgVar/index.d.ts +5 -0
- package/dist/src/component/KgVar/index.hooks.d.ts +189 -0
- package/dist/src/component/KgVar/index.store.d.ts +266 -0
- package/dist/src/component/KgVar/index.store.service.d.ts +30 -0
- package/dist/src/component/KgVar/index.vm.d.ts +57 -0
- package/dist/src/component/KgVarConfig/KgVarConfig.d.ts +3 -0
- package/dist/src/component/KgVarConfig/components/KgVarConfig.SelectFormIdModal.d.ts +27 -0
- package/dist/src/component/KgVarConfig/components/KgVarConfigModal.d.ts +15 -0
- package/dist/src/component/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts +7 -0
- package/dist/src/component/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.d.ts +7 -0
- package/dist/src/component/KgVarConfig/components/button/KgVarConfig.Modal.Button.d.ts +5 -0
- package/dist/src/component/KgVarConfig/components/child/KgVarConfig.Modal.Child.d.ts +7 -0
- package/dist/src/component/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileConfig.d.ts +7 -0
- package/dist/src/component/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileMaster.d.ts +7 -0
- package/dist/src/component/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileMaster.service.d.ts +7 -0
- package/dist/src/component/KgVarConfig/components/search/KgVarConfig.Modal.Search.d.ts +5 -0
- package/dist/src/component/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitConfig.d.ts +7 -0
- package/dist/src/component/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitDetail.d.ts +7 -0
- package/dist/src/component/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.d.ts +5 -0
- package/dist/src/component/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridConfig.d.ts +7 -0
- package/dist/src/component/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridMaster.d.ts +7 -0
- package/dist/src/component/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridMaster.service.d.ts +23 -0
- package/dist/src/component/KgVarConfig/components/table/KgVarConfig.Modal.Table.d.ts +5 -0
- package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigControl.d.ts +2 -0
- package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigDescription.d.ts +2 -0
- package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigInput.d.ts +2 -0
- package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigLookup.d.ts +2 -0
- package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigPossibility.d.ts +2 -0
- package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigTip.d.ts +2 -0
- package/dist/src/component/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariable.d.ts +2 -0
- package/dist/src/component/KgVarConfig/index.d.ts +3 -0
- package/dist/src/component/KgVarConfig/index.hooks.d.ts +17 -0
- package/dist/src/component/KgVarConfig/index.store.d.ts +16 -0
- package/dist/src/component/KgVarConfig/index.vm.d.ts +50 -0
- package/dist/src/component/KgWarehouse/KgWarehouse.d.ts +47 -0
- package/dist/src/component/KgWarehouse/index.d.ts +4 -0
- package/dist/src/component/KgWarehouse/index.guard.d.ts +8 -0
- package/dist/src/component/KgWarehouse/index.hooks.d.ts +27 -0
- package/dist/src/component/KgWarehouse/index.store.d.ts +63 -0
- package/dist/src/component/KgYesOrNo/KgYesOrNo.d.ts +60 -0
- package/dist/src/component/KgYesOrNo/index.d.ts +1 -0
- package/dist/src/component/index.d.ts +21 -0
- package/dist/src/component/util.d.ts +14 -0
- package/dist/src/config/index.d.ts +3 -0
- package/dist/src/config/index.hooks.d.ts +36 -0
- package/dist/src/config/index.store.d.ts +315 -0
- package/dist/src/config/setup/index.d.ts +3 -0
- package/dist/src/config/setup/setup.d.ts +28 -0
- package/dist/src/config/setup/setupKgLocale.d.ts +29 -0
- package/dist/src/config/setup/setupKgStore.d.ts +18 -0
- package/dist/src/const/i18n/en.d.ts +281 -0
- package/dist/src/const/i18n/es_ES.d.ts +281 -0
- package/dist/src/const/i18n/fr_FR.d.ts +281 -0
- package/dist/src/const/i18n/index.d.ts +2 -0
- package/dist/src/const/i18n/km_KH.d.ts +281 -0
- package/dist/src/const/i18n/ko_KR.d.ts +281 -0
- package/dist/src/const/i18n/vi_VN.d.ts +281 -0
- package/dist/src/const/i18n/zh_CN.d.ts +282 -0
- package/dist/src/const/index.d.ts +3 -0
- package/dist/src/const/index.vm.d.ts +733 -0
- package/dist/src/const/injection-keys.const.d.ts +9 -0
- package/dist/src/helper/ant-design-vue.d.ts +347 -0
- package/dist/src/helper/tsx.helper.d.ts +23 -0
- package/dist/src/index.d.ts +11 -0
- package/dist/src/page/KgPageDda/KgPageDda.d.ts +8 -0
- package/dist/src/page/KgPageDda/components/KgPageDda.Create.Basic.SqlModal.d.ts +32 -0
- package/dist/src/page/KgPageDda/components/KgPageDda.Create.Basic.d.ts +7 -0
- package/dist/src/page/KgPageDda/components/KgPageDda.Create.Button.d.ts +7 -0
- package/dist/src/page/KgPageDda/components/KgPageDda.Create.Menu.d.ts +7 -0
- package/dist/src/page/KgPageDda/components/KgPageDda.Create.Search.d.ts +7 -0
- package/dist/src/page/KgPageDda/components/KgPageDda.Create.Submit.d.ts +7 -0
- package/dist/src/page/KgPageDda/components/KgPageDda.Create.Table.d.ts +7 -0
- package/dist/src/page/KgPageDda/components/KgPageDda.Create.d.ts +33 -0
- package/dist/src/page/KgPageDda/components/KgPageDda.Create.store.d.ts +1322 -0
- package/dist/src/page/KgPageDda/index.d.ts +5 -0
- package/dist/src/page/KgPageDda/index.vm.d.ts +12 -0
- package/dist/src/page/index.d.ts +8 -0
- package/dist/src/project/build/getConfigFileName.d.ts +5 -0
- package/dist/src/project/build/index.d.ts +1 -0
- package/dist/src/project/index.d.ts +3 -0
- package/dist/src/project/types/axios.d.ts +35 -0
- package/dist/src/project/types/config.d.ts +121 -0
- package/dist/src/project/types/index.d.ts +4 -0
- package/dist/src/project/types/store.d.ts +42 -0
- package/dist/src/project/types/utils.d.ts +4 -0
- package/dist/src/service/http-client.d.ts +93 -0
- package/dist/src/service/index.d.ts +1 -0
- package/dist/src/util/index.d.ts +4 -0
- package/dist/src/util/kg-auth.util.d.ts +26 -0
- package/dist/src/util/kg-route.util.d.ts +57 -0
- package/dist/src/util/kg-var.util.d.ts +76 -0
- package/dist/src/util/kg.util.d.ts +150 -0
- package/package.json +32 -21
- package/script/bump-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts +3 -0
- package/script/bump-to.luotao.smartfactory.product.wms.wms-vue3--focus.ts +3 -0
- package/script/bump-to.ts +38 -0
- package/script/bump.ts +35 -0
- package/script/copy-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts +3 -0
- package/script/copy-to.luotao.smartfactory.product.wms.wms-vue3--focus.ts +3 -0
- package/script/copy-to.luotao.smartfactory.tyre.haohua.gantry.was-java--main.ts +3 -0
- package/script/copy-to.ts +23 -0
- package/script/publish.ts +30 -0
@@ -0,0 +1,47 @@
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
2
|
+
import './KgStation.less';
|
3
|
+
export declare const getProps: () => {
|
4
|
+
/**
|
5
|
+
* <p>是否隐藏.</p>
|
6
|
+
* <p>此组件需要在不同的地方使用,</p>
|
7
|
+
* <ul>
|
8
|
+
* <li>在有的地方需要显示当前选择的工作站, 并且可以通过点击打开弹窗, 比如顶部导航栏,</li>
|
9
|
+
* <li>在有的地方, 不需要显示此组件, 用户通过参数控制是否打开弹窗, 比如登录页,</li>
|
10
|
+
* </ul>
|
11
|
+
*
|
12
|
+
* @default undefined
|
13
|
+
*/
|
14
|
+
kgInvisible: PropType<boolean>;
|
15
|
+
onKgOk: PropType<() => void>;
|
16
|
+
};
|
17
|
+
export declare type KgStationProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
18
|
+
declare const _default: import("vue").DefineComponent<{
|
19
|
+
/**
|
20
|
+
* <p>是否隐藏.</p>
|
21
|
+
* <p>此组件需要在不同的地方使用,</p>
|
22
|
+
* <ul>
|
23
|
+
* <li>在有的地方需要显示当前选择的工作站, 并且可以通过点击打开弹窗, 比如顶部导航栏,</li>
|
24
|
+
* <li>在有的地方, 不需要显示此组件, 用户通过参数控制是否打开弹窗, 比如登录页,</li>
|
25
|
+
* </ul>
|
26
|
+
*
|
27
|
+
* @default undefined
|
28
|
+
*/
|
29
|
+
kgInvisible: PropType<boolean>;
|
30
|
+
onKgOk: PropType<() => void>;
|
31
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgOk"[], "kgOk", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
32
|
+
/**
|
33
|
+
* <p>是否隐藏.</p>
|
34
|
+
* <p>此组件需要在不同的地方使用,</p>
|
35
|
+
* <ul>
|
36
|
+
* <li>在有的地方需要显示当前选择的工作站, 并且可以通过点击打开弹窗, 比如顶部导航栏,</li>
|
37
|
+
* <li>在有的地方, 不需要显示此组件, 用户通过参数控制是否打开弹窗, 比如登录页,</li>
|
38
|
+
* </ul>
|
39
|
+
*
|
40
|
+
* @default undefined
|
41
|
+
*/
|
42
|
+
kgInvisible: PropType<boolean>;
|
43
|
+
onKgOk: PropType<() => void>;
|
44
|
+
}>> & {
|
45
|
+
onKgOk?: ((...args: any[]) => any) | undefined;
|
46
|
+
}, {}>;
|
47
|
+
export default _default;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { Pinia } from 'pinia';
|
2
|
+
import { ComputedRef } from 'vue';
|
3
|
+
import { WorkstationAreaDTO, WorkstationDTO } from '../../api/WMS/models';
|
4
|
+
import { IKgStationStore } from './index.store';
|
5
|
+
export declare type IUseKgStation = {
|
6
|
+
/**
|
7
|
+
* 当前工作区.
|
8
|
+
*/
|
9
|
+
area: ComputedRef<WorkstationAreaDTO | null>;
|
10
|
+
/**
|
11
|
+
* 当前工作站.
|
12
|
+
*/
|
13
|
+
station: ComputedRef<WorkstationDTO | null>;
|
14
|
+
/**
|
15
|
+
* 所有工作站.
|
16
|
+
*/
|
17
|
+
stations: ComputedRef<IKgStationStore['getStations']>;
|
18
|
+
store: IKgStationStore;
|
19
|
+
/**
|
20
|
+
* 是否显示弹窗.
|
21
|
+
*/
|
22
|
+
visible: ComputedRef<IKgStationStore['getVisible']>;
|
23
|
+
};
|
24
|
+
/**
|
25
|
+
* 在某些地方调用时(比如在路由守卫中), pinia 尚未设置, 此时需要手动传入 pinia 实例.
|
26
|
+
*
|
27
|
+
* @param pinia
|
28
|
+
*/
|
29
|
+
export declare function useKgStation(pinia?: Pinia): IUseKgStation;
|
@@ -0,0 +1,45 @@
|
|
1
|
+
import { StoreDefinition } from 'pinia';
|
2
|
+
import { WorkstationDTO } from '../../api/WMS/models';
|
3
|
+
export interface IUseKgStationStoreState {
|
4
|
+
/**
|
5
|
+
* 当前工作站.
|
6
|
+
*/
|
7
|
+
station: WorkstationDTO | null;
|
8
|
+
/**
|
9
|
+
* 所有工作站.
|
10
|
+
*/
|
11
|
+
stations: Array<WorkstationDTO> | undefined;
|
12
|
+
/**
|
13
|
+
* 是否显示弹窗.
|
14
|
+
*/
|
15
|
+
visible: boolean;
|
16
|
+
}
|
17
|
+
export interface IUseKgStationStoreGetters {
|
18
|
+
getStation: WorkstationDTO | null;
|
19
|
+
getStations: Array<WorkstationDTO> | undefined;
|
20
|
+
/**
|
21
|
+
* 是否显示弹窗.
|
22
|
+
*/
|
23
|
+
getVisible: boolean;
|
24
|
+
}
|
25
|
+
export interface IUseKgStationStoreActions {
|
26
|
+
/**
|
27
|
+
* 查询所有工作站.
|
28
|
+
*/
|
29
|
+
requestStations(): Promise<void>;
|
30
|
+
/**
|
31
|
+
* 设置当前工作站.
|
32
|
+
*
|
33
|
+
* @param station 当前工作站.
|
34
|
+
*/
|
35
|
+
setStation(station?: WorkstationDTO | null): void;
|
36
|
+
/**
|
37
|
+
* 设置是否显示弹窗.
|
38
|
+
*
|
39
|
+
* @param visible 是否显示.
|
40
|
+
*/
|
41
|
+
setVisible(visible: boolean): void;
|
42
|
+
}
|
43
|
+
export declare type IUseKgStationStore = StoreDefinition<'KgStation', IUseKgStationStoreState, IUseKgStationStoreGetters, IUseKgStationStoreActions>;
|
44
|
+
export declare type IKgStationStore = ReturnType<IUseKgStationStore>;
|
45
|
+
export declare const useKgStationStore: IUseKgStationStore;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
2
|
+
import './KgSubmit.less';
|
3
|
+
export declare const getProps: () => {
|
4
|
+
/**
|
5
|
+
* 自定义的样式类名, 会附加到组件默认的样式类名后面.
|
6
|
+
*/
|
7
|
+
kgClass: PropType<string>;
|
8
|
+
};
|
9
|
+
export declare type KgSubmitProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
10
|
+
declare const _default: import("vue").DefineComponent<{
|
11
|
+
/**
|
12
|
+
* 自定义的样式类名, 会附加到组件默认的样式类名后面.
|
13
|
+
*/
|
14
|
+
kgClass: PropType<string>;
|
15
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
16
|
+
/**
|
17
|
+
* 自定义的样式类名, 会附加到组件默认的样式类名后面.
|
18
|
+
*/
|
19
|
+
kgClass: PropType<string>;
|
20
|
+
}>>, {}>;
|
21
|
+
export default _default;
|
@@ -0,0 +1,29 @@
|
|
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
|
+
};
|
@@ -0,0 +1,295 @@
|
|
1
|
+
import { FormInstance } from 'ant-design-vue';
|
2
|
+
import { ComputedRef, Ref } from 'vue';
|
3
|
+
import { VarProfileDetail, VarSubmitConfig, VarSubmitDetail } from '../../api/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 '../../const';
|
5
|
+
import { IKgSubmitAfterValidateEventListener, IKgSubmitBeforeOkEventListener, IKgSubmitBeforeOpenEventListener, IKgSubmitBeforeRequestEventListener, IKgSubmitCloseEventListener, IKgSubmitErrorEventListener, IKgSubmitOkEventListener, IKgSubmitOnBeforeCancelEventListener, IKgSubmitOnCancelEventListener, IKgSubmitOnOpenEventListener, IKgSubmitStore } from './index.store';
|
6
|
+
export interface IUseKgSubmit {
|
7
|
+
/**
|
8
|
+
* <p>添加一个「提交表单字段」.</p>
|
9
|
+
* <p>使用场景: 一般用于开发自定义页面时, 需要动态添加表单字段.</p>
|
10
|
+
*
|
11
|
+
* @param varSubmitDetail 要添加的「提交表单字段」.
|
12
|
+
*/
|
13
|
+
createVarSubmitDetail(varSubmitDetail: VarSubmitDetail): void;
|
14
|
+
/**
|
15
|
+
* <p>「当前按钮」的「提交表单配置」.</p>
|
16
|
+
*/
|
17
|
+
currentVarSubmitConfig: ComputedRef<VarSubmitConfig | null>;
|
18
|
+
/**
|
19
|
+
* <p>「当前按钮」的「提交表单配置」的显示方式.</p>
|
20
|
+
*/
|
21
|
+
currentVarSubmitConfig$DisplayType: ComputedRef<KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE>;
|
22
|
+
/**
|
23
|
+
* <p>「当前按钮」的「提交表单配置」的布局.</p>
|
24
|
+
*/
|
25
|
+
currentVarSubmitConfig$Layout: ComputedRef<KG__VAR_SUBMIT_CONFIG__LAYOUT>;
|
26
|
+
/**
|
27
|
+
* <p>「当前按钮」的「提交表单配置」的配置属性.</p>
|
28
|
+
*/
|
29
|
+
currentVarSubmitConfig$Props: ComputedRef<IKgVarSubmitConfigProperties>;
|
30
|
+
/**
|
31
|
+
* <p>「当前按钮」的「提交表单字段」的所属分组(可见的).</p>
|
32
|
+
*/
|
33
|
+
currentVarSubmitDetailSectionsForVisible: ComputedRef<string[]>;
|
34
|
+
/**
|
35
|
+
* <p>「当前按钮」的「提交表单字段」.</p>
|
36
|
+
*/
|
37
|
+
currentVarSubmitDetails: ComputedRef<VarSubmitDetail[]>;
|
38
|
+
/**
|
39
|
+
* <p>「当前按钮」的「提交表单字段」(关键的).</p>
|
40
|
+
*/
|
41
|
+
currentVarSubmitDetailsForKey: ComputedRef<VarSubmitDetail[]>;
|
42
|
+
/**
|
43
|
+
* <p>「当前按钮」的「提交表单字段」(关键的, 可见的).</p>
|
44
|
+
*/
|
45
|
+
currentVarSubmitDetailsForKeyAndVisible: ComputedRef<VarSubmitDetail[]>;
|
46
|
+
/**
|
47
|
+
* <p>「当前按钮」的「提交表单字段」(非关键的).</p>
|
48
|
+
*/
|
49
|
+
currentVarSubmitDetailsForNotKey: ComputedRef<VarSubmitDetail[]>;
|
50
|
+
/**
|
51
|
+
* <p>「当前按钮」的「提交表单字段」(非关键的, 可见的).</p>
|
52
|
+
*/
|
53
|
+
currentVarSubmitDetailsForNotKeyAndVisible: ComputedRef<VarSubmitDetail[]>;
|
54
|
+
/**
|
55
|
+
* <p>「当前按钮」的「提交表单字段」(可见的).</p>
|
56
|
+
*/
|
57
|
+
currentVarSubmitDetailsForVisible: ComputedRef<VarSubmitDetail[]>;
|
58
|
+
/**
|
59
|
+
* 界面标识.
|
60
|
+
*/
|
61
|
+
formID: string;
|
62
|
+
/**
|
63
|
+
* 表单数据对象.
|
64
|
+
*/
|
65
|
+
formModel: ComputedRef<Record<string, any>>;
|
66
|
+
/**
|
67
|
+
* 表单组件.
|
68
|
+
*/
|
69
|
+
formRef: Ref<FormInstance | null>;
|
70
|
+
/**
|
71
|
+
* 自定义的表单验证规则.
|
72
|
+
*/
|
73
|
+
formRules: ReturnType<IKgSubmitStore['getFormRules']>;
|
74
|
+
/**
|
75
|
+
* <p>获取「提交表单配置」, 根据所传参数进行过滤.</p>
|
76
|
+
*
|
77
|
+
* <ul>
|
78
|
+
* <li>
|
79
|
+
* <p>如果参数 {@link param} 不传或者 {@link param} === undefined, 表示获取「当前按钮」的「提交表单配置」.</p>
|
80
|
+
* </li>
|
81
|
+
* <li>
|
82
|
+
* <p>如果参数 {@link param.buttonVarName} !== <code>undefined</code>, 则忽略参数 {@link param.buttonType}, 根据 {@link param.buttonVarName} 和 {@link VarSubmitConfig.button_var_name} 是否匹配进行过滤.</p>
|
83
|
+
* </li>
|
84
|
+
* <li>
|
85
|
+
* <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>
|
86
|
+
* </li>
|
87
|
+
* </ul>
|
88
|
+
*
|
89
|
+
* @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
|
90
|
+
* @param param.buttonVarName <p>按钮的变量名称, 对应的是 {@link VarButton.var_nam} 属性.</p>
|
91
|
+
*/
|
92
|
+
getVarSubmitConfig(param?: {
|
93
|
+
buttonType?: KG__VAR_BUTTON__TYPE;
|
94
|
+
buttonVarName?: string | null;
|
95
|
+
}): VarSubmitConfig | null;
|
96
|
+
/**
|
97
|
+
* 根据「查询条件视图明细」获取「提交表单字段」.
|
98
|
+
*
|
99
|
+
* @param param.varProfileDetail 查询条件视图明细.
|
100
|
+
*/
|
101
|
+
getVarSubmitDetailByVarProfileDetail(param?: {
|
102
|
+
varProfileDetail: VarProfileDetail | null;
|
103
|
+
}): VarSubmitDetail | null;
|
104
|
+
/**
|
105
|
+
* <p>获取提交表单字段, 根据所传参数进行过滤.</p>
|
106
|
+
*
|
107
|
+
* <ul>
|
108
|
+
* <li>
|
109
|
+
* <p>如果参数 {@link param} === null || {@link param} === undefined, 表示获取所有的提交表单字段.</p>
|
110
|
+
* </li>
|
111
|
+
* <li>
|
112
|
+
* <p>如果参数 {@link param.buttonVarName} !== <code>undefined</code>, 则忽略参数 {@link param.buttonType}, 根据 {@link param.buttonVarName} 和 {@link VarSubmitDetail.button_var_name} 是否匹配进行过滤.</p>
|
113
|
+
* </li>
|
114
|
+
* <li>
|
115
|
+
* <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>
|
116
|
+
* </li>
|
117
|
+
* <li>
|
118
|
+
* <p>如果参数 {@link param.varName} !== <code>undefined</code> , 则根据 {@link param.varName} 和 {@link VarSubmitDetail.var_nam} 是否匹配进行过滤.</p>
|
119
|
+
* </li>
|
120
|
+
* <li>
|
121
|
+
* <p>如果参数 {@link param.searchProfileVarName} !== <code>undefined</code> , 则根据 {@link param.searchProfileVarName} 和 {@link VarSubmitDetail.prf_var_nam} 是否匹配进行过滤.</p>
|
122
|
+
* </li>
|
123
|
+
* <li>
|
124
|
+
* <p>如果参数 {@link param.isKey} !== <code>undefined</code> , 则根据 {@link param.isKey} 和 {@link VarSubmitDetail.key_flg} 是否匹配进行过滤.</p>
|
125
|
+
* </li>
|
126
|
+
* <li>
|
127
|
+
* <p>如果参数 {@link param.isVisible} !== <code>undefined</code> , 则根据 {@link param.isVisible} 和 {@link VarSubmitDetail.visible_flag} 是否匹配进行过滤.</p>
|
128
|
+
* </li>
|
129
|
+
* </ul>
|
130
|
+
*
|
131
|
+
* @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
|
132
|
+
* @param param.buttonVarName <p>按钮的变量名称, 对应的是 {@link VarButton.var_nam} 属性.</p>
|
133
|
+
* @param param.isKey 提交表单字段是否可见, 对应的是 {@link VarSubmitDetail.key_flg} 属性.
|
134
|
+
* @param param.isVisible 提交表单字段是否可见, 对应的是 {@link VarSubmitDetail.visible_flag} 属性.
|
135
|
+
* @param param.searchProfileVarName 提交表单字段的所属查询条件视图的变量名称, 对应的是 {@link VarSubmitDetail.prf_var_nam} 属性.
|
136
|
+
* @param param.varName 提交表单字段的变量名, 对应的是 {@link VarSubmitDetail.var_nam} 属性.
|
137
|
+
*/
|
138
|
+
getVarSubmitDetails(param?: {
|
139
|
+
buttonType?: KG__VAR_BUTTON__TYPE;
|
140
|
+
buttonVarName?: string | null;
|
141
|
+
isKey?: 0 | 1 | null;
|
142
|
+
isVisible?: 0 | 1 | null;
|
143
|
+
searchProfileVarName?: string | null;
|
144
|
+
varName?: string | null;
|
145
|
+
} | null): Array<VarSubmitDetail>;
|
146
|
+
/**
|
147
|
+
* 表单数据对象.
|
148
|
+
*
|
149
|
+
* @deprecated 请使用 {@link formModel}
|
150
|
+
*/
|
151
|
+
model: ComputedRef<Record<string, any>>;
|
152
|
+
/**
|
153
|
+
* <p>监听事件: 点击确认按钮之后, 表单验证完成.</p>
|
154
|
+
* <p>回调函数如果返回 true, 则不会再执行后面的代码.</p>
|
155
|
+
*
|
156
|
+
* @param listener 事件监听函数.
|
157
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
158
|
+
* @return {} 移除事件监听函数.
|
159
|
+
*/
|
160
|
+
onAfterValidate(listener: IKgSubmitAfterValidateEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
161
|
+
/**
|
162
|
+
* <p>监听事件: 点击取消按钮, 或者点击右上角的关闭按钮, 尚未关闭弹窗.</p>
|
163
|
+
* @param listener 事件监听函数.
|
164
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
165
|
+
* @return {} 移除事件监听函数.
|
166
|
+
*/
|
167
|
+
onBeforeCancel(listener: IKgSubmitOnBeforeCancelEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
168
|
+
/**
|
169
|
+
* <p>监听事件: 点击确认按钮之后, 执行默认逻辑之前.</p>
|
170
|
+
* <ul>
|
171
|
+
* <li>可以在此时修改表单数据对象,</li>
|
172
|
+
* <li>可以在此时修改表单验证规则,</li>
|
173
|
+
* </ul>
|
174
|
+
* <p>回调函数如果返回 true, 则不会再执行后面的代码.</p>
|
175
|
+
*
|
176
|
+
* @param listener 事件监听函数.
|
177
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
178
|
+
* @return {} 移除事件监听函数.
|
179
|
+
*/
|
180
|
+
onBeforeOk(listener: IKgSubmitBeforeOkEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
181
|
+
/**
|
182
|
+
* <p>监听事件: 打开提交弹窗之前.</p>
|
183
|
+
* @param listener 事件监听函数.
|
184
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
185
|
+
* @return {} 移除事件监听函数.
|
186
|
+
*/
|
187
|
+
onBeforeOpen(listener: IKgSubmitBeforeOpenEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
188
|
+
/**
|
189
|
+
* <p>监听事件: 发起接口请求之前. 表单验证完成, 参数解析完成.</p>
|
190
|
+
* <p>回调函数如果返回 true, 则不会再执行后面的代码.</p>
|
191
|
+
*
|
192
|
+
* @param listener 事件监听函数.
|
193
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
194
|
+
* @return {} 移除事件监听函数.
|
195
|
+
*/
|
196
|
+
onBeforeRequest(listener: IKgSubmitBeforeRequestEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
197
|
+
/**
|
198
|
+
* <p>监听事件: 点击取消按钮, 或者点击右上角的关闭按钮, 已经关闭弹窗.</p>
|
199
|
+
* @param listener 事件监听函数.
|
200
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
201
|
+
* @return {} 移除事件监听函数.
|
202
|
+
*/
|
203
|
+
onCancel(listener: IKgSubmitOnCancelEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
204
|
+
/**
|
205
|
+
* <p>监听事件: 关闭提交弹窗. 下面几种场景都会触发此事件:</p>
|
206
|
+
* <ul>
|
207
|
+
* <li>点击右上角的关闭按钮,</li>
|
208
|
+
* <li>点击取消按钮,</li>
|
209
|
+
* <li>点击保存按钮之后, 调用接口成功, 关闭弹窗,</li>
|
210
|
+
* </ul>
|
211
|
+
* @param listener 事件监听函数.
|
212
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
213
|
+
* @return {} 移除事件监听函数.
|
214
|
+
*/
|
215
|
+
onClose(listener: IKgSubmitCloseEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
216
|
+
/**
|
217
|
+
* <p>监听事件: 请求失败. 请求失败了, 或者请求返回了错误消息.</p>
|
218
|
+
* @param listener 事件监听函数.
|
219
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
220
|
+
* @return {} 移除事件监听函数.
|
221
|
+
*/
|
222
|
+
onError(listener: IKgSubmitErrorEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
223
|
+
/**
|
224
|
+
* <p>监听事件: 点击保存按钮之后, 执行默认逻辑之后, 调用接口成功, 关闭提交弹窗之后.</p>
|
225
|
+
* @param listener 事件监听函数.
|
226
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
227
|
+
* @return {} 移除事件监听函数.
|
228
|
+
*/
|
229
|
+
onOk(listener: IKgSubmitOkEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
230
|
+
/**
|
231
|
+
* <p>监听事件: 打开提交弹窗.</p>
|
232
|
+
* @param listener 事件监听函数.
|
233
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
234
|
+
* @return {} 移除事件监听函数.
|
235
|
+
*/
|
236
|
+
onOpen(listener: IKgSubmitOnOpenEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
237
|
+
/**
|
238
|
+
* <p>修改某个「提交表单字段」的部分属性.</p>
|
239
|
+
*
|
240
|
+
* <p>由于提交表单肯定是关联某个按钮的, 因此需要先确认是哪个按钮, 确认逻辑如下:</p>
|
241
|
+
* <ul>
|
242
|
+
* <li>
|
243
|
+
* <p>如果参数 {@link param.buttonVarName} === <code>undefined</code> && {@link param.buttonVarName} === <code>undefined</code>, 表示修改的是「当前按钮」.</p>
|
244
|
+
* </li>
|
245
|
+
* <li>
|
246
|
+
* <p>如果参数 {@link param.buttonVarName} !== <code>undefined</code>, 则忽略参数 {@link param.buttonType}, 根据 {@link param.buttonVarName} 和 {@link VarButton.var_nam} 是否匹配来确认按钮.</p>
|
247
|
+
* </li>
|
248
|
+
* <li>
|
249
|
+
* <p>如果参数 {@link param.buttonType} !== <code>undefined</code> && {@link param.buttonType} !== <code>OTHER</code>, 根据 {@link param.buttonType} 和 {@link VarButton.typ} 是否匹配来确认按钮.</p>
|
250
|
+
* </li>
|
251
|
+
* </ul>
|
252
|
+
*
|
253
|
+
* @param param.buttonType <p>按钮的类型, 对应的是 {@link VarButton.typ} 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
|
254
|
+
* @param param.buttonVarName <p>按钮的变量名称, 对应的是 {@link VarButton.var_nam} 属性.</p>
|
255
|
+
* @param param.properties 要修改的部分属性.
|
256
|
+
* @param param.varName 「提交表单字段」的变量名称, 对应的是 {@link VarSubmitDetail.var_nam} 属性.
|
257
|
+
*/
|
258
|
+
patchVarSubmitDetail(param: {
|
259
|
+
buttonType?: KG__VAR_BUTTON__TYPE;
|
260
|
+
buttonVarName?: string | null;
|
261
|
+
properties: VarSubmitDetail;
|
262
|
+
varName: string | null | undefined;
|
263
|
+
}): Promise<void>;
|
264
|
+
/**
|
265
|
+
* 表单验证规则.
|
266
|
+
*
|
267
|
+
* @deprecated 请使用 {@link formRules}.
|
268
|
+
*/
|
269
|
+
rules: ReturnType<IKgSubmitStore['getFormRules']>;
|
270
|
+
/**
|
271
|
+
* <p>「查询按钮」的「提交表单配置」.</p>
|
272
|
+
*/
|
273
|
+
searchVarSubmitConfig: ComputedRef<VarSubmitConfig | null>;
|
274
|
+
/**
|
275
|
+
* <p>「查询按钮」的「提交表单配置」的文本宽度.</p>
|
276
|
+
*/
|
277
|
+
searchVarSubmitConfig$LabelColumn: ComputedRef<number>;
|
278
|
+
/**
|
279
|
+
* <p>「查询按钮」的「提交表单配置」的文本宽度单位.</p>
|
280
|
+
*/
|
281
|
+
searchVarSubmitConfig$LabelColumnUnit: ComputedRef<KG__VAR_SUBMIT_CONFIG__LABEL_COLUMN_UNIT>;
|
282
|
+
/**
|
283
|
+
* <p>「查询按钮」的「提交表单配置」的布局.</p>
|
284
|
+
*/
|
285
|
+
searchVarSubmitConfig$Layout: ComputedRef<KG__VAR_SUBMIT_CONFIG__LAYOUT>;
|
286
|
+
/**
|
287
|
+
* 状态数据.
|
288
|
+
*/
|
289
|
+
store: IKgSubmitStore;
|
290
|
+
varSubmitConfigs: ComputedRef<Array<VarSubmitConfig>>;
|
291
|
+
}
|
292
|
+
/**
|
293
|
+
* @param formID 界面标识.
|
294
|
+
*/
|
295
|
+
export declare function useKgSubmit(formID?: string | null): IUseKgSubmit;
|