@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,92 @@
|
|
1
|
+
import { PropType } from 'vue';
|
2
|
+
export declare const getProps: () => {
|
3
|
+
/**
|
4
|
+
* 是否默认全屏.
|
5
|
+
*
|
6
|
+
* @default false
|
7
|
+
*/
|
8
|
+
kgIsDefaultFullscreen: {
|
9
|
+
type: PropType<boolean>;
|
10
|
+
default: boolean;
|
11
|
+
};
|
12
|
+
/**
|
13
|
+
* 是否显示关闭按钮.
|
14
|
+
*
|
15
|
+
* @default true
|
16
|
+
*/
|
17
|
+
kgIsShowCloseButton: {
|
18
|
+
type: PropType<boolean>;
|
19
|
+
default: boolean;
|
20
|
+
};
|
21
|
+
/**
|
22
|
+
* 是否显示全屏按钮.
|
23
|
+
*
|
24
|
+
* @default true
|
25
|
+
*/
|
26
|
+
kgIsShowFullscreenButton: {
|
27
|
+
type: PropType<boolean>;
|
28
|
+
default: boolean;
|
29
|
+
};
|
30
|
+
};
|
31
|
+
declare const _default: import("vue").DefineComponent<{
|
32
|
+
/**
|
33
|
+
* 是否默认全屏.
|
34
|
+
*
|
35
|
+
* @default false
|
36
|
+
*/
|
37
|
+
kgIsDefaultFullscreen: {
|
38
|
+
type: PropType<boolean>;
|
39
|
+
default: boolean;
|
40
|
+
};
|
41
|
+
/**
|
42
|
+
* 是否显示关闭按钮.
|
43
|
+
*
|
44
|
+
* @default true
|
45
|
+
*/
|
46
|
+
kgIsShowCloseButton: {
|
47
|
+
type: PropType<boolean>;
|
48
|
+
default: boolean;
|
49
|
+
};
|
50
|
+
/**
|
51
|
+
* 是否显示全屏按钮.
|
52
|
+
*
|
53
|
+
* @default true
|
54
|
+
*/
|
55
|
+
kgIsShowFullscreenButton: {
|
56
|
+
type: PropType<boolean>;
|
57
|
+
default: boolean;
|
58
|
+
};
|
59
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
60
|
+
/**
|
61
|
+
* 是否默认全屏.
|
62
|
+
*
|
63
|
+
* @default false
|
64
|
+
*/
|
65
|
+
kgIsDefaultFullscreen: {
|
66
|
+
type: PropType<boolean>;
|
67
|
+
default: boolean;
|
68
|
+
};
|
69
|
+
/**
|
70
|
+
* 是否显示关闭按钮.
|
71
|
+
*
|
72
|
+
* @default true
|
73
|
+
*/
|
74
|
+
kgIsShowCloseButton: {
|
75
|
+
type: PropType<boolean>;
|
76
|
+
default: boolean;
|
77
|
+
};
|
78
|
+
/**
|
79
|
+
* 是否显示全屏按钮.
|
80
|
+
*
|
81
|
+
* @default true
|
82
|
+
*/
|
83
|
+
kgIsShowFullscreenButton: {
|
84
|
+
type: PropType<boolean>;
|
85
|
+
default: boolean;
|
86
|
+
};
|
87
|
+
}>>, {
|
88
|
+
kgIsDefaultFullscreen: boolean;
|
89
|
+
kgIsShowFullscreenButton: boolean;
|
90
|
+
kgIsShowCloseButton: boolean;
|
91
|
+
}>;
|
92
|
+
export default _default;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { ComputedRef, Ref } from 'vue';
|
2
|
+
/**
|
3
|
+
* 拖拽改变位置.
|
4
|
+
*
|
5
|
+
* @param param.getProps 组件参数.
|
6
|
+
* @param param.domRef 页面特殊元素对象.
|
7
|
+
*/
|
8
|
+
export declare function useDragToMove(param: {
|
9
|
+
domRef: Ref<HTMLDivElement | null>;
|
10
|
+
getKgIsDragToMove: ComputedRef<boolean>;
|
11
|
+
getVisible: ComputedRef<boolean>;
|
12
|
+
}): void;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { Ref } from 'vue';
|
2
|
+
import { IKgModalProps } from '../KgModal';
|
3
|
+
/**
|
4
|
+
* 拖拽改变大小.
|
5
|
+
*
|
6
|
+
* @param param.props 组件参数.
|
7
|
+
* @param param.domRef 页面上的那个特殊元素对象, 专门用于获取其他元素对象.
|
8
|
+
* @param param.getProps 计算后的组件参数.
|
9
|
+
*/
|
10
|
+
export declare function useDragToResize(param: {
|
11
|
+
props: IKgModalProps;
|
12
|
+
domRef: Ref<HTMLDivElement | null>;
|
13
|
+
getProps: Ref<IKgModalProps>;
|
14
|
+
}): {
|
15
|
+
/**
|
16
|
+
* 鼠标按下事件.
|
17
|
+
*
|
18
|
+
* @param param.event 鼠标事件对象.
|
19
|
+
* @param param.handleType 拖拽位置.
|
20
|
+
*/
|
21
|
+
onMousedown: (param: {
|
22
|
+
event: MouseEvent;
|
23
|
+
handleType: "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-right" | "bottom-left";
|
24
|
+
}) => void;
|
25
|
+
/**
|
26
|
+
* 弹窗宽度.
|
27
|
+
*/
|
28
|
+
width: Ref<string | number>;
|
29
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as KgModal, type IKgModalProps } from './KgModal';
|
@@ -0,0 +1,85 @@
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
2
|
+
import './KgProgressA.less';
|
3
|
+
export declare const getProps: () => {
|
4
|
+
/**
|
5
|
+
* 左侧数值(分子).
|
6
|
+
* @default null
|
7
|
+
*/
|
8
|
+
kgLeft: {
|
9
|
+
type: PropType<number | null | undefined>;
|
10
|
+
default: null;
|
11
|
+
};
|
12
|
+
/**
|
13
|
+
* 右侧数值(分母).
|
14
|
+
* @default null
|
15
|
+
*/
|
16
|
+
kgRight: {
|
17
|
+
type: PropType<number | null | undefined>;
|
18
|
+
default: null;
|
19
|
+
};
|
20
|
+
/**
|
21
|
+
* 右侧文本的宽度.
|
22
|
+
* @default 'auto'
|
23
|
+
*/
|
24
|
+
kgTextWidth: {
|
25
|
+
type: PropType<string>;
|
26
|
+
default: string;
|
27
|
+
};
|
28
|
+
};
|
29
|
+
export declare type IKgProgressAProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
30
|
+
declare const _default: import("vue").DefineComponent<{
|
31
|
+
/**
|
32
|
+
* 左侧数值(分子).
|
33
|
+
* @default null
|
34
|
+
*/
|
35
|
+
kgLeft: {
|
36
|
+
type: PropType<number | null | undefined>;
|
37
|
+
default: null;
|
38
|
+
};
|
39
|
+
/**
|
40
|
+
* 右侧数值(分母).
|
41
|
+
* @default null
|
42
|
+
*/
|
43
|
+
kgRight: {
|
44
|
+
type: PropType<number | null | undefined>;
|
45
|
+
default: null;
|
46
|
+
};
|
47
|
+
/**
|
48
|
+
* 右侧文本的宽度.
|
49
|
+
* @default 'auto'
|
50
|
+
*/
|
51
|
+
kgTextWidth: {
|
52
|
+
type: PropType<string>;
|
53
|
+
default: string;
|
54
|
+
};
|
55
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
56
|
+
/**
|
57
|
+
* 左侧数值(分子).
|
58
|
+
* @default null
|
59
|
+
*/
|
60
|
+
kgLeft: {
|
61
|
+
type: PropType<number | null | undefined>;
|
62
|
+
default: null;
|
63
|
+
};
|
64
|
+
/**
|
65
|
+
* 右侧数值(分母).
|
66
|
+
* @default null
|
67
|
+
*/
|
68
|
+
kgRight: {
|
69
|
+
type: PropType<number | null | undefined>;
|
70
|
+
default: null;
|
71
|
+
};
|
72
|
+
/**
|
73
|
+
* 右侧文本的宽度.
|
74
|
+
* @default 'auto'
|
75
|
+
*/
|
76
|
+
kgTextWidth: {
|
77
|
+
type: PropType<string>;
|
78
|
+
default: string;
|
79
|
+
};
|
80
|
+
}>>, {
|
81
|
+
kgLeft: number | null | undefined;
|
82
|
+
kgRight: number | null | undefined;
|
83
|
+
kgTextWidth: string;
|
84
|
+
}>;
|
85
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as KgProgressA, type IKgProgressAProps } from './KgProgressA';
|
@@ -0,0 +1,91 @@
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
2
|
+
import './KgResizable.less';
|
3
|
+
export declare const getProps: () => {
|
4
|
+
/** 样式. */
|
5
|
+
kgClass: PropType<string>;
|
6
|
+
/** 是否禁用. */
|
7
|
+
kgDisabled: PropType<boolean>;
|
8
|
+
/** 当前高度. */
|
9
|
+
kgHeight: {
|
10
|
+
type: PropType<number>;
|
11
|
+
default: number;
|
12
|
+
};
|
13
|
+
/** 最大高度. */
|
14
|
+
kgMaxHeight: {
|
15
|
+
type: PropType<number>;
|
16
|
+
default: undefined;
|
17
|
+
};
|
18
|
+
/** 最小高度. */
|
19
|
+
kgMinHeight: {
|
20
|
+
type: PropType<number>;
|
21
|
+
default: number;
|
22
|
+
};
|
23
|
+
/** 拖拽条的位置. */
|
24
|
+
kgType: {
|
25
|
+
type: PropType<"left" | "right" | "top" | "bottom">;
|
26
|
+
default: string;
|
27
|
+
};
|
28
|
+
'onUpdate:kgHeight': PropType<(value: number) => void>;
|
29
|
+
};
|
30
|
+
export declare type IKgResizableProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
31
|
+
declare const _default: import("vue").DefineComponent<{
|
32
|
+
/** 样式. */
|
33
|
+
kgClass: PropType<string>;
|
34
|
+
/** 是否禁用. */
|
35
|
+
kgDisabled: PropType<boolean>;
|
36
|
+
/** 当前高度. */
|
37
|
+
kgHeight: {
|
38
|
+
type: PropType<number>;
|
39
|
+
default: number;
|
40
|
+
};
|
41
|
+
/** 最大高度. */
|
42
|
+
kgMaxHeight: {
|
43
|
+
type: PropType<number>;
|
44
|
+
default: undefined;
|
45
|
+
};
|
46
|
+
/** 最小高度. */
|
47
|
+
kgMinHeight: {
|
48
|
+
type: PropType<number>;
|
49
|
+
default: number;
|
50
|
+
};
|
51
|
+
/** 拖拽条的位置. */
|
52
|
+
kgType: {
|
53
|
+
type: PropType<"left" | "right" | "top" | "bottom">;
|
54
|
+
default: string;
|
55
|
+
};
|
56
|
+
'onUpdate:kgHeight': PropType<(value: number) => void>;
|
57
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:kgHeight"[], "update:kgHeight", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
58
|
+
/** 样式. */
|
59
|
+
kgClass: PropType<string>;
|
60
|
+
/** 是否禁用. */
|
61
|
+
kgDisabled: PropType<boolean>;
|
62
|
+
/** 当前高度. */
|
63
|
+
kgHeight: {
|
64
|
+
type: PropType<number>;
|
65
|
+
default: number;
|
66
|
+
};
|
67
|
+
/** 最大高度. */
|
68
|
+
kgMaxHeight: {
|
69
|
+
type: PropType<number>;
|
70
|
+
default: undefined;
|
71
|
+
};
|
72
|
+
/** 最小高度. */
|
73
|
+
kgMinHeight: {
|
74
|
+
type: PropType<number>;
|
75
|
+
default: number;
|
76
|
+
};
|
77
|
+
/** 拖拽条的位置. */
|
78
|
+
kgType: {
|
79
|
+
type: PropType<"left" | "right" | "top" | "bottom">;
|
80
|
+
default: string;
|
81
|
+
};
|
82
|
+
'onUpdate:kgHeight': PropType<(value: number) => void>;
|
83
|
+
}>> & {
|
84
|
+
"onUpdate:kgHeight"?: ((...args: any[]) => any) | undefined;
|
85
|
+
}, {
|
86
|
+
kgMaxHeight: number;
|
87
|
+
kgMinHeight: number;
|
88
|
+
kgHeight: number;
|
89
|
+
kgType: "left" | "right" | "top" | "bottom";
|
90
|
+
}>;
|
91
|
+
export default _default;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { Ref } from 'vue';
|
2
|
+
/**
|
3
|
+
* <p>监测父元素的尺寸, 动态计算最大高度以及最大宽度.</p>
|
4
|
+
*
|
5
|
+
* @param param
|
6
|
+
*/
|
7
|
+
export declare function _useObserveParentSize(param: {
|
8
|
+
kgResizableRef: Ref<HTMLDivElement | null>;
|
9
|
+
}): {
|
10
|
+
parentWidth: Ref<number>;
|
11
|
+
parentHeight: Ref<number>;
|
12
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as KgResizable, type IKgResizableProps } from './KgResizable';
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
2
|
+
import './KgSearch.less';
|
3
|
+
export declare const getProps: () => {
|
4
|
+
/** 是否禁用. */
|
5
|
+
kgDisabled: {
|
6
|
+
type: PropType<boolean>;
|
7
|
+
default: undefined;
|
8
|
+
};
|
9
|
+
};
|
10
|
+
export declare type IKgSearchProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
11
|
+
declare const _default: import("vue").DefineComponent<{
|
12
|
+
/** 是否禁用. */
|
13
|
+
kgDisabled: {
|
14
|
+
type: PropType<boolean>;
|
15
|
+
default: undefined;
|
16
|
+
};
|
17
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
18
|
+
/** 是否禁用. */
|
19
|
+
kgDisabled: {
|
20
|
+
type: PropType<boolean>;
|
21
|
+
default: undefined;
|
22
|
+
};
|
23
|
+
}>>, {
|
24
|
+
kgDisabled: boolean;
|
25
|
+
}>;
|
26
|
+
export default _default;
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import { FormInstance } from 'ant-design-vue/lib/form/Form';
|
2
|
+
import { Ref } from 'vue';
|
3
|
+
/** 头部高度. */
|
4
|
+
export declare const HEADER_HEIGHT = 42;
|
5
|
+
/**
|
6
|
+
* 下边距的高度.
|
7
|
+
*/
|
8
|
+
export declare const PADDING_BOTTOM = 6;
|
9
|
+
/**
|
10
|
+
* 下边框的高度.
|
11
|
+
*/
|
12
|
+
export declare const BORDER_BOTTOM_WIDTH = 1;
|
13
|
+
/**
|
14
|
+
* 一个查询字段的高度.
|
15
|
+
*/
|
16
|
+
export declare const FORM_ITEM_HEIGHT = 38;
|
17
|
+
export declare function _useCommon(): {
|
18
|
+
isVisible: import("vue").ComputedRef<boolean>;
|
19
|
+
};
|
20
|
+
export declare function _useHeight(param: {
|
21
|
+
formContainerRef: Ref<HTMLDivElement | null>;
|
22
|
+
}): {
|
23
|
+
defaultHeight: import("vue").ComputedRef<number>;
|
24
|
+
maxHeight: import("vue").ComputedRef<number>;
|
25
|
+
minHeight: import("vue").ComputedRef<number>;
|
26
|
+
};
|
27
|
+
export declare function _useFormModel(param: {
|
28
|
+
kgResizableRef: Ref<any | null>;
|
29
|
+
formRef: Ref<FormInstance | null>;
|
30
|
+
}): {
|
31
|
+
initFormModel: () => Promise<void>;
|
32
|
+
};
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
2
|
+
export declare const getProps: () => {
|
3
|
+
'onUpdate:visible': PropType<(value: boolean) => void>;
|
4
|
+
visible: PropType<boolean>;
|
5
|
+
};
|
6
|
+
export declare type KgSearchConfigModalProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
7
|
+
declare const _default: import("vue").DefineComponent<{
|
8
|
+
'onUpdate:visible': PropType<(value: boolean) => void>;
|
9
|
+
visible: PropType<boolean>;
|
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
|
+
'onUpdate:visible': PropType<(value: boolean) => void>;
|
12
|
+
visible: PropType<boolean>;
|
13
|
+
}>> & {
|
14
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
15
|
+
}, {}>;
|
16
|
+
export default _default;
|
@@ -0,0 +1,67 @@
|
|
1
|
+
import { ComputedRef } from 'vue';
|
2
|
+
import { VarProfileDetail } from '../../api/WMS/models';
|
3
|
+
import { IRemoveEventListenerHandler } from '../../const';
|
4
|
+
import { IKgTableRequestParameter } from '../KgTable';
|
5
|
+
import { IKgSearchReadyEventListener, IKgSearchResetEventListener, IKgSearchSearchEventListener, IKgSearchStore } from './index.store';
|
6
|
+
export declare type IUseKgSearch = {
|
7
|
+
/**
|
8
|
+
* 当前查询字段列表.
|
9
|
+
*/
|
10
|
+
currentVarProfileDetails: ComputedRef<Array<VarProfileDetail>>;
|
11
|
+
/**
|
12
|
+
* 当前查询字段列表(可见的).
|
13
|
+
*/
|
14
|
+
currentVarProfileDetailsForVisible: ComputedRef<Array<VarProfileDetail>>;
|
15
|
+
currentVarProfileMaster: ComputedRef<ReturnType<IKgSearchStore['getCurrentVarProfileMaster']>>;
|
16
|
+
/**
|
17
|
+
* 高级查询的操作符表单数据对象.
|
18
|
+
*/
|
19
|
+
dynamicQueryOperatorModel: ComputedRef<ReturnType<IKgSearchStore['getDynamicQueryOperatorModel']>>;
|
20
|
+
/**
|
21
|
+
* 界面标识.
|
22
|
+
*/
|
23
|
+
formID: string;
|
24
|
+
/**
|
25
|
+
* 表单数据对象.
|
26
|
+
*/
|
27
|
+
formModel: ComputedRef<ReturnType<IKgSearchStore['getFormModel']>>;
|
28
|
+
/** 是否就绪: 查询字段初始完成, 组件渲染完成. */
|
29
|
+
isReady: ComputedRef<ReturnType<IKgSearchStore['getIsReady']>>;
|
30
|
+
/**
|
31
|
+
* 表单数据对象.
|
32
|
+
*
|
33
|
+
* @deprecated 请使用 {@link formModel}
|
34
|
+
*/
|
35
|
+
model: ComputedRef<ReturnType<IKgSearchStore['getFormModel']>>;
|
36
|
+
/**
|
37
|
+
* 监听事件: 查询字段初始完成, 组件渲染完成, 查询表单对象已经有值.
|
38
|
+
*
|
39
|
+
* @param listener 事件监听函数.
|
40
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
41
|
+
*/
|
42
|
+
onReady(listener: IKgSearchReadyEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
43
|
+
/**
|
44
|
+
* 监听事件: reset, 点击重置按钮.
|
45
|
+
* @param listener 事件监听函数.
|
46
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
47
|
+
*/
|
48
|
+
onReset(listener: IKgSearchResetEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
49
|
+
/**
|
50
|
+
* 监听事件: search, 点击查询按钮, 并且表单验证通过.
|
51
|
+
* @param listener 事件监听函数.
|
52
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
53
|
+
*/
|
54
|
+
onSearch(listener: IKgSearchSearchEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
55
|
+
/** 重置. */
|
56
|
+
reset(): void;
|
57
|
+
/** 查询. */
|
58
|
+
search(param?: boolean | IKgTableRequestParameter): void;
|
59
|
+
/**
|
60
|
+
* 状态数据.
|
61
|
+
*/
|
62
|
+
store: IKgSearchStore;
|
63
|
+
};
|
64
|
+
/**
|
65
|
+
* @param formID 界面标识.
|
66
|
+
*/
|
67
|
+
export declare function useKgSearch(formID?: string | null): IUseKgSearch;
|
@@ -0,0 +1,147 @@
|
|
1
|
+
import { StoreDefinition } from 'pinia';
|
2
|
+
import { VarProfileMasterDTO } from '../../api/WMS/models';
|
3
|
+
import { IKgEventListener } from '../../const';
|
4
|
+
import { IKgTableRequestParameter } from '../KgTable';
|
5
|
+
/**
|
6
|
+
* 事件类型.
|
7
|
+
* 'ready': 查询字段初始完成, 组件渲染完成, 查询表单对象已经有值
|
8
|
+
* 'search': 点击查询按钮, 并且表单验证通过
|
9
|
+
* 'reset': 点击重置按钮
|
10
|
+
*/
|
11
|
+
export declare type IKgSearchEvent = 'ready' | 'search' | 'reset';
|
12
|
+
export declare type IKgSearchReadyEventListenerParameter = {};
|
13
|
+
export declare type IKgSearchReadyEventListener = ((param: IKgSearchReadyEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
14
|
+
export declare type IKgSearchSearchEventListenerParameter = {} & IKgTableRequestParameter;
|
15
|
+
export declare type IKgSearchSearchEventListener = ((param: IKgSearchSearchEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
16
|
+
export declare type IKgSearchResetEventListenerParameter = {};
|
17
|
+
export declare type IKgSearchResetEventListener = ((param: IKgSearchResetEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
18
|
+
export declare type IKgSearchEventListenerParameter = IKgSearchReadyEventListenerParameter | IKgSearchSearchEventListenerParameter | IKgSearchResetEventListenerParameter;
|
19
|
+
export declare type IKgSearchEventListener = IKgSearchReadyEventListener | IKgSearchSearchEventListener | IKgSearchResetEventListener;
|
20
|
+
/** 查询方法. */
|
21
|
+
export declare type IKgSearchSearchFn = (param?: IKgTableRequestParameter) => void;
|
22
|
+
/** 重置方法. */
|
23
|
+
export declare type IKgSearchResetFn = () => void;
|
24
|
+
export interface IUseKgSearchStoreState {
|
25
|
+
/**
|
26
|
+
* 高级查询操作符的表单数据对象.
|
27
|
+
*/
|
28
|
+
dynamicOperatorModelMap: Map<string, Record<string, string>>;
|
29
|
+
/** 表单数据对象. */
|
30
|
+
formModel: Map<string, Record<string, any>>;
|
31
|
+
/**
|
32
|
+
* 是否就绪: 查询字段初始完成, 组件渲染完成.
|
33
|
+
*/
|
34
|
+
isReadyMap: Map<string, boolean>;
|
35
|
+
/** 事件监听函数列表: ready. */
|
36
|
+
onReadyEventListenerMap: Map<string, Array<IKgSearchReadyEventListener>>;
|
37
|
+
/** 事件监听函数列表: reset. */
|
38
|
+
onResetEventListenerMap: Map<string, Array<IKgSearchResetEventListener>>;
|
39
|
+
/** 事件监听函数列表: search. */
|
40
|
+
onSearchEventListenerMap: Map<string, Array<IKgSearchSearchEventListener>>;
|
41
|
+
/** 重置方法, 可供外部调用, 用来触发重置操作. */
|
42
|
+
resetFnMap: Map<string, IKgSearchResetFn>;
|
43
|
+
/** 查询方法, 可供外部调用, 用来触发查询操作. */
|
44
|
+
searchFnMap: Map<string, IKgSearchSearchFn>;
|
45
|
+
}
|
46
|
+
export interface IUseKgSearchStoreGetters {
|
47
|
+
/**
|
48
|
+
* 获取当前的 VarProfileMaster.
|
49
|
+
*/
|
50
|
+
getCurrentVarProfileMaster(): (formID: string | null | undefined) => VarProfileMasterDTO | null;
|
51
|
+
/**
|
52
|
+
* @param formID 界面标识.
|
53
|
+
*/
|
54
|
+
getDynamicQueryOperatorModel(): (formID: string | null | undefined) => Record<string, string>;
|
55
|
+
/**
|
56
|
+
* @param formID 界面标识.
|
57
|
+
*/
|
58
|
+
getFormModel(): (formID: string | null | undefined) => Record<string, any> | null;
|
59
|
+
/**
|
60
|
+
* 是否就绪.
|
61
|
+
*
|
62
|
+
* @param formID 界面标识.
|
63
|
+
*/
|
64
|
+
getIsReady(): (formID: string | null | undefined) => boolean;
|
65
|
+
/**
|
66
|
+
* 获取重置方法.
|
67
|
+
*
|
68
|
+
* @param formID 界面标识.
|
69
|
+
*/
|
70
|
+
getResetFn(): (formID: string | null | undefined) => IKgSearchResetFn | null;
|
71
|
+
/**
|
72
|
+
* 获取查询方法.
|
73
|
+
*
|
74
|
+
* @param formID 界面标识.
|
75
|
+
*/
|
76
|
+
getSearchFn(): (formID: string | null | undefined) => IKgSearchSearchFn | null;
|
77
|
+
}
|
78
|
+
export interface IUseKgSearchStoreActions {
|
79
|
+
/**
|
80
|
+
* 注册事件监听.
|
81
|
+
* @param formID 界面标识.
|
82
|
+
* @param event 事件名称.
|
83
|
+
* @param listener 事件监听函数.
|
84
|
+
*/
|
85
|
+
addEventListener(formID: string, event: IKgSearchEvent, listener: any): void;
|
86
|
+
/**
|
87
|
+
* 清理数据.
|
88
|
+
* @param formID 页面标识.
|
89
|
+
*/
|
90
|
+
dispose(formID: string | null | undefined): void;
|
91
|
+
/**
|
92
|
+
* 触发事件.
|
93
|
+
* @param formID 界面标识.
|
94
|
+
* @param event 事件名称.
|
95
|
+
* @param param 事件参数.
|
96
|
+
*/
|
97
|
+
emit<T = IKgSearchEventListenerParameter>(formID: string, event: IKgSearchEvent, param: T): Promise<boolean>;
|
98
|
+
/**
|
99
|
+
* 修改查询字段的高级查询操作符的部分属性.
|
100
|
+
*
|
101
|
+
* @param formID 界面标识.
|
102
|
+
* @param properties 要修改的部分属性.
|
103
|
+
*/
|
104
|
+
patchDynamicQueryOperatorModel(formID: string | null | undefined, properties?: Record<string, any> | null): Promise<void>;
|
105
|
+
/**
|
106
|
+
* 修改查询字段的表单数据的部分属性.
|
107
|
+
*
|
108
|
+
* @param formID 界面标识.
|
109
|
+
* @param properties 要修改的部分属性.
|
110
|
+
*/
|
111
|
+
patchModel(formID: string | null | undefined, properties?: Record<string, any> | null): Promise<void>;
|
112
|
+
/**
|
113
|
+
* 退订事件监听.
|
114
|
+
* @param formID 界面标识.
|
115
|
+
* @param event 事件名称.
|
116
|
+
* @param listener 事件监听函数.
|
117
|
+
*/
|
118
|
+
removeEventListener(formID: string, event: IKgSearchEvent, listener?: any): void;
|
119
|
+
setDynamicQueryOperatorModel(formID: string | null | undefined, model?: Record<string, any> | null): void;
|
120
|
+
/**
|
121
|
+
* 设置表单数据.
|
122
|
+
* @param formID 界面标识.
|
123
|
+
* @param model 表单数据.
|
124
|
+
*/
|
125
|
+
setFormModel(formID: string | null | undefined, model?: Record<string, any> | null): void;
|
126
|
+
/**
|
127
|
+
* 设置是否就绪.
|
128
|
+
* @param formID 界面标识.
|
129
|
+
* @param ready 是否就绪.
|
130
|
+
*/
|
131
|
+
setIsReady(formID: string | null | undefined, ready?: boolean): void;
|
132
|
+
/**
|
133
|
+
* 设置重置方法.
|
134
|
+
* @param formID 界面标识.
|
135
|
+
* @param fn 重置方法.
|
136
|
+
*/
|
137
|
+
setResetFn(formID: string | null | undefined, fn?: IKgSearchResetFn | null): void;
|
138
|
+
/**
|
139
|
+
* 设置查询方法.
|
140
|
+
* @param formID 界面标识.
|
141
|
+
* @param fn 查询方法.
|
142
|
+
*/
|
143
|
+
setSearchFn(formID: string | null | undefined, fn?: IKgSearchSearchFn | null): void;
|
144
|
+
}
|
145
|
+
export declare type IUseKgSearchStore = StoreDefinition<'KgSearch', IUseKgSearchStoreState, IUseKgSearchStoreGetters, IUseKgSearchStoreActions>;
|
146
|
+
export declare type IKgSearchStore = ReturnType<IUseKgSearchStore>;
|
147
|
+
export declare const useKgSearchStore: IUseKgSearchStore;
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|