@whitesev/utils 1.3.4 → 1.3.6

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.
package/dist/index.umd.js CHANGED
@@ -3174,8 +3174,11 @@
3174
3174
 
3175
3175
  /// <reference path="./ajaxHooker/index.d.ts" />
3176
3176
  class Utils {
3177
+ constructor(option) {
3178
+ UtilsCore.init(option);
3179
+ }
3177
3180
  /** 版本号 */
3178
- version = "2024.5.30";
3181
+ version = "2024.6.5";
3179
3182
  addStyle(cssText) {
3180
3183
  if (typeof cssText !== "string") {
3181
3184
  throw new Error("Utils.addStyle 参数cssText 必须为String类型");
@@ -6052,6 +6055,14 @@
6052
6055
  });
6053
6056
  }
6054
6057
  }
6058
+ /**
6059
+ * 创建一个新的Utils实例
6060
+ * @param option
6061
+ * @returns
6062
+ */
6063
+ createUtils(option) {
6064
+ return new Utils(option);
6065
+ }
6055
6066
  }
6056
6067
  let utils = new Utils();
6057
6068