@kengic/vue 0.32.5-beta.6 → 0.32.5
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 +55 -3
- package/bin/postinstall.mjs +2 -0
- package/bin/preinstall.mjs +1 -1
- package/dist/kengic-vue.js +21382 -18711
- package/dist/src/component/KgCanvas/KgCanvas.ContextMenu.d.ts +1 -1
- package/dist/src/component/KgCanvas/KgCanvas.ToolbarButton.Fullscreen.d.ts +1 -1
- package/dist/src/component/KgCanvas/KgCanvas.ToolbarButton.OverviewScale.d.ts +1 -1
- package/dist/src/component/KgCanvas/KgCanvas.Tooltip.d.ts +1 -1
- package/dist/src/component/KgCanvas/KgCanvas.d.ts +1 -1
- package/dist/src/component/KgCanvas/KgCanvas.service.d.ts +2 -2
- package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Tab.Rgv.d.ts +1 -1
- package/dist/src/component/KgForm/KgForm.d.ts +39 -39
- package/dist/src/component/KgForm/index.d.ts +1 -1
- package/dist/src/component/KgForm.Item/KgForm.Item.Addon.DynamicQueryOperator.d.ts +1 -1
- package/dist/src/component/KgForm.Item/KgForm.Item.Select.service.d.ts +2 -2
- package/dist/src/component/KgForm.Item/KgForm.Item.model.d.ts +3 -3
- package/dist/src/component/KgForm.Item/KgForm.Item.service.d.ts +3 -3
- package/dist/src/component/KgForm.Item/index.d.ts +1 -1
- package/dist/src/component/KgImage/KgImage.d.ts +7 -7
- package/dist/src/component/KgImage/index.d.ts +1 -1
- package/dist/src/component/KgLayoutHeader/KgLayoutHeader.Locale.d.ts +1 -1
- package/dist/src/component/KgLayoutHeader/index.d.ts +1 -1
- package/dist/src/component/KgModal/KgModal.d.ts +28 -10
- package/dist/src/component/KgModal/KgModal.service.d.ts +2 -2
- package/dist/src/component/KgModal/index.d.ts +1 -1
- package/dist/src/component/KgModal02/KgModal02.d.ts +10 -10
- package/dist/src/component/KgSimulator/KgSimulator.Menu.Scene.Create.CircularConveyor.d.ts +1 -1
- package/dist/src/component/KgSimulator/KgSimulator.Menu.Scene.Open.CircularConveyor.d.ts +1 -1
- package/dist/src/component/KgSimulator/KgSimulator.Panel.d.ts +1 -1
- package/dist/src/component/KgSimulator/KgSimulator.Prefab.d.ts +1 -1
- package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Prefab.d.ts +1 -1
- package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Property.d.ts +1 -1
- package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Scene.d.ts +1 -1
- package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.d.ts +1 -1
- package/dist/src/component/KgSubmit/KgSubmit.d.ts +1 -1
- package/dist/src/component/KgSubmit/KgSubmit.service.d.ts +2 -2
- package/dist/src/component/KgSubmit/index.d.ts +1 -1
- package/dist/src/component/KgTable/KgTable.d.ts +6 -6
- package/dist/src/component/KgTable02/KgTable02.d.ts +1 -1
- package/dist/src/component/KgTable02/KgTable02.event.d.ts +3 -3
- package/dist/src/component/KgVar/KgVar.d.ts +1 -1
- package/dist/src/component/KgVar/KgVar.model.d.ts +6 -6
- package/dist/src/config/config.store.d.ts +19 -4
- package/dist/src/model/index.d.ts +14 -22
- package/dist/src/page/KgPageDda/KgPageDda.Create.d.ts +1 -1
- package/dist/src/page/KgPageSqlClient/components/KgSqlClient.ResultTab.d.ts +1 -1
- package/dist/src/project/src/api/common/api.d.ts +70 -0
- package/dist/src/project/src/api/index.d.ts +1 -0
- package/dist/src/project/src/hooks/index.d.ts +1 -0
- package/dist/src/project/src/hooks/web/useMessage.d.ts +46 -0
- package/dist/src/project/src/store/modules/errorLog.d.ts +31 -0
- package/dist/src/project/src/store/modules/index.d.ts +1 -0
- package/dist/src/project/src/utils/http/axios/Axios.d.ts +45 -0
- package/dist/src/project/src/utils/http/axios/axiosCancel.d.ts +23 -0
- package/dist/src/project/src/utils/http/axios/axiosTransform.d.ts +41 -0
- package/dist/src/project/src/utils/http/axios/checkStatus.d.ts +2 -0
- package/dist/src/project/src/utils/http/axios/helper.d.ts +5 -0
- package/dist/src/project/src/utils/http/axios/index.d.ts +3 -0
- package/dist/src/project/src/utils/index.d.ts +6 -0
- package/dist/src/util/ant-design-vue.d.ts +16 -16
- package/package.json +4 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Data processing class, can be configured according to the project
|
|
3
|
+
*/
|
|
4
|
+
import type { AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
5
|
+
import { RequestOptions, Result } from '../../../../types';
|
|
6
|
+
export interface CreateAxiosOptions extends AxiosRequestConfig {
|
|
7
|
+
authenticationScheme?: string;
|
|
8
|
+
transform?: AxiosTransform;
|
|
9
|
+
requestOptions?: RequestOptions;
|
|
10
|
+
}
|
|
11
|
+
export declare abstract class AxiosTransform {
|
|
12
|
+
/**
|
|
13
|
+
* @description: Process configuration before request
|
|
14
|
+
* @description: Process configuration before request
|
|
15
|
+
*/
|
|
16
|
+
beforeRequestHook?: (config: AxiosRequestConfig, options: RequestOptions) => AxiosRequestConfig;
|
|
17
|
+
/**
|
|
18
|
+
* @description: Request successfully processed
|
|
19
|
+
*/
|
|
20
|
+
transformRequestHook?: (res: AxiosResponse<Result>, options: RequestOptions) => any;
|
|
21
|
+
/**
|
|
22
|
+
* @description: 请求失败处理
|
|
23
|
+
*/
|
|
24
|
+
requestCatchHook?: (e: Error, options: RequestOptions) => Promise<any>;
|
|
25
|
+
/**
|
|
26
|
+
* @description: 请求之前的拦截器
|
|
27
|
+
*/
|
|
28
|
+
requestInterceptors?: (config: AxiosRequestConfig, options: CreateAxiosOptions) => AxiosRequestConfig;
|
|
29
|
+
/**
|
|
30
|
+
* @description: 请求之后的拦截器
|
|
31
|
+
*/
|
|
32
|
+
responseInterceptors?: (res: AxiosResponse<any>) => AxiosResponse<any>;
|
|
33
|
+
/**
|
|
34
|
+
* @description: 请求之前的拦截器错误处理
|
|
35
|
+
*/
|
|
36
|
+
requestInterceptorsCatch?: (error: Error) => void;
|
|
37
|
+
/**
|
|
38
|
+
* @description: 请求之后的拦截器错误处理
|
|
39
|
+
*/
|
|
40
|
+
responseInterceptorsCatch?: (error: Error) => void;
|
|
41
|
+
}
|
|
@@ -24,3 +24,9 @@ export * from './mitt';
|
|
|
24
24
|
export * from './props';
|
|
25
25
|
export * from './propTypes';
|
|
26
26
|
export * from './uuid';
|
|
27
|
+
export * from './http/axios/Axios';
|
|
28
|
+
export * from './http/axios/axiosCancel';
|
|
29
|
+
export * from './http/axios/axiosTransform';
|
|
30
|
+
export * from './http/axios/checkStatus';
|
|
31
|
+
export * from './http/axios/helper';
|
|
32
|
+
export * from './http/axios/index';
|
|
@@ -6,14 +6,14 @@ import { ValidateMessages } from 'ant-design-vue/es/form/interface';
|
|
|
6
6
|
import { ButtonShape, ButtonType } from 'ant-design-vue/lib/button';
|
|
7
7
|
import { CSSProperties, ExtractPropTypes, HTMLAttributes, PropType } from 'vue';
|
|
8
8
|
export declare const formProps: () => {
|
|
9
|
-
layout: PropType<"
|
|
9
|
+
layout: PropType<"inline" | "horizontal" | "vertical">;
|
|
10
10
|
labelCol: {
|
|
11
11
|
type: PropType<Partial<ExtractPropTypes<{
|
|
12
|
-
span: (
|
|
13
|
-
order: (
|
|
14
|
-
offset: (
|
|
15
|
-
push: (
|
|
16
|
-
pull: (
|
|
12
|
+
span: (StringConstructor | NumberConstructor)[];
|
|
13
|
+
order: (StringConstructor | NumberConstructor)[];
|
|
14
|
+
offset: (StringConstructor | NumberConstructor)[];
|
|
15
|
+
push: (StringConstructor | NumberConstructor)[];
|
|
16
|
+
pull: (StringConstructor | NumberConstructor)[];
|
|
17
17
|
xs: {
|
|
18
18
|
type: PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
|
|
19
19
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
|
@@ -43,16 +43,16 @@ export declare const formProps: () => {
|
|
|
43
43
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
|
44
44
|
};
|
|
45
45
|
prefixCls: StringConstructor;
|
|
46
|
-
flex: (
|
|
46
|
+
flex: (StringConstructor | NumberConstructor)[];
|
|
47
47
|
}>> & HTMLAttributes>;
|
|
48
48
|
};
|
|
49
49
|
wrapperCol: {
|
|
50
50
|
type: PropType<Partial<ExtractPropTypes<{
|
|
51
|
-
span: (
|
|
52
|
-
order: (
|
|
53
|
-
offset: (
|
|
54
|
-
push: (
|
|
55
|
-
pull: (
|
|
51
|
+
span: (StringConstructor | NumberConstructor)[];
|
|
52
|
+
order: (StringConstructor | NumberConstructor)[];
|
|
53
|
+
offset: (StringConstructor | NumberConstructor)[];
|
|
54
|
+
push: (StringConstructor | NumberConstructor)[];
|
|
55
|
+
pull: (StringConstructor | NumberConstructor)[];
|
|
56
56
|
xs: {
|
|
57
57
|
type: PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
|
|
58
58
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
|
@@ -82,7 +82,7 @@ export declare const formProps: () => {
|
|
|
82
82
|
default: string | number | import("ant-design-vue/lib/grid").ColSize;
|
|
83
83
|
};
|
|
84
84
|
prefixCls: StringConstructor;
|
|
85
|
-
flex: (
|
|
85
|
+
flex: (StringConstructor | NumberConstructor)[];
|
|
86
86
|
}>> & HTMLAttributes>;
|
|
87
87
|
};
|
|
88
88
|
colon: {
|
|
@@ -166,7 +166,7 @@ export declare const modalProps: () => {
|
|
|
166
166
|
type: BooleanConstructor;
|
|
167
167
|
default: undefined;
|
|
168
168
|
};
|
|
169
|
-
width: (
|
|
169
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
170
170
|
footer: PropType<any>;
|
|
171
171
|
okText: PropType<any>;
|
|
172
172
|
okType: PropType<LegacyButtonType>;
|
|
@@ -340,8 +340,8 @@ export declare const imageProps: () => {
|
|
|
340
340
|
type: PropType<(event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error) => any>;
|
|
341
341
|
};
|
|
342
342
|
id: StringConstructor;
|
|
343
|
-
width: (
|
|
344
|
-
height: (
|
|
343
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
344
|
+
height: (StringConstructor | NumberConstructor)[];
|
|
345
345
|
style: StringConstructor;
|
|
346
346
|
};
|
|
347
347
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kengic/vue",
|
|
3
|
-
"version": "0.32.5
|
|
3
|
+
"version": "0.32.5",
|
|
4
4
|
"packageManager": "pnpm@10.33.0+sha512.10568bb4a6afb58c9eb3630da90cc9516417abebd3fabbe6739f0ae795728da1491e9db5a544c76ad8eb7570f5c4bb3d6c637b2cb41bfdcdb47fa823c8649319",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": "24.14.1",
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@ant-design/colors": "6.0.0",
|
|
52
|
+
"@ant-design/icons-vue": "6.1.0",
|
|
52
53
|
"@iconify-icons/akar-icons": "1.2.19",
|
|
53
54
|
"@iconify-icons/ant-design": "1.2.7",
|
|
54
55
|
"@iconify-icons/eos-icons": "1.2.6",
|
|
@@ -67,6 +68,7 @@
|
|
|
67
68
|
"@types/lodash-es": "4.17.9",
|
|
68
69
|
"@types/md5": "2.3.5",
|
|
69
70
|
"@types/node": "18.18.4",
|
|
71
|
+
"@types/qs": "6.15.0",
|
|
70
72
|
"@types/semver": "7.5.3",
|
|
71
73
|
"@types/store": "2.0.3",
|
|
72
74
|
"@types/uuid": "10.0.0",
|
|
@@ -93,6 +95,7 @@
|
|
|
93
95
|
"picocolors": "1.0.0",
|
|
94
96
|
"pinia": "2.0.12",
|
|
95
97
|
"prettier": "3.3.3",
|
|
98
|
+
"qs": "6.15.0",
|
|
96
99
|
"resize-observer-polyfill": "1.5.1",
|
|
97
100
|
"rimraf": "3.0.2",
|
|
98
101
|
"rollup": "2.79.1",
|