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