@whitesev/domutils 1.4.3 → 1.4.4
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/dist/index.amd.js +79 -61
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +79 -61
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +79 -61
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +79 -61
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +79 -61
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +79 -61
- package/dist/index.umd.js.map +1 -1
- package/dist/types/src/DOMUtilsEvent.d.ts +18 -18
- package/dist/types/src/types/DOMUtilsEvent.d.ts +12 -1
- package/package.json +1 -1
- package/src/DOMUtilsEvent.ts +135 -103
- package/src/types/DOMUtilsEvent.d.ts +12 -1
|
@@ -211,7 +211,7 @@ export declare interface DOMUtilsEventListenerOptionsAttribute {
|
|
|
211
211
|
/**
|
|
212
212
|
* 属性配置
|
|
213
213
|
*/
|
|
214
|
-
option:
|
|
214
|
+
option: DOMUtilsEventListenerOption;
|
|
215
215
|
/**
|
|
216
216
|
* 用户添加的事件
|
|
217
217
|
*/
|
|
@@ -222,6 +222,17 @@ export declare interface DOMUtilsEventListenerOptionsAttribute {
|
|
|
222
222
|
selector?: string[];
|
|
223
223
|
}
|
|
224
224
|
|
|
225
|
+
/**
|
|
226
|
+
* 事件的额外配置
|
|
227
|
+
*/
|
|
228
|
+
export declare type DOMUtilsEventListenerOption = AddEventListenerOptions & {
|
|
229
|
+
/**
|
|
230
|
+
* 是否使用 event.composedPath() 来代替 event.target
|
|
231
|
+
*
|
|
232
|
+
* 一般用于设置了selector参数
|
|
233
|
+
*/
|
|
234
|
+
isComposedPath?: boolean;
|
|
235
|
+
};
|
|
225
236
|
export declare type DOMUtilsElementEventType =
|
|
226
237
|
| HTMLElement
|
|
227
238
|
| string
|