@kengic/vue 0.30.1-beta.5 → 0.30.1-beta.50
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 +9 -0
- package/README.md +1 -1
- package/dist/align-left-outlined.579b01c6.mjs +8 -0
- package/dist/caret-down-outlined.c0564a3f.mjs +8 -0
- package/dist/caret-left-outlined.35b1d7d1.mjs +8 -0
- package/dist/caret-up-outlined.81b559ad.mjs +8 -0
- package/dist/check-box-outline-blank.d01a2055.mjs +8 -0
- package/dist/collapse-all-rounded.26ee73fc.mjs +8 -0
- package/dist/double-right-outlined.f057a6b2.mjs +8 -0
- package/dist/expand-all-rounded.e01e6cb9.mjs +8 -0
- package/dist/eye-invisible-outlined.5f8d6151.mjs +8 -0
- package/dist/holder-outlined.9e698750.mjs +8 -0
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +152427 -107258
- package/dist/loading-outlined.13a15197.mjs +8 -0
- 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/project/build/utils.ts +20 -15
- package/dist/src/component/KgButton/KgButton.hooks.d.ts +2 -2
- package/dist/src/component/KgButton/KgButton.store.d.ts +1 -1
- package/dist/src/component/KgCanvas/KgCanvas.ContextMenu.d.ts +1 -2
- package/dist/src/component/KgCanvas/{KgCanvas.Toolbar.Fullscreen.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.OverviewScale.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 +42 -5
- package/dist/src/component/KgCanvas/KgCanvas.hooks.d.ts +33 -5
- 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 +4 -1
- 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 +39 -39
- package/dist/src/component/KgForm/index.d.ts +52 -52
- package/dist/src/component/KgForm.Item/KgForm.Item.d.ts +35 -35
- package/dist/src/component/KgForm.Item/KgForm.Item.model.d.ts +31 -33
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +34 -34
- package/dist/src/component/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +38 -36
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Date.d.ts +34 -34
- package/dist/src/component/KgForm.Item/components/KgForm.Item.DateRange.d.ts +34 -34
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Image.d.ts +34 -34
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Input.d.ts +34 -34
- package/dist/src/component/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +34 -34
- package/dist/src/component/KgForm.Item/components/KgForm.Item.InputPassword.d.ts +34 -34
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Link.d.ts +34 -34
- package/dist/src/component/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +34 -36
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Select.d.ts +35 -35
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Switch.d.ts +34 -34
- package/dist/src/component/KgForm.Item/components/KgForm.Item.TextArea.d.ts +34 -34
- package/dist/src/component/KgImage/KgImage.d.ts +6 -6
- 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 +20 -20
- package/dist/src/component/KgModal/{hooks/useDragToResize.d.ts → KgModal.service.d.ts} +13 -2
- package/dist/src/component/KgModal02/KgModal02.d.ts +591 -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/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 +99 -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 +1450 -0
- package/dist/src/component/KgSimulator/KgSimulator.store.d.ts +294 -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 +20 -15
- package/dist/src/component/KgSubmit/KgSubmit.hooks.d.ts +46 -14
- package/dist/src/component/KgSubmit/KgSubmit.store.d.ts +46 -0
- package/dist/src/component/KgTable/{components/KgTable.BodyCell.d.ts → KgTable.BodyCell.d.ts} +1 -1
- 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.store.d.ts +1 -1
- package/dist/src/component/KgTable02/KgTable02.BodyCell.d.ts +32 -3
- package/dist/src/component/KgTable02/KgTable02.event.d.ts +13 -3
- package/dist/src/component/KgTable02/KgTable02.hooks.d.ts +9 -0
- package/dist/src/component/KgVar/{KgVarFactory.d.ts → KgVar.Factory.d.ts} +9 -0
- package/dist/src/component/KgVar/KgVar.d.ts +23 -17
- package/dist/src/component/KgVar/KgVar.event.d.ts +19 -6
- package/dist/src/component/KgVar/KgVar.hooks.d.ts +20 -7
- package/dist/src/component/KgVar/KgVar.model.d.ts +0 -5
- 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/index.d.ts +3 -0
- package/dist/src/config/config.store.d.ts +9 -5
- package/dist/src/config/index.d.ts +9 -3
- package/dist/src/const/const.model.d.ts +524 -11
- package/dist/src/const/form-id.const.d.ts +22 -10
- package/dist/src/const/index.d.ts +0 -1
- package/dist/src/i18n/i18n.setup.d.ts +1 -1
- package/dist/src/i18n/index.d.ts +0 -2
- 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 +3 -3
- 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/utils/env.d.ts +0 -16
- package/dist/src/service/http-client.d.ts +5 -1
- package/dist/src/util/ant-design-vue.d.ts +16 -16
- package/dist/src/util/kg-route.util.d.ts +6 -9
- package/dist/src/util/kg.util.d.ts +1 -2
- package/dist/src/util/tsx.helper.d.ts +7 -7
- package/package.json +9 -7
- 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/const/injection-keys.const.d.ts +0 -11
- package/dist/src/i18n/cs_CZ.d.ts +0 -301
- package/dist/src/i18n/en.d.ts +0 -300
- package/dist/src/i18n/es_ES.d.ts +0 -300
- package/dist/src/i18n/fr_FR.d.ts +0 -300
- package/dist/src/i18n/km_KH.d.ts +0 -300
- package/dist/src/i18n/ko_KR.d.ts +0 -300
- package/dist/src/i18n/vi_VN.d.ts +0 -300
- package/dist/src/i18n/zh_CN.d.ts +0 -301
- 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/src/{page/KgCircleVis/components/KgCircleVis.Canvas.service.d.ts → component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Canvas.service.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/src/component/KgTable/{components/setting/KgTable.Setting.VarGridMaster.SaveAs.d.ts → KgTable.Setting.VarGridMaster.SaveAs.d.ts} +0 -0
- /package/dist/src/component/KgTable/{components/setting/KgTable.Setting.d.ts → KgTable.Setting.d.ts} +0 -0
|
@@ -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,7 +6,7 @@ import { IKgTableRow } from '../KgTable';
|
|
|
6
6
|
/**
|
|
7
7
|
* 事件类型.
|
|
8
8
|
*/
|
|
9
|
-
export declare type KgTable02Event = 'onReady' | 'onRowDoubleClick' | 'onBeforeParseRequestParameter' | 'onBeforeRequest' | 'onBeforeTransformDatas' | 'onBeforeSetDatas' | 'onAfterRequest' | 'onRequestError';
|
|
9
|
+
export declare type KgTable02Event = 'onReady' | 'onRowDoubleClick' | 'onBeforeParseRequestParameter' | 'onBeforeRequest' | 'onAfterRequestResponse' | 'onBeforeTransformDatas' | 'onBeforeSetDatas' | 'onAfterRequest' | 'onRequestError';
|
|
10
10
|
export declare type KgTable02OnReadyEventListenerParameter = {};
|
|
11
11
|
export declare type KgTable02OnReadyEventListener = ((param: KgTable02OnReadyEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
12
12
|
export declare type KgTable02OnRowDoubleClickEventListenerParameter = {
|
|
@@ -32,6 +32,15 @@ export declare type KgTable02OnBeforeRequestEventListenerParameter = {
|
|
|
32
32
|
response$: Ref;
|
|
33
33
|
};
|
|
34
34
|
export declare type KgTable02OnBeforeRequestEventListener = ((param: KgTable02OnBeforeRequestEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
35
|
+
export declare type KgTable02OnAfterRequestResponseEventListenerParameter = {
|
|
36
|
+
/**
|
|
37
|
+
* 查询接口返回的数据, 调用者可以直接修改该数据, 从而实现手动提供表格数据.
|
|
38
|
+
*/
|
|
39
|
+
axiosResponse: {
|
|
40
|
+
value: AxiosResponse<any>;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
export declare type KgTable02OnAfterRequestResponseEventListener = ((param: KgTable02OnAfterRequestResponseEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
35
44
|
export declare type KgTable02OnBeforeTransformDatasEventListenerParameter = {
|
|
36
45
|
/** 查询接口返回的数据, 调用者可以直接修改该数据. */
|
|
37
46
|
response: Ref;
|
|
@@ -71,10 +80,11 @@ export declare type KgTable02OnRequestErrorEventListenerParameter = {
|
|
|
71
80
|
e: Error;
|
|
72
81
|
};
|
|
73
82
|
export declare type KgTable02OnRequestErrorEventListener = ((param: KgTable02OnRequestErrorEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
74
|
-
export declare type KgTable02EventListenerParameter = KgTable02OnReadyEventListenerParameter | KgTable02OnRowDoubleClickEventListenerParameter | KgTable02OnBeforeParseRequestParameterEventListenerParameter | KgTable02OnBeforeRequestEventListenerParameter | KgTable02OnBeforeTransformDatasEventListenerParameter | KgTable02OnBeforeSetDatasEventListenerParameter | KgTable02OnRequestErrorEventListenerParameter | KgTable02OnAfterRequestEventListenerParameter;
|
|
75
|
-
export declare type KgTable02EventListener = KgTable02OnReadyEventListener | KgTable02OnRowDoubleClickEventListener | KgTable02OnBeforeParseRequestParameterEventListener | KgTable02OnBeforeRequestEventListener | KgTable02OnBeforeTransformDatasEventListener | KgTable02OnBeforeSetDatasEventListener | KgTable02OnRequestErrorEventListener | KgTable02OnAfterRequestEventListener;
|
|
83
|
+
export declare type KgTable02EventListenerParameter = KgTable02OnReadyEventListenerParameter | KgTable02OnRowDoubleClickEventListenerParameter | KgTable02OnBeforeParseRequestParameterEventListenerParameter | KgTable02OnBeforeRequestEventListenerParameter | KgTable02OnAfterRequestResponseEventListenerParameter | KgTable02OnBeforeTransformDatasEventListenerParameter | KgTable02OnBeforeSetDatasEventListenerParameter | KgTable02OnRequestErrorEventListenerParameter | KgTable02OnAfterRequestEventListenerParameter;
|
|
84
|
+
export declare type KgTable02EventListener = KgTable02OnReadyEventListener | KgTable02OnRowDoubleClickEventListener | KgTable02OnBeforeParseRequestParameterEventListener | KgTable02OnBeforeRequestEventListener | KgTable02OnAfterRequestResponseEventListener | KgTable02OnBeforeTransformDatasEventListener | KgTable02OnBeforeSetDatasEventListener | KgTable02OnRequestErrorEventListener | KgTable02OnAfterRequestEventListener;
|
|
76
85
|
export declare const eventListeners: Record<string, {
|
|
77
86
|
onAfterRequest: Array<KgTable02OnAfterRequestEventListener>;
|
|
87
|
+
onAfterRequestResponse: Array<KgTable02OnAfterRequestResponseEventListener>;
|
|
78
88
|
onBeforeParseRequestParameter: Array<KgTable02OnBeforeParseRequestParameterEventListener>;
|
|
79
89
|
onBeforeRequest: Array<KgTable02OnBeforeRequestEventListener>;
|
|
80
90
|
onBeforeSetDatas: Array<KgTable02OnBeforeSetDatasEventListener>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { IRemoveEventListener } from '@kengic/core.core';
|
|
1
2
|
import { ComputedRef } from 'vue';
|
|
3
|
+
import { KgTable02OnAfterRequestResponseEventListener } from './KgTable02.event';
|
|
2
4
|
import { buildKgTable02Store } from './KgTable02.store';
|
|
3
5
|
export declare type IUseKgTable02 = {
|
|
4
6
|
/**
|
|
@@ -17,6 +19,13 @@ export declare type IUseKgTable02 = {
|
|
|
17
19
|
* 查询条件的界面标识.
|
|
18
20
|
*/
|
|
19
21
|
kgSearchFormId$$: ComputedRef<string>;
|
|
22
|
+
/**
|
|
23
|
+
* 监听事件: 查询请求成功, 刚刚拿到请求返回数据.
|
|
24
|
+
*
|
|
25
|
+
* @param listener 事件监听函数.
|
|
26
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
27
|
+
*/
|
|
28
|
+
onAfterRequestResponse(listener: KgTable02OnAfterRequestResponseEventListener, isOnce?: boolean): IRemoveEventListener;
|
|
20
29
|
/**
|
|
21
30
|
* 当前分页选项.
|
|
22
31
|
*/
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 工厂方法, 用户构造 KgVar 组件.
|
|
3
|
+
*
|
|
4
|
+
* @param param
|
|
5
|
+
*/
|
|
1
6
|
export declare function KgVarFactory(param?: {
|
|
2
7
|
formID?: string | null | undefined;
|
|
3
8
|
}): import("vue").DefineComponent<{
|
|
9
|
+
id: import("vue").PropType<string>;
|
|
4
10
|
kgBackgroundGray: {
|
|
5
11
|
type: import("vue").PropType<boolean>;
|
|
6
12
|
default: undefined;
|
|
@@ -13,6 +19,7 @@ export declare function KgVarFactory(param?: {
|
|
|
13
19
|
kgProps: import("vue").PropType<import("./KgVar.model").IKgProps>;
|
|
14
20
|
kgSlots: import("vue").PropType<import("./KgVar.model").IKgSlots>;
|
|
15
21
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
+
id: import("vue").PropType<string>;
|
|
16
23
|
kgBackgroundGray: {
|
|
17
24
|
type: import("vue").PropType<boolean>;
|
|
18
25
|
default: undefined;
|
|
@@ -32,6 +39,7 @@ export declare function KgVarFactory(param?: {
|
|
|
32
39
|
* 默认的 KgVar 组件.
|
|
33
40
|
*/
|
|
34
41
|
export declare const KgVar2: import("vue").DefineComponent<{
|
|
42
|
+
id: import("vue").PropType<string>;
|
|
35
43
|
kgBackgroundGray: {
|
|
36
44
|
type: import("vue").PropType<boolean>;
|
|
37
45
|
default: undefined;
|
|
@@ -44,6 +52,7 @@ export declare const KgVar2: import("vue").DefineComponent<{
|
|
|
44
52
|
kgProps: import("vue").PropType<import("./KgVar.model").IKgProps>;
|
|
45
53
|
kgSlots: import("vue").PropType<import("./KgVar.model").IKgSlots>;
|
|
46
54
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
55
|
+
id: import("vue").PropType<string>;
|
|
47
56
|
kgBackgroundGray: {
|
|
48
57
|
type: import("vue").PropType<boolean>;
|
|
49
58
|
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
|
-
export declare type IKgVarProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
41
41
|
export declare type KgVarProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
42
|
+
/** @deprecated 已弃用, 请使用 {@link KgVarProps} */
|
|
43
|
+
export declare type IKgVarProps = KgVarProps;
|
|
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>
|
|
@@ -2,14 +2,26 @@ import { IKgEventListener } from '@kengic/core.core';
|
|
|
2
2
|
/**
|
|
3
3
|
* 事件类型.
|
|
4
4
|
*/
|
|
5
|
-
export declare type IKgVarEvent = '
|
|
6
|
-
export declare type
|
|
5
|
+
export declare type IKgVarEvent = 'onBeforeRequest' | 'onAfterRequest' | 'onSetup' | 'onUnmounted';
|
|
6
|
+
export declare type IKgVarOnBeforeRequestEventListenerParameter = {
|
|
7
|
+
/**
|
|
8
|
+
* 界面标识.
|
|
9
|
+
*/
|
|
10
|
+
id: string;
|
|
11
|
+
/**
|
|
12
|
+
* <p>模拟请求返回数据.</p>
|
|
13
|
+
* <p>用户可以修改该属性, 如果该属性的值不为 undefined, 则不会请求变量配置数据, 而是直接使用该属性值作为变量配置数据,</p>
|
|
14
|
+
*/
|
|
15
|
+
mock: any | undefined;
|
|
16
|
+
};
|
|
17
|
+
export declare type IKgVarOnBeforeRequestEventListener = ((param: IKgVarOnBeforeRequestEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
18
|
+
export declare type IKgVarOnAfterRequestEventListenerParameter = {
|
|
7
19
|
/**
|
|
8
20
|
* 界面标识.
|
|
9
21
|
*/
|
|
10
22
|
formID: string;
|
|
11
23
|
};
|
|
12
|
-
export declare type
|
|
24
|
+
export declare type IKgVarOnAfterRequestEventListener = ((param: IKgVarOnAfterRequestEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
13
25
|
export declare type IKgVarOnSetupEventListenerParameter = {
|
|
14
26
|
/**
|
|
15
27
|
* 界面标识.
|
|
@@ -24,10 +36,11 @@ export declare type IKgVarOnUnmountedEventListenerParameter = {
|
|
|
24
36
|
formID: string;
|
|
25
37
|
};
|
|
26
38
|
export declare type IKgVarOnUnmountedEventListener = ((param: IKgVarOnUnmountedEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
|
27
|
-
export declare type IKgVarEventListenerParameter =
|
|
28
|
-
export declare type IKgVarEventListener =
|
|
39
|
+
export declare type IKgVarEventListenerParameter = IKgVarOnBeforeRequestEventListenerParameter | IKgVarOnAfterRequestEventListenerParameter | IKgVarOnSetupEventListenerParameter | IKgVarOnUnmountedEventListenerParameter;
|
|
40
|
+
export declare type IKgVarEventListener = IKgVarOnBeforeRequestEventListener | IKgVarOnAfterRequestEventListener | IKgVarOnSetupEventListener | IKgVarOnUnmountedEventListener;
|
|
29
41
|
export declare const eventListeners: Record<string, {
|
|
30
|
-
|
|
42
|
+
onAfterRequest: Array<IKgVarOnAfterRequestEventListener>;
|
|
43
|
+
onBeforeRequest: Array<IKgVarOnBeforeRequestEventListener>;
|
|
31
44
|
onSetup: Array<IKgVarOnSetupEventListener>;
|
|
32
45
|
onUnmounted: Array<IKgVarOnUnmountedEventListener>;
|
|
33
46
|
}>;
|
|
@@ -9,7 +9,7 @@ import { IUseKgSubmit } from '../KgSubmit';
|
|
|
9
9
|
import { IUseKgTable } from '../KgTable';
|
|
10
10
|
import { IUseKgTable02 } from '../KgTable02';
|
|
11
11
|
import { IUseKgVarConfig } from '../KgVarConfig';
|
|
12
|
-
import { eventListeners,
|
|
12
|
+
import { eventListeners, IKgVarOnAfterRequestEventListener, IKgVarOnBeforeRequestEventListener, IKgVarOnSetupEventListener, IKgVarOnUnmountedEventListener } from './KgVar.event';
|
|
13
13
|
import { IKgProps, IKgSlots } from './KgVar.model';
|
|
14
14
|
import { useKgVarStore } from './KgVar.store';
|
|
15
15
|
export declare type IUseKgVar = {
|
|
@@ -55,21 +55,21 @@ export declare type IUseKgVar = {
|
|
|
55
55
|
*
|
|
56
56
|
* <ul>
|
|
57
57
|
* <li>
|
|
58
|
-
* <p>如果参数
|
|
58
|
+
* <p>如果参数 param.buttonVarName !== <code>undefined</code>, 则忽略参数 param.buttonType, 根据 param.buttonVarName 过滤.</p>
|
|
59
59
|
* </li>
|
|
60
60
|
* <li>
|
|
61
|
-
* <p>如果参数
|
|
61
|
+
* <p>如果参数 param.buttonVarName === <code>undefined</code> && param.buttonType !== <code>undefined</code>, 则先根据参数 param.buttonType 获取按钮, 然后根据 VarButton.var_nam 和 {@link VarConfigControl.button_var_name} 是否匹配进行过滤.</p>
|
|
62
62
|
* </li>
|
|
63
63
|
* <li>
|
|
64
|
-
* <p>如果参数
|
|
64
|
+
* <p>如果参数 param.buttonVarName === <code>undefined</code> && param.buttonType === <code>undefined</code>, 则先获取「当前按钮」, 然后根据「当前按钮」的 VarButton.var_nam 和 {@link VarConfigControl.button_var_name} 是否匹配进行过滤.</p>
|
|
65
65
|
* </li>
|
|
66
66
|
* <li>
|
|
67
67
|
* <p>参数 {@link param.varName} 必传, 将根据 {@link param.varName} 和 {@link VarConfigControl.var_nam} 是否匹配进行过滤.</p>
|
|
68
68
|
* </li>
|
|
69
69
|
* </ul>
|
|
70
70
|
*
|
|
71
|
-
* @param param.buttonType <p>按钮的类型, 对应的是
|
|
72
|
-
* @param param.buttonVarName <p>按钮的变量名称, 对应的是
|
|
71
|
+
* @param param.buttonType <p>按钮的类型, 对应的是 VarButton.typ 属性, 取值请参考 {@link KG__VAR_BUTTON__TYPE}.</p>
|
|
72
|
+
* @param param.buttonVarName <p>按钮的变量名称, 对应的是 VarButton.var_nam 属性.</p>
|
|
73
73
|
* @param param.varName 提交表单字段的变量名, 对应的是 {@link VarConfigControl.var_nam} 属性.
|
|
74
74
|
*/
|
|
75
75
|
getVarConfigControl(param: {
|
|
@@ -95,6 +95,10 @@ export declare type IUseKgVar = {
|
|
|
95
95
|
getVarGridDetail(param: {
|
|
96
96
|
varName: string | null | undefined;
|
|
97
97
|
}): VarGridDetail | null;
|
|
98
|
+
/**
|
|
99
|
+
* 界面标识.
|
|
100
|
+
*/
|
|
101
|
+
id: string;
|
|
98
102
|
/**
|
|
99
103
|
* 是否正在复制.
|
|
100
104
|
*/
|
|
@@ -148,7 +152,16 @@ export declare type IUseKgVar = {
|
|
|
148
152
|
* @param listener 事件监听函数.
|
|
149
153
|
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
150
154
|
*/
|
|
151
|
-
|
|
155
|
+
onAfterRequest(listener: IKgVarOnAfterRequestEventListener, isOnce?: boolean): IRemoveEventListener;
|
|
156
|
+
/**
|
|
157
|
+
* 监听事件: 变量配置数据查询之前.
|
|
158
|
+
*
|
|
159
|
+
* @param listener 事件监听函数.
|
|
160
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
161
|
+
*/
|
|
162
|
+
onBeforeRequest(listener: IKgVarOnBeforeRequestEventListener, isOnce?: boolean): IRemoveEventListener;
|
|
163
|
+
/** @deprecated 已废弃, 请使用 {@link kgTable.onAfterRequest()} */
|
|
164
|
+
onRetrieve(listener: IKgVarOnAfterRequestEventListener, isOnce?: boolean): IRemoveEventListener;
|
|
152
165
|
/**
|
|
153
166
|
* 监听事件: 页面创建.
|
|
154
167
|
*
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ComputedRef, InjectionKey } from 'vue';
|
|
2
1
|
import { IKgButtonProps } from '../KgButton';
|
|
3
2
|
import { IKgFormItemSlotControlParameter, IKgFormItemSlotControlRightParameter } from '../KgForm.Item/KgForm.Item.model';
|
|
4
3
|
import { IKgSearchProps } from '../KgSearch';
|
|
@@ -61,8 +60,6 @@ export declare type IKgSlots = {
|
|
|
61
60
|
[childFormID: string]: () => any;
|
|
62
61
|
};
|
|
63
62
|
};
|
|
64
|
-
/** 注入 kgSlots 参数. */
|
|
65
|
-
export declare const KG__DI__KG_VAR__KG_SLOTS: InjectionKey<IKgSlots | undefined>;
|
|
66
63
|
export declare type IKgProps = {
|
|
67
64
|
KgButton?: IKgButtonProps;
|
|
68
65
|
KgSearch?: IKgSearchProps;
|
|
@@ -71,5 +68,3 @@ export declare type IKgProps = {
|
|
|
71
68
|
KgTable02?: KgTable02Props;
|
|
72
69
|
KgVar?: KgVarProps;
|
|
73
70
|
};
|
|
74
|
-
/** 注入 kgProps 参数. */
|
|
75
|
-
export declare const KG__DI__KG_VAR__KG_PROPS: InjectionKey<ComputedRef<IKgProps | undefined>>;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
export * from './KgAppSelect';
|
|
2
2
|
export * from './KgCanvas';
|
|
3
|
+
export * from './KgCircularShuttleMonitor';
|
|
3
4
|
export * from './KgImage';
|
|
4
5
|
export * from './KgLayoutHeader';
|
|
5
6
|
export * from './KgModal';
|
|
7
|
+
export * from './KgModal02';
|
|
6
8
|
export * from './KgProgressA';
|
|
7
9
|
export * from './KgResizable';
|
|
8
10
|
export * from './KgSearch';
|
|
11
|
+
export * from './KgSimulator';
|
|
9
12
|
export * from './KgSubmit';
|
|
10
13
|
export * from './KgTable';
|
|
11
14
|
export * from './KgVar';
|
|
@@ -153,8 +153,8 @@ export declare type IKgOption = {
|
|
|
153
153
|
/**
|
|
154
154
|
* 数据库的类型.
|
|
155
155
|
*
|
|
156
|
-
* @see {@link
|
|
157
|
-
* @default {@link
|
|
156
|
+
* @see {@link KG.DB_TYPE}
|
|
157
|
+
* @default {@link KG.DB_TYPE.SQLSERVER}
|
|
158
158
|
*/
|
|
159
159
|
dbType?: string;
|
|
160
160
|
/**
|
|
@@ -271,10 +271,10 @@ export interface IUseKgStoreActions {
|
|
|
271
271
|
/**
|
|
272
272
|
* 请求某组变量描述数据.
|
|
273
273
|
*
|
|
274
|
-
* @param param.
|
|
274
|
+
* @param param.fid 界面标识.
|
|
275
275
|
*/
|
|
276
276
|
requestVarConfigDescriptionList(param: {
|
|
277
|
-
|
|
277
|
+
fid: string | null | undefined;
|
|
278
278
|
}): Promise<void>;
|
|
279
279
|
/**
|
|
280
280
|
* 设置某组描述的数据.
|
|
@@ -296,8 +296,12 @@ export interface IUseKgStoreActions {
|
|
|
296
296
|
setUseUserStore(useUserStore: StoreDefinition<any, any, any, any>): void;
|
|
297
297
|
/**
|
|
298
298
|
* 翻译.
|
|
299
|
+
*
|
|
300
|
+
* @param key 键.
|
|
301
|
+
* @param param 参数对象.
|
|
302
|
+
* @param defaultValue 默认翻译结果.
|
|
299
303
|
*/
|
|
300
|
-
t:
|
|
304
|
+
t(key: string | null | undefined, param?: Record<string, any> | null | undefined, defaultValue?: string | null | undefined): string;
|
|
301
305
|
}
|
|
302
306
|
export declare const useKgStore: KgStoreDefinition<IUseKgStoreGetters, IUseKgStoreActions>;
|
|
303
307
|
export {};
|
|
@@ -32,7 +32,7 @@ export declare function setup(options: IKgOptions): Promise<void>;
|
|
|
32
32
|
export declare type KgConfig = {
|
|
33
33
|
app: App<Element>;
|
|
34
34
|
axios: any;
|
|
35
|
-
i18n
|
|
35
|
+
i18n?: {
|
|
36
36
|
/**
|
|
37
37
|
* 语言数据.
|
|
38
38
|
*/
|
|
@@ -48,10 +48,16 @@ export declare type KgConfig = {
|
|
|
48
48
|
*/
|
|
49
49
|
defaultLocale?: LocaleType;
|
|
50
50
|
};
|
|
51
|
+
/**
|
|
52
|
+
* 是否请求翻译数据.
|
|
53
|
+
*
|
|
54
|
+
* @default true
|
|
55
|
+
*/
|
|
56
|
+
isRequestDescriptionList?: boolean;
|
|
51
57
|
};
|
|
52
58
|
/**
|
|
53
59
|
* 配置.
|
|
54
60
|
*
|
|
55
|
-
* @param
|
|
61
|
+
* @param param 配置.
|
|
56
62
|
*/
|
|
57
|
-
export declare function kgConfig(
|
|
63
|
+
export declare function kgConfig(param: KgConfig): Promise<void>;
|