@kengic/vue 0.26.6-beta.111 → 0.26.6-beta.112

Sign up to get free protection for your applications and to get access to all the features.
@@ -194,10 +194,10 @@ export declare type IKgCanvasEventListener = IKgCanvasOnInitEventListener | IKgC
194
194
  * @param param.id 唯一标识.
195
195
  * @param param.listener 事件监听函数.
196
196
  */
197
- export declare function addEventListener<T extends IKgCanvasEventListener>(param: {
197
+ export declare function addEventListener<L extends IKgCanvasEventListener>(param: {
198
198
  event: IKgCanvasEvent;
199
199
  id?: string | undefined;
200
- listener: T;
200
+ listener: L;
201
201
  }): void;
202
202
  /**
203
203
  * 移除事件监听.
@@ -206,10 +206,10 @@ export declare function addEventListener<T extends IKgCanvasEventListener>(param
206
206
  * @param param.id 唯一标识.
207
207
  * @param param.listener 事件监听函数.
208
208
  */
209
- export declare function removeEventListener(param: {
209
+ export declare function removeEventListener<L extends IKgCanvasEventListener>(param: {
210
210
  event: IKgCanvasEvent;
211
211
  id?: string | undefined;
212
- listener?: any;
212
+ listener?: L;
213
213
  }): void;
214
214
  /**
215
215
  * 触发事件.
@@ -218,8 +218,8 @@ export declare function removeEventListener(param: {
218
218
  * @param param.id 唯一标识.
219
219
  * @param param.parameter 事件参数.
220
220
  */
221
- export declare function emit<T = IKgCanvasEventListenerParameter>(param: {
221
+ export declare function emit<P extends IKgCanvasEventListenerParameter>(param: {
222
222
  event: IKgCanvasEvent;
223
223
  id?: string | undefined;
224
- parameter: T;
224
+ parameter: P;
225
225
  }): Promise<boolean>;
@@ -16,25 +16,3 @@ export declare function onEventFactory<S extends {
16
16
  addEventListener(event: E, listener: L): void;
17
17
  removeEventListener(event: E, listener?: L): void;
18
18
  } = any, E = any, L extends IKgEventListener = any>(formID: string | null, store: S, event: E): (listener: L, isOnce?: boolean) => IRemoveEventListener;
19
- /**
20
- * 构造事件监听.
21
- *
22
- * @param param.addEventListener 添加事件监听.
23
- * @param param.event 事件名称.
24
- * @param param.id 唯一标识.
25
- * @param param.removeEventListener 移除事件监听.
26
- */
27
- export declare function onEventFactory2<E = any, L extends IKgEventListener = any>(param: {
28
- addEventListener: (param: {
29
- event: E;
30
- id?: string | undefined;
31
- listener: L;
32
- }) => void;
33
- event: E;
34
- id?: string | undefined;
35
- removeEventListener: (param: {
36
- event: E;
37
- id?: string | undefined;
38
- listener: L;
39
- }) => void;
40
- }): (listener: L, isOnce?: boolean) => IRemoveEventListener;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.26.6-beta.111",
3
+ "version": "0.26.6-beta.112",
4
4
  "scripts": {
5
5
  "build": "npm run use-node && rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "npm run use-node && rimraf dist && vue-tsc && vite build --mode development",
@@ -39,8 +39,8 @@
39
39
  "@iconify-icons/mdi": "1.2.48",
40
40
  "@iconify-icons/ph": "1.2.5",
41
41
  "@iconify/vue": "4.1.2",
42
- "@kengic/core.core": "0.0.1-beta.9",
43
- "@kengic/core.react": "0.0.1-beta.4",
42
+ "@kengic/core.core": "0.0.1-beta.12",
43
+ "@kengic/core.react": "0.0.1-beta.5",
44
44
  "@kengic/pont": "1.2.17-beta.1",
45
45
  "@rys-fe/vite-plugin-theme": "0.8.6",
46
46
  "@thymine/xunee": "0.4.9-beta.8",