@whitesev/utils 1.4.2 → 1.4.3

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.
@@ -3062,7 +3062,7 @@ System.register('Utils', [], (function (exports) {
3062
3062
  UtilsCore.init(option);
3063
3063
  }
3064
3064
  /** 版本号 */
3065
- version = "2024.6.10";
3065
+ version = "2024.6.11";
3066
3066
  addStyle(cssText) {
3067
3067
  if (typeof cssText !== "string") {
3068
3068
  throw new Error("Utils.addStyle 参数cssText 必须为String类型");
@@ -4661,6 +4661,7 @@ System.register('Utils', [], (function (exports) {
4661
4661
  */
4662
4662
  characterDataOldValue: void 0,
4663
4663
  },
4664
+ immediate: false,
4664
4665
  };
4665
4666
  observer_config = UtilsContext.assign(default_obverser_config, observer_config);
4666
4667
  let windowMutationObserver = window.MutationObserver ||
@@ -4689,6 +4690,10 @@ System.register('Utils', [], (function (exports) {
4689
4690
  /* 未知 */
4690
4691
  console.error("Utils.mutationObserver 未知参数", arguments);
4691
4692
  }
4693
+ if (observer_config.immediate) {
4694
+ /* 主动触发一次 */
4695
+ observer_config.callback([], mutationObserver);
4696
+ }
4692
4697
  return mutationObserver;
4693
4698
  }
4694
4699
  /**