@kengic/vue 0.26.5-beta.6 → 0.26.5-beta.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
+ };
@@ -33,7 +33,7 @@ export interface IUseKgAppSelectStoreActions {
33
33
  * @param event 事件名称.
34
34
  * @param listener 事件监听函数.
35
35
  */
36
- addEventListener(event: IKgAppSelectEvent, listener: IKgAppSelectEventListener): void;
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?: IKgAppSelectEventListener): void;
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: IKgButtonEventListener): void;
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?: IKgButtonEventListener): void;
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;
@@ -1,4 +1,35 @@
1
1
  import { Q } from '@thymine/xunee';
2
2
  import { Ref } from 'vue';
3
+ import { IKgCanvasContextMenu, KgCanvasContextMenuProps } from './KgCanvas.ContextMenu';
4
+ export declare type IKgCanvasElementProperties = {
5
+ /**
6
+ * 编码, 全局唯一.
7
+ */
8
+ code?: 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;
3
30
  export declare type IUseResizeObserver = {};
4
- export declare function _useResizeObserver(kgCanvasRef: Ref<HTMLDivElement | null>, graph: () => Q.Graph | null): IUseResizeObserver;
31
+ export declare function _useResizeObserver(param: {
32
+ graph: () => Q.Graph | null;
33
+ kgCanvasContextMenuProps: Ref<KgCanvasContextMenuProps>;
34
+ kgCanvasRef: Ref<HTMLDivElement | null>;
35
+ }): IUseResizeObserver;
@@ -1,2 +1,4 @@
1
1
  export { default as KgCanvas } from './KgCanvas';
2
+ export { type IKgCanvasContextMenu } from './KgCanvas.ContextMenu';
2
3
  export * from './index.hooks';
4
+ export { type IKgCanvasElementProperties } from './KgCanvas.service';
@@ -1,12 +1,48 @@
1
1
  import { IRemoveEventListenerHandler } from '../../consts';
2
- import { IKgCanvasOnInitEventListener, IKgCanvasStore } from './index.store';
2
+ import { IKgCanvasOnClickEventListener, IKgCanvasOnInitEventListener, IKgCanvasOnMouseEnterEventListener, IKgCanvasOnMouseLeaveEventListener, IKgCanvasOnMouseMoveEventListener, IKgCanvasOnReloadEventListener, IKgCanvasOnRightClickEventListener, IKgCanvasStore } from './index.store';
3
3
  export declare type IUseKgCanvas = {
4
4
  /**
5
- * 监听事件: 初始完成.
5
+ * 监听事件: 单击鼠标左键.
6
+ * @param listener 事件监听函数.
7
+ * @param isOnce 是否只会触发一次. 默认为 undefined.
8
+ */
9
+ onClick(listener: IKgCanvasOnClickEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
10
+ /**
11
+ * 监听事件: 图形组件初始完成.
6
12
  * @param listener 事件监听函数.
7
13
  * @param isOnce 是否只会触发一次. 默认为 undefined.
8
14
  */
9
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;
10
46
  /** 状态数据. */
11
47
  store: IKgCanvasStore;
12
48
  };
@@ -1,30 +1,178 @@
1
1
  import { Q } from '@thymine/xunee';
2
2
  import { StoreDefinition } from 'pinia';
3
+ import { Ref } from 'vue';
3
4
  import { IKgEventListener } from '../../consts';
5
+ import { type IKgCanvasContextMenu } from './KgCanvas.ContextMenu';
4
6
  /**
5
7
  * 事件类型.
6
- * 'onInit': 初始完成
8
+ * 'onInit': 图形组件初始完成
9
+ * 'onReload': 重新加载
10
+ * 'onMouseMove': 鼠标移动
11
+ * 'onMouseEnter': 鼠标进入
12
+ * 'onMouseLeave': 鼠标离开
13
+ * 'onClick': 单击鼠标左键
14
+ * 'onRightClick': 单击鼠标右键
7
15
  */
8
- export declare type IKgCanvasEvent = 'onInit';
16
+ export declare type IKgCanvasEvent = 'onInit' | 'onReload' | 'onMouseMove' | 'onMouseEnter' | 'onMouseLeave' | 'onClick' | 'onRightClick';
9
17
  export declare type IKgCanvasOnInitEventListenerParameter = {
10
18
  /**
11
19
  * Q.
12
20
  */
13
21
  Q: typeof Q;
14
22
  /**
15
- * 图形组件元素标识.
23
+ * 图形组件对象.
24
+ */
25
+ graph: Q.Graph;
26
+ eid: string;
27
+ };
28
+ export declare type IKgCanvasOnInitEventListener = ((param: IKgCanvasOnInitEventListenerParameter) => Promise<boolean>) & IKgEventListener;
29
+ export declare type IKgCanvasOnRightClickEventListenerParameter = {
30
+ /**
31
+ * Q.
32
+ */
33
+ Q: typeof Q;
34
+ /**
35
+ * <p>右键菜单列表.</p>
36
+ * <p>用户可以直接修改该参数的值, 从而修改此次单击右键事件弹出的右键菜单.</p>
16
37
  */
38
+ contextMenus: Ref<Array<IKgCanvasContextMenu>>;
17
39
  eid: string;
40
+ /**
41
+ * 图元.
42
+ */
43
+ element?: Q.Element;
44
+ /**
45
+ * 图元组件.
46
+ */
47
+ elementUI?: Q.ElementUI;
18
48
  /**
19
49
  * 图形组件对象.
20
50
  */
21
51
  graph: Q.Graph;
52
+ /**
53
+ * 图元组件.
54
+ */
55
+ ui?: Q.BaseUI;
22
56
  };
23
- export declare type IKgCanvasOnInitEventListener = ((param: IKgCanvasOnInitEventListenerParameter) => Promise<boolean>) & IKgEventListener;
24
- export declare type IKgCanvasEventListenerParameter = IKgCanvasOnInitEventListenerParameter;
25
- export declare type IKgCanvasEventListener = IKgCanvasOnInitEventListener;
57
+ export declare type IKgCanvasOnRightClickEventListener = ((param: IKgCanvasOnRightClickEventListenerParameter) => Promise<boolean>) & IKgEventListener;
58
+ export declare type IKgCanvasOnReloadEventListenerParameter = {
59
+ /**
60
+ * Q.
61
+ */
62
+ Q: typeof Q;
63
+ eid: string;
64
+ /**
65
+ * 图形组件对象.
66
+ */
67
+ graph: Q.Graph;
68
+ };
69
+ export declare type IKgCanvasOnReloadEventListener = ((param: IKgCanvasOnReloadEventListenerParameter) => Promise<boolean>) & IKgEventListener;
70
+ export declare type IKgCanvasOnMouseMoveEventListenerParameter = {
71
+ /**
72
+ * Q.
73
+ */
74
+ Q: typeof Q;
75
+ eid: string;
76
+ /**
77
+ * 图元.
78
+ */
79
+ element?: Q.Element;
80
+ /**
81
+ * 图元组件.
82
+ */
83
+ elementUI?: Q.ElementUI;
84
+ /**
85
+ * 图形组件对象.
86
+ */
87
+ graph: Q.Graph;
88
+ /**
89
+ * 图元组件.
90
+ */
91
+ ui?: Q.BaseUI;
92
+ };
93
+ export declare type IKgCanvasOnMouseMoveEventListener = ((param: IKgCanvasOnMouseMoveEventListenerParameter) => Promise<boolean>) & IKgEventListener;
94
+ export declare type IKgCanvasOnMouseLeaveEventListenerParameter = {
95
+ /**
96
+ * Q.
97
+ */
98
+ Q: typeof Q;
99
+ eid: string;
100
+ /**
101
+ * 图元.
102
+ */
103
+ element?: Q.Element;
104
+ /**
105
+ * 图元组件.
106
+ */
107
+ elementUI?: Q.ElementUI;
108
+ /**
109
+ * 图形组件对象.
110
+ */
111
+ graph: Q.Graph;
112
+ /**
113
+ * 图元组件.
114
+ */
115
+ ui?: Q.BaseUI;
116
+ };
117
+ export declare type IKgCanvasOnMouseLeaveEventListener = ((param: IKgCanvasOnMouseLeaveEventListenerParameter) => Promise<boolean>) & IKgEventListener;
118
+ export declare type IKgCanvasOnMouseEnterEventListenerParameter = {
119
+ /**
120
+ * Q.
121
+ */
122
+ Q: typeof Q;
123
+ eid: string;
124
+ /**
125
+ * 图元.
126
+ */
127
+ element?: Q.Element;
128
+ /**
129
+ * 图元组件.
130
+ */
131
+ elementUI?: Q.ElementUI;
132
+ /**
133
+ * 图形组件对象.
134
+ */
135
+ graph: Q.Graph;
136
+ /**
137
+ * 图元组件.
138
+ */
139
+ ui?: Q.BaseUI;
140
+ };
141
+ export declare type IKgCanvasOnMouseEnterEventListener = ((param: IKgCanvasOnMouseEnterEventListenerParameter) => Promise<boolean>) & IKgEventListener;
142
+ export declare type IKgCanvasOnClickEventListenerParameter = {
143
+ /**
144
+ * Q.
145
+ */
146
+ Q: typeof Q;
147
+ eid: string;
148
+ /**
149
+ * 图元.
150
+ */
151
+ element?: Q.Element;
152
+ /**
153
+ * 图元组件.
154
+ */
155
+ elementUI?: Q.ElementUI;
156
+ /**
157
+ * 图形组件对象.
158
+ */
159
+ graph: Q.Graph;
160
+ /**
161
+ * 图元组件.
162
+ */
163
+ ui?: Q.BaseUI;
164
+ };
165
+ export declare type IKgCanvasOnClickEventListener = ((param: IKgCanvasOnClickEventListenerParameter) => Promise<boolean>) & IKgEventListener;
166
+ export declare type IKgCanvasEventListenerParameter = IKgCanvasOnInitEventListenerParameter | IKgCanvasOnRightClickEventListenerParameter | IKgCanvasOnReloadEventListenerParameter | IKgCanvasOnMouseMoveEventListenerParameter | IKgCanvasOnMouseEnterEventListenerParameter | IKgCanvasOnMouseLeaveEventListenerParameter | IKgCanvasOnClickEventListenerParameter;
167
+ export declare type IKgCanvasEventListener = IKgCanvasOnInitEventListener | IKgCanvasOnRightClickEventListener | IKgCanvasOnReloadEventListener | IKgCanvasOnMouseMoveEventListener | IKgCanvasOnMouseEnterEventListener | IKgCanvasOnMouseLeaveEventListener | IKgCanvasOnClickEventListener;
26
168
  export interface IUseKgCanvasStoreState {
169
+ onClickEventListenerMap: Map<string, Array<IKgCanvasOnClickEventListener>>;
27
170
  onInitEventListenerMap: Map<string, Array<IKgCanvasOnInitEventListener>>;
171
+ onMouseEnterEventListenerMap: Map<string, Array<IKgCanvasOnMouseEnterEventListener>>;
172
+ onMouseLeaveEventListenerMap: Map<string, Array<IKgCanvasOnMouseLeaveEventListener>>;
173
+ onMouseMoveEventListenerMap: Map<string, Array<IKgCanvasOnMouseMoveEventListener>>;
174
+ onReloadEventListenerMap: Map<string, Array<IKgCanvasOnReloadEventListener>>;
175
+ onRightClickEventListenerMap: Map<string, Array<IKgCanvasOnRightClickEventListener>>;
28
176
  }
29
177
  export interface IUseKgCanvasStoreGetters {
30
178
  }
@@ -34,7 +182,7 @@ export interface IUseKgCanvasStoreActions {
34
182
  * @param event 事件名称.
35
183
  * @param listener 事件监听函数.
36
184
  */
37
- addEventListener(event: IKgCanvasEvent, listener: IKgCanvasEventListener): void;
185
+ addEventListener(event: IKgCanvasEvent, listener: any): void;
38
186
  /**
39
187
  * 触发事件.
40
188
  * @param event 事件名称.
@@ -46,7 +194,7 @@ export interface IUseKgCanvasStoreActions {
46
194
  * @param event 事件名称.
47
195
  * @param listener 事件监听函数.
48
196
  */
49
- removeEventListener(event: IKgCanvasEvent, listener?: IKgCanvasEventListener): void;
197
+ removeEventListener(event: IKgCanvasEvent, listener?: any): void;
50
198
  }
51
199
  export declare type IUseKgCanvasStore = StoreDefinition<'KgCanvas', IUseKgCanvasStoreState, IUseKgCanvasStoreGetters, IUseKgCanvasStoreActions>;
52
200
  export declare type IKgCanvasStore = ReturnType<IUseKgCanvasStore>;
@@ -195,7 +195,7 @@ export interface IUseKgFormStoreActions {
195
195
  * @param event 事件名称.
196
196
  * @param listener 事件监听函数.
197
197
  */
198
- addEventListener(formID: string | null | undefined, event: IKgFormEvent, listener: IKgFormEventListener): void;
198
+ addEventListener(formID: string | null | undefined, event: IKgFormEvent, listener: any): void;
199
199
  /**
200
200
  * 清理数据.
201
201
  * @param formID 页面标识.
@@ -214,7 +214,7 @@ export interface IUseKgFormStoreActions {
214
214
  * @param event 事件名称.
215
215
  * @param listener 事件监听函数.
216
216
  */
217
- removeEventListener(formID: string | null | undefined, event: IKgFormEvent, listener?: IKgFormEventListener): void;
217
+ removeEventListener(formID: string | null | undefined, event: IKgFormEvent, listener?: any): void;
218
218
  }
219
219
  export declare type IUseKgFormStore = StoreDefinition<'KgForm', IUseKgFormStoreState, IUseKgFormStoreGetters, IUseKgFormStoreActions>;
220
220
  export declare type IKgFormStore = ReturnType<IUseKgFormStore>;
@@ -82,7 +82,7 @@ export interface IUseKgSearchStoreActions {
82
82
  * @param event 事件名称.
83
83
  * @param listener 事件监听函数.
84
84
  */
85
- addEventListener(formID: string, event: IKgSearchEvent, listener: IKgSearchEventListener): void;
85
+ addEventListener(formID: string, event: IKgSearchEvent, listener: any): void;
86
86
  /**
87
87
  * 清理数据.
88
88
  * @param formID 页面标识.
@@ -115,7 +115,7 @@ export interface IUseKgSearchStoreActions {
115
115
  * @param event 事件名称.
116
116
  * @param listener 事件监听函数.
117
117
  */
118
- removeEventListener(formID: string, event: IKgSearchEvent, listener?: IKgSearchEventListener): void;
118
+ removeEventListener(formID: string, event: IKgSearchEvent, listener?: any): void;
119
119
  setDynamicQueryOperatorModel(formID: string | null | undefined, model?: Record<string, any> | null): void;
120
120
  /**
121
121
  * 设置表单数据.
@@ -159,7 +159,7 @@ export interface IUseKgSubmitStoreActions {
159
159
  * @param event 事件名称.
160
160
  * @param listener 事件监听函数.
161
161
  */
162
- addEventListener(formID: string, event: IKgSubmitEvent, listener: IKgSubmitEventListener): void;
162
+ addEventListener(formID: string, event: IKgSubmitEvent, listener: any): void;
163
163
  /**
164
164
  * 添加一个「提交表单字段」.
165
165
  *
@@ -185,7 +185,7 @@ export interface IUseKgSubmitStoreActions {
185
185
  * @param event 事件名称.
186
186
  * @param listener 事件监听函数.
187
187
  */
188
- removeEventListener(formID: string, event: IKgSubmitEvent, listener?: IKgSubmitEventListener): void;
188
+ removeEventListener(formID: string, event: IKgSubmitEvent, listener?: any): void;
189
189
  setFormModel(formID?: string | null, model?: Record<string, any> | null): void;
190
190
  setIsLoading(formID: string, value: boolean): void;
191
191
  }
@@ -147,7 +147,7 @@ export interface IUseKgTableStoreActions {
147
147
  * @param event 事件名称.
148
148
  * @param listener 事件监听函数.
149
149
  */
150
- addEventListener(formID: string | null | undefined, event: IKgTableEvent, listener: IKgTableEventListener): void;
150
+ addEventListener(formID: string | null | undefined, event: IKgTableEvent, listener: any): void;
151
151
  /**
152
152
  * 清空表格数据.
153
153
  * @param formID 界面标识.
@@ -198,7 +198,7 @@ export interface IUseKgTableStoreActions {
198
198
  * @param event 事件名称.
199
199
  * @param listener 事件监听函数.
200
200
  */
201
- removeEventListener(formID: string | null | undefined, event: IKgTableEvent, listener?: IKgTableEventListener): void;
201
+ removeEventListener(formID: string | null | undefined, event: IKgTableEvent, listener?: any): void;
202
202
  /**
203
203
  * 设置列表数据.
204
204
  * @param param.frmId 界面标识.
@@ -151,7 +151,7 @@ export interface IUseKgVarStoreActions {
151
151
  * @param event 事件名称.
152
152
  * @param listener 事件监听函数.
153
153
  */
154
- addEventListener(formID: string | null | undefined, event: IKgVarEvent, listener: IKgVarEventListener): void;
154
+ addEventListener(formID: string | null | undefined, event: IKgVarEvent, listener: any): void;
155
155
  createVarConfigControl(formID: string | null | undefined, varConfigControl: VarConfigControl): void;
156
156
  createVarConfigDescription(formID: string | null | undefined, varConfigDescription: VarConfigDescription): void;
157
157
  createVarConfigPossibility(formID: string | null | undefined, varConfigPossibility: VarConfigPossibility): void;
@@ -205,7 +205,7 @@ export interface IUseKgVarStoreActions {
205
205
  * @param event 事件名称.
206
206
  * @param listener 事件监听函数.
207
207
  */
208
- removeEventListener(formID: string, event: IKgVarEvent, listener?: IKgVarEventListener): void;
208
+ removeEventListener(formID: string, event: IKgVarEvent, listener?: any): void;
209
209
  /**
210
210
  * 查询所有变量配置.
211
211
  *
@@ -32,7 +32,7 @@ export interface IUseKgWarehouseStoreActions {
32
32
  * @param event 事件名称.
33
33
  * @param listener 事件监听函数.
34
34
  */
35
- addEventListener(event: IKgWarehouseEvent, listener: IKgWarehouseEventListener): void;
35
+ addEventListener(event: IKgWarehouseEvent, listener: any): void;
36
36
  /**
37
37
  * 触发事件.
38
38
  * @param event 事件名称.
@@ -44,7 +44,7 @@ export interface IUseKgWarehouseStoreActions {
44
44
  * @param event 事件名称.
45
45
  * @param listener 事件监听函数.
46
46
  */
47
- removeEventListener(event: IKgWarehouseEvent, listener?: IKgWarehouseEventListener): void;
47
+ removeEventListener(event: IKgWarehouseEvent, listener?: any): void;
48
48
  /**
49
49
  * 设置是否显示弹窗.
50
50
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.26.5-beta.6",
3
+ "version": "0.26.5-beta.8",
4
4
  "scripts": {
5
5
  "build": "npm run switch-node-version && rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "npm run switch-node-version && rimraf dist && vue-tsc && vite build --mode development",
@@ -40,9 +40,9 @@
40
40
  "@iconify-icons/mdi": "1.2.48",
41
41
  "@iconify-icons/ph": "1.2.5",
42
42
  "@iconify/vue": "4.1.1",
43
- "@kengic/pont": "1.2.15",
43
+ "@kengic/pont": "1.2.17-beta.0",
44
44
  "@rys-fe/vite-plugin-theme": "0.8.6",
45
- "@thymine/xunee": "0.4.9-beta.3",
45
+ "@thymine/xunee": "0.4.9-beta.5",
46
46
  "@types/crypto-js": "4.1.1",
47
47
  "@types/fs-extra": "9.0.13",
48
48
  "@types/inquirer": "8.2.5",
@@ -70,7 +70,7 @@
70
70
  "lodash-es": "4.17.21",
71
71
  "picocolors": "1.0.0",
72
72
  "pinia": "2.0.12",
73
- "prettier": "3.2.5",
73
+ "prettier": "3.3.3",
74
74
  "rimraf": "3.0.2",
75
75
  "rollup": "2.79.1",
76
76
  "rollup-plugin-visualizer": "5.8.3",