@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.
@@ -211,7 +211,7 @@ export declare interface DOMUtilsEventListenerOptionsAttribute {
211
211
  /**
212
212
  * 属性配置
213
213
  */
214
- option: AddEventListenerOptions;
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