@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
|
@@ -9,7 +9,7 @@ declare const getProps: () => {
|
|
|
9
9
|
};
|
|
10
10
|
'onUpdate:kgIsVisible': PropType<(value: boolean) => void>;
|
|
11
11
|
};
|
|
12
|
-
export declare type
|
|
12
|
+
export declare type IKgSimulatorMenuSceneCreateCircularConveyorProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
13
13
|
/**
|
|
14
14
|
* 模拟器--菜单--场景--新建--环线输送线.
|
|
15
15
|
*/
|
|
@@ -9,7 +9,7 @@ declare const getProps: () => {
|
|
|
9
9
|
};
|
|
10
10
|
'onUpdate:kgIsVisible': PropType<(value: boolean) => void>;
|
|
11
11
|
};
|
|
12
|
-
export declare type
|
|
12
|
+
export declare type IKgSimulatorMenuSceneOpenCircularConveyorProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
13
13
|
/**
|
|
14
14
|
* 模拟器--菜单--场景--打开--环线输送线.
|
|
15
15
|
*/
|
|
@@ -30,7 +30,7 @@ declare const getProps: () => {
|
|
|
30
30
|
};
|
|
31
31
|
'onUpdate:kgIsOpen': PropType<(value: boolean) => void>;
|
|
32
32
|
};
|
|
33
|
-
export declare type
|
|
33
|
+
export declare type IKgSimulatorPanelProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
34
34
|
/**
|
|
35
35
|
* 模拟器--面板--预制组件.
|
|
36
36
|
*/
|
|
@@ -33,7 +33,7 @@ declare const getProps: () => {
|
|
|
33
33
|
required: boolean;
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
|
-
export declare type
|
|
36
|
+
export declare type IKgSimulatorPrefabProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
37
37
|
/**
|
|
38
38
|
* 模拟器--预制组件.
|
|
39
39
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
|
2
2
|
declare const getProps: () => any;
|
|
3
|
-
export declare type
|
|
3
|
+
export declare type IKgSimulatorToolbarButtonPrefabProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
4
4
|
/**
|
|
5
5
|
* 模拟器--工具按钮--预制组件.
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
|
2
2
|
declare const getProps: () => any;
|
|
3
|
-
export declare type
|
|
3
|
+
export declare type IKgSimulatorToolbarButtonPropertyProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
4
4
|
/**
|
|
5
5
|
* 模拟器--工具按钮--属性.
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
|
2
2
|
declare const getProps: () => any;
|
|
3
|
-
export declare type
|
|
3
|
+
export declare type IKgSimulatorToolbarButtonSceneProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
4
4
|
/**
|
|
5
5
|
* 模拟器--工具按钮--场景.
|
|
6
6
|
*/
|
|
@@ -36,7 +36,7 @@ declare const getProps: () => {
|
|
|
36
36
|
};
|
|
37
37
|
'onUpdate:kgIsOpen': PropType<(value: boolean) => void>;
|
|
38
38
|
};
|
|
39
|
-
export declare type
|
|
39
|
+
export declare type IKgSimulatorToolbarButtonProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
40
40
|
/**
|
|
41
41
|
* 模拟器--工具按钮.
|
|
42
42
|
*/
|
|
@@ -6,7 +6,7 @@ declare const getProps: () => {
|
|
|
6
6
|
*/
|
|
7
7
|
kgClass: PropType<string>;
|
|
8
8
|
};
|
|
9
|
-
export declare type
|
|
9
|
+
export declare type IKgSubmitProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
10
10
|
declare const _default: import("vue").DefineComponent<{
|
|
11
11
|
/**
|
|
12
12
|
* 自定义的样式类名, 会附加到组件默认的样式类名后面.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Ref, UnwrapRef } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { IKgSubmitProps } from './KgSubmit';
|
|
3
3
|
export declare type IUseResizeObserver = {};
|
|
4
4
|
export declare function _useResizeObserver(kgFormRef: Ref<UnwrapRef<HTMLDivElement | null>>): IUseResizeObserver;
|
|
5
5
|
export declare function _useTitle(): {
|
|
@@ -8,7 +8,7 @@ export declare function _useTitle(): {
|
|
|
8
8
|
*/
|
|
9
9
|
title: import("vue").ComputedRef<string>;
|
|
10
10
|
};
|
|
11
|
-
export declare function _useClass(props:
|
|
11
|
+
export declare function _useClass(props: IKgSubmitProps): {
|
|
12
12
|
/**
|
|
13
13
|
* 弹窗样式.
|
|
14
14
|
*/
|
|
@@ -2,35 +2,35 @@ import { RowClassName } from 'ant-design-vue/es/vc-table/interface';
|
|
|
2
2
|
import { ExtractPropTypes, PropType } from 'vue';
|
|
3
3
|
import './KgTable.less';
|
|
4
4
|
declare const getProps: () => {
|
|
5
|
-
/** 是否禁用某行的勾选框. */
|
|
6
|
-
kgIsCheckboxDisabled: PropType<(row: any) => boolean>;
|
|
7
5
|
/** 是否禁用表格. */
|
|
8
6
|
kgDisabled: {
|
|
9
7
|
type: PropType<boolean>;
|
|
10
8
|
default: undefined;
|
|
11
9
|
};
|
|
10
|
+
/** 是否禁用某行的勾选框. */
|
|
11
|
+
kgIsCheckboxDisabled: PropType<(row: any) => boolean>;
|
|
12
12
|
/** 设置行的样式类名. */
|
|
13
13
|
kgRowClassName: PropType<RowClassName<any>>;
|
|
14
14
|
};
|
|
15
15
|
export declare type IKgTableProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
16
16
|
declare const _default: import("vue").DefineComponent<{
|
|
17
|
-
/** 是否禁用某行的勾选框. */
|
|
18
|
-
kgIsCheckboxDisabled: PropType<(row: any) => boolean>;
|
|
19
17
|
/** 是否禁用表格. */
|
|
20
18
|
kgDisabled: {
|
|
21
19
|
type: PropType<boolean>;
|
|
22
20
|
default: undefined;
|
|
23
21
|
};
|
|
22
|
+
/** 是否禁用某行的勾选框. */
|
|
23
|
+
kgIsCheckboxDisabled: PropType<(row: any) => boolean>;
|
|
24
24
|
/** 设置行的样式类名. */
|
|
25
25
|
kgRowClassName: PropType<RowClassName<any>>;
|
|
26
26
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
27
|
-
/** 是否禁用某行的勾选框. */
|
|
28
|
-
kgIsCheckboxDisabled: PropType<(row: any) => boolean>;
|
|
29
27
|
/** 是否禁用表格. */
|
|
30
28
|
kgDisabled: {
|
|
31
29
|
type: PropType<boolean>;
|
|
32
30
|
default: undefined;
|
|
33
31
|
};
|
|
32
|
+
/** 是否禁用某行的勾选框. */
|
|
33
|
+
kgIsCheckboxDisabled: PropType<(row: any) => boolean>;
|
|
34
34
|
/** 设置行的样式类名. */
|
|
35
35
|
kgRowClassName: PropType<RowClassName<any>>;
|
|
36
36
|
}>>, {
|
|
@@ -13,7 +13,7 @@ declare const getProps: () => {
|
|
|
13
13
|
default: undefined;
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
-
export declare type
|
|
16
|
+
export declare type IKgTable02Props = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
17
17
|
/**
|
|
18
18
|
* 表格.
|
|
19
19
|
*/
|
|
@@ -6,7 +6,7 @@ import { IKgTableRow } from '../KgTable';
|
|
|
6
6
|
/**
|
|
7
7
|
* 事件类型.
|
|
8
8
|
*/
|
|
9
|
-
export declare type
|
|
9
|
+
export declare type IKgTable02Event = 'onReady' | 'onRowDoubleClick' | 'onBeforeParseRequestParameter' | 'onBeforeRequest' | 'onAfterRequestResponse' | 'onBeforeTransformDatas' | 'onBeforeSetDatas' | 'onAfterRequest' | 'onRequestError';
|
|
10
10
|
export declare type IKgTable02$EventListenerParameter$onReady = {};
|
|
11
11
|
export declare type IKgTable02$EventListener$onReady = ((param: IKgTable02$EventListenerParameter$onReady) => Promise<boolean>) & IKgEventListener;
|
|
12
12
|
export declare type IKgTable02$EventListenerParameter$onRowDoubleClick = {
|
|
@@ -97,7 +97,7 @@ export declare type IKgTable02$EventListenerParameter$onRequestError = {
|
|
|
97
97
|
};
|
|
98
98
|
export declare type IKgTable02$EventListener$onRequestError = ((param: IKgTable02$EventListenerParameter$onRequestError) => Promise<boolean>) & IKgEventListener;
|
|
99
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
|
|
100
|
+
export declare type IKgTable02$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;
|
|
101
101
|
export declare const eventListeners: Record<string, {
|
|
102
102
|
onAfterRequest: Array<IKgTable02$EventListener$onAfterRequest>;
|
|
103
103
|
onAfterRequestResponse: Array<IKgTable02$EventListener$onAfterRequestResponse>;
|
|
@@ -117,7 +117,7 @@ export declare const eventListeners: Record<string, {
|
|
|
117
117
|
* @param param.parameter 事件参数.
|
|
118
118
|
*/
|
|
119
119
|
export declare function emit<P extends IKgTable02$EventListenerParameter>(param: {
|
|
120
|
-
event:
|
|
120
|
+
event: IKgTable02Event;
|
|
121
121
|
id?: string | undefined;
|
|
122
122
|
parameter: P;
|
|
123
123
|
}): Promise<boolean>;
|
|
@@ -40,7 +40,7 @@ export declare function getProps(): {
|
|
|
40
40
|
};
|
|
41
41
|
export declare type IKgVarProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
42
42
|
/** @deprecated 已废弃, 请使用 {@link IKgVarProps} */
|
|
43
|
-
export declare type KgVarProps =
|
|
43
|
+
export declare type KgVarProps = IKgVarProps;
|
|
44
44
|
declare const _default: import("vue").DefineComponent<{
|
|
45
45
|
/**
|
|
46
46
|
* 界面标识.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { IKgButtonProps } from '../KgButton';
|
|
2
2
|
import { IKgFormItemSlotControlParameter, IKgFormItemSlotControlRightParameter } from '../KgForm.Item/KgForm.Item.model';
|
|
3
3
|
import { IKgSearchProps } from '../KgSearch';
|
|
4
|
-
import {
|
|
4
|
+
import { IKgSubmitProps } from '../KgSubmit';
|
|
5
5
|
import { IKgTableSlotParams } from '../KgTable';
|
|
6
6
|
import { IKgTableProps } from '../KgTable/KgTable';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { IKgTable02Props } from '../KgTable02/KgTable02';
|
|
8
|
+
import { IKgVarProps } from './KgVar';
|
|
9
9
|
export declare type IKgSlots = {
|
|
10
10
|
/** 按钮. */
|
|
11
11
|
KgButton?: {
|
|
@@ -63,8 +63,8 @@ export declare type IKgSlots = {
|
|
|
63
63
|
export declare type IKgProps = {
|
|
64
64
|
KgButton?: IKgButtonProps;
|
|
65
65
|
KgSearch?: IKgSearchProps;
|
|
66
|
-
KgSubmit?:
|
|
66
|
+
KgSubmit?: IKgSubmitProps;
|
|
67
67
|
KgTable?: IKgTableProps;
|
|
68
|
-
KgTable02?:
|
|
69
|
-
KgVar?:
|
|
68
|
+
KgTable02?: IKgTable02Props;
|
|
69
|
+
KgVar?: IKgVarProps;
|
|
70
70
|
};
|
|
@@ -2,8 +2,9 @@ import { StoreDefinition } from 'pinia';
|
|
|
2
2
|
import { Router } from 'vue-router';
|
|
3
3
|
import { DescriptionDTO, SysUserWarehouseDTO } from '../api/WMS/models';
|
|
4
4
|
import { IKgStoreDefinition, KG_APP } from '../model';
|
|
5
|
+
import { ErrorMessageMode, GetUserInfoModel, LoginParams, RoleEnum } from '../project';
|
|
5
6
|
import { Menu } from '../project/src/router/types';
|
|
6
|
-
import { UserInfo } from '../project/types/store';
|
|
7
|
+
import { LoginInfo, UserInfo } from '../project/types/store';
|
|
7
8
|
export declare type IKgOption = {
|
|
8
9
|
/**
|
|
9
10
|
* 工作站选择--是否启用功能, 默认为 true.
|
|
@@ -247,12 +248,26 @@ export interface IUseKgStoreGetters {
|
|
|
247
248
|
* 权限数据.
|
|
248
249
|
*/
|
|
249
250
|
useUserStore: StoreDefinition<string, UserState, {
|
|
250
|
-
getToken(): string;
|
|
251
251
|
getRoleList(): any[];
|
|
252
|
-
getUserWarehouses(): SysUserWarehouseDTO[];
|
|
253
252
|
getSessionTimeout(): boolean;
|
|
253
|
+
getToken(): string;
|
|
254
254
|
getUserInfo(): UserInfo;
|
|
255
|
-
|
|
255
|
+
getUserWarehouses(): SysUserWarehouseDTO[];
|
|
256
|
+
}, {
|
|
257
|
+
login(params: LoginParams & {
|
|
258
|
+
goHome?: boolean;
|
|
259
|
+
mode?: ErrorMessageMode;
|
|
260
|
+
}): Promise<GetUserInfoModel | null>;
|
|
261
|
+
logout(goLogin?: boolean): void;
|
|
262
|
+
resetState(): void;
|
|
263
|
+
setAllDictItems(dictItems: Array<any>): void;
|
|
264
|
+
setLoginInfo(info: LoginInfo | null): void;
|
|
265
|
+
setRoleList(roleList: RoleEnum[]): void;
|
|
266
|
+
setSessionTimeout(flag: boolean): void;
|
|
267
|
+
setToken(info: string | undefined): void;
|
|
268
|
+
setUserInfo(info: UserInfo | null): void;
|
|
269
|
+
setUserWarehouses(userWarehouses: SysUserWarehouseDTO[]): void;
|
|
270
|
+
}> | null;
|
|
256
271
|
}
|
|
257
272
|
export interface IUseKgStoreActions {
|
|
258
273
|
/**
|
|
@@ -2,7 +2,7 @@ import { FormInstance, type TooltipProps } from 'ant-design-vue';
|
|
|
2
2
|
import { ModalFuncProps } from 'ant-design-vue/lib/modal/Modal';
|
|
3
3
|
import { Pinia, StoreOnActionListener } from 'pinia';
|
|
4
4
|
import { ComputedRef, InjectionKey, Ref } from 'vue';
|
|
5
|
-
import { IKgProps, IKgSlots,
|
|
5
|
+
import { IKgProps, IKgSlots, IKgModalProps } from '../component';
|
|
6
6
|
/**
|
|
7
7
|
* 常量.
|
|
8
8
|
* TODO LT 将所有常量都统一放到这个常量中
|
|
@@ -79,9 +79,7 @@ declare const KG: {
|
|
|
79
79
|
default: boolean; /**
|
|
80
80
|
* 依赖注入.
|
|
81
81
|
*/
|
|
82
|
-
};
|
|
83
|
-
* 依赖注入.
|
|
84
|
-
*/
|
|
82
|
+
};
|
|
85
83
|
kg$KgCanvasToolbarButtonMode$IsAvailable: {
|
|
86
84
|
type: import("vue").PropType<boolean>;
|
|
87
85
|
default: boolean;
|
|
@@ -535,7 +533,9 @@ declare const KG: {
|
|
|
535
533
|
DYNAMIC_QUERY_OPERATOR__IN: string;
|
|
536
534
|
DYNAMIC_QUERY_OPERATOR__LT: string;
|
|
537
535
|
DYNAMIC_QUERY_OPERATOR__LTE: string;
|
|
538
|
-
DYNAMIC_QUERY_OPERATOR__NE: string;
|
|
536
|
+
DYNAMIC_QUERY_OPERATOR__NE: string; /**
|
|
537
|
+
* 数据库的类型--SQLSERVER.
|
|
538
|
+
*/
|
|
539
539
|
DYNAMIC_QUERY_OPERATOR__NOT_EMPTY: string;
|
|
540
540
|
DYNAMIC_QUERY_OPERATOR__START_WITH: string; /** @deprecated 已废弃, 请使用 KG.DESCRIPTION_KEY__KG */
|
|
541
541
|
HTTP_HEADER__KG_BUTTON_VAR_NAME: string;
|
|
@@ -556,10 +556,9 @@ declare const KG: {
|
|
|
556
556
|
HTTP_HEADER__KG_QUERY_VALUE_RECORD: string;
|
|
557
557
|
HTTP_HEADER__KG_QUERY_WHERE_SQL: string;
|
|
558
558
|
HTTP_HEADER__KG_QUERY_WHERE_SQL_01: string;
|
|
559
|
-
/**
|
|
560
|
-
*
|
|
559
|
+
HTTP_HEADER__KG_QUERY_WHERE_SQL_02: string; /**
|
|
560
|
+
* 左下侧面板.
|
|
561
561
|
*/
|
|
562
|
-
HTTP_HEADER__KG_QUERY_WHERE_SQL_02: string;
|
|
563
562
|
HTTP_HEADER__KG_QUERY_WHERE_SQL_03: string;
|
|
564
563
|
HTTP_HEADER__KG_QUERY_WHERE_SQL_04: string;
|
|
565
564
|
HTTP_HEADER__KG_QUERY_WHERE_SQL_05: string;
|
|
@@ -580,9 +579,6 @@ declare const KG: {
|
|
|
580
579
|
ES_ES: import("@kengic/core.core/src/model").IKgLocale;
|
|
581
580
|
FR_FR: import("@kengic/core.core/src/model").IKgLocale;
|
|
582
581
|
KM_KH: import("@kengic/core.core/src/model").IKgLocale;
|
|
583
|
-
/**
|
|
584
|
-
* 右上侧工具栏.
|
|
585
|
-
*/
|
|
586
582
|
KO_KR: import("@kengic/core.core/src/model").IKgLocale;
|
|
587
583
|
TH_TH: import("@kengic/core.core/src/model").IKgLocale;
|
|
588
584
|
VI_VN: import("@kengic/core.core/src/model").IKgLocale;
|
|
@@ -666,9 +662,7 @@ declare const KG_CONST: {
|
|
|
666
662
|
default: boolean; /**
|
|
667
663
|
* 依赖注入.
|
|
668
664
|
*/
|
|
669
|
-
};
|
|
670
|
-
* 依赖注入.
|
|
671
|
-
*/
|
|
665
|
+
};
|
|
672
666
|
kg$KgCanvasToolbarButtonMode$IsAvailable: {
|
|
673
667
|
type: import("vue").PropType<boolean>;
|
|
674
668
|
default: boolean;
|
|
@@ -1122,7 +1116,9 @@ declare const KG_CONST: {
|
|
|
1122
1116
|
DYNAMIC_QUERY_OPERATOR__IN: string;
|
|
1123
1117
|
DYNAMIC_QUERY_OPERATOR__LT: string;
|
|
1124
1118
|
DYNAMIC_QUERY_OPERATOR__LTE: string;
|
|
1125
|
-
DYNAMIC_QUERY_OPERATOR__NE: string;
|
|
1119
|
+
DYNAMIC_QUERY_OPERATOR__NE: string; /**
|
|
1120
|
+
* 数据库的类型--SQLSERVER.
|
|
1121
|
+
*/
|
|
1126
1122
|
DYNAMIC_QUERY_OPERATOR__NOT_EMPTY: string;
|
|
1127
1123
|
DYNAMIC_QUERY_OPERATOR__START_WITH: string; /** @deprecated 已废弃, 请使用 KG.DESCRIPTION_KEY__KG */
|
|
1128
1124
|
HTTP_HEADER__KG_BUTTON_VAR_NAME: string;
|
|
@@ -1143,10 +1139,9 @@ declare const KG_CONST: {
|
|
|
1143
1139
|
HTTP_HEADER__KG_QUERY_VALUE_RECORD: string;
|
|
1144
1140
|
HTTP_HEADER__KG_QUERY_WHERE_SQL: string;
|
|
1145
1141
|
HTTP_HEADER__KG_QUERY_WHERE_SQL_01: string;
|
|
1146
|
-
/**
|
|
1147
|
-
*
|
|
1142
|
+
HTTP_HEADER__KG_QUERY_WHERE_SQL_02: string; /**
|
|
1143
|
+
* 左下侧面板.
|
|
1148
1144
|
*/
|
|
1149
|
-
HTTP_HEADER__KG_QUERY_WHERE_SQL_02: string;
|
|
1150
1145
|
HTTP_HEADER__KG_QUERY_WHERE_SQL_03: string;
|
|
1151
1146
|
HTTP_HEADER__KG_QUERY_WHERE_SQL_04: string;
|
|
1152
1147
|
HTTP_HEADER__KG_QUERY_WHERE_SQL_05: string;
|
|
@@ -1167,9 +1162,6 @@ declare const KG_CONST: {
|
|
|
1167
1162
|
ES_ES: import("@kengic/core.core/src/model").IKgLocale;
|
|
1168
1163
|
FR_FR: import("@kengic/core.core/src/model").IKgLocale;
|
|
1169
1164
|
KM_KH: import("@kengic/core.core/src/model").IKgLocale;
|
|
1170
|
-
/**
|
|
1171
|
-
* 右上侧工具栏.
|
|
1172
|
-
*/
|
|
1173
1165
|
KO_KR: import("@kengic/core.core/src/model").IKgLocale;
|
|
1174
1166
|
TH_TH: import("@kengic/core.core/src/model").IKgLocale;
|
|
1175
1167
|
VI_VN: import("@kengic/core.core/src/model").IKgLocale;
|
|
@@ -1851,7 +1843,7 @@ interface IKgVarConfigLookupProperties {
|
|
|
1851
1843
|
/**
|
|
1852
1844
|
* 查找弹窗组件的参数.
|
|
1853
1845
|
*/
|
|
1854
|
-
KgModal?:
|
|
1846
|
+
KgModal?: IKgModalProps;
|
|
1855
1847
|
}
|
|
1856
1848
|
/**
|
|
1857
1849
|
* <p>额外的配置属性. 对应 {@link VarConfigPossibility#props} 字段.</p>
|
|
@@ -8,7 +8,7 @@ declare const getProps: () => {
|
|
|
8
8
|
onKgOk: PropType<() => void>;
|
|
9
9
|
'onUpdate:kgVisible': PropType<(value: boolean) => void>;
|
|
10
10
|
};
|
|
11
|
-
export declare type
|
|
11
|
+
export declare type IKgPageDdaCreateProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
12
12
|
/**
|
|
13
13
|
* 系统管理--DDA--创建.
|
|
14
14
|
*/
|
|
@@ -11,7 +11,7 @@ declare const getProps: () => {
|
|
|
11
11
|
*/
|
|
12
12
|
index: PropType<number>;
|
|
13
13
|
};
|
|
14
|
-
export declare type
|
|
14
|
+
export declare type IKgSqlClientResultTabProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
|
15
15
|
/**
|
|
16
16
|
* <p>数据库客户端:执行结果的标签页.</p>
|
|
17
17
|
*/
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 上传父路径
|
|
3
|
+
*/
|
|
4
|
+
export declare const uploadUrl: string;
|
|
5
|
+
/**
|
|
6
|
+
* 职务列表
|
|
7
|
+
* @param params
|
|
8
|
+
*/
|
|
9
|
+
export declare const getPositionList: (params: any) => Promise<any>;
|
|
10
|
+
/**
|
|
11
|
+
* 用户列表
|
|
12
|
+
* @param params
|
|
13
|
+
*/
|
|
14
|
+
export declare const getUserList: (params: any) => Promise<any>;
|
|
15
|
+
/**
|
|
16
|
+
* 角色列表
|
|
17
|
+
* @param params
|
|
18
|
+
*/
|
|
19
|
+
export declare const getRoleList: (params: any) => Promise<any>;
|
|
20
|
+
/**
|
|
21
|
+
* 异步获取部门树列表
|
|
22
|
+
*/
|
|
23
|
+
export declare const queryDepartTreeSync: (params?: any) => Promise<any>;
|
|
24
|
+
/**
|
|
25
|
+
* 获取部门树列表
|
|
26
|
+
*/
|
|
27
|
+
export declare const queryTreeList: (params?: any) => Promise<any>;
|
|
28
|
+
/**
|
|
29
|
+
* 分类字典树控件 加载节点
|
|
30
|
+
*/
|
|
31
|
+
export declare const loadTreeData: (params?: any) => Promise<any>;
|
|
32
|
+
/**
|
|
33
|
+
* 根据字典code加载字典text
|
|
34
|
+
*/
|
|
35
|
+
export declare const loadDictItem: (params?: any) => Promise<any>;
|
|
36
|
+
/**
|
|
37
|
+
* 根据字典code加载字典text
|
|
38
|
+
*/
|
|
39
|
+
export declare const getDictItems: (dictCode: any) => Promise<any>;
|
|
40
|
+
/**
|
|
41
|
+
* 部门用户modal选择列表加载list
|
|
42
|
+
*/
|
|
43
|
+
export declare const getTableList: (params: any) => Promise<any>;
|
|
44
|
+
/**
|
|
45
|
+
* 加载全部分类字典数据
|
|
46
|
+
*/
|
|
47
|
+
export declare const loadCategoryData: (params: any) => Promise<any>;
|
|
48
|
+
/**
|
|
49
|
+
* 文件上传
|
|
50
|
+
*/
|
|
51
|
+
export declare const uploadFile: (params: any, success: any) => Promise<any>;
|
|
52
|
+
/**
|
|
53
|
+
* 下载文件
|
|
54
|
+
* @param url 文件路径
|
|
55
|
+
* @param fileName 文件名
|
|
56
|
+
* @param parameter
|
|
57
|
+
* @returns {*}
|
|
58
|
+
*/
|
|
59
|
+
export declare const downloadFile: (url: any, fileName?: any, parameter?: any) => Promise<void>;
|
|
60
|
+
/**
|
|
61
|
+
* 下载文件 用于excel导出
|
|
62
|
+
* @param url
|
|
63
|
+
* @param parameter
|
|
64
|
+
* @returns {*}
|
|
65
|
+
*/
|
|
66
|
+
export declare const getFileblob: (url: string, parameter: any) => Promise<any>;
|
|
67
|
+
/**
|
|
68
|
+
* 【用于评论功能】自定义文件上传-方法
|
|
69
|
+
*/
|
|
70
|
+
export declare const uploadMyFile: (url: string, data: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -16,6 +16,7 @@ export * from './web/useAppInject';
|
|
|
16
16
|
export * from './web/useContentHeight';
|
|
17
17
|
export * from './web/useCopyToClipboard';
|
|
18
18
|
export * from './web/useDesign';
|
|
19
|
+
export * from './web/useMessage';
|
|
19
20
|
export * from './web/usePage';
|
|
20
21
|
export * from './web/usePagination';
|
|
21
22
|
export * from './web/useWebSocket';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { ModalFunc, ModalFuncProps } from 'ant-design-vue/lib/modal/Modal';
|
|
2
|
+
import { ConfigProps, NotificationArgsProps } from 'ant-design-vue/lib/notification';
|
|
3
|
+
interface NotifyApi {
|
|
4
|
+
info(config: NotificationArgsProps): void;
|
|
5
|
+
success(config: NotificationArgsProps): void;
|
|
6
|
+
error(config: NotificationArgsProps): void;
|
|
7
|
+
warn(config: NotificationArgsProps): void;
|
|
8
|
+
warning(config: NotificationArgsProps): void;
|
|
9
|
+
open(args: NotificationArgsProps): void;
|
|
10
|
+
close(key: String): void;
|
|
11
|
+
config(options: ConfigProps): void;
|
|
12
|
+
destroy(): void;
|
|
13
|
+
}
|
|
14
|
+
interface ModalOptionsEx extends Omit<ModalFuncProps, 'iconType'> {
|
|
15
|
+
iconType: 'warning' | 'success' | 'error' | 'info';
|
|
16
|
+
}
|
|
17
|
+
declare type ModalOptionsPartial = Partial<ModalOptionsEx> & Pick<ModalOptionsEx, 'content'>;
|
|
18
|
+
/**
|
|
19
|
+
* @description: Create confirmation box
|
|
20
|
+
*/
|
|
21
|
+
declare function createConfirm(options: ModalOptionsEx): ReturnType<ModalFunc>;
|
|
22
|
+
declare function createSuccessModal(options: ModalOptionsPartial): {
|
|
23
|
+
destroy: () => void;
|
|
24
|
+
update: (newConfig: ModalFuncProps) => void;
|
|
25
|
+
};
|
|
26
|
+
declare function createErrorModal(options: ModalOptionsPartial): {
|
|
27
|
+
destroy: () => void;
|
|
28
|
+
update: (newConfig: ModalFuncProps) => void;
|
|
29
|
+
};
|
|
30
|
+
declare function createWarningModal(options: ModalOptionsPartial): {
|
|
31
|
+
destroy: () => void;
|
|
32
|
+
update: (newConfig: ModalFuncProps) => void;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* @description: message
|
|
36
|
+
*/
|
|
37
|
+
declare function useMessage(): {
|
|
38
|
+
createMessage: import("ant-design-vue/lib/message").MessageApi;
|
|
39
|
+
notification: NotifyApi;
|
|
40
|
+
createConfirm: typeof createConfirm;
|
|
41
|
+
createSuccessModal: typeof createSuccessModal;
|
|
42
|
+
createErrorModal: typeof createErrorModal;
|
|
43
|
+
createWarningModal: typeof createWarningModal;
|
|
44
|
+
};
|
|
45
|
+
export { useMessage };
|
|
46
|
+
export type { ModalOptionsEx, ModalOptionsPartial, NotifyApi };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ErrorLogInfo } from '../../../types';
|
|
2
|
+
export interface ErrorLogState {
|
|
3
|
+
errorLogInfoList: Nullable<ErrorLogInfo[]>;
|
|
4
|
+
errorLogListCount: number;
|
|
5
|
+
}
|
|
6
|
+
export declare const useErrorLogStore: import("pinia").StoreDefinition<"app-error-log", ErrorLogState, {
|
|
7
|
+
getErrorLogInfoList(): ErrorLogInfo[];
|
|
8
|
+
getErrorLogListCount(): number;
|
|
9
|
+
}, {
|
|
10
|
+
addErrorLogInfo(info: ErrorLogInfo): void;
|
|
11
|
+
setErrorLogListCount(count: number): void;
|
|
12
|
+
/**
|
|
13
|
+
* Triggered after ajax request error
|
|
14
|
+
* @param error
|
|
15
|
+
* @returns
|
|
16
|
+
*/
|
|
17
|
+
addAjaxErrorInfo(error: any): void;
|
|
18
|
+
}>;
|
|
19
|
+
export declare function useErrorLogStoreWithOut(): import("pinia").Store<"app-error-log", ErrorLogState, {
|
|
20
|
+
getErrorLogInfoList(): ErrorLogInfo[];
|
|
21
|
+
getErrorLogListCount(): number;
|
|
22
|
+
}, {
|
|
23
|
+
addErrorLogInfo(info: ErrorLogInfo): void;
|
|
24
|
+
setErrorLogListCount(count: number): void;
|
|
25
|
+
/**
|
|
26
|
+
* Triggered after ajax request error
|
|
27
|
+
* @param error
|
|
28
|
+
* @returns
|
|
29
|
+
*/
|
|
30
|
+
addAjaxErrorInfo(error: any): void;
|
|
31
|
+
}>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
2
|
+
import { RequestOptions, UploadFileCallBack, UploadFileParams } from '../../../../types';
|
|
3
|
+
import { CreateAxiosOptions } from './axiosTransform';
|
|
4
|
+
/**
|
|
5
|
+
* @description: axios module
|
|
6
|
+
*/
|
|
7
|
+
export declare class VAxios {
|
|
8
|
+
private axiosInstance;
|
|
9
|
+
private readonly options;
|
|
10
|
+
constructor(options: CreateAxiosOptions);
|
|
11
|
+
/**
|
|
12
|
+
* @description: Create axios instance
|
|
13
|
+
*/
|
|
14
|
+
private createAxios;
|
|
15
|
+
private getTransform;
|
|
16
|
+
getAxios(): AxiosInstance;
|
|
17
|
+
/**
|
|
18
|
+
* @description: Reconfigure axios
|
|
19
|
+
*/
|
|
20
|
+
configAxios(config: CreateAxiosOptions): void;
|
|
21
|
+
/**
|
|
22
|
+
* @description: Set general header
|
|
23
|
+
*/
|
|
24
|
+
setHeader(headers: any): void;
|
|
25
|
+
/**
|
|
26
|
+
* @description: Interceptor configuration
|
|
27
|
+
*/
|
|
28
|
+
private setupInterceptors;
|
|
29
|
+
/**
|
|
30
|
+
* 文件上传
|
|
31
|
+
*/
|
|
32
|
+
uploadFile<T = any>(config: AxiosRequestConfig, params: UploadFileParams, callback?: UploadFileCallBack): Promise<any>;
|
|
33
|
+
supportFormData(config: AxiosRequestConfig): AxiosRequestConfig<any>;
|
|
34
|
+
get<T = any>(config: AxiosRequestConfig, options?: RequestOptions): Promise<T>;
|
|
35
|
+
post<T = any>(config: AxiosRequestConfig, options?: RequestOptions): Promise<T>;
|
|
36
|
+
put<T = any>(config: AxiosRequestConfig, options?: RequestOptions): Promise<T>;
|
|
37
|
+
delete<T = any>(config: AxiosRequestConfig, options?: RequestOptions): Promise<T>;
|
|
38
|
+
request<T = any>(config: AxiosRequestConfig, options?: RequestOptions): Promise<T>;
|
|
39
|
+
/**
|
|
40
|
+
* 【用于评论功能】自定义文件上传-请求
|
|
41
|
+
* @param url
|
|
42
|
+
* @param formData
|
|
43
|
+
*/
|
|
44
|
+
uploadMyFile<T = any>(url: string, formData: any): Promise<AxiosResponse<T, any>>;
|
|
45
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
+
declare const getPendingUrl: (config: AxiosRequestConfig) => string;
|
|
3
|
+
declare class AxiosCanceler {
|
|
4
|
+
/**
|
|
5
|
+
* Add request
|
|
6
|
+
* @param {Object} config
|
|
7
|
+
*/
|
|
8
|
+
addPending(config: AxiosRequestConfig): void;
|
|
9
|
+
/**
|
|
10
|
+
* @description: Clear all pending
|
|
11
|
+
*/
|
|
12
|
+
removeAllPending(): void;
|
|
13
|
+
/**
|
|
14
|
+
* Removal request
|
|
15
|
+
* @param {Object} config
|
|
16
|
+
*/
|
|
17
|
+
removePending(config: AxiosRequestConfig): void;
|
|
18
|
+
/**
|
|
19
|
+
* @description: reset
|
|
20
|
+
*/
|
|
21
|
+
reset(): void;
|
|
22
|
+
}
|
|
23
|
+
export { getPendingUrl, AxiosCanceler };
|