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