@kengic/vue 0.30.1-beta.7 → 0.30.1-beta.70
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/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 +157799 -140902
- 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.event.d.ts +21 -21
- package/dist/src/component/KgButton/KgButton.hooks.d.ts +9 -9
- 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 +48 -11
- package/dist/src/component/KgCanvas/KgCanvas.hooks.d.ts +34 -6
- 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/KgForm.hooks.d.ts +2 -2
- package/dist/src/component/KgForm/KgForm.store.d.ts +4 -4
- 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 +40 -38
- 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 +476 -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 +6 -6
- package/dist/src/component/KgSearch/KgSearch.store.d.ts +26 -26
- 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 +26 -21
- package/dist/src/component/KgSubmit/KgSubmit.hooks.d.ts +48 -16
- 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/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 +1 -1
- 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/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 +19 -13
- package/dist/src/const/const.model.d.ts +530 -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/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 +2 -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/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/locales/useLocale.d.ts +1 -0
- package/dist/src/project/src/router/types.d.ts +19 -0
- package/dist/src/project/src/utils/env.d.ts +0 -16
- package/dist/src/project/types/config.d.ts +2 -2
- 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-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 +2 -2
- package/dist/src/util/tsx.helper.d.ts +7 -7
- package/package.json +11 -9
- 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/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/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
|
@@ -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 KgTable02EventListener =
|
|
98
|
+
export declare type IKgTable02$EventListener$onRequestError = ((param: IKgTable02$EventListenerParameter$onRequestError) => Promise<boolean>) & IKgEventListener;
|
|
99
|
+
export declare type IKgTable02EventListenerParameter = 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 KgTable02EventListener = 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 IKgTable02EventListenerParameter>(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,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 IKgVar$EventListenerParameter$onBeforeRequest = {
|
|
7
|
+
/**
|
|
8
|
+
* 界面标识.
|
|
9
|
+
*/
|
|
10
|
+
id: string;
|
|
11
|
+
/**
|
|
12
|
+
* <p>模拟请求返回数据.</p>
|
|
13
|
+
* <p>用户可以修改该属性, 如果该属性的值不为 undefined, 则不会请求变量配置数据, 而是直接使用该属性值作为变量配置数据,</p>
|
|
14
|
+
*/
|
|
15
|
+
mock: any | undefined;
|
|
16
|
+
};
|
|
17
|
+
export declare type IKgVar$EventListener$onBeforeRequest = ((param: IKgVar$EventListenerParameter$onBeforeRequest) => Promise<boolean>) & IKgEventListener;
|
|
18
|
+
export declare type IKgVar$EventListenerParameter$onAfterRequest = {
|
|
7
19
|
/**
|
|
8
20
|
* 界面标识.
|
|
9
21
|
*/
|
|
10
22
|
formID: string;
|
|
11
23
|
};
|
|
12
|
-
export declare type
|
|
24
|
+
export declare type IKgVar$EventListener$onAfterRequest = ((param: IKgVar$EventListenerParameter$onAfterRequest) => 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 = IKgVar$EventListenerParameter$onBeforeRequest | IKgVar$EventListenerParameter$onAfterRequest | IKgVarOnSetupEventListenerParameter | IKgVarOnUnmountedEventListenerParameter;
|
|
40
|
+
export declare type IKgVarEventListener = IKgVar$EventListener$onBeforeRequest | IKgVar$EventListener$onAfterRequest | IKgVarOnSetupEventListener | IKgVarOnUnmountedEventListener;
|
|
29
41
|
export declare const eventListeners: Record<string, {
|
|
30
|
-
|
|
42
|
+
onAfterRequest: Array<IKgVar$EventListener$onAfterRequest>;
|
|
43
|
+
onBeforeRequest: Array<IKgVar$EventListener$onBeforeRequest>;
|
|
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, IKgVar$EventListener$onAfterRequest, IKgVar$EventListener$onBeforeRequest, 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: IKgVar$EventListener$onAfterRequest, isOnce?: boolean): IRemoveEventListener;
|
|
156
|
+
/**
|
|
157
|
+
* 监听事件: 变量配置数据查询之前.
|
|
158
|
+
*
|
|
159
|
+
* @param listener 事件监听函数.
|
|
160
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
161
|
+
*/
|
|
162
|
+
onBeforeRequest(listener: IKgVar$EventListener$onBeforeRequest, isOnce?: boolean): IRemoveEventListener;
|
|
163
|
+
/** @deprecated 已废弃, 请使用 {@link kgTable.onAfterRequest()} */
|
|
164
|
+
onRetrieve(listener: IKgVar$EventListener$onAfterRequest, 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 {};
|
|
@@ -4,13 +4,8 @@ import { Router } from 'vue-router';
|
|
|
4
4
|
import { LocaleType } from '../project/types/config';
|
|
5
5
|
import { IKgOption, P } from './config.store';
|
|
6
6
|
import '@kengic/core.react/index.css';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* 由于许多数据是由项目维护的, 组件库需要用到这些数据, 则必须让项目调用下面的这些配置方法, 将这些数据设置进来.
|
|
11
|
-
*/
|
|
12
|
-
export declare const pinia: import("pinia").Pinia;
|
|
13
|
-
export declare type IKgOptions = {
|
|
7
|
+
declare const pinia: import("pinia").Pinia;
|
|
8
|
+
declare type IKgSetupParameter = {
|
|
14
9
|
app: App;
|
|
15
10
|
i18n: any;
|
|
16
11
|
/** 配置参数. */
|
|
@@ -23,16 +18,18 @@ export declare type IKgOptions = {
|
|
|
23
18
|
/** 状态数据: 用户. */
|
|
24
19
|
useUserStore: StoreDefinition<any, any, any, any>;
|
|
25
20
|
};
|
|
21
|
+
/** @deprecated 已废弃, 请使用 {@link IKgSetupParameter} */
|
|
22
|
+
declare type IKgOptions = IKgSetupParameter;
|
|
26
23
|
/**
|
|
27
24
|
* 初始.
|
|
28
25
|
*
|
|
29
|
-
* @param
|
|
26
|
+
* @param param 选项参数.
|
|
30
27
|
*/
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
declare function setup(param: IKgSetupParameter): Promise<void>;
|
|
29
|
+
declare type IKgConfigParameter = {
|
|
33
30
|
app: App<Element>;
|
|
34
31
|
axios: any;
|
|
35
|
-
i18n
|
|
32
|
+
i18n?: {
|
|
36
33
|
/**
|
|
37
34
|
* 语言数据.
|
|
38
35
|
*/
|
|
@@ -48,10 +45,19 @@ export declare type KgConfig = {
|
|
|
48
45
|
*/
|
|
49
46
|
defaultLocale?: LocaleType;
|
|
50
47
|
};
|
|
48
|
+
/**
|
|
49
|
+
* 是否请求翻译数据.
|
|
50
|
+
*
|
|
51
|
+
* @default true
|
|
52
|
+
*/
|
|
53
|
+
isRequestDescriptionList?: boolean;
|
|
51
54
|
};
|
|
52
55
|
/**
|
|
53
56
|
* 配置.
|
|
54
57
|
*
|
|
55
|
-
* @param
|
|
58
|
+
* @param param 配置.
|
|
56
59
|
*/
|
|
57
|
-
|
|
60
|
+
declare function kgConfig(param: IKgConfigParameter): Promise<void>;
|
|
61
|
+
export * from './config.hooks';
|
|
62
|
+
export * from './config.store';
|
|
63
|
+
export { pinia, type IKgSetupParameter, type IKgOptions, type IKgConfigParameter, kgConfig, setup };
|