@kengic/vue 0.30.1-beta.10 → 0.30.1-beta.101
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -1
- package/README.md +4 -3
- package/bin/bin.mjs +42 -0
- package/bin/postinstall.mjs +88 -0
- package/dist/check-box-outline-blank.d01a2055.mjs +8 -0
- package/dist/collapse-all-rounded.26ee73fc.mjs +8 -0
- package/dist/expand-all-rounded.e01e6cb9.mjs +8 -0
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +150652 -133605
- package/dist/more-outlined.8e1202ac.mjs +8 -0
- package/dist/palette-swatch-variant.f7258843.mjs +8 -0
- package/dist/partition-outlined.1bcf4f37.mjs +8 -0
- package/dist/pause-rounded.1ed7cc39.mjs +8 -0
- package/dist/play-arrow-rounded.90fc4173.mjs +8 -0
- package/dist/profile-outlined.1059fb0d.mjs +8 -0
- package/dist/src/api/WMS/models.d.ts +2 -0
- package/dist/src/component/KgAppSelect/KgAppSelect.d.ts +7 -8
- package/dist/src/component/KgAppSelect/KgAppSelect.store.d.ts +4 -4
- package/dist/src/component/KgButton/{components/KgButton.Copy.d.ts → KgButton.Copy.d.ts} +5 -5
- package/dist/src/component/KgButton/{components/KgButton.Create.d.ts → KgButton.Create.d.ts} +3 -3
- package/dist/src/component/KgButton/{components/KgButton.Delete.d.ts → KgButton.Delete.d.ts} +3 -3
- package/dist/src/component/KgButton/{components/KgButton.Export.d.ts → KgButton.Export.d.ts} +5 -5
- package/dist/src/component/KgButton/{components/KgButton.Import.d.ts → KgButton.Import.d.ts} +5 -5
- package/dist/src/component/KgButton/{components/KgButton.ImportTemplate.d.ts → KgButton.ImportTemplate.d.ts} +5 -5
- package/dist/src/component/KgButton/KgButton.Item.d.ts +2 -4
- package/dist/src/component/KgButton/{components/KgButton.Other.d.ts → KgButton.Other.d.ts} +5 -5
- package/dist/src/component/KgButton/{components/KgButton.Search.d.ts → KgButton.Search.d.ts} +3 -3
- package/dist/src/component/KgButton/{components/KgButton.Update.d.ts → KgButton.Update.d.ts} +5 -5
- package/dist/src/component/KgButton/KgButton.d.ts +1 -2
- package/dist/src/component/KgButton/KgButton.event.d.ts +36 -22
- package/dist/src/component/KgButton/KgButton.hooks.d.ts +16 -9
- package/dist/src/component/KgButton/{KgButton.Item.data.d.ts → KgButton.model.d.ts} +1 -1
- package/dist/src/component/KgButton/KgButton.store.d.ts +2 -2
- package/dist/src/component/KgButton/index.d.ts +2 -60
- package/dist/src/component/KgCanvas/{KgCanvas.Toolbar.OverviewScale.d.ts → KgCanvas.ToolbarButton.Fullscreen.d.ts} +2 -3
- package/dist/src/component/KgCanvas/KgCanvas.ToolbarButton.Mode.d.ts +7 -0
- package/dist/src/component/KgCanvas/{KgCanvas.Toolbar.Fullscreen.d.ts → KgCanvas.ToolbarButton.OverviewScale.d.ts} +2 -3
- package/dist/src/component/KgCanvas/KgCanvas.Tooltip.d.ts +1 -2
- package/dist/src/component/KgCanvas/KgCanvas.d.ts +59 -3
- package/dist/src/component/KgCanvas/KgCanvas.event.d.ts +73 -36
- package/dist/src/component/KgCanvas/KgCanvas.hooks.d.ts +43 -15
- package/dist/src/component/KgCanvas/KgCanvas.model.d.ts +26 -32
- package/dist/src/component/KgCanvas/KgCanvas.service.d.ts +5 -31
- package/dist/src/component/KgCanvas/KgCanvas.store.d.ts +5 -2
- package/dist/src/component/KgCanvas/index.d.ts +1 -1
- package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.AreaSelect.d.ts +5 -0
- package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Canvas.d.ts +5 -0
- package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Legend.d.ts +5 -0
- package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Offline.d.ts +5 -0
- package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Setting.d.ts +5 -0
- package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Tab.Log.d.ts +5 -0
- package/dist/src/{page/KgCircleVis/components/KgCircleVis.Tab.Rgv.d.ts → component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Tab.Rgv.d.ts} +5 -5
- package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.d.ts +5 -0
- package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.hooks.d.ts +29 -0
- package/dist/src/{page/KgCircleVis/components/KgCircleVis.model.d.ts → component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.model.d.ts} +1 -1
- package/dist/src/{page/KgCircleVis/components/KgCircleVis.store.d.ts → component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.store.d.ts} +41 -41
- package/dist/src/component/KgCircularShuttleMonitor/index.d.ts +3 -0
- package/dist/src/component/KgForm/KgForm.d.ts +4 -5
- package/dist/src/component/KgForm/KgForm.event.d.ts +31 -31
- package/dist/src/component/KgForm/KgForm.hooks.d.ts +12 -12
- package/dist/src/component/KgForm/KgForm.store.d.ts +6 -6
- package/dist/src/component/KgForm/index.d.ts +2 -602
- package/dist/src/component/KgForm.Item/{components/KgForm.Item.Checkbox.d.ts → KgForm.Item.Checkbox.d.ts} +39 -39
- package/dist/src/component/KgForm.Item/{components/KgForm.Item.CheckboxGroup.d.ts → KgForm.Item.CheckboxGroup.d.ts} +41 -41
- package/dist/src/component/KgForm.Item/{components/KgForm.Item.Date.d.ts → KgForm.Item.Date.d.ts} +39 -39
- package/dist/src/component/KgForm.Item/{components/KgForm.Item.DateRange.d.ts → KgForm.Item.DateRange.d.ts} +39 -39
- package/dist/src/component/KgForm.Item/{components/KgForm.Item.Image.d.ts → KgForm.Item.Image.d.ts} +42 -46
- package/dist/src/component/KgForm.Item/{components/KgForm.Item.Input.d.ts → KgForm.Item.Input.d.ts} +39 -39
- package/dist/src/component/KgForm.Item/{components/KgForm.Item.InputNumber.d.ts → KgForm.Item.InputNumber.d.ts} +39 -39
- package/dist/src/component/KgForm.Item/{components/KgForm.Item.InputPassword.d.ts → KgForm.Item.InputPassword.d.ts} +39 -39
- package/dist/src/component/KgForm.Item/{components/KgForm.Item.Link.d.ts → KgForm.Item.Link.d.ts} +39 -39
- package/dist/src/component/KgForm.Item/{components/KgForm.Item.RadioGroup.d.ts → KgForm.Item.RadioGroup.d.ts} +39 -39
- package/dist/src/component/KgForm.Item/{components/KgForm.Item.Select.d.ts → KgForm.Item.Select.d.ts} +40 -40
- package/dist/src/component/KgForm.Item/{components/KgForm.Item.Select.service.d.ts → KgForm.Item.Select.service.d.ts} +2 -2
- package/dist/src/component/KgForm.Item/{components/KgForm.Item.Switch.d.ts → KgForm.Item.Switch.d.ts} +39 -39
- package/dist/src/component/KgForm.Item/{components/KgForm.Item.TextArea.d.ts → KgForm.Item.TextArea.d.ts} +39 -39
- package/dist/src/component/KgForm.Item/KgForm.Item.d.ts +37 -37
- package/dist/src/component/KgForm.Item/KgForm.Item.model.d.ts +32 -34
- package/dist/src/component/KgLayoutHeader/{components/KgLayoutHeaderLocale.d.ts → KgLayoutHeader.Locale.d.ts} +1 -1
- package/dist/src/component/KgLayoutHeader/index.d.ts +1 -1
- package/dist/src/component/KgModal/KgModal.d.ts +17 -17
- package/dist/src/component/KgModal/{hooks/useDragToResize.d.ts → KgModal.service.d.ts} +13 -2
- package/dist/src/component/KgModal02/KgModal02.d.ts +470 -0
- package/dist/src/component/KgModal02/KgModal02.model.d.ts +1 -0
- package/dist/src/component/KgModal02/index.d.ts +1 -0
- package/dist/src/component/KgResizable/KgResizable.d.ts +4 -4
- package/dist/src/component/KgSearch/KgSearch.event.d.ts +12 -12
- package/dist/src/component/KgSearch/KgSearch.hooks.d.ts +12 -8
- package/dist/src/component/KgSearch/KgSearch.service.d.ts +2 -2
- package/dist/src/component/KgSearch/KgSearch.store.d.ts +29 -28
- package/dist/src/component/KgSimulator/KgSimulator.Canvas.Title.d.ts +11 -0
- package/dist/src/component/KgSimulator/KgSimulator.Canvas.d.ts +11 -0
- package/dist/src/component/KgSimulator/KgSimulator.Canvas.service.d.ts +80 -0
- package/dist/src/component/KgSimulator/KgSimulator.Menu.Scene.Create.CircularConveyor.d.ts +36 -0
- package/dist/src/component/KgSimulator/KgSimulator.Menu.Scene.Open.CircularConveyor.d.ts +36 -0
- package/dist/src/component/KgSimulator/KgSimulator.Menu.d.ts +4 -0
- package/dist/src/component/KgSimulator/KgSimulator.Panel.Prefab.d.ts +4 -0
- package/dist/src/component/KgSimulator/KgSimulator.Panel.Property.d.ts +4 -0
- package/dist/src/component/KgSimulator/KgSimulator.Panel.Scene.d.ts +4 -0
- package/dist/src/component/KgSimulator/KgSimulator.Panel.d.ts +97 -0
- package/dist/src/component/KgSimulator/KgSimulator.Prefab.d.ts +108 -0
- package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Prefab.d.ts +9 -0
- package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Property.d.ts +9 -0
- package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Scene.d.ts +9 -0
- package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.d.ts +113 -0
- package/dist/src/component/KgSimulator/KgSimulator.d.ts +33 -0
- package/dist/src/component/KgSimulator/KgSimulator.event.d.ts +93 -0
- package/dist/src/component/KgSimulator/KgSimulator.hooks.d.ts +103 -0
- package/dist/src/component/KgSimulator/KgSimulator.icons.d.ts +10 -0
- package/dist/src/component/KgSimulator/KgSimulator.model.d.ts +1502 -0
- package/dist/src/component/KgSimulator/KgSimulator.store.d.ts +474 -0
- package/dist/src/component/KgSimulator/KgSimulator.utils.d.ts +21 -0
- package/dist/src/component/KgSimulator/index.d.ts +3 -0
- package/dist/src/component/KgSubmit/KgSubmit.event.d.ts +59 -52
- package/dist/src/component/KgSubmit/KgSubmit.hooks.d.ts +61 -29
- package/dist/src/component/KgSubmit/KgSubmit.model.d.ts +1 -1
- package/dist/src/component/KgSubmit/KgSubmit.store.d.ts +63 -17
- package/dist/src/component/KgTable/{components/KgTable.BodyCell.d.ts → KgTable.BodyCell.d.ts} +1 -1
- package/dist/src/component/KgTable/KgTable.Setting.VarGridMaster.SaveAs.d.ts +4 -0
- package/dist/src/component/KgTable/{components/setting/KgTable.Setting.d.ts → KgTable.Setting.d.ts} +5 -6
- package/dist/src/component/KgTable/{components/setting/KgTable.Setting.service.d.ts → KgTable.Setting.service.d.ts} +1 -1
- package/dist/src/component/KgTable/KgTable.event.d.ts +41 -31
- package/dist/src/component/KgTable/KgTable.hooks.d.ts +19 -15
- package/dist/src/component/KgTable/KgTable.model.d.ts +1 -1
- package/dist/src/component/KgTable/KgTable.store.d.ts +2 -2
- package/dist/src/component/KgTable02/KgTable02.BodyCell.d.ts +32 -3
- package/dist/src/component/KgTable02/KgTable02.event.d.ts +57 -31
- package/dist/src/component/KgTable02/KgTable02.hooks.d.ts +31 -1
- package/dist/src/component/KgTable02/KgTable02.store.d.ts +2 -2
- package/dist/src/component/KgVar/{KgVarFactory.d.ts → KgVar.Factory.d.ts} +45 -0
- package/dist/src/component/KgVar/KgVar.d.ts +22 -16
- package/dist/src/component/KgVar/KgVar.event.d.ts +36 -18
- package/dist/src/component/KgVar/KgVar.hooks.d.ts +26 -13
- package/dist/src/component/KgVar/KgVar.model.d.ts +1 -6
- package/dist/src/component/KgVar/KgVar.store.d.ts +82 -80
- package/dist/src/component/KgVar/index.d.ts +1 -1
- package/dist/src/component/KgVarConfig/KgVarConfig.model.d.ts +0 -3
- package/dist/src/component/KgVarConfig/KgVarConfig.store.d.ts +2 -2
- package/dist/src/component/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileMaster.service.d.ts +5 -5
- package/dist/src/component/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridMaster.service.d.ts +4 -4
- package/dist/src/component/KgWarehouse/KgWarehouse.d.ts +4 -1
- package/dist/src/component/KgWarehouse/KgWarehouse.event.d.ts +14 -8
- package/dist/src/component/KgWarehouse/KgWarehouse.hooks.d.ts +22 -4
- package/dist/src/component/KgWarehouse/KgWarehouse.store.d.ts +8 -15
- package/dist/src/component/KgWorkStation/KgWorkStation.d.ts +44 -0
- package/dist/src/component/KgWorkStation/KgWorkStation.event.d.ts +27 -0
- package/dist/src/component/KgWorkStation/KgWorkStation.hooks.d.ts +28 -0
- package/dist/src/component/KgWorkStation/KgWorkStation.store.d.ts +37 -0
- package/dist/src/component/KgWorkStation/index.d.ts +3 -0
- package/dist/src/component/index.d.ts +7 -5
- package/dist/src/config/config.hooks.d.ts +2 -2
- package/dist/src/config/config.store.d.ts +14 -17
- package/dist/src/config/index.d.ts +30 -24
- package/dist/src/i18n/cs_CZ.d.ts +1 -300
- package/dist/src/i18n/en.d.ts +234 -297
- package/dist/src/i18n/es_ES.d.ts +1 -299
- package/dist/src/i18n/fr_FR.d.ts +1 -299
- package/dist/src/i18n/i18n.setup.d.ts +12 -14
- package/dist/src/i18n/index.d.ts +1 -2
- package/dist/src/i18n/km_KH.d.ts +1 -299
- package/dist/src/i18n/ko_KR.d.ts +1 -299
- package/dist/src/i18n/vi_VN.d.ts +1 -299
- package/dist/src/i18n/zh_CN.d.ts +235 -298
- package/dist/src/index.d.ts +1 -1
- package/dist/src/model/index.d.ts +1968 -0
- package/dist/src/page/{KgCircleVis/KgPageCircleVis.d.ts → KgPageCircularShuttleMonitor/KgPageCircularShuttleMonitor.d.ts} +1 -1
- package/dist/src/page/KgPageCircularShuttleMonitor/index.d.ts +1 -0
- package/dist/src/page/KgPageDda/KgPageDda.d.ts +1 -1
- package/dist/src/page/KgPageDda/components/KgPageDda.Create.store.d.ts +6 -6
- package/dist/src/page/index.d.ts +2 -2
- package/dist/src/project/src/hooks/index.d.ts +0 -1
- package/dist/src/project/src/locales/helper.d.ts +3 -4
- package/dist/src/project/src/locales/useLocale.d.ts +4 -3
- package/dist/src/project/src/router/types.d.ts +19 -0
- package/dist/src/project/src/store/modules/locale.d.ts +9 -9
- package/dist/src/project/src/utils/env.d.ts +3 -3
- package/dist/src/project/types/config.d.ts +6 -17
- package/dist/src/service/http-client.d.ts +7 -3
- package/dist/src/util/ant-design-vue.d.ts +1 -1
- package/dist/src/util/kg-auth.util.d.ts +7 -6
- package/dist/src/util/kg-route.util.d.ts +9 -9
- package/dist/src/util/kg.util.d.ts +46 -37
- package/dist/src/util/tsx.helper.d.ts +7 -7
- package/package.json +40 -32
- package/dist/src/component/KgForm/KgForm.model.d.ts +0 -9
- package/dist/src/component/KgModal/hooks/useDragToMove.d.ts +0 -12
- package/dist/src/component/KgTable/components/setting/KgTable.Setting.VarGridMaster.SaveAs.d.ts +0 -5
- package/dist/src/const/const.model.d.ts +0 -1216
- package/dist/src/const/form-id.const.d.ts +0 -32
- package/dist/src/const/index.d.ts +0 -3
- package/dist/src/const/injection-keys.const.d.ts +0 -11
- package/dist/src/page/KgCircleVis/components/KgCircleVis.AreaSelect.d.ts +0 -5
- package/dist/src/page/KgCircleVis/components/KgCircleVis.Canvas.d.ts +0 -5
- package/dist/src/page/KgCircleVis/components/KgCircleVis.Legend.d.ts +0 -5
- package/dist/src/page/KgCircleVis/components/KgCircleVis.Offline.d.ts +0 -5
- package/dist/src/page/KgCircleVis/components/KgCircleVis.Setting.d.ts +0 -5
- package/dist/src/page/KgCircleVis/components/KgCircleVis.Tab.Log.d.ts +0 -5
- package/dist/src/page/KgCircleVis/components/KgCircleVis.d.ts +0 -5
- package/dist/src/page/KgCircleVis/components/KgCircleVis.hooks.d.ts +0 -29
- package/dist/src/page/KgCircleVis/index.d.ts +0 -1
- package/dist/src/project/src/hooks/web/useI18n.d.ts +0 -13
- /package/dist/{caret-right-outlined-Btgsw6a_.0434903b.mjs → caret-right-outlined-Btgsw6a_.7ce8e8fe.mjs} +0 -0
- /package/dist/{close-outlined-DMcSQWxQ.5c3bee6f.mjs → close-outlined-DMcSQWxQ.ce961fd1.mjs} +0 -0
- /package/dist/{exclamation-circle-outlined-DZrXCnvM.d94561db.mjs → exclamation-circle-outlined-DZrXCnvM.07559897.mjs} +0 -0
- /package/dist/{fullscreen-exit-outlined-X1iYkFc4.a1640595.mjs → fullscreen-exit-outlined-X1iYkFc4.d7884311.mjs} +0 -0
- /package/dist/{fullscreen-outlined-DDBrsRcy.b9f9d4a1.mjs → fullscreen-outlined-DDBrsRcy.d174b06a.mjs} +0 -0
- /package/dist/{search-outlined-Od1M_oxf.71fb0c01.mjs → search-outlined-Od1M_oxf.4a68e7e4.mjs} +0 -0
- /package/dist/src/{page/KgCircleVis/components/KgCircleVis.Canvas.service.d.ts → component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Canvas.service.d.ts} +0 -0
- /package/dist/src/component/KgForm.Item/{addon/KgForm.Item.Addon.DynamicQueryOperator.d.ts → KgForm.Item.Addon.DynamicQueryOperator.d.ts} +0 -0
- /package/dist/src/component/KgForm.Item/{addon/KgForm.Item.Addon.Lookup.Modal.d.ts → KgForm.Item.Addon.Lookup.Modal.d.ts} +0 -0
- /package/dist/src/component/KgForm.Item/{addon/KgForm.Item.Addon.Lookup.d.ts → KgForm.Item.Addon.Lookup.d.ts} +0 -0
- /package/dist/src/component/KgTable/{components/KgTable.HeadCell.d.ts → KgTable.HeadCell.d.ts} +0 -0
- /package/dist/src/component/KgTable/{components/KgTable.Info.d.ts → KgTable.Info.d.ts} +0 -0
- /package/dist/{three-dots-loading-bIlrTJYR.f189f620.mjs → three-dots-loading-bIlrTJYR.ebceb73e.mjs} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IRemoveEventListener } from '@kengic/core.core';
|
|
2
2
|
import { ComputedRef } from 'vue';
|
|
3
|
-
import { eventListeners,
|
|
3
|
+
import { eventListeners, IKgTable$EventListener$onAfterRequest, IKgTable$EventListener$onBeforeParseRequestParameter, IKgTable$EventListener$onBeforeRequest, IKgTable$EventListener$onBeforeSetDatas, IKgTable$EventListener$onBeforeTransformDatas, IKgTable$EventListener$onReady, IKgTable$EventListener$onRequestError, IKgTable$EventListener$onRowDoubleClick } from './KgTable.event';
|
|
4
4
|
import { IKgTableRow } from './KgTable.model';
|
|
5
5
|
import { buildKgTableStore } from './KgTable.store';
|
|
6
6
|
export declare type IUseKgTable = {
|
|
@@ -38,7 +38,11 @@ export declare type IUseKgTable = {
|
|
|
38
38
|
* @default true
|
|
39
39
|
*/
|
|
40
40
|
isShowDescription: ComputedRef<boolean>;
|
|
41
|
-
/**
|
|
41
|
+
/**
|
|
42
|
+
* 查询条件的界面标识.
|
|
43
|
+
*/
|
|
44
|
+
kgSearchFid$$: ComputedRef<string>;
|
|
45
|
+
/** @deprecated 已弃用, 请使用 {@link IUseKgTable.kgSearchFid$$} */
|
|
42
46
|
kgSearchFormID: ComputedRef<string>;
|
|
43
47
|
/**
|
|
44
48
|
* 监听事件: 查询请求成功, 表格数据已经赋值, 表格状态已经更新.
|
|
@@ -46,9 +50,9 @@ export declare type IUseKgTable = {
|
|
|
46
50
|
* @param listener 事件监听函数.
|
|
47
51
|
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
48
52
|
*/
|
|
49
|
-
onAfterRequest(listener:
|
|
53
|
+
onAfterRequest(listener: IKgTable$EventListener$onAfterRequest, isOnce?: boolean): IRemoveEventListener;
|
|
50
54
|
/** @deprecated 已废弃, 请使用 {@link IUseKgTable.onAfterRequest()}. */
|
|
51
|
-
onAfterSearch(listener:
|
|
55
|
+
onAfterSearch(listener: IKgTable$EventListener$onAfterRequest, isOnce?: boolean): IRemoveEventListener;
|
|
52
56
|
/**
|
|
53
57
|
* <p>监听事件: 即将解析请求参数.</p>
|
|
54
58
|
* <p>可以修改解析前的参数.</p>
|
|
@@ -56,55 +60,55 @@ export declare type IUseKgTable = {
|
|
|
56
60
|
* @param listener 事件监听函数.
|
|
57
61
|
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
58
62
|
*/
|
|
59
|
-
onBeforeParseRequestParameter(listener:
|
|
63
|
+
onBeforeParseRequestParameter(listener: IKgTable$EventListener$onBeforeParseRequestParameter, isOnce?: boolean): IRemoveEventListener;
|
|
60
64
|
/**
|
|
61
65
|
* 监听事件: 即将发起查询请求, 如果返回 true 表示不会发起请求.
|
|
62
66
|
* @param listener 事件监听函数.
|
|
63
67
|
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
64
68
|
*/
|
|
65
|
-
onBeforeRequest(listener:
|
|
69
|
+
onBeforeRequest(listener: IKgTable$EventListener$onBeforeRequest, isOnce?: boolean): IRemoveEventListener;
|
|
66
70
|
/** @deprecated 已废弃, 请使用 onBeforeRequest() 方法. */
|
|
67
|
-
onBeforeRetrieve(listener:
|
|
71
|
+
onBeforeRetrieve(listener: IKgTable$EventListener$onBeforeRequest, isOnce?: boolean): IRemoveEventListener;
|
|
68
72
|
/** @deprecated 已废弃, 请使用 onBeforeRequest() 方法. */
|
|
69
|
-
onBeforeSearch(listener:
|
|
73
|
+
onBeforeSearch(listener: IKgTable$EventListener$onBeforeRequest, isOnce?: boolean): IRemoveEventListener;
|
|
70
74
|
/**
|
|
71
75
|
* 监听事件: 查询请求成功, 表格数据尚未赋值. 此处可以对查询接口返回的列表数据作处理.
|
|
72
76
|
*
|
|
73
77
|
* @param listener 事件监听函数.
|
|
74
78
|
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
75
79
|
*/
|
|
76
|
-
onBeforeSetDatas(listener:
|
|
80
|
+
onBeforeSetDatas(listener: IKgTable$EventListener$onBeforeSetDatas, isOnce?: boolean): IRemoveEventListener;
|
|
77
81
|
/**
|
|
78
82
|
* 监听事件: 查询请求成功, 表格数据尚未赋值. 准备对请求返回的数据进行处理.
|
|
79
83
|
*
|
|
80
84
|
* @param listener 事件监听函数.
|
|
81
85
|
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
82
86
|
*/
|
|
83
|
-
onBeforeTransformDatas(listener:
|
|
87
|
+
onBeforeTransformDatas(listener: IKgTable$EventListener$onBeforeTransformDatas, isOnce?: boolean): IRemoveEventListener;
|
|
84
88
|
/**
|
|
85
89
|
* 监听事件: 配置初始完成, 组件渲染完成.
|
|
86
90
|
*
|
|
87
91
|
* @param listener 事件监听函数.
|
|
88
92
|
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
89
93
|
*/
|
|
90
|
-
onReady(listener:
|
|
94
|
+
onReady(listener: IKgTable$EventListener$onReady, isOnce?: boolean): IRemoveEventListener;
|
|
91
95
|
/**
|
|
92
96
|
* <p>监听事件: 查询请求报错.</p>
|
|
93
|
-
* <p>可以修改参数 {@link
|
|
97
|
+
* <p>可以修改参数 {@link IKgTable$EventListenerParameter$onRequestError.axiosResponse} 中的数据, 实现在请求报错时手动提供返回数据.</p>
|
|
94
98
|
*
|
|
95
99
|
* @param listener 事件监听函数.
|
|
96
100
|
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
97
101
|
*/
|
|
98
|
-
onRequestError(listener:
|
|
102
|
+
onRequestError(listener: IKgTable$EventListener$onRequestError, isOnce?: boolean): IRemoveEventListener;
|
|
99
103
|
/** @deprecated 已废弃, 请使用 {@link IUseKgTable.onAfterRequest} 方法. */
|
|
100
|
-
onRetrieve(listener:
|
|
104
|
+
onRetrieve(listener: IKgTable$EventListener$onAfterRequest, isOnce?: boolean): IRemoveEventListener;
|
|
101
105
|
/**
|
|
102
106
|
* 监听事件: 双击某行.
|
|
103
107
|
*
|
|
104
108
|
* @param listener 事件监听函数.
|
|
105
109
|
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
106
110
|
*/
|
|
107
|
-
onRowDoubleClick(listener:
|
|
111
|
+
onRowDoubleClick(listener: IKgTable$EventListener$onRowDoubleClick, isOnce?: boolean): IRemoveEventListener;
|
|
108
112
|
/** 当前分页选项. */
|
|
109
113
|
pageSizeOption: ComputedRef<number>;
|
|
110
114
|
/** 所有分页选项. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IKgStoreDefinition } from '../../model';
|
|
2
2
|
import { IKgTableRowHeight } from './KgTable.model';
|
|
3
3
|
export interface KgTableStoreGetters {
|
|
4
4
|
/**
|
|
@@ -88,4 +88,4 @@ export interface KgTableStoreActions {
|
|
|
88
88
|
setSelectedRowKeys(selectedRowKeys: Array<string>): void;
|
|
89
89
|
setTableWidth(value: number): void;
|
|
90
90
|
}
|
|
91
|
-
export declare function buildKgTableStore(
|
|
91
|
+
export declare function buildKgTableStore(fid: string | null | undefined): IKgStoreDefinition<KgTableStoreGetters, KgTableStoreActions>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { VxeTableDefines } from 'vxe-table';
|
|
3
|
+
import { KG_TABLE_CELL_CONTEXT } from '../KgTable';
|
|
3
4
|
export declare const getProps: () => {
|
|
4
5
|
/**
|
|
5
6
|
* 列的数据.
|
|
@@ -13,8 +14,16 @@ export declare const getProps: () => {
|
|
|
13
14
|
row: {
|
|
14
15
|
type: PropType<any>;
|
|
15
16
|
};
|
|
17
|
+
/**
|
|
18
|
+
* 所处环境.
|
|
19
|
+
* @default KG_TABLE_CELL_CONTEXT.TABLE_CELL
|
|
20
|
+
*/
|
|
21
|
+
kgContext: {
|
|
22
|
+
type: PropType<string>;
|
|
23
|
+
default: KG_TABLE_CELL_CONTEXT;
|
|
24
|
+
};
|
|
16
25
|
};
|
|
17
|
-
export declare const
|
|
26
|
+
export declare const KgTable02BodyCell: import("vue").DefineComponent<{
|
|
18
27
|
/**
|
|
19
28
|
* 列的数据.
|
|
20
29
|
*/
|
|
@@ -27,7 +36,15 @@ export declare const KgTable02HeadCell: import("vue").DefineComponent<{
|
|
|
27
36
|
row: {
|
|
28
37
|
type: PropType<any>;
|
|
29
38
|
};
|
|
30
|
-
|
|
39
|
+
/**
|
|
40
|
+
* 所处环境.
|
|
41
|
+
* @default KG_TABLE_CELL_CONTEXT.TABLE_CELL
|
|
42
|
+
*/
|
|
43
|
+
kgContext: {
|
|
44
|
+
type: PropType<string>;
|
|
45
|
+
default: KG_TABLE_CELL_CONTEXT;
|
|
46
|
+
};
|
|
47
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgUpdateLinkClick"[], "kgUpdateLinkClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
48
|
/**
|
|
32
49
|
* 列的数据.
|
|
33
50
|
*/
|
|
@@ -40,4 +57,16 @@ export declare const KgTable02HeadCell: import("vue").DefineComponent<{
|
|
|
40
57
|
row: {
|
|
41
58
|
type: PropType<any>;
|
|
42
59
|
};
|
|
43
|
-
|
|
60
|
+
/**
|
|
61
|
+
* 所处环境.
|
|
62
|
+
* @default KG_TABLE_CELL_CONTEXT.TABLE_CELL
|
|
63
|
+
*/
|
|
64
|
+
kgContext: {
|
|
65
|
+
type: PropType<string>;
|
|
66
|
+
default: KG_TABLE_CELL_CONTEXT;
|
|
67
|
+
};
|
|
68
|
+
}>> & {
|
|
69
|
+
onKgUpdateLinkClick?: ((...args: any[]) => any) | undefined;
|
|
70
|
+
}, {
|
|
71
|
+
kgContext: string;
|
|
72
|
+
}>;
|
|
@@ -6,15 +6,15 @@ import { IKgTableRow } from '../KgTable';
|
|
|
6
6
|
/**
|
|
7
7
|
* 事件类型.
|
|
8
8
|
*/
|
|
9
|
-
export declare type KgTable02Event = 'onReady' | 'onRowDoubleClick' | 'onBeforeParseRequestParameter' | 'onBeforeRequest' | 'onBeforeTransformDatas' | 'onBeforeSetDatas' | 'onAfterRequest' | 'onRequestError';
|
|
10
|
-
export declare type
|
|
11
|
-
export declare type
|
|
12
|
-
export declare type
|
|
9
|
+
export declare type KgTable02Event = 'onReady' | 'onRowDoubleClick' | 'onBeforeParseRequestParameter' | 'onBeforeRequest' | 'onAfterRequestResponse' | 'onBeforeTransformDatas' | 'onBeforeSetDatas' | 'onAfterRequest' | 'onRequestError';
|
|
10
|
+
export declare type IKgTable02$EventListenerParameter$onReady = {};
|
|
11
|
+
export declare type IKgTable02$EventListener$onReady = ((param: IKgTable02$EventListenerParameter$onReady) => Promise<boolean>) & IKgEventListener;
|
|
12
|
+
export declare type IKgTable02$EventListenerParameter$onRowDoubleClick = {
|
|
13
13
|
/** 双击的行. */
|
|
14
14
|
row: IKgTableRow;
|
|
15
15
|
};
|
|
16
|
-
export declare type
|
|
17
|
-
export declare type
|
|
16
|
+
export declare type IKgTable02$EventListener$onRowDoubleClick = ((param: IKgTable02$EventListenerParameter$onRowDoubleClick) => Promise<boolean>) & IKgEventListener;
|
|
17
|
+
export declare type IKgTable02$EventListenerParameter$onBeforeParseRequestParameter = {
|
|
18
18
|
/**
|
|
19
19
|
* 高级查询的操作符对象.
|
|
20
20
|
*/
|
|
@@ -24,42 +24,67 @@ export declare type KgTable02OnBeforeParseRequestParameterEventListenerParameter
|
|
|
24
24
|
*/
|
|
25
25
|
params: Record<string, any>;
|
|
26
26
|
};
|
|
27
|
-
export declare type
|
|
28
|
-
export declare type
|
|
27
|
+
export declare type IKgTable02$EventListener$onBeforeParseRequestParameter = ((param: IKgTable02$EventListenerParameter$onBeforeParseRequestParameter) => Promise<boolean>) & IKgEventListener;
|
|
28
|
+
export declare type IKgTable02$EventListenerParameter$onBeforeRequest = {
|
|
29
29
|
/** 查询接口请求参数. */
|
|
30
30
|
params: Record<string, any>;
|
|
31
31
|
/** 查询接口返回的数据, 调用者可以直接修改该数据, 从而实现手动提供表格数据. */
|
|
32
32
|
response$: Ref;
|
|
33
33
|
};
|
|
34
|
-
export declare type
|
|
35
|
-
export declare type
|
|
34
|
+
export declare type IKgTable02$EventListener$onBeforeRequest = ((param: IKgTable02$EventListenerParameter$onBeforeRequest) => Promise<boolean>) & IKgEventListener;
|
|
35
|
+
export declare type IKgTable02$EventListenerParameter$onAfterRequestResponse = {
|
|
36
|
+
/**
|
|
37
|
+
* 查询接口返回的数据, 调用者可以直接修改该数据, 从而实现手动提供表格数据.
|
|
38
|
+
*/
|
|
39
|
+
axiosResponse: {
|
|
40
|
+
value: AxiosResponse<any>;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
export declare type IKgTable02$EventListener$onAfterRequestResponse = ((param: IKgTable02$EventListenerParameter$onAfterRequestResponse) => Promise<boolean>) & IKgEventListener;
|
|
44
|
+
export declare type IKgTable02$EventListenerParameter$onBeforeTransformDatas = {
|
|
36
45
|
/** 查询接口返回的数据, 调用者可以直接修改该数据. */
|
|
37
46
|
response: Ref;
|
|
38
47
|
};
|
|
39
|
-
export declare type
|
|
40
|
-
export declare type
|
|
48
|
+
export declare type IKgTable02$EventListener$onBeforeTransformDatas = ((param: IKgTable02$EventListenerParameter$onBeforeTransformDatas) => Promise<boolean>) & IKgEventListener;
|
|
49
|
+
export declare type IKgTable02$EventListenerParameter$onBeforeSetDatas = {
|
|
41
50
|
/**
|
|
42
51
|
* 列表数据.
|
|
43
52
|
*/
|
|
53
|
+
dataList$: Ref<Array<IKgTableRow>>;
|
|
54
|
+
/** @deprecated 已弃用, 请使用 {@link IKgTable02$EventListenerParameter$onBeforeSetDatas.dataList$} */
|
|
44
55
|
datas: Ref<Array<IKgTableRow>>;
|
|
45
|
-
/**
|
|
56
|
+
/**
|
|
57
|
+
* 查询接口请求参数.
|
|
58
|
+
*/
|
|
46
59
|
params: Record<string, any>;
|
|
60
|
+
/**
|
|
61
|
+
* 查询接口请求头的对象.
|
|
62
|
+
*/
|
|
63
|
+
requestHeaderRecord: Record<string, any>;
|
|
47
64
|
/**
|
|
48
65
|
* 数据总数.
|
|
49
66
|
*/
|
|
50
67
|
total: Ref<Number>;
|
|
51
68
|
};
|
|
52
|
-
export declare type
|
|
53
|
-
export declare type
|
|
54
|
-
/**
|
|
69
|
+
export declare type IKgTable02$EventListener$onBeforeSetDatas = ((param: IKgTable02$EventListenerParameter$onBeforeSetDatas) => Promise<boolean>) & IKgEventListener;
|
|
70
|
+
export declare type IKgTable02$EventListenerParameter$onAfterRequest = {
|
|
71
|
+
/**
|
|
72
|
+
* 列表数据.
|
|
73
|
+
*/
|
|
55
74
|
datas: Ref<Array<IKgTableRow>>;
|
|
56
|
-
/**
|
|
75
|
+
/**
|
|
76
|
+
* 查询接口请求参数.
|
|
77
|
+
*/
|
|
57
78
|
params: Record<string, any>;
|
|
79
|
+
/**
|
|
80
|
+
* 查询接口请求头的对象.
|
|
81
|
+
*/
|
|
82
|
+
requestHeaderRecord: Record<string, any>;
|
|
58
83
|
/** 接口返回的分页数据. */
|
|
59
84
|
response: IPage<IKgTableRow> | null | undefined;
|
|
60
85
|
};
|
|
61
|
-
export declare type
|
|
62
|
-
export declare type
|
|
86
|
+
export declare type IKgTable02$EventListener$onAfterRequest = ((param: IKgTable02$EventListenerParameter$onAfterRequest) => Promise<boolean>) & IKgEventListener;
|
|
87
|
+
export declare type IKgTable02$EventListenerParameter$onRequestError = {
|
|
63
88
|
/**
|
|
64
89
|
* <p>请求返回对象.</p>
|
|
65
90
|
* <p>可以手动修改该对象中的数据.</p>
|
|
@@ -70,18 +95,19 @@ export declare type KgTable02OnRequestErrorEventListenerParameter = {
|
|
|
70
95
|
*/
|
|
71
96
|
e: Error;
|
|
72
97
|
};
|
|
73
|
-
export declare type
|
|
74
|
-
export declare type
|
|
75
|
-
export declare type
|
|
98
|
+
export declare type IKgTable02$EventListener$onRequestError = ((param: IKgTable02$EventListenerParameter$onRequestError) => Promise<boolean>) & IKgEventListener;
|
|
99
|
+
export declare type IKgTable02$EventListenerParameter = IKgTable02$EventListenerParameter$onReady | IKgTable02$EventListenerParameter$onRowDoubleClick | IKgTable02$EventListenerParameter$onBeforeParseRequestParameter | IKgTable02$EventListenerParameter$onBeforeRequest | IKgTable02$EventListenerParameter$onAfterRequestResponse | IKgTable02$EventListenerParameter$onBeforeTransformDatas | IKgTable02$EventListenerParameter$onBeforeSetDatas | IKgTable02$EventListenerParameter$onRequestError | IKgTable02$EventListenerParameter$onAfterRequest;
|
|
100
|
+
export declare type KgTable02$EventListener = IKgTable02$EventListener$onReady | IKgTable02$EventListener$onRowDoubleClick | IKgTable02$EventListener$onBeforeParseRequestParameter | IKgTable02$EventListener$onBeforeRequest | IKgTable02$EventListener$onAfterRequestResponse | IKgTable02$EventListener$onBeforeTransformDatas | IKgTable02$EventListener$onBeforeSetDatas | IKgTable02$EventListener$onRequestError | IKgTable02$EventListener$onAfterRequest;
|
|
76
101
|
export declare const eventListeners: Record<string, {
|
|
77
|
-
onAfterRequest: Array<
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
102
|
+
onAfterRequest: Array<IKgTable02$EventListener$onAfterRequest>;
|
|
103
|
+
onAfterRequestResponse: Array<IKgTable02$EventListener$onAfterRequestResponse>;
|
|
104
|
+
onBeforeParseRequestParameter: Array<IKgTable02$EventListener$onBeforeParseRequestParameter>;
|
|
105
|
+
onBeforeRequest: Array<IKgTable02$EventListener$onBeforeRequest>;
|
|
106
|
+
onBeforeSetDatas: Array<IKgTable02$EventListener$onBeforeSetDatas>;
|
|
107
|
+
onBeforeTransformDatas: Array<IKgTable02$EventListener$onBeforeTransformDatas>;
|
|
108
|
+
onReady: Array<IKgTable02$EventListener$onReady>;
|
|
109
|
+
onRequestError: Array<IKgTable02$EventListener$onRequestError>;
|
|
110
|
+
onRowDoubleClick: Array<IKgTable02$EventListener$onRowDoubleClick>;
|
|
85
111
|
}>;
|
|
86
112
|
/**
|
|
87
113
|
* 触发事件.
|
|
@@ -90,7 +116,7 @@ export declare const eventListeners: Record<string, {
|
|
|
90
116
|
* @param param.id 唯一标识.
|
|
91
117
|
* @param param.parameter 事件参数.
|
|
92
118
|
*/
|
|
93
|
-
export declare function emit<P extends
|
|
119
|
+
export declare function emit<P extends IKgTable02$EventListenerParameter>(param: {
|
|
94
120
|
event: KgTable02Event;
|
|
95
121
|
id?: string | undefined;
|
|
96
122
|
parameter: P;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { IRemoveEventListener } from '@kengic/core.core';
|
|
1
2
|
import { ComputedRef } from 'vue';
|
|
3
|
+
import { IKgTable02$EventListener$onAfterRequest, IKgTable02$EventListener$onAfterRequestResponse, IKgTable02$EventListener$onBeforeParseRequestParameter, IKgTable02$EventListener$onBeforeSetDatas } from './KgTable02.event';
|
|
2
4
|
import { buildKgTable02Store } from './KgTable02.store';
|
|
3
5
|
export declare type IUseKgTable02 = {
|
|
4
6
|
/**
|
|
@@ -16,7 +18,35 @@ export declare type IUseKgTable02 = {
|
|
|
16
18
|
/**
|
|
17
19
|
* 查询条件的界面标识.
|
|
18
20
|
*/
|
|
19
|
-
|
|
21
|
+
kgSearchFid$$: ComputedRef<string>;
|
|
22
|
+
/**
|
|
23
|
+
* 监听事件: 查询请求成功, 表格数据已经赋值, 表格状态已经更新.
|
|
24
|
+
*
|
|
25
|
+
* @param listener 事件监听函数.
|
|
26
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
27
|
+
*/
|
|
28
|
+
onAfterRequest(listener: IKgTable02$EventListener$onAfterRequest, isOnce?: boolean): IRemoveEventListener;
|
|
29
|
+
/**
|
|
30
|
+
* 监听事件: 查询请求成功, 刚刚拿到请求返回数据.
|
|
31
|
+
*
|
|
32
|
+
* @param listener 事件监听函数.
|
|
33
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
34
|
+
*/
|
|
35
|
+
onAfterRequestResponse(listener: IKgTable02$EventListener$onAfterRequestResponse, isOnce?: boolean): IRemoveEventListener;
|
|
36
|
+
/**
|
|
37
|
+
* 监听事件: 即将解析请求参数.
|
|
38
|
+
*
|
|
39
|
+
* @param listener 事件监听函数.
|
|
40
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
41
|
+
*/
|
|
42
|
+
onBeforeParseRequestParameter(listener: IKgTable02$EventListener$onBeforeParseRequestParameter, isOnce?: boolean): IRemoveEventListener;
|
|
43
|
+
/**
|
|
44
|
+
* 监听事件: 查询请求成功, 表格数据尚未赋值. 此处可以对查询接口返回的列表数据作处理.
|
|
45
|
+
*
|
|
46
|
+
* @param listener 事件监听函数.
|
|
47
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
48
|
+
*/
|
|
49
|
+
onBeforeSetDatas(listener: IKgTable02$EventListener$onBeforeSetDatas, isOnce?: boolean): IRemoveEventListener;
|
|
20
50
|
/**
|
|
21
51
|
* 当前分页选项.
|
|
22
52
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IKgStoreDefinition } from '../../model';
|
|
2
2
|
export interface KgTableStoreGetters {
|
|
3
3
|
/**
|
|
4
4
|
* 列表数据.
|
|
@@ -59,4 +59,4 @@ export interface KgTableStoreActions {
|
|
|
59
59
|
*/
|
|
60
60
|
setRequestParamRecord(requestParamRecord: Record<string, any> | null | undefined): void;
|
|
61
61
|
}
|
|
62
|
-
export declare function buildKgTable02Store(formID: string | null | undefined):
|
|
62
|
+
export declare function buildKgTable02Store(formID: string | null | undefined): IKgStoreDefinition<KgTableStoreGetters, KgTableStoreActions>;
|
|
@@ -1,6 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 工厂方法, 用于构造 KgVar 组件.
|
|
3
|
+
*
|
|
4
|
+
* @param param
|
|
5
|
+
* @param param.formID 界面标识.
|
|
6
|
+
* @param param.level 界面层级.
|
|
7
|
+
*/
|
|
1
8
|
export declare function KgVarFactory(param?: {
|
|
9
|
+
fid?: string | null | undefined;
|
|
10
|
+
/** @deprecated 已废弃, 请使用 fid */
|
|
2
11
|
formID?: string | null | undefined;
|
|
12
|
+
level?: number | null | undefined;
|
|
3
13
|
}): import("vue").DefineComponent<{
|
|
14
|
+
id: import("vue").PropType<string>;
|
|
4
15
|
kgBackgroundGray: {
|
|
5
16
|
type: import("vue").PropType<boolean>;
|
|
6
17
|
default: undefined;
|
|
@@ -13,6 +24,7 @@ export declare function KgVarFactory(param?: {
|
|
|
13
24
|
kgProps: import("vue").PropType<import("./KgVar.model").IKgProps>;
|
|
14
25
|
kgSlots: import("vue").PropType<import("./KgVar.model").IKgSlots>;
|
|
15
26
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
|
+
id: import("vue").PropType<string>;
|
|
16
28
|
kgBackgroundGray: {
|
|
17
29
|
type: import("vue").PropType<boolean>;
|
|
18
30
|
default: undefined;
|
|
@@ -31,7 +43,39 @@ export declare function KgVarFactory(param?: {
|
|
|
31
43
|
/**
|
|
32
44
|
* 默认的 KgVar 组件.
|
|
33
45
|
*/
|
|
46
|
+
export declare const KgVar02: import("vue").DefineComponent<{
|
|
47
|
+
id: import("vue").PropType<string>;
|
|
48
|
+
kgBackgroundGray: {
|
|
49
|
+
type: import("vue").PropType<boolean>;
|
|
50
|
+
default: undefined;
|
|
51
|
+
};
|
|
52
|
+
kgFormID: import("vue").PropType<string>;
|
|
53
|
+
kgLevel: {
|
|
54
|
+
type: import("vue").PropType<number>;
|
|
55
|
+
default: number;
|
|
56
|
+
};
|
|
57
|
+
kgProps: import("vue").PropType<import("./KgVar.model").IKgProps>;
|
|
58
|
+
kgSlots: import("vue").PropType<import("./KgVar.model").IKgSlots>;
|
|
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
|
+
id: import("vue").PropType<string>;
|
|
61
|
+
kgBackgroundGray: {
|
|
62
|
+
type: import("vue").PropType<boolean>;
|
|
63
|
+
default: undefined;
|
|
64
|
+
};
|
|
65
|
+
kgFormID: import("vue").PropType<string>;
|
|
66
|
+
kgLevel: {
|
|
67
|
+
type: import("vue").PropType<number>;
|
|
68
|
+
default: number;
|
|
69
|
+
};
|
|
70
|
+
kgProps: import("vue").PropType<import("./KgVar.model").IKgProps>;
|
|
71
|
+
kgSlots: import("vue").PropType<import("./KgVar.model").IKgSlots>;
|
|
72
|
+
}>>, {
|
|
73
|
+
kgBackgroundGray: boolean;
|
|
74
|
+
kgLevel: number;
|
|
75
|
+
}>;
|
|
76
|
+
/** @deprecated 已废弃, 请使用 KgVar02 */
|
|
34
77
|
export declare const KgVar2: import("vue").DefineComponent<{
|
|
78
|
+
id: import("vue").PropType<string>;
|
|
35
79
|
kgBackgroundGray: {
|
|
36
80
|
type: import("vue").PropType<boolean>;
|
|
37
81
|
default: undefined;
|
|
@@ -44,6 +88,7 @@ export declare const KgVar2: import("vue").DefineComponent<{
|
|
|
44
88
|
kgProps: import("vue").PropType<import("./KgVar.model").IKgProps>;
|
|
45
89
|
kgSlots: import("vue").PropType<import("./KgVar.model").IKgSlots>;
|
|
46
90
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
91
|
+
id: import("vue").PropType<string>;
|
|
47
92
|
kgBackgroundGray: {
|
|
48
93
|
type: import("vue").PropType<boolean>;
|
|
49
94
|
default: undefined;
|
|
@@ -2,6 +2,12 @@ import { ExtractPropTypes, PropType } from 'vue';
|
|
|
2
2
|
import { IKgProps, IKgSlots } from './KgVar.model';
|
|
3
3
|
import './KgVar.css';
|
|
4
4
|
export declare function getProps(): {
|
|
5
|
+
/**
|
|
6
|
+
* 界面标识.
|
|
7
|
+
*
|
|
8
|
+
* @default undefined
|
|
9
|
+
*/
|
|
10
|
+
id: PropType<string>;
|
|
5
11
|
/**
|
|
6
12
|
* 是否使用灰色背景.
|
|
7
13
|
*
|
|
@@ -11,11 +17,7 @@ export declare function getProps(): {
|
|
|
11
17
|
type: PropType<boolean>;
|
|
12
18
|
default: undefined;
|
|
13
19
|
};
|
|
14
|
-
/**
|
|
15
|
-
* 界面标识.
|
|
16
|
-
*
|
|
17
|
-
* @default undefined
|
|
18
|
-
*/
|
|
20
|
+
/** @deprecated 已弃用, 请使用 id */
|
|
19
21
|
kgFormID: PropType<string>;
|
|
20
22
|
/**
|
|
21
23
|
* <p>界面层级.</p>
|
|
@@ -36,10 +38,16 @@ export declare function getProps(): {
|
|
|
36
38
|
*/
|
|
37
39
|
kgSlots: PropType<IKgSlots>;
|
|
38
40
|
};
|
|
39
|
-
/** @deprecated */
|
|
40
41
|
export declare type IKgVarProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
42
|
+
/** @deprecated 已废弃, 请使用 {@link IKgVarProps} */
|
|
41
43
|
export declare type KgVarProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
42
44
|
declare const _default: import("vue").DefineComponent<{
|
|
45
|
+
/**
|
|
46
|
+
* 界面标识.
|
|
47
|
+
*
|
|
48
|
+
* @default undefined
|
|
49
|
+
*/
|
|
50
|
+
id: PropType<string>;
|
|
43
51
|
/**
|
|
44
52
|
* 是否使用灰色背景.
|
|
45
53
|
*
|
|
@@ -49,11 +57,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
49
57
|
type: PropType<boolean>;
|
|
50
58
|
default: undefined;
|
|
51
59
|
};
|
|
52
|
-
/**
|
|
53
|
-
* 界面标识.
|
|
54
|
-
*
|
|
55
|
-
* @default undefined
|
|
56
|
-
*/
|
|
60
|
+
/** @deprecated 已弃用, 请使用 id */
|
|
57
61
|
kgFormID: PropType<string>;
|
|
58
62
|
/**
|
|
59
63
|
* <p>界面层级.</p>
|
|
@@ -74,6 +78,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
74
78
|
*/
|
|
75
79
|
kgSlots: PropType<IKgSlots>;
|
|
76
80
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
81
|
+
/**
|
|
82
|
+
* 界面标识.
|
|
83
|
+
*
|
|
84
|
+
* @default undefined
|
|
85
|
+
*/
|
|
86
|
+
id: PropType<string>;
|
|
77
87
|
/**
|
|
78
88
|
* 是否使用灰色背景.
|
|
79
89
|
*
|
|
@@ -83,11 +93,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
83
93
|
type: PropType<boolean>;
|
|
84
94
|
default: undefined;
|
|
85
95
|
};
|
|
86
|
-
/**
|
|
87
|
-
* 界面标识.
|
|
88
|
-
*
|
|
89
|
-
* @default undefined
|
|
90
|
-
*/
|
|
96
|
+
/** @deprecated 已弃用, 请使用 id */
|
|
91
97
|
kgFormID: PropType<string>;
|
|
92
98
|
/**
|
|
93
99
|
* <p>界面层级.</p>
|
|
@@ -1,35 +1,53 @@
|
|
|
1
1
|
import { IKgEventListener } from '@kengic/core.core';
|
|
2
|
+
import { ComputedRef } from 'vue';
|
|
2
3
|
/**
|
|
3
4
|
* 事件类型.
|
|
4
5
|
*/
|
|
5
|
-
export declare type
|
|
6
|
-
export declare type
|
|
6
|
+
export declare type IKgVar$Event = 'onBeforeRequest' | 'onAfterRequest' | 'onSetup' | 'onUnmounted';
|
|
7
|
+
export declare type IKgVar$EventListenerParameter$onBeforeRequest = {
|
|
7
8
|
/**
|
|
8
9
|
* 界面标识.
|
|
9
10
|
*/
|
|
10
|
-
|
|
11
|
+
id: string;
|
|
12
|
+
/**
|
|
13
|
+
* <p>模拟请求返回数据.</p>
|
|
14
|
+
* <p>用户可以修改该属性, 如果该属性的值不为 undefined, 则不会请求变量配置数据, 而是直接使用该属性值作为变量配置数据,</p>
|
|
15
|
+
*/
|
|
16
|
+
mock: any | undefined;
|
|
11
17
|
};
|
|
12
|
-
export declare type
|
|
13
|
-
export declare type
|
|
18
|
+
export declare type IKgVar$EventListener$onBeforeRequest = ((param: IKgVar$EventListenerParameter$onBeforeRequest) => Promise<boolean>) & IKgEventListener;
|
|
19
|
+
export declare type IKgVar$EventListenerParameter$onAfterRequest = {
|
|
14
20
|
/**
|
|
15
21
|
* 界面标识.
|
|
16
22
|
*/
|
|
17
23
|
formID: string;
|
|
18
24
|
};
|
|
19
|
-
export declare type
|
|
20
|
-
export declare type
|
|
25
|
+
export declare type IKgVar$EventListener$onAfterRequest = ((param: IKgVar$EventListenerParameter$onAfterRequest) => Promise<boolean>) & IKgEventListener;
|
|
26
|
+
export declare type IKgVar$EventListenerParameter$onSetup = {
|
|
27
|
+
/**
|
|
28
|
+
* 界面标识.
|
|
29
|
+
*/
|
|
30
|
+
fid: string;
|
|
31
|
+
/**
|
|
32
|
+
* 获取组件参数.
|
|
33
|
+
*/
|
|
34
|
+
props$$: ComputedRef<any>;
|
|
35
|
+
};
|
|
36
|
+
export declare type IKgVar$EventListener$onSetup = ((param: IKgVar$EventListenerParameter$onSetup) => void) & IKgEventListener;
|
|
37
|
+
export declare type IKgVar$EventListenerParameter$onUnmounted = {
|
|
21
38
|
/**
|
|
22
39
|
* 界面标识.
|
|
23
40
|
*/
|
|
24
41
|
formID: string;
|
|
25
42
|
};
|
|
26
|
-
export declare type
|
|
27
|
-
export declare type
|
|
28
|
-
export declare type
|
|
43
|
+
export declare type IKgVar$EventListener$onUnmounted = ((param: IKgVar$EventListenerParameter$onUnmounted) => Promise<boolean>) & IKgEventListener;
|
|
44
|
+
export declare type IKgVar$EventListenerParameter = IKgVar$EventListenerParameter$onBeforeRequest | IKgVar$EventListenerParameter$onAfterRequest | IKgVar$EventListenerParameter$onSetup | IKgVar$EventListenerParameter$onUnmounted;
|
|
45
|
+
export declare type IKgVar$EventListener = IKgVar$EventListener$onBeforeRequest | IKgVar$EventListener$onAfterRequest | IKgVar$EventListener$onSetup | IKgVar$EventListener$onUnmounted;
|
|
29
46
|
export declare const eventListeners: Record<string, {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
47
|
+
onAfterRequest: Array<IKgVar$EventListener$onAfterRequest>;
|
|
48
|
+
onBeforeRequest: Array<IKgVar$EventListener$onBeforeRequest>;
|
|
49
|
+
onSetup: Array<IKgVar$EventListener$onSetup>;
|
|
50
|
+
onUnmounted: Array<IKgVar$EventListener$onUnmounted>;
|
|
33
51
|
}>;
|
|
34
52
|
/**
|
|
35
53
|
* 触发事件.
|
|
@@ -38,20 +56,20 @@ export declare const eventListeners: Record<string, {
|
|
|
38
56
|
* @param param.id 唯一标识.
|
|
39
57
|
* @param param.parameter 事件参数.
|
|
40
58
|
*/
|
|
41
|
-
export declare function emit<P extends
|
|
42
|
-
event:
|
|
59
|
+
export declare function emit<P extends IKgVar$EventListenerParameter>(param: {
|
|
60
|
+
event: IKgVar$Event;
|
|
43
61
|
id?: string | undefined;
|
|
44
62
|
parameter: P;
|
|
45
63
|
}): Promise<boolean>;
|
|
46
64
|
/**
|
|
47
|
-
*
|
|
65
|
+
* 触发事件--同步.
|
|
48
66
|
*
|
|
49
67
|
* @param param.event 事件名称.
|
|
50
68
|
* @param param.id 唯一标识.
|
|
51
69
|
* @param param.parameter 事件参数.
|
|
52
70
|
*/
|
|
53
|
-
export declare function emitSync<P extends
|
|
54
|
-
event:
|
|
71
|
+
export declare function emitSync<P extends IKgVar$EventListenerParameter>(param: {
|
|
72
|
+
event: IKgVar$Event;
|
|
55
73
|
id?: string | undefined;
|
|
56
74
|
parameter: P;
|
|
57
75
|
}): void;
|