@kengic/vue 0.26.6-beta.9 → 0.26.6-beta.91
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.d9b56a5c.mjs +8 -0
- package/dist/fullscreen-exit-outlined-X1iYkFc4.0ce5fd3a.mjs +8 -0
- package/dist/fullscreen-exit-outlined.a75b82c2.mjs +8 -0
- package/dist/fullscreen-outlined-DDBrsRcy.37357723.mjs +8 -0
- package/dist/fullscreen-outlined.c9ba7960.mjs +8 -0
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +57373 -40189
- 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,733 @@
|
|
1
|
+
import { ModalFuncProps } from 'ant-design-vue/lib/modal/Modal';
|
2
|
+
/** 模块. */
|
3
|
+
export declare const enum KG_APP {
|
4
|
+
/** 数据管理. */
|
5
|
+
WMS_DATA_MANAGER = "data-manager",
|
6
|
+
/** 仓库管理. */
|
7
|
+
WMS_BUSINESS_MANAGER = "business-manager",
|
8
|
+
/** WCS. */
|
9
|
+
WCS = "wcs",
|
10
|
+
/** 系统管理. */
|
11
|
+
SYS = "sys"
|
12
|
+
}
|
13
|
+
/** 模块路径前缀. */
|
14
|
+
export declare const enum KG_APP_PREFIX {
|
15
|
+
/** 数据管理. */
|
16
|
+
WMS_DATA_MANAGER = "/wms/data-manager",
|
17
|
+
/** 仓库管理. */
|
18
|
+
WMS_BUSINESS_MANAGER = "/wms/business-manager",
|
19
|
+
/** WCS. */
|
20
|
+
WCS = "/wcs",
|
21
|
+
/** 系统管理. */
|
22
|
+
SYS = "/sys"
|
23
|
+
}
|
24
|
+
/** 所有模块. */
|
25
|
+
export declare const KG_APPS: Array<KG_APP>;
|
26
|
+
/** 所有模块路径前缀. */
|
27
|
+
export declare const KG_APP_PREFIXS: Array<KG_APP_PREFIX>;
|
28
|
+
/**
|
29
|
+
* 表单控件类型.
|
30
|
+
* @see VarConfigControl.ctrl_prop
|
31
|
+
* @see IKgVarConfigControlControlProperties
|
32
|
+
*/
|
33
|
+
export declare enum KG__VAR_CONFIG_CONTROL__CONTROL_TYPE {
|
34
|
+
/** 单行文本. */
|
35
|
+
INPUT = "INPUT",
|
36
|
+
/** 密码. */
|
37
|
+
INPUT_PASSWORD = "INPUT_PASSWORD",
|
38
|
+
/** 数字. */
|
39
|
+
INPUT_NUMBER = "INPUT_NUMBER",
|
40
|
+
/**
|
41
|
+
* <p>多行文本.</p>
|
42
|
+
* <p>配置属性参见 {@link IKgVarConfigControlControlProperties.TEXT_AREA}.</p>
|
43
|
+
*/
|
44
|
+
TEXT_AREA = "TEXT_AREA",
|
45
|
+
/** 多选框. */
|
46
|
+
CHECKBOX = "CHECKBOX",
|
47
|
+
/**
|
48
|
+
* <p>多选框列表.</p>
|
49
|
+
* <p>配置属性参见 {@link IKgVarConfigControlControlProperties.CHECKBOX_GROUP}.</p>
|
50
|
+
*/
|
51
|
+
CHECKBOX_GROUP = "CHECKBOX_GROUP",
|
52
|
+
/**
|
53
|
+
* <p>单选框列表.</p>
|
54
|
+
* <p>配置属性参见 {@link IKgVarConfigControlControlProperties.RADIO_GROUP}.</p>
|
55
|
+
*/
|
56
|
+
RADIO_GROUP = "RADIO_GROUP",
|
57
|
+
/** 开关. */
|
58
|
+
SWITCH = "SWITCH",
|
59
|
+
/**
|
60
|
+
* <p>单选下拉列表.<p>
|
61
|
+
* <p>配置属性参见 {@link IKgVarConfigControlControlProperties.SELECT}.</p>
|
62
|
+
*/
|
63
|
+
SELECT = "SELECT",
|
64
|
+
/** 多选下拉列表. */
|
65
|
+
SELECT_MULTIPLE = "SELECT_MULTIPLE",
|
66
|
+
/** 年月日, 2020-05-01. */
|
67
|
+
DATE_DATE = "DATE_DATE",
|
68
|
+
/** 年月日的范围, [DATE_DATE, DATE_DATE] */
|
69
|
+
DATE_DATE_RANGE = "DATE_DATE_RANGE",
|
70
|
+
/** 时分秒, 11:59:59. */
|
71
|
+
DATE_TIME = "DATE_TIME",
|
72
|
+
/** 时分秒的范围, [DATE_TIME, DATE_TIME]. */
|
73
|
+
DATE_TIME_RANGE = "DATE_TIME_RANGE",
|
74
|
+
/** 年月日时分秒, 2020-05-01 11:59:59. */
|
75
|
+
DATE_DATETIME = "DATE_DATETIME",
|
76
|
+
/** 年月日时分秒的范围, [DATE_DATETIME, DATE_DATETIME] */
|
77
|
+
DATE_DATETIME_RANGE = "DATE_DATETIME_RANGE",
|
78
|
+
DATE_WEEK = "DATE_WEEK",
|
79
|
+
DATE_MONTH = "DATE_MONTH",
|
80
|
+
DATE_YEAR = "DATE_YEAR",
|
81
|
+
/**
|
82
|
+
* <p>图片.</p>
|
83
|
+
* <p>点击可以预览.</p>
|
84
|
+
*/
|
85
|
+
IMAGE = "IMAGE",
|
86
|
+
/** 文件上传按钮. */
|
87
|
+
BUTTON_UPLOAD = "BUTTON_UPLOAD"
|
88
|
+
}
|
89
|
+
/**
|
90
|
+
* 表单控件所处环境.
|
91
|
+
*/
|
92
|
+
export declare const enum KG_FORM_CONTEXT {
|
93
|
+
/**
|
94
|
+
* 位于查询条件.
|
95
|
+
*/
|
96
|
+
SEARCH = "SEARCH",
|
97
|
+
/**
|
98
|
+
* 位于提交表单弹窗.
|
99
|
+
*/
|
100
|
+
SUBMIT = "SUBMIT",
|
101
|
+
/**
|
102
|
+
* 位于表格内的提交表单.
|
103
|
+
*/
|
104
|
+
TABLE = "TABLE"
|
105
|
+
}
|
106
|
+
/**
|
107
|
+
* 定制级别.
|
108
|
+
*/
|
109
|
+
export declare const enum KG_CUSTOM_LEVEL {
|
110
|
+
/**
|
111
|
+
* 系统.
|
112
|
+
*/
|
113
|
+
L0 = 0,
|
114
|
+
/**
|
115
|
+
* 用户.
|
116
|
+
*/
|
117
|
+
L10 = 10
|
118
|
+
}
|
119
|
+
/**
|
120
|
+
* 接口请求方式.
|
121
|
+
*/
|
122
|
+
export declare enum KG__API_METHOD {
|
123
|
+
GET = "GET",
|
124
|
+
POST = "POST",
|
125
|
+
DELETE = "DELETE",
|
126
|
+
PUT = "PUT"
|
127
|
+
}
|
128
|
+
/**
|
129
|
+
* 表格单元格的显示类型.
|
130
|
+
* @see VarGridDetail.display_type_properties
|
131
|
+
* @see IKgVarGridDetailDisplayTypeProperties
|
132
|
+
*/
|
133
|
+
export declare const enum KG__VAR_GRID_DETAIL__DISPLAY_TYPE {
|
134
|
+
/** 布尔数据, 使用 KgYesOrNo 组件显示. */
|
135
|
+
YN = "YN",
|
136
|
+
/**
|
137
|
+
* <p>描述. 显示该列的值所对应的描述, 而不是直接显示该列的值.</p>
|
138
|
+
* <p>
|
139
|
+
* 描述的来源有 2 种, 按优先级从高到低依次为:
|
140
|
+
* <ul>
|
141
|
+
* <li>如果 {@link IKgVarGridDetailDisplayTypeProperties.DESC.description.codeName} 不为空, 则描述来源于系统描述表, 并且默认的 codeValue 就是该列的值,</li>
|
142
|
+
* <li>
|
143
|
+
* <p>否则, 描述来源于描述列.</p>
|
144
|
+
* <p>默认情况下, 描述列的列名为原始列的列名加上 _dsc 或者 Dsc 后缀, 比如原始列的列名为 xyz, 则描述列的列名为 xyz_dsc 或者 xyzDsc, 可以通过 {@link IKgVarGridDetailDisplayTypeProperties.DESC.dscFieldName} 将描述列的列名配置为其他值,</p>
|
145
|
+
* </li>
|
146
|
+
* </ul>
|
147
|
+
* </p>
|
148
|
+
*/
|
149
|
+
DESC = "DESC",
|
150
|
+
/** 进度条, 使用 KgProgressA 组件显示. */
|
151
|
+
PROGRESS = "PROGRESS",
|
152
|
+
/** 文件大小, 将以字节(byte)为单位的数字格式化显示(XXX MB, XXX GB, ...). */
|
153
|
+
FILE_SIZE = "FILE_SIZE",
|
154
|
+
/** 超链接, 点击打开更新弹窗. */
|
155
|
+
UPDATE_LINK = "UPDATE_LINK",
|
156
|
+
/** 超链接, 点击跳转到其他页面. */
|
157
|
+
ROUTE_LINK = "ROUTE_LINK",
|
158
|
+
/**
|
159
|
+
* <p>图片, 可以点击预览大图.</p>
|
160
|
+
*/
|
161
|
+
IMAGE = "IMAGE",
|
162
|
+
/**
|
163
|
+
* <p>图标, 使用 iconify 进行渲染.</p>
|
164
|
+
*/
|
165
|
+
ICON = "ICON"
|
166
|
+
}
|
167
|
+
/**
|
168
|
+
* 表格单元格的对齐方式.
|
169
|
+
*/
|
170
|
+
export declare const enum KG__VAR_GRID_DETAIL__ALIGN {
|
171
|
+
LEFT = "left",
|
172
|
+
CENTER = "center",
|
173
|
+
RIGHT = "right"
|
174
|
+
}
|
175
|
+
/**
|
176
|
+
* 单击某行时的操作.
|
177
|
+
*/
|
178
|
+
export declare const enum KG__VAR_GRID_CONFIG__OPERATION_ON_ROW_CLICK {
|
179
|
+
/**
|
180
|
+
* 不做操作.
|
181
|
+
*/
|
182
|
+
A = 0,
|
183
|
+
/**
|
184
|
+
* 勾选该行, 并取消其他勾选行.
|
185
|
+
*/
|
186
|
+
B = 1,
|
187
|
+
/**
|
188
|
+
* 勾选该行, 并保留其他勾选行.
|
189
|
+
*/
|
190
|
+
C = 2
|
191
|
+
}
|
192
|
+
/** @deprecated 已弃用, 请使用 {@link KG__VAR_BUTTON__TYPE}. */
|
193
|
+
export declare const enum KG_BUTTON_TYPE {
|
194
|
+
/** 查询. */
|
195
|
+
SEARCH = "SEARCH",
|
196
|
+
/** 创建. */
|
197
|
+
CREATE = "CREATE",
|
198
|
+
/** 更新. */
|
199
|
+
UPDATE = "UPDATE",
|
200
|
+
/** 复制. */
|
201
|
+
COPY = "COPY",
|
202
|
+
/** 删除. */
|
203
|
+
DELETE = "DELETE",
|
204
|
+
/** 导入. */
|
205
|
+
IMPORT = "IMPORT",
|
206
|
+
/** 下载导入模板. */
|
207
|
+
IMPORT_TEMPLATE = "IMPORT_TEMPLATE",
|
208
|
+
/** 导出. */
|
209
|
+
EXPORT = "EXPORT",
|
210
|
+
/** 其他. */
|
211
|
+
OTHER = "OTHER"
|
212
|
+
}
|
213
|
+
/**
|
214
|
+
* 按钮类型.
|
215
|
+
*/
|
216
|
+
export declare const enum KG__VAR_BUTTON__TYPE {
|
217
|
+
/** 查询. */
|
218
|
+
SEARCH = "SEARCH",
|
219
|
+
/** 创建. */
|
220
|
+
CREATE = "CREATE",
|
221
|
+
/** 更新. */
|
222
|
+
UPDATE = "UPDATE",
|
223
|
+
/** 复制. */
|
224
|
+
COPY = "COPY",
|
225
|
+
/** 删除. */
|
226
|
+
DELETE = "DELETE",
|
227
|
+
/** 导入. */
|
228
|
+
IMPORT = "IMPORT",
|
229
|
+
/** 下载导入模板. */
|
230
|
+
IMPORT_TEMPLATE = "IMPORT_TEMPLATE",
|
231
|
+
/** 导出. */
|
232
|
+
EXPORT = "EXPORT",
|
233
|
+
/** 其他. */
|
234
|
+
OTHER = "OTHER"
|
235
|
+
}
|
236
|
+
/**
|
237
|
+
* 按钮颜色.
|
238
|
+
*/
|
239
|
+
export declare const enum KG__VAR_BUTTON__COLOR {
|
240
|
+
/**
|
241
|
+
* 蓝色.
|
242
|
+
*/
|
243
|
+
BLUE = "BLUE",
|
244
|
+
/**
|
245
|
+
* 红色.
|
246
|
+
*/
|
247
|
+
RED = "RED",
|
248
|
+
/**
|
249
|
+
* 黄色.
|
250
|
+
*/
|
251
|
+
YELLOW = "YELLOW"
|
252
|
+
}
|
253
|
+
/** 按钮显示方式. */
|
254
|
+
export declare const enum KG__VAR_BUTTON_CONFIG__DISPLAY_TYPE {
|
255
|
+
/**
|
256
|
+
* 按钮依次排列在一横排.
|
257
|
+
*/
|
258
|
+
DEFAULT = "DEFAULT",
|
259
|
+
/**
|
260
|
+
* 显示为下拉的菜单列表.
|
261
|
+
*/
|
262
|
+
SELECT = "SELECT"
|
263
|
+
}
|
264
|
+
/** 表单显示方式. */
|
265
|
+
export declare const enum KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE {
|
266
|
+
/** 弹窗. */
|
267
|
+
MODAL = "MODAL",
|
268
|
+
/** 抽屉. */
|
269
|
+
DRAWER = "DRAWER",
|
270
|
+
/** 在表格内. */
|
271
|
+
TABLE = "TABLE",
|
272
|
+
/** 嵌入页面. */
|
273
|
+
INLINE = "INLINE"
|
274
|
+
}
|
275
|
+
/**
|
276
|
+
* 表单布局方式.
|
277
|
+
*/
|
278
|
+
export declare enum KG__VAR_SUBMIT_CONFIG__LAYOUT {
|
279
|
+
/**
|
280
|
+
* 垂直.
|
281
|
+
*/
|
282
|
+
VERTICAL = "vertical",
|
283
|
+
/**
|
284
|
+
* 水平.
|
285
|
+
*/
|
286
|
+
HORIZONTAL = "horizontal"
|
287
|
+
}
|
288
|
+
/**
|
289
|
+
* 变量配置:表单输入验证:数据类型.
|
290
|
+
*/
|
291
|
+
export declare const enum KG__VAR_CONFIG_INPUT__DATA_TYPE {
|
292
|
+
/**
|
293
|
+
* 任意字符.
|
294
|
+
*/
|
295
|
+
ANY = "ANY",
|
296
|
+
/**
|
297
|
+
* 整数.
|
298
|
+
*/
|
299
|
+
INTEGER = "INTEGER",
|
300
|
+
/**
|
301
|
+
* 小数.
|
302
|
+
*/
|
303
|
+
FLOAT = "FLOAT",
|
304
|
+
/**
|
305
|
+
* 英文字母.
|
306
|
+
*/
|
307
|
+
LETTER = "LETTER",
|
308
|
+
/**
|
309
|
+
* 大写英文字母.
|
310
|
+
*/
|
311
|
+
UPPER_CASE_LETTER = "UPPER_CASE_LETTER",
|
312
|
+
/**
|
313
|
+
* 小写英文字母.
|
314
|
+
*/
|
315
|
+
LOWER_CASE_LETTER = "LOWER_CASE_LETTER",
|
316
|
+
/**
|
317
|
+
* JSON.
|
318
|
+
*/
|
319
|
+
JSON = "JSON"
|
320
|
+
}
|
321
|
+
/**
|
322
|
+
* 变量配置:表单输入验证:验证方式.
|
323
|
+
*/
|
324
|
+
export declare const enum KG__VAR_CONFIG_INPUT__VALIDATION_TYPE {
|
325
|
+
/**
|
326
|
+
* 配置.
|
327
|
+
*/
|
328
|
+
OPTIONS = "OPTIONS",
|
329
|
+
/**
|
330
|
+
* 正则.
|
331
|
+
*/
|
332
|
+
REGULAR_EXPRESSION = "REGULAR_EXPRESSION"
|
333
|
+
}
|
334
|
+
/**
|
335
|
+
* 变量配置:提示文本:位置.
|
336
|
+
*/
|
337
|
+
export declare enum KG__VAR_CONFIG_TIP__PLACEMENT {
|
338
|
+
/**
|
339
|
+
* 在标签的右边, 显示为一个小图标, 鼠标划过时显示弹框.
|
340
|
+
*/
|
341
|
+
RIGHT = "RIGHT",
|
342
|
+
/**
|
343
|
+
* 在标签的下面.
|
344
|
+
*/
|
345
|
+
BOTTOM = "BOTTOM"
|
346
|
+
}
|
347
|
+
/**
|
348
|
+
* 变量配置:下拉列表:数据源的类型.
|
349
|
+
*/
|
350
|
+
export declare enum KG__VAR_CONFIG_POSSIBILITY__DATA_SOURCE_TYPE {
|
351
|
+
API = "API",
|
352
|
+
SQL = "SQL"
|
353
|
+
}
|
354
|
+
/**
|
355
|
+
* 变量配置:下拉列表:值的类型.
|
356
|
+
*/
|
357
|
+
export declare enum KG__VAR_CONFIG_POSSIBILITY__VALUE_DATA_TYPE {
|
358
|
+
/**
|
359
|
+
* 默认类型.
|
360
|
+
*/
|
361
|
+
DEFAULT = "DEFAULT",
|
362
|
+
/**
|
363
|
+
* 字符串.
|
364
|
+
*/
|
365
|
+
STRING = "STRING",
|
366
|
+
/**
|
367
|
+
* 数字.
|
368
|
+
*/
|
369
|
+
NUMBER = "NUMBER",
|
370
|
+
/**
|
371
|
+
* 布尔.
|
372
|
+
*/
|
373
|
+
BOOLEAN = "BOOLEAN"
|
374
|
+
}
|
375
|
+
/** 宽度单位. */
|
376
|
+
export declare const enum KG__VAR_SUBMIT_CONFIG__LABEL_COLUMN_UNIT {
|
377
|
+
/**
|
378
|
+
* 栅格.
|
379
|
+
*/
|
380
|
+
SPAN = "SPAN",
|
381
|
+
/**
|
382
|
+
* 像素.
|
383
|
+
*/
|
384
|
+
PX = "PX"
|
385
|
+
}
|
386
|
+
/**
|
387
|
+
* 栅格布局宽度.
|
388
|
+
*/
|
389
|
+
export declare const enum KG__SPAN {
|
390
|
+
_1 = 1,
|
391
|
+
_2 = 2,
|
392
|
+
_3 = 3,
|
393
|
+
_4 = 4,
|
394
|
+
_5 = 5,
|
395
|
+
_6 = 6,
|
396
|
+
_7 = 7,
|
397
|
+
_8 = 8,
|
398
|
+
_9 = 9,
|
399
|
+
_10 = 10,
|
400
|
+
_11 = 11,
|
401
|
+
_12 = 12,
|
402
|
+
_13 = 13,
|
403
|
+
_14 = 14,
|
404
|
+
_15 = 15,
|
405
|
+
_16 = 16,
|
406
|
+
_17 = 17,
|
407
|
+
_18 = 18,
|
408
|
+
_19 = 19,
|
409
|
+
_20 = 20,
|
410
|
+
_21 = 21,
|
411
|
+
_22 = 22,
|
412
|
+
_23 = 23,
|
413
|
+
_24 = 24
|
414
|
+
}
|
415
|
+
/**
|
416
|
+
* 导出 EXCEL 文件的后缀.
|
417
|
+
*/
|
418
|
+
export declare const enum KG__VAR_BUTTON__EXPORT_EXCEL_SUFFIX {
|
419
|
+
XLS = "XLS",
|
420
|
+
XLSX = "XLSX"
|
421
|
+
}
|
422
|
+
/** 系统描述表中的键. */
|
423
|
+
export declare const enum KG_DESCRIPTION_CODE_NAME {
|
424
|
+
/** 是否. */
|
425
|
+
YN = "yn",
|
426
|
+
/** 表单布局方式. */
|
427
|
+
VAR_SUBMIT_LAYOUT = "var_submit_layout",
|
428
|
+
/** 栅格布局可选的列. */
|
429
|
+
VAR_SPAN = "var_span",
|
430
|
+
/** 按钮显示样式. */
|
431
|
+
VAR_BUTTON_DISPLAY_TYPE = "var_button_display_type",
|
432
|
+
/** 宽度单位. */
|
433
|
+
VAR_WIDTH_UNIT = "var_width_unit"
|
434
|
+
}
|
435
|
+
/** 高级查询的操作符. */
|
436
|
+
export declare enum KG_DYNAMIC_QUERY_OPERATOR {
|
437
|
+
/** 等于. */
|
438
|
+
EQ = "EQ",
|
439
|
+
/** 不等于. */
|
440
|
+
NE = "NE",
|
441
|
+
/** 大于. */
|
442
|
+
GT = "GT",
|
443
|
+
/** 小于. */
|
444
|
+
LT = "LT",
|
445
|
+
/** 大于等于. */
|
446
|
+
GTE = "GTE",
|
447
|
+
/** 小于等于. */
|
448
|
+
LTE = "LTE",
|
449
|
+
/** 以之开始. */
|
450
|
+
START_WITH = "START",
|
451
|
+
/** 以之结束. */
|
452
|
+
END_WITH = "END",
|
453
|
+
/** 包含. */
|
454
|
+
CONTAIN = "CONTAIN",
|
455
|
+
/** 属于. */
|
456
|
+
IN = "IN",
|
457
|
+
/** 范围之内. */
|
458
|
+
BETWEEN = "BETWEEN"
|
459
|
+
}
|
460
|
+
/** 请求头部. */
|
461
|
+
export declare enum KG_HTTP_HEADERS {
|
462
|
+
/** 界面标识. */
|
463
|
+
KG_FORM_ID = "Kg-Form-Id",
|
464
|
+
KG_BUTTON_VAR_NAME = "Kg-Button-Var-Name",
|
465
|
+
/** 是否启用高级查询. */
|
466
|
+
KG_IS_DYNAMIC_QUERY = "Kg-Is-Dynamic-Query",
|
467
|
+
/** 查询语句中的 WHERE 片段. */
|
468
|
+
KG_QUERY_WHERE_SQL = "Kg-Query-Where-Sql",
|
469
|
+
/** 查询语句中的 ORDER BY 片段. */
|
470
|
+
KG_QUERY_ORDER_BY_SQL = "Kg-Query-Order-By-Sql",
|
471
|
+
/** 查询语句中的 OFFSET 片段. */
|
472
|
+
KG_QUERY_OFFSET_SQL = "Kg-Query-Offset-Sql",
|
473
|
+
/** 查询语句中的 WHERE + ORDER BY + OFFSET 片段. */
|
474
|
+
KG_QUERY_SQL = "Kg-Query-Sql",
|
475
|
+
/**
|
476
|
+
* <p>高级查询时, 每个查询字段的操作符(=,>,<...).</p>
|
477
|
+
* <p>是一个 JSON 字符串, 由后端进行解析. 其中的 key 表示查询字段的名称, 其中的 value 表示查询字段的操作符.</p>
|
478
|
+
*/
|
479
|
+
KG_QUERY_OPERATOR = "Kg-Query-Operator",
|
480
|
+
/**
|
481
|
+
* 仓库编号.
|
482
|
+
*/
|
483
|
+
KG_WAREHOUSE = "Kg-Warehouse",
|
484
|
+
/**
|
485
|
+
* 工作站.
|
486
|
+
*/
|
487
|
+
KG_WORK_STATION = "Kg-Work-Station",
|
488
|
+
/**
|
489
|
+
* 工作区.
|
490
|
+
*/
|
491
|
+
KG_WORK_AREA = "Kg-Work-Area"
|
492
|
+
}
|
493
|
+
/** 特殊属性:请求返回的原始响应数据. */
|
494
|
+
export declare const __KG__RESPONSE__ = "__KG__RESPONSE__";
|
495
|
+
/** 模块菜单的临时ID:数据管理. */
|
496
|
+
export declare const KG_TMP_MENU_ID__DATA_MANAGER = "KG_TMP_MENU_ID__DATA_MANAGER";
|
497
|
+
/** 模块菜单的临时ID:仓库管理. */
|
498
|
+
export declare const KG_TMP_MENU_ID__BUSINESS_MANAGER = "KG_TMP_MENU_ID__BUSINESS_MANAGER";
|
499
|
+
/** 模块菜单的临时ID:WCS. */
|
500
|
+
export declare const KG_TMP_MENU_ID__WCS = "KG_TMP_MENU_ID__WCS";
|
501
|
+
/** 模块菜单的临时ID:系统配置. */
|
502
|
+
export declare const KG_TMP_MENU_ID__SYS = "KG_TMP_MENU_ID__SYS";
|
503
|
+
/** 模块菜单的临时ID:PDA. */
|
504
|
+
export declare const KG_TMP_MENU_ID__PDA = "KG_TMP_MENU_ID__PDA";
|
505
|
+
/** 移除事件监听函数. */
|
506
|
+
export declare type IRemoveEventListenerHandler = () => void;
|
507
|
+
export declare type IKgEventListener = {
|
508
|
+
/** 是否只会触发一次. */
|
509
|
+
isOnce?: boolean;
|
510
|
+
/** 是否已经触发过一次了. */
|
511
|
+
invoked?: boolean;
|
512
|
+
};
|
513
|
+
/** 菜单. */
|
514
|
+
export interface Menu {
|
515
|
+
id: string;
|
516
|
+
app: string | null;
|
517
|
+
name: string;
|
518
|
+
title: string;
|
519
|
+
path?: string;
|
520
|
+
icon?: string;
|
521
|
+
hideMenu?: boolean;
|
522
|
+
children?: Menu[];
|
523
|
+
[key: string]: any;
|
524
|
+
}
|
525
|
+
/**
|
526
|
+
* 按钮确认弹窗的参数.
|
527
|
+
* <p>对应于 {@link VarButton#modal_props} 字段.</p>
|
528
|
+
*/
|
529
|
+
export declare type IKgVarButtonModalProperties = ModalFuncProps & {
|
530
|
+
/** 是否隐藏取消按钮. */
|
531
|
+
kgHideCancelButton?: boolean;
|
532
|
+
};
|
533
|
+
/**
|
534
|
+
* <p>提交弹窗的配置参数.</p>
|
535
|
+
* <p>对应于 {@link VarSubmitConfig#props} 字段.</p>
|
536
|
+
*/
|
537
|
+
export interface IKgVarSubmitConfigProperties {
|
538
|
+
/** 确认按钮. */
|
539
|
+
okButton?: {
|
540
|
+
/** 确认按钮的文本, 实际是一个变量名, 根据变量进行翻译. */
|
541
|
+
textVarName?: string;
|
542
|
+
};
|
543
|
+
/** 显示方式. */
|
544
|
+
displayType?: {
|
545
|
+
[KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE.INLINE]?: {
|
546
|
+
/** 要嵌入的页面位置, 是一个 CSS 选择器, 如: #submit-target-xxx. */
|
547
|
+
target?: string;
|
548
|
+
};
|
549
|
+
};
|
550
|
+
}
|
551
|
+
/**
|
552
|
+
* <p>表单控件的参数.</p>
|
553
|
+
* <p>对应于 {@link VarConfigControl.ctrl_prop} 字段, 根据表单控件的类型, 设置额外的参数.</p>
|
554
|
+
* @see VarConfigControl.ctrl_prop
|
555
|
+
* @see KG__VAR_CONFIG_CONTROL__CONTROL_TYPE
|
556
|
+
*/
|
557
|
+
export interface IKgVarConfigControlControlProperties {
|
558
|
+
CHECKBOX_GROUP: {
|
559
|
+
/**
|
560
|
+
* <p>要排除的数据.</p>
|
561
|
+
* <p>这些数据会从列表数据中移除.</p>
|
562
|
+
*/
|
563
|
+
excludeValues?: Array<any>;
|
564
|
+
/**
|
565
|
+
* 数据项的宽度.
|
566
|
+
*
|
567
|
+
* @default 24
|
568
|
+
*/
|
569
|
+
span?: number;
|
570
|
+
/**
|
571
|
+
* 是否显示「全选」.
|
572
|
+
*
|
573
|
+
* @default true
|
574
|
+
*/
|
575
|
+
isShowSelectAll?: boolean;
|
576
|
+
};
|
577
|
+
DATE_RANGE: {
|
578
|
+
/**
|
579
|
+
* <p>是否允许为空.</p>
|
580
|
+
* <p>参考 <a href="https://3x.antdv.com/components/date-picker#RangePicker">https://3x.antdv.com/components/date-picker#RangePicker</a>.</p>
|
581
|
+
*
|
582
|
+
* @default [false, false]
|
583
|
+
*/
|
584
|
+
allowEmpty?: [boolean, boolean];
|
585
|
+
};
|
586
|
+
IMAGE: {
|
587
|
+
/**
|
588
|
+
* 高度.
|
589
|
+
*
|
590
|
+
* @default 100
|
591
|
+
*/
|
592
|
+
height?: number;
|
593
|
+
/**
|
594
|
+
* 宽度.
|
595
|
+
*
|
596
|
+
* @default 100
|
597
|
+
*/
|
598
|
+
width?: number;
|
599
|
+
};
|
600
|
+
RADIO_GROUP: {
|
601
|
+
/**
|
602
|
+
* 数据项的宽度.
|
603
|
+
* @default 24
|
604
|
+
*/
|
605
|
+
span?: number;
|
606
|
+
};
|
607
|
+
SELECT: {
|
608
|
+
/**
|
609
|
+
* <p>是否允许清空.</p>
|
610
|
+
*
|
611
|
+
* @default true
|
612
|
+
*/
|
613
|
+
allowClear?: boolean;
|
614
|
+
};
|
615
|
+
TEXT_AREA: {
|
616
|
+
/**
|
617
|
+
* 文本框的高度.
|
618
|
+
* @default 5
|
619
|
+
*/
|
620
|
+
rows?: number;
|
621
|
+
};
|
622
|
+
}
|
623
|
+
/**
|
624
|
+
* 对应的是 {@link VarGridDetail.display_type_properties} 字段, 根据显示类型, 设置额外的参数.
|
625
|
+
*
|
626
|
+
* @see VarGridDetail.display_type_properties
|
627
|
+
* @see KG__VAR_GRID_DETAIL__DISPLAY_TYPE
|
628
|
+
*/
|
629
|
+
export interface IKgVarGridDetailDisplayTypeProperties {
|
630
|
+
DESC: {
|
631
|
+
description?: {
|
632
|
+
/**
|
633
|
+
* <p>对应的是 {@link Description.codnam}.</p>
|
634
|
+
* <p>当该配置项不为空时, 表示描述来自于系统描述表, 否则来自于 {@link IKgVarGridDetailDisplayTypeProperties.DESC.dscFieldName} 对应的列.<p>
|
635
|
+
*/
|
636
|
+
codeName?: string;
|
637
|
+
/**
|
638
|
+
* <p>对应的是 {@link Description.codval}.</p>
|
639
|
+
* <p>默认值为该列的值.</p>
|
640
|
+
* <p>
|
641
|
+
* 可以是一个 JS 表达式, 组件库会解析该表达式, 并得到真正的值. 比如表达式 \`${row.id}\` 表示获取该行的 id 列的值. 表达式中可以使用下列变量:
|
642
|
+
* <ul>
|
643
|
+
* <li>row: 表示该行数据,</li>
|
644
|
+
* </ul>
|
645
|
+
* </p>
|
646
|
+
*/
|
647
|
+
codeValue?: string;
|
648
|
+
/**
|
649
|
+
* <p>是否延迟获取系统描述数据.</p>
|
650
|
+
* <p>默认情况下, 在页面加载后会立即获取 {@link IKgVarGridDetailDisplayTypeProperties.DESC.description.codeName} 对应的系统描述数据. 这种场景适合数据较少的枚举数据.</p>
|
651
|
+
* <p>如果描述数据特别多, 比如每一行的描述都不一样, 则可以将该配置项的值配置为 true, 表示会在表格每次查询的时候, 才去请求这些列表数据对应的系统描述数据.</p>
|
652
|
+
*
|
653
|
+
* @default false
|
654
|
+
*/
|
655
|
+
isDefer?: boolean;
|
656
|
+
};
|
657
|
+
/**
|
658
|
+
* <p>默认情况下, 当原始列的列名为 xyz 时, 描述列的列名为 xyz_dsc 或者 xyzDsc.</p>
|
659
|
+
* <p>通过该配置项可以将描述列的列名配置为其他值.</p>
|
660
|
+
* @default <列名>_dsc 或者 <列名>Dsc
|
661
|
+
*/
|
662
|
+
dscFieldName?: string;
|
663
|
+
/**
|
664
|
+
* 是否显示为一个 Tag 标签.
|
665
|
+
* @default false
|
666
|
+
*/
|
667
|
+
isTag?: boolean;
|
668
|
+
/**
|
669
|
+
* <ul>
|
670
|
+
* <li>如果 {@link IKgVarGridDetailDisplayTypeProperties.DESC.isTag} 为 true, 则此属性用来定义每个值对应的标签颜色分别是什么,</li>
|
671
|
+
* <li>如果 {@link IKgVarGridDetailDisplayTypeProperties.DESC.isTag} 为 false, 则此属性会被忽略,</li>
|
672
|
+
* </ul>
|
673
|
+
*/
|
674
|
+
tagColors?: Array<{
|
675
|
+
/** 值. */
|
676
|
+
value: any;
|
677
|
+
/**
|
678
|
+
* 颜色.
|
679
|
+
* @default 'default'
|
680
|
+
*/
|
681
|
+
color?: string;
|
682
|
+
}>;
|
683
|
+
};
|
684
|
+
FILE_SIZE: {};
|
685
|
+
ICON: {};
|
686
|
+
IMAGE: {
|
687
|
+
/**
|
688
|
+
* 宽度.
|
689
|
+
*
|
690
|
+
* @default 29
|
691
|
+
*/
|
692
|
+
width?: number;
|
693
|
+
/**
|
694
|
+
* 宽度.
|
695
|
+
*
|
696
|
+
* @default 29
|
697
|
+
*/
|
698
|
+
height?: number;
|
699
|
+
};
|
700
|
+
PROGRESS: {
|
701
|
+
/** 左侧数值对应的列. */
|
702
|
+
leftColumn: string;
|
703
|
+
/** 右侧数值对应的列. */
|
704
|
+
rightColumn: string;
|
705
|
+
/**
|
706
|
+
* 右侧文本的宽度. 例如: "100px".
|
707
|
+
* @default 'auto'
|
708
|
+
*/
|
709
|
+
textWidth?: 'auto' | string;
|
710
|
+
};
|
711
|
+
ROUTE_LINK: {
|
712
|
+
/** 要跳转的路由地址. */
|
713
|
+
path: string;
|
714
|
+
};
|
715
|
+
UPDATE_LINK: {};
|
716
|
+
YN: {
|
717
|
+
/**
|
718
|
+
* 显示为'否'的值.
|
719
|
+
* @default 0
|
720
|
+
*/
|
721
|
+
nValue?: any;
|
722
|
+
/**
|
723
|
+
* 是否将 null/undefined 当成 false.
|
724
|
+
* @default false
|
725
|
+
*/
|
726
|
+
nilAsFalse?: boolean;
|
727
|
+
/**
|
728
|
+
* 显示为'是'的值.
|
729
|
+
* @default 1
|
730
|
+
*/
|
731
|
+
yValue?: any;
|
732
|
+
};
|
733
|
+
}
|