@kengic/vue 0.26.6-beta.8 → 0.26.6-beta.81
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +16 -0
- package/dist/close-outlined-DMcSQWxQ.5aef1ccf.mjs +8 -0
- package/dist/fullscreen-exit-outlined-X1iYkFc4.b68e0247.mjs +8 -0
- package/dist/fullscreen-exit-outlined.a75b82c2.mjs +8 -0
- package/dist/fullscreen-outlined-DDBrsRcy.2e48e278.mjs +8 -0
- package/dist/fullscreen-outlined.c9ba7960.mjs +8 -0
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +60620 -44325
- 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.d.ts +122 -0
- package/dist/src/component/KgCanvas/KgCanvas.service.d.ts +43 -0
- package/dist/src/component/KgCanvas/KgCanvasContextMenu.d.ts +107 -0
- package/dist/src/component/KgCanvas/KgCanvasToolbarFullscreen.d.ts +38 -0
- package/dist/src/component/KgCanvas/KgCanvasTooltip.d.ts +31 -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/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 +278 -0
- package/dist/src/const/i18n/es_ES.d.ts +278 -0
- package/dist/src/const/i18n/fr_FR.d.ts +278 -0
- package/dist/src/const/i18n/index.d.ts +2 -0
- package/dist/src/const/i18n/km_KH.d.ts +278 -0
- package/dist/src/const/i18n/ko_KR.d.ts +278 -0
- package/dist/src/const/i18n/vi_VN.d.ts +278 -0
- package/dist/src/const/i18n/zh_CN.d.ts +278 -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 +31 -20
- 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,194 @@
|
|
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 { VarProfileDetail, VarSubmitConfig, VarSubmitDetail } from '../../api/WMS/models';
|
6
|
+
import { IKgEventListener, KG__VAR_BUTTON__TYPE } from '../../const';
|
7
|
+
import { KgAny } from '../../type';
|
8
|
+
import { IKgTableRow } from '../KgTable';
|
9
|
+
/**
|
10
|
+
* 事件类型.
|
11
|
+
* 'beforeOpen': 打开提交弹窗之前
|
12
|
+
* 'onOpen': 打开提交弹窗
|
13
|
+
* 'beforeOk': 点击确认按钮之后, 执行默认逻辑之前
|
14
|
+
* 'afterValidate': 点击确认按钮之后, 表单验证完成,
|
15
|
+
* 'beforeRequest': 发起接口请求之前. 表单验证完成, 参数解析完成,
|
16
|
+
* 'ok': 请求成功, 关闭提交弹窗之后
|
17
|
+
* 'onBeforeCancel': 点击取消按钮, 或者点击右上角的关闭按钮, 尚未关闭弹窗,
|
18
|
+
* 'onCancel': 点击取消按钮, 或者点击右上角的关闭按钮, 已经关闭弹窗,
|
19
|
+
* 'error': 请求失败. 请求失败了, 或者请求返回了错误消息
|
20
|
+
* 'close': 关闭提交弹窗
|
21
|
+
*/
|
22
|
+
export declare type IKgSubmitEvent = 'beforeOpen' | 'onOpen' | 'beforeOk' | 'afterValidate' | 'beforeRequest' | 'ok' | 'onBeforeCancel' | 'onCancel' | 'error' | 'close';
|
23
|
+
export declare type IKgSubmitBeforeOpenEventListenerParameter = {
|
24
|
+
isCreating: boolean | null;
|
25
|
+
isUpdating: boolean | null;
|
26
|
+
isCopying: boolean | null;
|
27
|
+
isDeleting: boolean | null;
|
28
|
+
row: IKgTableRow | null;
|
29
|
+
};
|
30
|
+
export declare type IKgSubmitBeforeOpenEventListener = ((param: IKgSubmitBeforeOpenEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
31
|
+
export declare type IKgSubmitOnOpenEventListenerParameter = {
|
32
|
+
/** @deprecated 请直接使用 {@link IUseKgVar.isCreating} */
|
33
|
+
isCreating: boolean | null;
|
34
|
+
/** @deprecated 请直接使用 {@link IUseKgVar.isUpdating} */
|
35
|
+
isUpdating: boolean | null;
|
36
|
+
/** @deprecated 请直接使用 {@link IUseKgVar.isCopying} */
|
37
|
+
isCopying: boolean | null;
|
38
|
+
/** @deprecated 请直接使用 {@link IUseKgVar.isDeleting} */
|
39
|
+
isDeleting: boolean | null;
|
40
|
+
/** @deprecated 请直接使用 {@link IUseKgTable.selectedRow} */
|
41
|
+
row: IKgTableRow | null;
|
42
|
+
/** @deprecated 请直接使用 {@link IUseKgSearch.formModel} */
|
43
|
+
model: Ref<Record<string, any>>;
|
44
|
+
};
|
45
|
+
export declare type IKgSubmitOnOpenEventListener = ((param: IKgSubmitOnOpenEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
46
|
+
export declare type IKgSubmitBeforeOkEventListenerParameter = {
|
47
|
+
/**
|
48
|
+
* 表单数据对象.
|
49
|
+
* @deprecated 已弃用, 请使用 {@link IUseKgSubmit.formModel}
|
50
|
+
*/
|
51
|
+
model: Ref<Record<string, any>>;
|
52
|
+
};
|
53
|
+
export declare type IKgSubmitBeforeOkEventListener = ((param: IKgSubmitBeforeOkEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
54
|
+
export declare type IKgSubmitAfterValidateEventListenerParameter = {
|
55
|
+
isCopying: boolean | null;
|
56
|
+
isCreating: boolean | null;
|
57
|
+
isDeleting: boolean | null;
|
58
|
+
isUpdating: boolean | null;
|
59
|
+
model: Ref<Record<string, any>>;
|
60
|
+
row: IKgTableRow | null;
|
61
|
+
rows: Array<IKgTableRow> | null;
|
62
|
+
};
|
63
|
+
export declare type IKgSubmitAfterValidateEventListener = ((param: IKgSubmitAfterValidateEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
64
|
+
export declare type IKgSubmitBeforeRequestEventListenerParameter = {
|
65
|
+
/**
|
66
|
+
* <p>请求参数. 是一个对象或者列表. 是对「表单数据对象」解析之后得到的请求参数, 如果需要修改某些参数, 则直接修改该对象的属性即可.</p>
|
67
|
+
*/
|
68
|
+
data: Ref<KgAny>;
|
69
|
+
/** @deprecated */
|
70
|
+
isCopying: boolean | null;
|
71
|
+
/** @deprecated */
|
72
|
+
isCreating: boolean | null;
|
73
|
+
/** @deprecated */
|
74
|
+
isDeleting: boolean | null;
|
75
|
+
/** @deprecated */
|
76
|
+
isUpdating: boolean | null;
|
77
|
+
/** @deprecated */
|
78
|
+
model: Ref<Record<string, any>>;
|
79
|
+
/**
|
80
|
+
* 请求参数.
|
81
|
+
*/
|
82
|
+
params: Ref<Record<string, any>>;
|
83
|
+
/** @deprecated */
|
84
|
+
row: IKgTableRow | null;
|
85
|
+
/** @deprecated */
|
86
|
+
rows: Array<IKgTableRow> | null;
|
87
|
+
};
|
88
|
+
export declare type IKgSubmitBeforeRequestEventListener = ((param: IKgSubmitBeforeRequestEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
89
|
+
export declare type IKgSubmitOkEventListenerParameter = {
|
90
|
+
isCreating: boolean | null;
|
91
|
+
isUpdating: boolean | null;
|
92
|
+
isCopying: boolean | null;
|
93
|
+
isDeleting: boolean | null;
|
94
|
+
row: IKgTableRow | null;
|
95
|
+
model: Ref<Record<string, any>>;
|
96
|
+
/** 接口返回结果. */
|
97
|
+
result: any | null;
|
98
|
+
};
|
99
|
+
export declare type IKgSubmitOkEventListener = ((param: IKgSubmitOkEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
100
|
+
export declare type IKgSubmitOnBeforeCancelEventListenerParameter = {};
|
101
|
+
export declare type IKgSubmitOnBeforeCancelEventListener = ((param: IKgSubmitOnBeforeCancelEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
102
|
+
export declare type IKgSubmitOnCancelEventListenerParameter = {};
|
103
|
+
export declare type IKgSubmitOnCancelEventListener = ((param: IKgSubmitOnCancelEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
104
|
+
export declare type IKgSubmitErrorEventListenerParameter = {};
|
105
|
+
export declare type IKgSubmitErrorEventListener = ((param: IKgSubmitErrorEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
106
|
+
export declare type IKgSubmitCloseEventListenerParameter = {} | null | undefined;
|
107
|
+
export declare type IKgSubmitCloseEventListener = ((param: IKgSubmitCloseEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
108
|
+
export declare type IKgSubmitEventListenerParameter = IKgSubmitBeforeOpenEventListenerParameter | IKgSubmitOnOpenEventListenerParameter | IKgSubmitBeforeOkEventListenerParameter | IKgSubmitAfterValidateEventListenerParameter | IKgSubmitBeforeRequestEventListenerParameter | IKgSubmitOkEventListenerParameter | IKgSubmitOnBeforeCancelEventListenerParameter | IKgSubmitOnCancelEventListenerParameter | IKgSubmitErrorEventListenerParameter | IKgSubmitCloseEventListenerParameter;
|
109
|
+
export declare type IKgSubmitEventListener = IKgSubmitBeforeOpenEventListener | IKgSubmitOnOpenEventListener | IKgSubmitBeforeOkEventListener | IKgSubmitAfterValidateEventListener | IKgSubmitBeforeRequestEventListener | IKgSubmitOkEventListener | IKgSubmitOnBeforeCancelEventListener | IKgSubmitOnCancelEventListener | IKgSubmitErrorEventListener | IKgSubmitCloseEventListener;
|
110
|
+
export interface IUseKgSubmitStoreState {
|
111
|
+
afterValidateEventListenerMap: Map<string, Array<IKgSubmitAfterValidateEventListener>>;
|
112
|
+
beforeOkEventListenerMap: Map<string, Array<IKgSubmitBeforeOkEventListener>>;
|
113
|
+
beforeOpenEventListenerMap: Map<string, Array<IKgSubmitBeforeOpenEventListener>>;
|
114
|
+
beforeRequestEventListenerMap: Map<string, Array<IKgSubmitBeforeRequestEventListener>>;
|
115
|
+
closeEventListenerMap: Map<string, Array<IKgSubmitCloseEventListener>>;
|
116
|
+
errorEventListenerMap: Map<string, Array<IKgSubmitErrorEventListener>>;
|
117
|
+
/** 表单数据对象. */
|
118
|
+
formModelMap: Map<string, Record<string, any>>;
|
119
|
+
/** 表单对象. */
|
120
|
+
formRefMap: Map<string, Ref<FormInstance | null>>;
|
121
|
+
/**
|
122
|
+
* <p>自定义的表单验证规则.</p>
|
123
|
+
* <p>在 beforeOk 事件中会将此对象传给调用者, 调用者可以修改此对象, 从而添加自定义的表单验证规则.</p>
|
124
|
+
*/
|
125
|
+
formRulesMap: Map<string, Ref<Record<string, Array<RuleObject>>>>;
|
126
|
+
isLoadingMap: Map<string, boolean>;
|
127
|
+
okEventListenerMap: Map<string, Array<IKgSubmitOkEventListener>>;
|
128
|
+
onBeforeCancelEventListenerMap: Map<string, Array<IKgSubmitOnBeforeCancelEventListener>>;
|
129
|
+
onCancelEventListenerMap: Map<string, Array<IKgSubmitOnCancelEventListener>>;
|
130
|
+
openEventListenerMap: Map<string, Array<IKgSubmitOnOpenEventListener>>;
|
131
|
+
}
|
132
|
+
export interface IUseKgSubmitStoreGetters {
|
133
|
+
getFormModel(): (formID?: string | null) => Record<string, any> | null;
|
134
|
+
getFormRef(): (formID?: string | null) => Ref<FormInstance | null>;
|
135
|
+
getFormRules(): (formID?: string | null) => Ref<Record<string, Array<RuleObject>>>;
|
136
|
+
getVarSubmitConfig(): (formID: string | null | undefined, param?: {
|
137
|
+
buttonType?: KG__VAR_BUTTON__TYPE;
|
138
|
+
buttonVarName?: string | null;
|
139
|
+
}) => VarSubmitConfig | null;
|
140
|
+
getVarSubmitConfigs(): (formID: string | null | undefined) => Array<VarSubmitConfig>;
|
141
|
+
getVarSubmitDetailByVarProfileDetail(): (formID: string | null | undefined, param?: {
|
142
|
+
varProfileDetail: VarProfileDetail | null;
|
143
|
+
}) => VarSubmitDetail | null;
|
144
|
+
getVarSubmitDetails(): (formID: string | null | undefined, param?: {
|
145
|
+
buttonType?: KG__VAR_BUTTON__TYPE;
|
146
|
+
buttonVarName?: string | null;
|
147
|
+
isKey?: 0 | 1 | null;
|
148
|
+
isVisible?: 0 | 1 | null;
|
149
|
+
searchProfileVarName?: string | null;
|
150
|
+
varName?: string | null;
|
151
|
+
} | null) => Array<VarSubmitDetail>;
|
152
|
+
/** 是否处于加载状态. */
|
153
|
+
isLoading(): (formID?: string | null) => boolean;
|
154
|
+
}
|
155
|
+
export interface IUseKgSubmitStoreActions {
|
156
|
+
/**
|
157
|
+
* 注册事件监听.
|
158
|
+
* @param formID 界面标识.
|
159
|
+
* @param event 事件名称.
|
160
|
+
* @param listener 事件监听函数.
|
161
|
+
*/
|
162
|
+
addEventListener(formID: string, event: IKgSubmitEvent, listener: any): void;
|
163
|
+
/**
|
164
|
+
* 添加一个「提交表单字段」.
|
165
|
+
*
|
166
|
+
* @param formID 页面标识.
|
167
|
+
* @param varSubmitDetail 要添加的「提交表单字段」.
|
168
|
+
*/
|
169
|
+
createVarSubmitDetail(formID: string | null | undefined, varSubmitDetail: VarSubmitDetail): void;
|
170
|
+
/**
|
171
|
+
* 清理数据.
|
172
|
+
* @param formID 页面标识.
|
173
|
+
*/
|
174
|
+
dispose(formID?: string | null): void;
|
175
|
+
emit<T = IKgSubmitEventListenerParameter>(formID: string, event: IKgSubmitEvent, param: T): Promise<boolean>;
|
176
|
+
patchVarSubmitDetail(formID: string | null | undefined, param: {
|
177
|
+
buttonType?: KG__VAR_BUTTON__TYPE;
|
178
|
+
buttonVarName?: string | null;
|
179
|
+
properties: VarSubmitDetail;
|
180
|
+
varName: string | null | undefined;
|
181
|
+
}): Promise<void>;
|
182
|
+
/**
|
183
|
+
* 退订事件监听.
|
184
|
+
* @param formID 界面标识.
|
185
|
+
* @param event 事件名称.
|
186
|
+
* @param listener 事件监听函数.
|
187
|
+
*/
|
188
|
+
removeEventListener(formID: string, event: IKgSubmitEvent, listener?: any): void;
|
189
|
+
setFormModel(formID?: string | null, model?: Record<string, any> | null): void;
|
190
|
+
setIsLoading(formID: string, value: boolean): void;
|
191
|
+
}
|
192
|
+
export declare type IUseKgSubmitStore = StoreDefinition<'KgSubmit', IUseKgSubmitStoreState, IUseKgSubmitStoreGetters, IUseKgSubmitStoreActions>;
|
193
|
+
export declare type IKgSubmitStore = ReturnType<IUseKgSubmitStore>;
|
194
|
+
export declare const useKgSubmitStore: IUseKgSubmitStore;
|
@@ -0,0 +1,57 @@
|
|
1
|
+
import { KG__VAR_SUBMIT_CONFIG__LAYOUT } from '../../const';
|
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;
|
@@ -0,0 +1,39 @@
|
|
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
|
+
kgCheckboxDisabled: PropType<(row: any) => boolean>;
|
7
|
+
/** 是否禁用表格. */
|
8
|
+
kgDisabled: {
|
9
|
+
type: PropType<boolean>;
|
10
|
+
default: undefined;
|
11
|
+
};
|
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
|
+
kgCheckboxDisabled: PropType<(row: any) => boolean>;
|
19
|
+
/** 是否禁用表格. */
|
20
|
+
kgDisabled: {
|
21
|
+
type: PropType<boolean>;
|
22
|
+
default: undefined;
|
23
|
+
};
|
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
|
+
kgCheckboxDisabled: PropType<(row: any) => boolean>;
|
29
|
+
/** 是否禁用表格. */
|
30
|
+
kgDisabled: {
|
31
|
+
type: PropType<boolean>;
|
32
|
+
default: undefined;
|
33
|
+
};
|
34
|
+
/** 设置行的样式类名. */
|
35
|
+
kgRowClassName: PropType<RowClassName<any>>;
|
36
|
+
}>>, {
|
37
|
+
kgDisabled: boolean;
|
38
|
+
}>;
|
39
|
+
export default _default;
|
@@ -0,0 +1,34 @@
|
|
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 type ICacheScrollState = {};
|
26
|
+
export declare function _useCacheScrollState(kgTableRef: Ref<UnwrapRef<HTMLDivElement | null>>): ICacheScrollState;
|
27
|
+
export declare function _useDragColumn(kgTableRef: Ref<UnwrapRef<HTMLDivElement | null>>, columns: ComputedRef<ColumnsType<IKgTableRow>>): {};
|
28
|
+
export declare function _useDatas(): {
|
29
|
+
transformDatas: (response: Ref<any>) => {
|
30
|
+
datas: Ref<Array<IKgTableRow>>;
|
31
|
+
total: Ref<number>;
|
32
|
+
};
|
33
|
+
requestDescriptions: () => Promise<void>;
|
34
|
+
};
|
@@ -0,0 +1,60 @@
|
|
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;
|
@@ -0,0 +1,52 @@
|
|
1
|
+
import { ColumnType } from 'ant-design-vue/es/table';
|
2
|
+
import { PropType } from 'vue';
|
3
|
+
export declare const getProps: () => {
|
4
|
+
/**
|
5
|
+
* 列的数据.
|
6
|
+
*/
|
7
|
+
column: {
|
8
|
+
type: PropType<ColumnType<any>>;
|
9
|
+
};
|
10
|
+
/**
|
11
|
+
* 表格是否禁用.
|
12
|
+
* @default undefined
|
13
|
+
*/
|
14
|
+
kgDisabled: {
|
15
|
+
type: PropType<boolean>;
|
16
|
+
default: undefined;
|
17
|
+
};
|
18
|
+
};
|
19
|
+
declare const _default: import("vue").DefineComponent<{
|
20
|
+
/**
|
21
|
+
* 列的数据.
|
22
|
+
*/
|
23
|
+
column: {
|
24
|
+
type: PropType<ColumnType<any>>;
|
25
|
+
};
|
26
|
+
/**
|
27
|
+
* 表格是否禁用.
|
28
|
+
* @default undefined
|
29
|
+
*/
|
30
|
+
kgDisabled: {
|
31
|
+
type: PropType<boolean>;
|
32
|
+
default: undefined;
|
33
|
+
};
|
34
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
35
|
+
/**
|
36
|
+
* 列的数据.
|
37
|
+
*/
|
38
|
+
column: {
|
39
|
+
type: PropType<ColumnType<any>>;
|
40
|
+
};
|
41
|
+
/**
|
42
|
+
* 表格是否禁用.
|
43
|
+
* @default undefined
|
44
|
+
*/
|
45
|
+
kgDisabled: {
|
46
|
+
type: PropType<boolean>;
|
47
|
+
default: undefined;
|
48
|
+
};
|
49
|
+
}>> & {}, {
|
50
|
+
kgDisabled: boolean;
|
51
|
+
}>;
|
52
|
+
export default _default;
|
@@ -0,0 +1,57 @@
|
|
1
|
+
import { PropType } from 'vue';
|
2
|
+
export declare const getProps: () => {
|
3
|
+
/**
|
4
|
+
* 行数.
|
5
|
+
* @default 0
|
6
|
+
*/
|
7
|
+
kgTotal: {
|
8
|
+
type: PropType<number>;
|
9
|
+
default: number;
|
10
|
+
};
|
11
|
+
/** 是否显示'清空'按钮. */
|
12
|
+
kgShowClearCheck: PropType<boolean>;
|
13
|
+
/** 是否显示'清空表格'按钮. */
|
14
|
+
kgShowClearTable: PropType<boolean>;
|
15
|
+
/** 是否禁用. */
|
16
|
+
kgDisabled: PropType<boolean>;
|
17
|
+
/** 是否显示'定位'按钮. */
|
18
|
+
kgShowLocate: PropType<boolean>;
|
19
|
+
};
|
20
|
+
declare const _default: import("vue").DefineComponent<{
|
21
|
+
/**
|
22
|
+
* 行数.
|
23
|
+
* @default 0
|
24
|
+
*/
|
25
|
+
kgTotal: {
|
26
|
+
type: PropType<number>;
|
27
|
+
default: number;
|
28
|
+
};
|
29
|
+
/** 是否显示'清空'按钮. */
|
30
|
+
kgShowClearCheck: PropType<boolean>;
|
31
|
+
/** 是否显示'清空表格'按钮. */
|
32
|
+
kgShowClearTable: PropType<boolean>;
|
33
|
+
/** 是否禁用. */
|
34
|
+
kgDisabled: PropType<boolean>;
|
35
|
+
/** 是否显示'定位'按钮. */
|
36
|
+
kgShowLocate: PropType<boolean>;
|
37
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
38
|
+
/**
|
39
|
+
* 行数.
|
40
|
+
* @default 0
|
41
|
+
*/
|
42
|
+
kgTotal: {
|
43
|
+
type: PropType<number>;
|
44
|
+
default: number;
|
45
|
+
};
|
46
|
+
/** 是否显示'清空'按钮. */
|
47
|
+
kgShowClearCheck: PropType<boolean>;
|
48
|
+
/** 是否显示'清空表格'按钮. */
|
49
|
+
kgShowClearTable: PropType<boolean>;
|
50
|
+
/** 是否禁用. */
|
51
|
+
kgDisabled: PropType<boolean>;
|
52
|
+
/** 是否显示'定位'按钮. */
|
53
|
+
kgShowLocate: PropType<boolean>;
|
54
|
+
}>>, {
|
55
|
+
kgTotal: number;
|
56
|
+
}>;
|
57
|
+
export default _default;
|
package/dist/src/component/KgTable/components/setting/KgTable.Setting.VarGridMaster.SaveAs.d.ts
ADDED
@@ -0,0 +1,5 @@
|
|
1
|
+
export declare const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save";
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgClose"[], "kgClose", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
3
|
+
onKgClose?: ((...args: any[]) => any) | undefined;
|
4
|
+
}, {}>;
|
5
|
+
export default _default;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { PropType } from 'vue';
|
2
|
+
export declare const getProps: () => {
|
3
|
+
kgDisabled: {
|
4
|
+
type: PropType<boolean>;
|
5
|
+
default: undefined;
|
6
|
+
};
|
7
|
+
};
|
8
|
+
declare const _default: import("vue").DefineComponent<{
|
9
|
+
kgDisabled: {
|
10
|
+
type: PropType<boolean>;
|
11
|
+
default: undefined;
|
12
|
+
};
|
13
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
14
|
+
kgDisabled: {
|
15
|
+
type: PropType<boolean>;
|
16
|
+
default: undefined;
|
17
|
+
};
|
18
|
+
}>>, {
|
19
|
+
kgDisabled: boolean;
|
20
|
+
}>;
|
21
|
+
export default _default;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { Ref } from 'vue';
|
2
|
+
import { VarGridDetail } from '../../../../api/WMS/models';
|
3
|
+
export declare type IUseServices = {
|
4
|
+
/**
|
5
|
+
* 用于表格的列下拉列表, 根据关键字搜索某列, 如果匹配就显示该列, 否则隐藏该列.
|
6
|
+
* 匹配时忽略大小写.
|
7
|
+
* @param varGridDetail
|
8
|
+
* @param key 关键字.
|
9
|
+
*/
|
10
|
+
filterVarGridDetailByKey: (varGridDetail: VarGridDetail, key?: string | null) => boolean;
|
11
|
+
};
|
12
|
+
export declare function _useServices(): IUseServices;
|
13
|
+
/** 监控表格列的下拉列表的尺寸变化, 从而调整位置, 防止遮盖. */
|
14
|
+
export declare function _useObserveMenuItemColumns(isMenuItemColumnsVisible: Ref<boolean>): void;
|
15
|
+
/**
|
16
|
+
*
|
17
|
+
* @param param.columnsRef 宿主页面标识.
|
18
|
+
* @param param.varGridDetails 字段列表.
|
19
|
+
*/
|
20
|
+
export declare function _useDragToSortRow(param: {
|
21
|
+
columnsRef: Ref<HTMLUListElement | null>;
|
22
|
+
}): {};
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
2
|
+
export declare const getProps: () => {
|
3
|
+
visible: PropType<boolean>;
|
4
|
+
'onUpdate:visible': PropType<(value: boolean) => void>;
|
5
|
+
};
|
6
|
+
export declare type IKgTableSettingConfigModalProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
7
|
+
declare const _default: import("vue").DefineComponent<{
|
8
|
+
visible: PropType<boolean>;
|
9
|
+
'onUpdate:visible': PropType<(value: boolean) => void>;
|
10
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:visible"[], "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
11
|
+
visible: PropType<boolean>;
|
12
|
+
'onUpdate:visible': PropType<(value: boolean) => void>;
|
13
|
+
}>> & {
|
14
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
15
|
+
}, {}>;
|
16
|
+
export default _default;
|