@whitesev/utils 2.1.0 → 2.1.1

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.
@@ -3485,7 +3485,7 @@ System.register('Utils', [], (function (exports) {
3485
3485
  }
3486
3486
  }
3487
3487
 
3488
- class UtilsWindowApi {
3488
+ class WindowApi {
3489
3489
  /** 默认的配置 */
3490
3490
  defaultApi = {
3491
3491
  document: document,
@@ -3522,10 +3522,10 @@ System.register('Utils', [], (function (exports) {
3522
3522
  class Utils {
3523
3523
  windowApi;
3524
3524
  constructor(option) {
3525
- this.windowApi = new UtilsWindowApi(option);
3525
+ this.windowApi = new WindowApi(option);
3526
3526
  }
3527
3527
  /** 版本号 */
3528
- version = "2024.7.20";
3528
+ version = "2024.7.24";
3529
3529
  addStyle(cssText) {
3530
3530
  if (typeof cssText !== "string") {
3531
3531
  throw new Error("Utils.addStyle 参数cssText 必须为String类型");
@@ -5835,7 +5835,8 @@ System.register('Utils', [], (function (exports) {
5835
5835
  if (Array.isArray(data)) {
5836
5836
  data.sort(sortFunc);
5837
5837
  }
5838
- else if (data instanceof NodeList || UtilsContext.isJQuery(data)) {
5838
+ else if (data instanceof NodeList ||
5839
+ UtilsContext.isJQuery(data)) {
5839
5840
  sortNodeFunc(data, getDataFunc);
5840
5841
  result = getDataFunc();
5841
5842
  }