@whitesev/domutils 1.7.5 → 1.8.0

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.
@@ -268,7 +268,7 @@ export declare interface DOMUtilsAddEventListenerResult {
268
268
  /**
269
269
  * 主动触发事件
270
270
  * @param details 赋予触发的Event的额外属性,如果是Event类型,那么将自动代替默认new的Event对象
271
- * @param useDispatchToTriggerEvent 是否使用dispatchEvent来触发事件,默认true,如果为false,则直接调用callback,但是这种会让使用了selectorTarget的没有值
271
+ * @param useDispatchToEmit 是否使用dispatchEvent来触发事件,默认true,如果为false,则直接调用callback,但是这种会让使用了selectorTarget的没有值
272
272
  */
273
- trigger(details?: object, useDispatchToTriggerEvent?: boolean): void;
273
+ emit(details?: object, useDispatchToEmit?: boolean): void;
274
274
  }