@kengic/vue 0.26.6-beta.7 → 0.26.6-beta.70
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.eef6a697.mjs +8 -0
- package/dist/fullscreen-exit-outlined-X1iYkFc4.b82209a4.mjs +8 -0
- package/dist/fullscreen-exit-outlined.a75b82c2.mjs +8 -0
- package/dist/fullscreen-outlined-DDBrsRcy.94ce9412.mjs +8 -0
- package/dist/fullscreen-outlined.c9ba7960.mjs +8 -0
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +51546 -39108
- 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,38 @@
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
2
|
+
import './KgCanvas.css';
|
3
|
+
export declare const getProps: () => {
|
4
|
+
/**
|
5
|
+
* 是否显示文本.
|
6
|
+
*
|
7
|
+
* @default false
|
8
|
+
*/
|
9
|
+
kgIsShowText: {
|
10
|
+
type: PropType<boolean>;
|
11
|
+
default: boolean;
|
12
|
+
};
|
13
|
+
};
|
14
|
+
export declare type KgCanvasToolbarFullscreenProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
15
|
+
declare const _default: import("vue").DefineComponent<{
|
16
|
+
/**
|
17
|
+
* 是否显示文本.
|
18
|
+
*
|
19
|
+
* @default false
|
20
|
+
*/
|
21
|
+
kgIsShowText: {
|
22
|
+
type: PropType<boolean>;
|
23
|
+
default: boolean;
|
24
|
+
};
|
25
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
26
|
+
/**
|
27
|
+
* 是否显示文本.
|
28
|
+
*
|
29
|
+
* @default false
|
30
|
+
*/
|
31
|
+
kgIsShowText: {
|
32
|
+
type: PropType<boolean>;
|
33
|
+
default: boolean;
|
34
|
+
};
|
35
|
+
}>>, {
|
36
|
+
kgIsShowText: boolean;
|
37
|
+
}>;
|
38
|
+
export default _default;
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { Q } from '@thymine/xunee';
|
2
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
3
|
+
import './KgCanvas.css';
|
4
|
+
export declare const getProps: () => {
|
5
|
+
kgElement: PropType<Q.Element<any>>;
|
6
|
+
kgElementUi: PropType<Q.ElementUI>;
|
7
|
+
kgGraph: PropType<Q.Graph>;
|
8
|
+
/**
|
9
|
+
* 鼠标事件对象.
|
10
|
+
*/
|
11
|
+
kgMouseEvent: PropType<MouseEvent>;
|
12
|
+
};
|
13
|
+
export declare type KgCanvasTooltipProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
14
|
+
declare const _default: import("vue").DefineComponent<{
|
15
|
+
kgElement: PropType<Q.Element<any>>;
|
16
|
+
kgElementUi: PropType<Q.ElementUI>;
|
17
|
+
kgGraph: PropType<Q.Graph>;
|
18
|
+
/**
|
19
|
+
* 鼠标事件对象.
|
20
|
+
*/
|
21
|
+
kgMouseEvent: PropType<MouseEvent>;
|
22
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
23
|
+
kgElement: PropType<Q.Element<any>>;
|
24
|
+
kgElementUi: PropType<Q.ElementUI>;
|
25
|
+
kgGraph: PropType<Q.Graph>;
|
26
|
+
/**
|
27
|
+
* 鼠标事件对象.
|
28
|
+
*/
|
29
|
+
kgMouseEvent: PropType<MouseEvent>;
|
30
|
+
}>>, {}>;
|
31
|
+
export default _default;
|
@@ -0,0 +1,67 @@
|
|
1
|
+
import { IRemoveEventListenerHandler } from '../../const';
|
2
|
+
import { IKgCanvasOnClickEventListener, IKgCanvasOnContextMenuCloseEventListener, IKgCanvasOnContextMenuOpenEventListener, IKgCanvasOnInitEventListener, IKgCanvasOnMouseEnterEventListener, IKgCanvasOnMouseLeaveEventListener, IKgCanvasOnMouseMoveEventListener, IKgCanvasOnReloadEventListener, IKgCanvasOnResizeEventListener, IKgCanvasOnRightClickEventListener, IKgCanvasStore } from './index.store';
|
3
|
+
export declare type IUseKgCanvas = {
|
4
|
+
/**
|
5
|
+
* 监听事件: 单击鼠标左键.
|
6
|
+
* @param listener 事件监听函数.
|
7
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
8
|
+
*/
|
9
|
+
onClick(listener: IKgCanvasOnClickEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
10
|
+
/**
|
11
|
+
* 监听事件: 右键菜单关闭.
|
12
|
+
* @param listener 事件监听函数.
|
13
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
14
|
+
*/
|
15
|
+
onContextMenuClose(listener: IKgCanvasOnContextMenuCloseEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
16
|
+
/**
|
17
|
+
* 监听事件: 右键菜单打开.
|
18
|
+
* @param listener 事件监听函数.
|
19
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
20
|
+
*/
|
21
|
+
onContextMenuOpen(listener: IKgCanvasOnContextMenuOpenEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
22
|
+
/**
|
23
|
+
* 监听事件: 图形组件初始完成.
|
24
|
+
* @param listener 事件监听函数.
|
25
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
26
|
+
*/
|
27
|
+
onInit(listener: IKgCanvasOnInitEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
28
|
+
/**
|
29
|
+
* 监听事件: 鼠标进入.
|
30
|
+
* @param listener 事件监听函数.
|
31
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
32
|
+
*/
|
33
|
+
onMouseEnter(listener: IKgCanvasOnMouseEnterEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
34
|
+
/**
|
35
|
+
* 监听事件: 鼠标离开.
|
36
|
+
* @param listener 事件监听函数.
|
37
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
38
|
+
*/
|
39
|
+
onMouseLeave(listener: IKgCanvasOnMouseLeaveEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
40
|
+
/**
|
41
|
+
* 监听事件: 鼠标移动.
|
42
|
+
* @param listener 事件监听函数.
|
43
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
44
|
+
*/
|
45
|
+
onMouseMove(listener: IKgCanvasOnMouseMoveEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
46
|
+
/**
|
47
|
+
* 监听事件: 重新加载.
|
48
|
+
* @param listener 事件监听函数.
|
49
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
50
|
+
*/
|
51
|
+
onReload(listener: IKgCanvasOnReloadEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
52
|
+
/**
|
53
|
+
* 监听事件: 尺寸变化.
|
54
|
+
* @param listener 事件监听函数.
|
55
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
56
|
+
*/
|
57
|
+
onResize(listener: IKgCanvasOnResizeEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
58
|
+
/**
|
59
|
+
* 监听事件: 单击鼠标右键.
|
60
|
+
* @param listener 事件监听函数.
|
61
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
62
|
+
*/
|
63
|
+
onRightClick(listener: IKgCanvasOnRightClickEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
64
|
+
/** 状态数据. */
|
65
|
+
store: IKgCanvasStore;
|
66
|
+
};
|
67
|
+
export declare function useKgCanvas(): IUseKgCanvas;
|
@@ -0,0 +1,239 @@
|
|
1
|
+
import { Q } from '@thymine/xunee';
|
2
|
+
import { StoreDefinition } from 'pinia';
|
3
|
+
import { Ref } from 'vue';
|
4
|
+
import { IKgEventListener } from '../../const';
|
5
|
+
import { type IKgCanvasContextMenu } from './KgCanvasContextMenu';
|
6
|
+
/**
|
7
|
+
* 事件类型.
|
8
|
+
* 'onInit': 图形组件初始完成
|
9
|
+
* 'onReload': 重新加载
|
10
|
+
* 'onResize': 尺寸变化
|
11
|
+
* 'onMouseMove': 鼠标移动
|
12
|
+
* 'onMouseEnter': 鼠标进入
|
13
|
+
* 'onMouseLeave': 鼠标离开
|
14
|
+
* 'onClick': 单击鼠标左键
|
15
|
+
* 'onRightClick': 单击鼠标右键
|
16
|
+
* 'onContextMenuOpen': 右键菜单打开
|
17
|
+
* 'onContextMenuClose': 右键菜单关闭
|
18
|
+
*/
|
19
|
+
export declare type IKgCanvasEvent = 'onInit' | 'onReload' | 'onResize' | 'onMouseMove' | 'onMouseEnter' | 'onMouseLeave' | 'onClick' | 'onRightClick' | 'onContextMenuOpen' | 'onContextMenuClose';
|
20
|
+
export declare type IKgCanvasOnInitEventListenerParameter = {
|
21
|
+
/**
|
22
|
+
* Q.
|
23
|
+
*/
|
24
|
+
Q: typeof Q;
|
25
|
+
/**
|
26
|
+
* 图形组件对象.
|
27
|
+
*/
|
28
|
+
graph: Q.Graph;
|
29
|
+
eid: string;
|
30
|
+
};
|
31
|
+
export declare type IKgCanvasOnInitEventListener = ((param: IKgCanvasOnInitEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
32
|
+
export declare type IKgCanvasOnReloadEventListenerParameter = {
|
33
|
+
/**
|
34
|
+
* Q.
|
35
|
+
*/
|
36
|
+
Q: typeof Q;
|
37
|
+
eid: string;
|
38
|
+
/**
|
39
|
+
* 图形组件对象.
|
40
|
+
*/
|
41
|
+
graph: Q.Graph;
|
42
|
+
};
|
43
|
+
export declare type IKgCanvasOnReloadEventListener = ((param: IKgCanvasOnReloadEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
44
|
+
export declare type IKgCanvasOnResizeEventListenerParameter = {
|
45
|
+
/**
|
46
|
+
* Q.
|
47
|
+
*/
|
48
|
+
Q: typeof Q;
|
49
|
+
eid: string;
|
50
|
+
/**
|
51
|
+
* 图形组件对象.
|
52
|
+
*/
|
53
|
+
graph: Q.Graph;
|
54
|
+
/**
|
55
|
+
* 当前高度.
|
56
|
+
*/
|
57
|
+
height: number;
|
58
|
+
/**
|
59
|
+
* 当前宽度.
|
60
|
+
*/
|
61
|
+
width: number;
|
62
|
+
};
|
63
|
+
export declare type IKgCanvasOnResizeEventListener = ((param: IKgCanvasOnResizeEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
64
|
+
export declare type IKgCanvasOnRightClickEventListenerParameter = {
|
65
|
+
/**
|
66
|
+
* Q.
|
67
|
+
*/
|
68
|
+
Q: typeof Q;
|
69
|
+
/**
|
70
|
+
* <p>右键菜单列表.</p>
|
71
|
+
* <p>用户可以直接修改该参数的值, 从而修改此次单击右键事件弹出的右键菜单.</p>
|
72
|
+
*/
|
73
|
+
contextMenus: Ref<Array<IKgCanvasContextMenu>>;
|
74
|
+
eid: string;
|
75
|
+
/**
|
76
|
+
* 图元.
|
77
|
+
*/
|
78
|
+
element?: Q.Element;
|
79
|
+
/**
|
80
|
+
* 图元组件.
|
81
|
+
*/
|
82
|
+
elementUI?: Q.ElementUI;
|
83
|
+
/**
|
84
|
+
* 鼠标事件.
|
85
|
+
*/
|
86
|
+
event: MouseEvent;
|
87
|
+
/**
|
88
|
+
* 图形组件对象.
|
89
|
+
*/
|
90
|
+
graph: Q.Graph;
|
91
|
+
/**
|
92
|
+
* 图元组件.
|
93
|
+
*/
|
94
|
+
ui?: Q.BaseUI;
|
95
|
+
};
|
96
|
+
export declare type IKgCanvasOnRightClickEventListener = ((param: IKgCanvasOnRightClickEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
97
|
+
export declare type IKgCanvasOnMouseMoveEventListenerParameter = {
|
98
|
+
/**
|
99
|
+
* Q.
|
100
|
+
*/
|
101
|
+
Q: typeof Q;
|
102
|
+
eid: string;
|
103
|
+
/**
|
104
|
+
* 图元.
|
105
|
+
*/
|
106
|
+
element?: Q.Element;
|
107
|
+
/**
|
108
|
+
* 图元组件.
|
109
|
+
*/
|
110
|
+
elementUI?: Q.ElementUI;
|
111
|
+
/**
|
112
|
+
* 图形组件对象.
|
113
|
+
*/
|
114
|
+
graph: Q.Graph;
|
115
|
+
/**
|
116
|
+
* 图元组件.
|
117
|
+
*/
|
118
|
+
ui?: Q.BaseUI;
|
119
|
+
};
|
120
|
+
export declare type IKgCanvasOnMouseMoveEventListener = ((param: IKgCanvasOnMouseMoveEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
121
|
+
export declare type IKgCanvasOnMouseLeaveEventListenerParameter = {
|
122
|
+
/**
|
123
|
+
* Q.
|
124
|
+
*/
|
125
|
+
Q: typeof Q;
|
126
|
+
eid: string;
|
127
|
+
/**
|
128
|
+
* 图元.
|
129
|
+
*/
|
130
|
+
element?: Q.Element;
|
131
|
+
/**
|
132
|
+
* 图元组件.
|
133
|
+
*/
|
134
|
+
elementUI?: Q.ElementUI;
|
135
|
+
/**
|
136
|
+
* 图形组件对象.
|
137
|
+
*/
|
138
|
+
graph: Q.Graph;
|
139
|
+
/**
|
140
|
+
* 图元组件.
|
141
|
+
*/
|
142
|
+
ui?: Q.BaseUI;
|
143
|
+
};
|
144
|
+
export declare type IKgCanvasOnMouseLeaveEventListener = ((param: IKgCanvasOnMouseLeaveEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
145
|
+
export declare type IKgCanvasOnMouseEnterEventListenerParameter = {
|
146
|
+
/**
|
147
|
+
* Q.
|
148
|
+
*/
|
149
|
+
Q: typeof Q;
|
150
|
+
eid: string;
|
151
|
+
/**
|
152
|
+
* 图元.
|
153
|
+
*/
|
154
|
+
element?: Q.Element;
|
155
|
+
/**
|
156
|
+
* 图元组件.
|
157
|
+
*/
|
158
|
+
elementUI?: Q.ElementUI;
|
159
|
+
/**
|
160
|
+
* 图形组件对象.
|
161
|
+
*/
|
162
|
+
graph: Q.Graph;
|
163
|
+
/**
|
164
|
+
* 图元组件.
|
165
|
+
*/
|
166
|
+
ui?: Q.BaseUI;
|
167
|
+
};
|
168
|
+
export declare type IKgCanvasOnMouseEnterEventListener = ((param: IKgCanvasOnMouseEnterEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
169
|
+
export declare type IKgCanvasOnClickEventListenerParameter = {
|
170
|
+
/**
|
171
|
+
* Q.
|
172
|
+
*/
|
173
|
+
Q: typeof Q;
|
174
|
+
eid: string;
|
175
|
+
/**
|
176
|
+
* 图元.
|
177
|
+
*/
|
178
|
+
element?: Q.Element;
|
179
|
+
/**
|
180
|
+
* 图元组件.
|
181
|
+
*/
|
182
|
+
elementUI?: Q.ElementUI;
|
183
|
+
/**
|
184
|
+
* 图形组件对象.
|
185
|
+
*/
|
186
|
+
graph: Q.Graph;
|
187
|
+
/**
|
188
|
+
* 图元组件.
|
189
|
+
*/
|
190
|
+
ui?: Q.BaseUI;
|
191
|
+
};
|
192
|
+
export declare type IKgCanvasOnClickEventListener = ((param: IKgCanvasOnClickEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
193
|
+
export declare type IKgCanvasOnContextMenuOpenEventListenerParameter = {
|
194
|
+
eid: string;
|
195
|
+
};
|
196
|
+
export declare type IKgCanvasOnContextMenuOpenEventListener = ((param: IKgCanvasOnContextMenuOpenEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
197
|
+
export declare type IKgCanvasOnContextMenuCloseEventListenerParameter = {
|
198
|
+
eid: string;
|
199
|
+
};
|
200
|
+
export declare type IKgCanvasOnContextMenuCloseEventListener = ((param: IKgCanvasOnContextMenuCloseEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
201
|
+
export declare type IKgCanvasEventListenerParameter = IKgCanvasOnInitEventListenerParameter | IKgCanvasOnReloadEventListenerParameter | IKgCanvasOnResizeEventListenerParameter | IKgCanvasOnRightClickEventListenerParameter | IKgCanvasOnMouseMoveEventListenerParameter | IKgCanvasOnMouseEnterEventListenerParameter | IKgCanvasOnMouseLeaveEventListenerParameter | IKgCanvasOnClickEventListenerParameter | IKgCanvasOnContextMenuOpenEventListenerParameter | IKgCanvasOnContextMenuCloseEventListenerParameter;
|
202
|
+
export declare type IKgCanvasEventListener = IKgCanvasOnInitEventListener | IKgCanvasOnReloadEventListener | IKgCanvasOnResizeEventListener | IKgCanvasOnRightClickEventListener | IKgCanvasOnMouseMoveEventListener | IKgCanvasOnMouseEnterEventListener | IKgCanvasOnMouseLeaveEventListener | IKgCanvasOnClickEventListener | IKgCanvasOnContextMenuOpenEventListener | IKgCanvasOnContextMenuCloseEventListener;
|
203
|
+
export interface IUseKgCanvasStoreState {
|
204
|
+
onClickEventListenerMap: Map<string, Array<IKgCanvasOnClickEventListener>>;
|
205
|
+
onContextMenuCloseEventListenerMap: Map<string, Array<IKgCanvasOnContextMenuCloseEventListener>>;
|
206
|
+
onContextMenuOpenEventListenerMap: Map<string, Array<IKgCanvasOnContextMenuOpenEventListener>>;
|
207
|
+
onInitEventListenerMap: Map<string, Array<IKgCanvasOnInitEventListener>>;
|
208
|
+
onMouseEnterEventListenerMap: Map<string, Array<IKgCanvasOnMouseEnterEventListener>>;
|
209
|
+
onMouseLeaveEventListenerMap: Map<string, Array<IKgCanvasOnMouseLeaveEventListener>>;
|
210
|
+
onMouseMoveEventListenerMap: Map<string, Array<IKgCanvasOnMouseMoveEventListener>>;
|
211
|
+
onReloadEventListenerMap: Map<string, Array<IKgCanvasOnReloadEventListener>>;
|
212
|
+
onResizeEventListenerMap: Map<string, Array<IKgCanvasOnResizeEventListener>>;
|
213
|
+
onRightClickEventListenerMap: Map<string, Array<IKgCanvasOnRightClickEventListener>>;
|
214
|
+
}
|
215
|
+
export interface IUseKgCanvasStoreGetters {
|
216
|
+
}
|
217
|
+
export interface IUseKgCanvasStoreActions {
|
218
|
+
/**
|
219
|
+
* 注册事件监听.
|
220
|
+
* @param event 事件名称.
|
221
|
+
* @param listener 事件监听函数.
|
222
|
+
*/
|
223
|
+
addEventListener(event: IKgCanvasEvent, listener: any): void;
|
224
|
+
/**
|
225
|
+
* 触发事件.
|
226
|
+
* @param event 事件名称.
|
227
|
+
* @param param 参数.
|
228
|
+
*/
|
229
|
+
emit<T = IKgCanvasEventListenerParameter>(event: IKgCanvasEvent, param?: T | null): Promise<boolean>;
|
230
|
+
/**
|
231
|
+
* 退订事件监听.
|
232
|
+
* @param event 事件名称.
|
233
|
+
* @param listener 事件监听函数.
|
234
|
+
*/
|
235
|
+
removeEventListener(event: IKgCanvasEvent, listener?: any): void;
|
236
|
+
}
|
237
|
+
export declare type IUseKgCanvasStore = StoreDefinition<'KgCanvas', IUseKgCanvasStoreState, IUseKgCanvasStoreGetters, IUseKgCanvasStoreActions>;
|
238
|
+
export declare type IKgCanvasStore = ReturnType<IUseKgCanvasStore>;
|
239
|
+
export declare const useKgCanvasStore: IUseKgCanvasStore;
|