@kengic/vue 0.26.5-beta.1 → 0.26.5-beta.10
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/fit-screen-outline.7341560f.mjs +8 -0
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +22388 -14372
- package/dist/one-to-one-outlined.4f97e62a.mjs +8 -0
- package/dist/reload-outlined.abae07b1.mjs +8 -0
- package/dist/src/apis/WMS/Controllers/DescriptionController/List.d.ts +3 -1
- package/dist/src/apis/WMS/Controllers/WorkstationController/List.d.ts +25 -0
- package/dist/src/apis/WMS/Controllers/WorkstationController/index.d.ts +1 -0
- package/dist/src/apis/WMS/Controllers/index.d.ts +1 -0
- package/dist/src/apis/WMS/models.d.ts +72 -0
- package/dist/src/components/KgAppSelect/index.store.d.ts +2 -2
- package/dist/src/components/KgButton/index.store.d.ts +2 -2
- package/dist/src/components/KgCanvas/KgCanvas.ContextMenu.d.ts +104 -0
- package/dist/src/components/KgCanvas/KgCanvas.d.ts +122 -0
- package/dist/src/components/KgCanvas/KgCanvas.service.d.ts +35 -0
- package/dist/src/components/KgCanvas/index.d.ts +4 -0
- package/dist/src/components/KgCanvas/index.hooks.d.ts +49 -0
- package/dist/src/components/KgCanvas/index.store.d.ts +201 -0
- package/dist/src/components/KgForm/index.store.d.ts +2 -2
- package/dist/src/components/KgSearch/index.store.d.ts +2 -2
- package/dist/src/components/KgStation/index.hooks.d.ts +2 -1
- package/dist/src/components/KgStation/index.store.d.ts +1 -14
- package/dist/src/components/KgSubmit/index.store.d.ts +2 -2
- package/dist/src/components/KgTable/index.store.d.ts +2 -2
- package/dist/src/components/KgVar/index.store.d.ts +2 -2
- package/dist/src/components/KgWarehouse/index.store.d.ts +2 -2
- package/dist/src/components/index.d.ts +2 -0
- package/dist/src/config/index.store.d.ts +5 -5
- package/dist/src/services/http-client.d.ts +54 -19
- package/package.json +5 -7
@@ -0,0 +1,8 @@
|
|
1
|
+
const c = {
|
2
|
+
width: 1024,
|
3
|
+
height: 1024,
|
4
|
+
body: '<path fill="currentColor" d="M316 672h60c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8zm196-50c22.1 0 40-17.9 40-39c0-23.1-17.9-41-40-41s-40 17.9-40 41c0 21.1 17.9 39 40 39zm0-140c22.1 0 40-17.9 40-39c0-23.1-17.9-41-40-41s-40 17.9-40 41c0 21.1 17.9 39 40 39z"/><path fill="currentColor" d="M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"/><path fill="currentColor" d="M648 672h60c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8z"/>'
|
5
|
+
};
|
6
|
+
export {
|
7
|
+
c as default
|
8
|
+
};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
const c = {
|
2
|
+
width: 1024,
|
3
|
+
height: 1024,
|
4
|
+
body: '<path fill="currentColor" d="m909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92C290 92 102.3 279.5 102 511.5C101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1c1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 0 0-10.1 4.8c-1.8 5-3.8 10-5.9 14.9c-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 0 1 655.9 829c-42.3 17.9-87.4 27-133.8 27c-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 0 1 279 755.2a342.16 342.16 0 0 1-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4c31.6-31.6 68.4-56.4 109.3-73.8c42.3-17.9 87.4-27 133.8-27c46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 0 1 109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"/>'
|
5
|
+
};
|
6
|
+
export {
|
7
|
+
c as default
|
8
|
+
};
|
@@ -20,6 +20,8 @@ export declare class ListQuery {
|
|
20
20
|
moddte?: string | null;
|
21
21
|
/** 短描述(ShortDescription). */
|
22
22
|
shortDsc?: string | null;
|
23
|
+
/** 短描述含列值(ShortDescriptionWithCodeValue). */
|
24
|
+
shortDscWithCodval?: string | null;
|
23
25
|
/** 顺序号(Sequence). */
|
24
26
|
srtseq?: number | null;
|
25
27
|
/** 系统定义. */
|
@@ -42,7 +44,7 @@ export declare class ListQuery {
|
|
42
44
|
* @param config 请求配置.
|
43
45
|
* @param option 请求选项.
|
44
46
|
*/
|
45
|
-
export declare function List(config?: IRequestConfig<ListQuery, {}>, option?: IRequestOptions): Promise<DEF.WMS.IPage<DEF.WMS.
|
47
|
+
export declare function List(config?: IRequestConfig<ListQuery, {}>, option?: IRequestOptions): Promise<DEF.WMS.IPage<DEF.WMS.DescriptionDTO>>;
|
46
48
|
export declare namespace List {
|
47
49
|
var method: "GET";
|
48
50
|
var url: string;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { IRequestConfig, IRequestOptions } from '../../../../services';
|
2
|
+
import * as DEF from '../../../def';
|
3
|
+
/** 请求参数. */
|
4
|
+
export declare class ListQuery {
|
5
|
+
/** 排序字段. */
|
6
|
+
column?: string | null;
|
7
|
+
/** 排序方式. */
|
8
|
+
order?: 'asc' | 'desc' | null;
|
9
|
+
/** 当前页数. */
|
10
|
+
pageNo?: number | null;
|
11
|
+
/** 每页条数. */
|
12
|
+
pageSize?: number | null;
|
13
|
+
constructor(obj?: ListQuery);
|
14
|
+
}
|
15
|
+
/**
|
16
|
+
* 工作站-分页列表查询
|
17
|
+
*
|
18
|
+
* @param config 请求配置.
|
19
|
+
* @param option 请求选项.
|
20
|
+
*/
|
21
|
+
export declare function List(config?: IRequestConfig<ListQuery, {}>, option?: IRequestOptions): Promise<DEF.WMS.IPage<DEF.WMS.WorkstationDTO>>;
|
22
|
+
export declare namespace List {
|
23
|
+
var method: "GET";
|
24
|
+
var url: string;
|
25
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { List, ListQuery } from './List';
|
@@ -8,3 +8,4 @@ export * as VarGridMasterController from './VarGridMasterController';
|
|
8
8
|
export * as VarProfileMasterController from './VarProfileMasterController';
|
9
9
|
export * as VarVariableController from './VarVariableController';
|
10
10
|
export * as WhController from './WhController';
|
11
|
+
export * as WorkstationController from './WorkstationController';
|
@@ -104,6 +104,36 @@ export declare class DescriptionBatchQuery {
|
|
104
104
|
codeValues?: Array<string> | null;
|
105
105
|
constructor(obj?: DescriptionBatchQuery);
|
106
106
|
}
|
107
|
+
/** 描述数据传输对象(DescriptionDTO). */
|
108
|
+
export declare class DescriptionDTO {
|
109
|
+
/** 列名(CodeName). */
|
110
|
+
codnam?: string | null;
|
111
|
+
/** 列值(CodeValue). */
|
112
|
+
codval?: string | null;
|
113
|
+
/** 模块(ProjectName). */
|
114
|
+
grpNam?: string | null;
|
115
|
+
/** id */
|
116
|
+
id?: string | null;
|
117
|
+
/** 长描述(LongDescription). */
|
118
|
+
lngDsc?: string | null;
|
119
|
+
/** 语言(LocaleId). */
|
120
|
+
localeId?: string | null;
|
121
|
+
/** 修改用户编号 */
|
122
|
+
modUsrCod?: string | null;
|
123
|
+
/** 修改日期 */
|
124
|
+
moddte?: string | null;
|
125
|
+
/** 短描述(ShortDescription). */
|
126
|
+
shortDsc?: string | null;
|
127
|
+
/** 短描述含列值(ShortDescriptionWithCodeValue). */
|
128
|
+
shortDscWithCodval?: string | null;
|
129
|
+
/** 顺序号(Sequence). */
|
130
|
+
srtseq?: number | null;
|
131
|
+
/** 系统定义. */
|
132
|
+
sysDefFlg?: number | null;
|
133
|
+
/** 版本 */
|
134
|
+
version?: number | null;
|
135
|
+
constructor(obj?: DescriptionDTO);
|
136
|
+
}
|
107
137
|
/** 获取 SQL 查询结果的元数据. */
|
108
138
|
export declare class GetResultSetMetadataFromSqlQuery {
|
109
139
|
/** SQL. */
|
@@ -933,6 +963,48 @@ export declare class WhDTO {
|
|
933
963
|
whId?: string | null;
|
934
964
|
constructor(obj?: WhDTO);
|
935
965
|
}
|
966
|
+
/** 工作站区域数据传输对象 */
|
967
|
+
export declare class WorkstationAreaDTO {
|
968
|
+
/** 主键 */
|
969
|
+
id?: string | null;
|
970
|
+
/** 创建日期 */
|
971
|
+
insDt?: string | null;
|
972
|
+
/** 创建用户 */
|
973
|
+
insUsrId?: string | null;
|
974
|
+
/** 修改日期 */
|
975
|
+
modUsrId?: string | null;
|
976
|
+
/** 修改用户 */
|
977
|
+
moddte?: string | null;
|
978
|
+
/** 仓库 */
|
979
|
+
whId?: string | null;
|
980
|
+
/** 工作区 */
|
981
|
+
wrkare?: string | null;
|
982
|
+
/** 工作区描述 */
|
983
|
+
wrkareDsc?: string | null;
|
984
|
+
constructor(obj?: WorkstationAreaDTO);
|
985
|
+
}
|
986
|
+
/** 工作站数据传输对象 */
|
987
|
+
export declare class WorkstationDTO {
|
988
|
+
/** 工作站 */
|
989
|
+
devcod?: string | null;
|
990
|
+
/** 主工作区 */
|
991
|
+
hmewrkare?: string | null;
|
992
|
+
/** 主键 */
|
993
|
+
id?: string | null;
|
994
|
+
/** 创建日期 */
|
995
|
+
insDt?: string | null;
|
996
|
+
/** 创建用户 */
|
997
|
+
insUsrId?: string | null;
|
998
|
+
/** 修改日期 */
|
999
|
+
modUsrId?: string | null;
|
1000
|
+
/** 修改用户 */
|
1001
|
+
moddte?: string | null;
|
1002
|
+
/** 仓库 */
|
1003
|
+
whId?: string | null;
|
1004
|
+
/** 工作站与工作区域关系 */
|
1005
|
+
workstationAreas?: Array<WorkstationAreaDTO> | null;
|
1006
|
+
constructor(obj?: WorkstationDTO);
|
1007
|
+
}
|
936
1008
|
/**
|
937
1009
|
* 获取对象的属性名数组.
|
938
1010
|
* @param obj 对象.
|
@@ -33,7 +33,7 @@ export interface IUseKgAppSelectStoreActions {
|
|
33
33
|
* @param event 事件名称.
|
34
34
|
* @param listener 事件监听函数.
|
35
35
|
*/
|
36
|
-
addEventListener(event: IKgAppSelectEvent, listener:
|
36
|
+
addEventListener(event: IKgAppSelectEvent, listener: any): void;
|
37
37
|
/**
|
38
38
|
* 触发事件.
|
39
39
|
* @param event 事件名称.
|
@@ -67,7 +67,7 @@ export interface IUseKgAppSelectStoreActions {
|
|
67
67
|
* @param event 事件名称.
|
68
68
|
* @param listener 事件监听函数.
|
69
69
|
*/
|
70
|
-
removeEventListener(event: IKgAppSelectEvent, listener?:
|
70
|
+
removeEventListener(event: IKgAppSelectEvent, listener?: any): void;
|
71
71
|
}
|
72
72
|
export declare type IUseKgAppSelectStore = StoreDefinition<'KgAppSelect', IUseKgAppSelectStoreState, IUseKgAppSelectStoreGetters, IUseKgAppSelectStoreActions>;
|
73
73
|
export declare type IKgAppSelectStore = ReturnType<IUseKgAppSelectStore>;
|
@@ -73,7 +73,7 @@ export interface IUseKgButtonStoreActions {
|
|
73
73
|
* @param event 事件名称.
|
74
74
|
* @param listener 事件监听函数.
|
75
75
|
*/
|
76
|
-
addEventListener(formID: string, event: IKgButtonEvent, listener:
|
76
|
+
addEventListener(formID: string, event: IKgButtonEvent, listener: any): void;
|
77
77
|
/**
|
78
78
|
* <p>手动点击某个按钮.</p>
|
79
79
|
* <p>调用此方法相当于手动触发某个按钮的点击事件.</p>
|
@@ -97,7 +97,7 @@ export interface IUseKgButtonStoreActions {
|
|
97
97
|
* @param event 事件名称.
|
98
98
|
* @param listener 事件监听函数.
|
99
99
|
*/
|
100
|
-
removeEventListener(formID: string, event: IKgButtonEvent, listener?:
|
100
|
+
removeEventListener(formID: string, event: IKgButtonEvent, listener?: any): void;
|
101
101
|
setCurrentButton(formID: string, param: {
|
102
102
|
type?: KG__VAR_BUTTON__TYPE;
|
103
103
|
varName?: string | null;
|
@@ -0,0 +1,104 @@
|
|
1
|
+
import { Q } from '@thymine/xunee';
|
2
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
3
|
+
import './KgCanvas.css';
|
4
|
+
/**
|
5
|
+
* 菜单属性.
|
6
|
+
*/
|
7
|
+
export declare type IKgCanvasContextMenu = {
|
8
|
+
/** 菜单编码. */
|
9
|
+
code?: string;
|
10
|
+
/** 菜单回调方法. */
|
11
|
+
handler?: (param: {
|
12
|
+
graph: Q.Graph;
|
13
|
+
element?: Q.Element;
|
14
|
+
elementUI?: Q.ElementUI;
|
15
|
+
ui?: Q.BaseUI;
|
16
|
+
}) => void;
|
17
|
+
/** 菜单图标. */
|
18
|
+
icon?: string;
|
19
|
+
/** 是否禁用. */
|
20
|
+
isDisabled?: boolean;
|
21
|
+
/** 是否是分割线. */
|
22
|
+
isDivider?: boolean;
|
23
|
+
/**
|
24
|
+
* 菜单标题.
|
25
|
+
*/
|
26
|
+
name?: string;
|
27
|
+
};
|
28
|
+
export declare const getProps: () => {
|
29
|
+
kgElement: PropType<Q.Element<any>>;
|
30
|
+
kgElementUI: PropType<Q.ElementUI>;
|
31
|
+
kgGraph: PropType<Q.Graph>;
|
32
|
+
/**
|
33
|
+
* 是否显示.
|
34
|
+
*
|
35
|
+
* @default false
|
36
|
+
*/
|
37
|
+
kgIsVisible: {
|
38
|
+
type: PropType<boolean>;
|
39
|
+
default: boolean;
|
40
|
+
};
|
41
|
+
/**
|
42
|
+
* 菜单.
|
43
|
+
*/
|
44
|
+
kgMenus: PropType<IKgCanvasContextMenu[]>;
|
45
|
+
/**
|
46
|
+
* 鼠标右键点击事件对象.
|
47
|
+
*/
|
48
|
+
kgMouseEvent: PropType<MouseEvent>;
|
49
|
+
kgUi: PropType<Q.BaseUI>;
|
50
|
+
'onUpdate:kgIsVisible': PropType<(value: boolean) => void>;
|
51
|
+
};
|
52
|
+
export declare type KgCanvasContextMenuProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
53
|
+
declare const _default: import("vue").DefineComponent<{
|
54
|
+
kgElement: PropType<Q.Element<any>>;
|
55
|
+
kgElementUI: PropType<Q.ElementUI>;
|
56
|
+
kgGraph: PropType<Q.Graph>;
|
57
|
+
/**
|
58
|
+
* 是否显示.
|
59
|
+
*
|
60
|
+
* @default false
|
61
|
+
*/
|
62
|
+
kgIsVisible: {
|
63
|
+
type: PropType<boolean>;
|
64
|
+
default: boolean;
|
65
|
+
};
|
66
|
+
/**
|
67
|
+
* 菜单.
|
68
|
+
*/
|
69
|
+
kgMenus: PropType<IKgCanvasContextMenu[]>;
|
70
|
+
/**
|
71
|
+
* 鼠标右键点击事件对象.
|
72
|
+
*/
|
73
|
+
kgMouseEvent: PropType<MouseEvent>;
|
74
|
+
kgUi: PropType<Q.BaseUI>;
|
75
|
+
'onUpdate:kgIsVisible': PropType<(value: boolean) => void>;
|
76
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:kgIsVisible"[], "update:kgIsVisible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
77
|
+
kgElement: PropType<Q.Element<any>>;
|
78
|
+
kgElementUI: PropType<Q.ElementUI>;
|
79
|
+
kgGraph: PropType<Q.Graph>;
|
80
|
+
/**
|
81
|
+
* 是否显示.
|
82
|
+
*
|
83
|
+
* @default false
|
84
|
+
*/
|
85
|
+
kgIsVisible: {
|
86
|
+
type: PropType<boolean>;
|
87
|
+
default: boolean;
|
88
|
+
};
|
89
|
+
/**
|
90
|
+
* 菜单.
|
91
|
+
*/
|
92
|
+
kgMenus: PropType<IKgCanvasContextMenu[]>;
|
93
|
+
/**
|
94
|
+
* 鼠标右键点击事件对象.
|
95
|
+
*/
|
96
|
+
kgMouseEvent: PropType<MouseEvent>;
|
97
|
+
kgUi: PropType<Q.BaseUI>;
|
98
|
+
'onUpdate:kgIsVisible': PropType<(value: boolean) => void>;
|
99
|
+
}>> & {
|
100
|
+
"onUpdate:kgIsVisible"?: ((...args: any[]) => any) | undefined;
|
101
|
+
}, {
|
102
|
+
kgIsVisible: boolean;
|
103
|
+
}>;
|
104
|
+
export default _default;
|
@@ -0,0 +1,122 @@
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
2
|
+
import './KgCanvas.css';
|
3
|
+
export declare const getProps: () => {
|
4
|
+
/**
|
5
|
+
* 是否启用网格背景.
|
6
|
+
*
|
7
|
+
* @default false
|
8
|
+
*/
|
9
|
+
kgIsGridBackground: {
|
10
|
+
type: PropType<boolean>;
|
11
|
+
default: boolean;
|
12
|
+
};
|
13
|
+
/**
|
14
|
+
* 是否启用预览面板.
|
15
|
+
*
|
16
|
+
* @default false
|
17
|
+
*/
|
18
|
+
kgIsEnableOverview: {
|
19
|
+
type: PropType<boolean>;
|
20
|
+
default: boolean;
|
21
|
+
};
|
22
|
+
/**
|
23
|
+
* 是否可以编辑.
|
24
|
+
*
|
25
|
+
* @default false
|
26
|
+
*/
|
27
|
+
kgIsEditable: {
|
28
|
+
type: PropType<boolean>;
|
29
|
+
default: boolean;
|
30
|
+
};
|
31
|
+
/**
|
32
|
+
* 是否支持拖动大小.
|
33
|
+
*
|
34
|
+
* @default false
|
35
|
+
*/
|
36
|
+
kgIsResizable: {
|
37
|
+
type: PropType<boolean>;
|
38
|
+
default: boolean;
|
39
|
+
};
|
40
|
+
};
|
41
|
+
export declare type KgCanvasProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
42
|
+
declare const _default: import("vue").DefineComponent<{
|
43
|
+
/**
|
44
|
+
* 是否启用网格背景.
|
45
|
+
*
|
46
|
+
* @default false
|
47
|
+
*/
|
48
|
+
kgIsGridBackground: {
|
49
|
+
type: PropType<boolean>;
|
50
|
+
default: boolean;
|
51
|
+
};
|
52
|
+
/**
|
53
|
+
* 是否启用预览面板.
|
54
|
+
*
|
55
|
+
* @default false
|
56
|
+
*/
|
57
|
+
kgIsEnableOverview: {
|
58
|
+
type: PropType<boolean>;
|
59
|
+
default: boolean;
|
60
|
+
};
|
61
|
+
/**
|
62
|
+
* 是否可以编辑.
|
63
|
+
*
|
64
|
+
* @default false
|
65
|
+
*/
|
66
|
+
kgIsEditable: {
|
67
|
+
type: PropType<boolean>;
|
68
|
+
default: boolean;
|
69
|
+
};
|
70
|
+
/**
|
71
|
+
* 是否支持拖动大小.
|
72
|
+
*
|
73
|
+
* @default false
|
74
|
+
*/
|
75
|
+
kgIsResizable: {
|
76
|
+
type: PropType<boolean>;
|
77
|
+
default: boolean;
|
78
|
+
};
|
79
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
80
|
+
/**
|
81
|
+
* 是否启用网格背景.
|
82
|
+
*
|
83
|
+
* @default false
|
84
|
+
*/
|
85
|
+
kgIsGridBackground: {
|
86
|
+
type: PropType<boolean>;
|
87
|
+
default: boolean;
|
88
|
+
};
|
89
|
+
/**
|
90
|
+
* 是否启用预览面板.
|
91
|
+
*
|
92
|
+
* @default false
|
93
|
+
*/
|
94
|
+
kgIsEnableOverview: {
|
95
|
+
type: PropType<boolean>;
|
96
|
+
default: boolean;
|
97
|
+
};
|
98
|
+
/**
|
99
|
+
* 是否可以编辑.
|
100
|
+
*
|
101
|
+
* @default false
|
102
|
+
*/
|
103
|
+
kgIsEditable: {
|
104
|
+
type: PropType<boolean>;
|
105
|
+
default: boolean;
|
106
|
+
};
|
107
|
+
/**
|
108
|
+
* 是否支持拖动大小.
|
109
|
+
*
|
110
|
+
* @default false
|
111
|
+
*/
|
112
|
+
kgIsResizable: {
|
113
|
+
type: PropType<boolean>;
|
114
|
+
default: boolean;
|
115
|
+
};
|
116
|
+
}>>, {
|
117
|
+
kgIsGridBackground: boolean;
|
118
|
+
kgIsEnableOverview: boolean;
|
119
|
+
kgIsEditable: boolean;
|
120
|
+
kgIsResizable: boolean;
|
121
|
+
}>;
|
122
|
+
export default _default;
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { Q } from '@thymine/xunee';
|
2
|
+
import { Ref } from 'vue';
|
3
|
+
import { IKgCanvasContextMenu, KgCanvasContextMenuProps } from './KgCanvas.ContextMenu';
|
4
|
+
export declare type IKgCanvasElementProperties = {
|
5
|
+
/**
|
6
|
+
* 编码, 全局唯一.
|
7
|
+
*/
|
8
|
+
key?: string;
|
9
|
+
/**
|
10
|
+
* 数据.
|
11
|
+
*/
|
12
|
+
data?: any;
|
13
|
+
/**
|
14
|
+
* 样式.
|
15
|
+
*/
|
16
|
+
style?: {
|
17
|
+
/**
|
18
|
+
* 鼠标划过时的指针样式.
|
19
|
+
*/
|
20
|
+
hoverCursor?: 'pointer' | 'default';
|
21
|
+
};
|
22
|
+
[index: string]: any;
|
23
|
+
};
|
24
|
+
export declare type IUseGlobalContextMenus = {
|
25
|
+
globalContextMenus: Array<IKgCanvasContextMenu>;
|
26
|
+
};
|
27
|
+
export declare function _useGlobalContextMenus(param: {
|
28
|
+
eid: string;
|
29
|
+
}): IUseGlobalContextMenus;
|
30
|
+
export declare type IUseResizeObserver = {};
|
31
|
+
export declare function _useResizeObserver(param: {
|
32
|
+
graph: () => Q.Graph | null;
|
33
|
+
kgCanvasContextMenuProps: Ref<KgCanvasContextMenuProps>;
|
34
|
+
kgCanvasRef: Ref<HTMLDivElement | null>;
|
35
|
+
}): IUseResizeObserver;
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import { IRemoveEventListenerHandler } from '../../consts';
|
2
|
+
import { IKgCanvasOnClickEventListener, IKgCanvasOnInitEventListener, IKgCanvasOnMouseEnterEventListener, IKgCanvasOnMouseLeaveEventListener, IKgCanvasOnMouseMoveEventListener, IKgCanvasOnReloadEventListener, IKgCanvasOnRightClickEventListener, IKgCanvasStore } from './index.store';
|
3
|
+
export declare type IUseKgCanvas = {
|
4
|
+
/**
|
5
|
+
* 监听事件: 单击鼠标左键.
|
6
|
+
* @param listener 事件监听函数.
|
7
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
8
|
+
*/
|
9
|
+
onClick(listener: IKgCanvasOnClickEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
10
|
+
/**
|
11
|
+
* 监听事件: 图形组件初始完成.
|
12
|
+
* @param listener 事件监听函数.
|
13
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
14
|
+
*/
|
15
|
+
onInit(listener: IKgCanvasOnInitEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
16
|
+
/**
|
17
|
+
* 监听事件: 鼠标进入.
|
18
|
+
* @param listener 事件监听函数.
|
19
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
20
|
+
*/
|
21
|
+
onMouseEnter(listener: IKgCanvasOnMouseEnterEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
22
|
+
/**
|
23
|
+
* 监听事件: 鼠标离开.
|
24
|
+
* @param listener 事件监听函数.
|
25
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
26
|
+
*/
|
27
|
+
onMouseLeave(listener: IKgCanvasOnMouseLeaveEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
28
|
+
/**
|
29
|
+
* 监听事件: 鼠标移动.
|
30
|
+
* @param listener 事件监听函数.
|
31
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
32
|
+
*/
|
33
|
+
onMouseMove(listener: IKgCanvasOnMouseMoveEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
34
|
+
/**
|
35
|
+
* 监听事件: 重新加载.
|
36
|
+
* @param listener 事件监听函数.
|
37
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
38
|
+
*/
|
39
|
+
onReload(listener: IKgCanvasOnReloadEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
40
|
+
/**
|
41
|
+
* 监听事件: 单击鼠标右键.
|
42
|
+
* @param listener 事件监听函数.
|
43
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
44
|
+
*/
|
45
|
+
onRightClick(listener: IKgCanvasOnRightClickEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
46
|
+
/** 状态数据. */
|
47
|
+
store: IKgCanvasStore;
|
48
|
+
};
|
49
|
+
export declare function useKgCanvas(): IUseKgCanvas;
|