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