@whitesev/utils 1.3.5 → 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.amd.js +12 -1
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +12 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +12 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +12 -1
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +12 -1
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +12 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/src/Utils.d.ts +12 -0
- package/dist/src/UtilsCore.d.ts +1 -1
- package/package.json +1 -1
- package/src/Utils.ts +21 -1
- package/src/UtilsCore.ts +1 -2
package/dist/index.esm.js
CHANGED
|
@@ -3168,8 +3168,11 @@ class UtilsDictionary {
|
|
|
3168
3168
|
|
|
3169
3169
|
/// <reference path="./ajaxHooker/index.d.ts" />
|
|
3170
3170
|
class Utils {
|
|
3171
|
+
constructor(option) {
|
|
3172
|
+
UtilsCore.init(option);
|
|
3173
|
+
}
|
|
3171
3174
|
/** 版本号 */
|
|
3172
|
-
version = "2024.5
|
|
3175
|
+
version = "2024.6.5";
|
|
3173
3176
|
addStyle(cssText) {
|
|
3174
3177
|
if (typeof cssText !== "string") {
|
|
3175
3178
|
throw new Error("Utils.addStyle 参数cssText 必须为String类型");
|
|
@@ -6046,6 +6049,14 @@ class Utils {
|
|
|
6046
6049
|
});
|
|
6047
6050
|
}
|
|
6048
6051
|
}
|
|
6052
|
+
/**
|
|
6053
|
+
* 创建一个新的Utils实例
|
|
6054
|
+
* @param option
|
|
6055
|
+
* @returns
|
|
6056
|
+
*/
|
|
6057
|
+
createUtils(option) {
|
|
6058
|
+
return new Utils(option);
|
|
6059
|
+
}
|
|
6049
6060
|
}
|
|
6050
6061
|
let utils = new Utils();
|
|
6051
6062
|
|