@sybz-components/utils 1.0.16 → 1.0.17
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/base.cjs +1 -1
- package/dist/base.d.cts +3 -1
- package/dist/base.d.mts +3 -1
- package/dist/base.d.ts +3 -1
- package/dist/base.mjs +1 -1
- package/dist/format.cjs +1 -1
- package/dist/format.mjs +1 -1
- package/dist/http.cjs +1 -1
- package/dist/http.d.cts +4 -6
- package/dist/http.d.mts +4 -6
- package/dist/http.d.ts +4 -6
- package/dist/http.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/shared/{utils.KWmfSH7h.cjs → utils.CC08jxyG.cjs} +16 -17
- package/dist/shared/{utils.BVs9MJTE.mjs → utils.E1TDYt7o.mjs} +16 -17
- package/package.json +1 -1
package/dist/base.cjs
CHANGED
package/dist/base.d.cts
CHANGED
|
@@ -39,6 +39,8 @@ interface SybzUtilsConfig {
|
|
|
39
39
|
http?: CreateHttpOptions;
|
|
40
40
|
}
|
|
41
41
|
interface ToastOptions extends Partial<MessageOptions> {
|
|
42
|
+
/** 是否启用仅在悬停关闭区域时出现的关闭按钮,默认 `true`。 */
|
|
43
|
+
showClose?: boolean;
|
|
42
44
|
/**
|
|
43
45
|
* 调用前是否先关闭全部消息提示。
|
|
44
46
|
*/
|
|
@@ -130,7 +132,7 @@ interface CopyOptions extends ToastOptions {
|
|
|
130
132
|
*/
|
|
131
133
|
hideToast?: boolean;
|
|
132
134
|
}
|
|
133
|
-
type WidthInput = string | number | Ref<string | number>;
|
|
135
|
+
type WidthInput = string | number | boolean | Ref<string | number | boolean>;
|
|
134
136
|
type ConfirmMessage = string | VNode | (() => VNode);
|
|
135
137
|
type ConfirmTheme = UtilsTheme;
|
|
136
138
|
interface ConfirmCustomOptions {
|
package/dist/base.d.mts
CHANGED
|
@@ -39,6 +39,8 @@ interface SybzUtilsConfig {
|
|
|
39
39
|
http?: CreateHttpOptions;
|
|
40
40
|
}
|
|
41
41
|
interface ToastOptions extends Partial<MessageOptions> {
|
|
42
|
+
/** 是否启用仅在悬停关闭区域时出现的关闭按钮,默认 `true`。 */
|
|
43
|
+
showClose?: boolean;
|
|
42
44
|
/**
|
|
43
45
|
* 调用前是否先关闭全部消息提示。
|
|
44
46
|
*/
|
|
@@ -130,7 +132,7 @@ interface CopyOptions extends ToastOptions {
|
|
|
130
132
|
*/
|
|
131
133
|
hideToast?: boolean;
|
|
132
134
|
}
|
|
133
|
-
type WidthInput = string | number | Ref<string | number>;
|
|
135
|
+
type WidthInput = string | number | boolean | Ref<string | number | boolean>;
|
|
134
136
|
type ConfirmMessage = string | VNode | (() => VNode);
|
|
135
137
|
type ConfirmTheme = UtilsTheme;
|
|
136
138
|
interface ConfirmCustomOptions {
|
package/dist/base.d.ts
CHANGED
|
@@ -39,6 +39,8 @@ interface SybzUtilsConfig {
|
|
|
39
39
|
http?: CreateHttpOptions;
|
|
40
40
|
}
|
|
41
41
|
interface ToastOptions extends Partial<MessageOptions> {
|
|
42
|
+
/** 是否启用仅在悬停关闭区域时出现的关闭按钮,默认 `true`。 */
|
|
43
|
+
showClose?: boolean;
|
|
42
44
|
/**
|
|
43
45
|
* 调用前是否先关闭全部消息提示。
|
|
44
46
|
*/
|
|
@@ -130,7 +132,7 @@ interface CopyOptions extends ToastOptions {
|
|
|
130
132
|
*/
|
|
131
133
|
hideToast?: boolean;
|
|
132
134
|
}
|
|
133
|
-
type WidthInput = string | number | Ref<string | number>;
|
|
135
|
+
type WidthInput = string | number | boolean | Ref<string | number | boolean>;
|
|
134
136
|
type ConfirmMessage = string | VNode | (() => VNode);
|
|
135
137
|
type ConfirmTheme = UtilsTheme;
|
|
136
138
|
interface ConfirmCustomOptions {
|
package/dist/base.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'vue';
|
|
2
2
|
import 'consola';
|
|
3
3
|
import 'es-toolkit';
|
|
4
|
-
export { $ as $toast, c as clearStorage, a as clone, b as configureUtils, d as confirm, e as copy, f as debounce, g as delay, h as getStorage, i as getType, j as getUtilsBuildTime, k as getVariable, l as isEmpty, m as log, n as merge, o as mockValue, p as processWidth, r as random, s as setStorage, t as test, q as throttle, u as toLine, v as tryCatch, w as validate, x as validateForm, y as validateOnSubmit } from './shared/utils.
|
|
4
|
+
export { $ as $toast, c as clearStorage, a as clone, b as configureUtils, d as confirm, e as copy, f as debounce, g as delay, h as getStorage, i as getType, j as getUtilsBuildTime, k as getVariable, l as isEmpty, m as log, n as merge, o as mockValue, p as processWidth, r as random, s as setStorage, t as test, q as throttle, u as toLine, v as tryCatch, w as validate, x as validateForm, y as validateOnSubmit } from './shared/utils.E1TDYt7o.mjs';
|
|
5
5
|
import './confirmSemantic.mjs';
|
|
6
6
|
import 'element-plus';
|
|
7
7
|
import 'axios';
|
package/dist/format.cjs
CHANGED
package/dist/format.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { z as formatBytes, A as formatBytesConvert, B as formatDurationTime, C as formatTextToHtml, D as formatThousands, E as formatTime, F as formatToFixed } from './shared/utils.
|
|
1
|
+
export { z as formatBytes, A as formatBytesConvert, B as formatDurationTime, C as formatTextToHtml, D as formatThousands, E as formatTime, F as formatToFixed } from './shared/utils.E1TDYt7o.mjs';
|
|
2
2
|
import './is.mjs';
|
|
3
3
|
import 'consola';
|
|
4
4
|
import 'vue';
|
package/dist/http.cjs
CHANGED
package/dist/http.d.cts
CHANGED
|
@@ -42,7 +42,6 @@ interface CreateHttpOptions<D = unknown> extends CreateAxiosDefaults<D> {
|
|
|
42
42
|
}
|
|
43
43
|
type HttpClient = Omit<AxiosInstance, 'get' | 'post' | 'put' | 'patch' | 'delete'> & {
|
|
44
44
|
<T = unknown, D = unknown>(url: string, config?: HttpRequestConfig<D>): Promise<T>;
|
|
45
|
-
<T = unknown, D = unknown>(url: string, params?: unknown, config?: HttpRequestConfig<D>): Promise<T>;
|
|
46
45
|
send<T = unknown, D = unknown>(config: HttpRequestConfig<D> & {
|
|
47
46
|
rawResponse: true;
|
|
48
47
|
}): Promise<AxiosResponse<T>>;
|
|
@@ -50,12 +49,11 @@ type HttpClient = Omit<AxiosInstance, 'get' | 'post' | 'put' | 'patch' | 'delete
|
|
|
50
49
|
rawResponse?: false;
|
|
51
50
|
}): Promise<T>;
|
|
52
51
|
get<T = unknown>(url: string, config?: HttpRequestConfig): Promise<T>;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
patch<T = unknown, D = unknown>(url: string, data?: D, config?: HttpRequestConfig<D>): Promise<T>;
|
|
52
|
+
post<T = unknown, D = unknown>(url: string, config?: HttpRequestConfig<D>): Promise<T>;
|
|
53
|
+
put<T = unknown, D = unknown>(url: string, config?: HttpRequestConfig<D>): Promise<T>;
|
|
54
|
+
patch<T = unknown, D = unknown>(url: string, config?: HttpRequestConfig<D>): Promise<T>;
|
|
57
55
|
delete<T = unknown>(url: string, config?: HttpRequestConfig): Promise<T>;
|
|
58
|
-
download(url: string,
|
|
56
|
+
download(url: string, config?: HttpRequestConfig): Promise<Blob>;
|
|
59
57
|
};
|
|
60
58
|
declare function createHttp<D = unknown>(options?: CreateHttpOptions<D>): HttpClient;
|
|
61
59
|
/** 全局 HTTP 客户端;通过 configureUtils({ http: ... }) 配置一次。 */
|
package/dist/http.d.mts
CHANGED
|
@@ -42,7 +42,6 @@ interface CreateHttpOptions<D = unknown> extends CreateAxiosDefaults<D> {
|
|
|
42
42
|
}
|
|
43
43
|
type HttpClient = Omit<AxiosInstance, 'get' | 'post' | 'put' | 'patch' | 'delete'> & {
|
|
44
44
|
<T = unknown, D = unknown>(url: string, config?: HttpRequestConfig<D>): Promise<T>;
|
|
45
|
-
<T = unknown, D = unknown>(url: string, params?: unknown, config?: HttpRequestConfig<D>): Promise<T>;
|
|
46
45
|
send<T = unknown, D = unknown>(config: HttpRequestConfig<D> & {
|
|
47
46
|
rawResponse: true;
|
|
48
47
|
}): Promise<AxiosResponse<T>>;
|
|
@@ -50,12 +49,11 @@ type HttpClient = Omit<AxiosInstance, 'get' | 'post' | 'put' | 'patch' | 'delete
|
|
|
50
49
|
rawResponse?: false;
|
|
51
50
|
}): Promise<T>;
|
|
52
51
|
get<T = unknown>(url: string, config?: HttpRequestConfig): Promise<T>;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
patch<T = unknown, D = unknown>(url: string, data?: D, config?: HttpRequestConfig<D>): Promise<T>;
|
|
52
|
+
post<T = unknown, D = unknown>(url: string, config?: HttpRequestConfig<D>): Promise<T>;
|
|
53
|
+
put<T = unknown, D = unknown>(url: string, config?: HttpRequestConfig<D>): Promise<T>;
|
|
54
|
+
patch<T = unknown, D = unknown>(url: string, config?: HttpRequestConfig<D>): Promise<T>;
|
|
57
55
|
delete<T = unknown>(url: string, config?: HttpRequestConfig): Promise<T>;
|
|
58
|
-
download(url: string,
|
|
56
|
+
download(url: string, config?: HttpRequestConfig): Promise<Blob>;
|
|
59
57
|
};
|
|
60
58
|
declare function createHttp<D = unknown>(options?: CreateHttpOptions<D>): HttpClient;
|
|
61
59
|
/** 全局 HTTP 客户端;通过 configureUtils({ http: ... }) 配置一次。 */
|
package/dist/http.d.ts
CHANGED
|
@@ -42,7 +42,6 @@ interface CreateHttpOptions<D = unknown> extends CreateAxiosDefaults<D> {
|
|
|
42
42
|
}
|
|
43
43
|
type HttpClient = Omit<AxiosInstance, 'get' | 'post' | 'put' | 'patch' | 'delete'> & {
|
|
44
44
|
<T = unknown, D = unknown>(url: string, config?: HttpRequestConfig<D>): Promise<T>;
|
|
45
|
-
<T = unknown, D = unknown>(url: string, params?: unknown, config?: HttpRequestConfig<D>): Promise<T>;
|
|
46
45
|
send<T = unknown, D = unknown>(config: HttpRequestConfig<D> & {
|
|
47
46
|
rawResponse: true;
|
|
48
47
|
}): Promise<AxiosResponse<T>>;
|
|
@@ -50,12 +49,11 @@ type HttpClient = Omit<AxiosInstance, 'get' | 'post' | 'put' | 'patch' | 'delete
|
|
|
50
49
|
rawResponse?: false;
|
|
51
50
|
}): Promise<T>;
|
|
52
51
|
get<T = unknown>(url: string, config?: HttpRequestConfig): Promise<T>;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
patch<T = unknown, D = unknown>(url: string, data?: D, config?: HttpRequestConfig<D>): Promise<T>;
|
|
52
|
+
post<T = unknown, D = unknown>(url: string, config?: HttpRequestConfig<D>): Promise<T>;
|
|
53
|
+
put<T = unknown, D = unknown>(url: string, config?: HttpRequestConfig<D>): Promise<T>;
|
|
54
|
+
patch<T = unknown, D = unknown>(url: string, config?: HttpRequestConfig<D>): Promise<T>;
|
|
57
55
|
delete<T = unknown>(url: string, config?: HttpRequestConfig): Promise<T>;
|
|
58
|
-
download(url: string,
|
|
56
|
+
download(url: string, config?: HttpRequestConfig): Promise<Blob>;
|
|
59
57
|
};
|
|
60
58
|
declare function createHttp<D = unknown>(options?: CreateHttpOptions<D>): HttpClient;
|
|
61
59
|
/** 全局 HTTP 客户端;通过 configureUtils({ http: ... }) 配置一次。 */
|
package/dist/http.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'axios';
|
|
2
|
-
export { H as HttpError, G as configureHttp, I as createHttp, J as http } from './shared/utils.
|
|
2
|
+
export { H as HttpError, G as configureHttp, I as createHttp, J as http } from './shared/utils.E1TDYt7o.mjs';
|
|
3
3
|
import 'vue';
|
|
4
4
|
import 'consola';
|
|
5
5
|
import 'es-toolkit';
|
package/dist/index.cjs
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { $ as $toast, H as HttpError, c as clearStorage, a as clone, G as configureHttp, b as configureUtils, d as confirm, e as copy, I as createHttp, f as debounce, g as delay, z as formatBytes, A as formatBytesConvert, B as formatDurationTime, C as formatTextToHtml, D as formatThousands, E as formatTime, F as formatToFixed, h as getStorage, i as getType, j as getUtilsBuildTime, k as getVariable, J as http, l as isEmpty, m as log, n as merge, o as mockValue, p as processWidth, r as random, s as setStorage, t as test, q as throttle, u as toLine, v as tryCatch, w as validate, x as validateForm, y as validateOnSubmit } from './shared/utils.
|
|
1
|
+
export { $ as $toast, H as HttpError, c as clearStorage, a as clone, G as configureHttp, b as configureUtils, d as confirm, e as copy, I as createHttp, f as debounce, g as delay, z as formatBytes, A as formatBytesConvert, B as formatDurationTime, C as formatTextToHtml, D as formatThousands, E as formatTime, F as formatToFixed, h as getStorage, i as getType, j as getUtilsBuildTime, k as getVariable, J as http, l as isEmpty, m as log, n as merge, o as mockValue, p as processWidth, r as random, s as setStorage, t as test, q as throttle, u as toLine, v as tryCatch, w as validate, x as validateForm, y as validateOnSubmit } from './shared/utils.E1TDYt7o.mjs';
|
|
2
2
|
export { resolveConfirmSemantic } from './confirmSemantic.mjs';
|
|
3
3
|
export { isArray, isBoolean, isComponent, isDate, isEmptyObject, isFunction, isIOS, isMap, isNumber, isObject, isPlainObject, isPromise, isRegExp, isSVGElement, isSet, isString, isStringNumber, isSymbol, isUrl, objectToString, toRawType, toTypeString } from './is.mjs';
|
|
4
4
|
export { SYBZ_THEME_PREFIX, isSybzTheme, resolveSybzComponentTheme } from './theme.mjs';
|
|
@@ -312,22 +312,15 @@ function createHttp(options = {}) {
|
|
|
312
312
|
const response = await instance.request(config);
|
|
313
313
|
return config.rawResponse ? response : response.data;
|
|
314
314
|
};
|
|
315
|
-
const
|
|
316
|
-
(key) => key in value
|
|
317
|
-
);
|
|
318
|
-
const request = (url, paramsOrConfig, config = {}) => {
|
|
319
|
-
const params = isRequestConfig(paramsOrConfig) ? void 0 : paramsOrConfig;
|
|
320
|
-
const requestConfig = isRequestConfig(paramsOrConfig) ? paramsOrConfig : config;
|
|
321
|
-
return send({ ...requestConfig, method: "GET", url, params, rawResponse: false });
|
|
322
|
-
};
|
|
315
|
+
const request = (url, config = {}) => send({ ...config, method: "GET", url, rawResponse: false });
|
|
323
316
|
const client = Object.assign(request, instance, {
|
|
324
317
|
send,
|
|
325
|
-
get: (url,
|
|
326
|
-
post: (url,
|
|
327
|
-
put: (url,
|
|
328
|
-
patch: (url,
|
|
318
|
+
get: (url, config) => request(url, config),
|
|
319
|
+
post: (url, config) => send({ ...config, method: "POST", url, rawResponse: false }),
|
|
320
|
+
put: (url, config) => send({ ...config, method: "PUT", url, rawResponse: false }),
|
|
321
|
+
patch: (url, config) => send({ ...config, method: "PATCH", url, rawResponse: false }),
|
|
329
322
|
delete: (url, config) => send({ ...config, method: "DELETE", url, rawResponse: false }),
|
|
330
|
-
download: (url,
|
|
323
|
+
download: (url, config) => send({ ...config, method: "GET", url, responseType: "blob", rawResponse: false })
|
|
331
324
|
});
|
|
332
325
|
return client;
|
|
333
326
|
}
|
|
@@ -403,9 +396,15 @@ function $toast(message, type = "success", otherParams = {}) {
|
|
|
403
396
|
if (options.closeAll) {
|
|
404
397
|
elementPlus.ElMessage.closeAll();
|
|
405
398
|
}
|
|
406
|
-
const resolvedCustomClass =
|
|
399
|
+
const resolvedCustomClass = _mergeClassNames(
|
|
400
|
+
"s-toast",
|
|
401
|
+
customClass !== "el" && "s-antd-message",
|
|
402
|
+
customClass !== "el" && theme !== "default" && `s-antd-message--${theme}`,
|
|
403
|
+
customClass !== "el" && customClass
|
|
404
|
+
);
|
|
407
405
|
elementPlus.ElMessage({
|
|
408
406
|
...messageOptions,
|
|
407
|
+
showClose: options.showClose ?? true,
|
|
409
408
|
customClass: resolvedCustomClass
|
|
410
409
|
});
|
|
411
410
|
}
|
|
@@ -928,10 +927,10 @@ const _CSS_UNIT_RE = /^[0-9]+(\.[0-9]+)?(px|%|em|rem|vw|vh|ch)$/;
|
|
|
928
927
|
const _CSS_LENGTH_FUNCTION_RE = /^(?:calc|min|max|clamp|var)\(.+\)$/;
|
|
929
928
|
function processWidth(initValue, isBase = false) {
|
|
930
929
|
const raw = vue.unref(initValue);
|
|
931
|
-
if (raw === void 0 || raw === null || raw === "") {
|
|
930
|
+
if (raw === void 0 || raw === null || raw === "" || raw === false) {
|
|
932
931
|
return isBase ? "" : {};
|
|
933
932
|
}
|
|
934
|
-
const str = typeof raw === "number" ? `${raw}` : raw;
|
|
933
|
+
const str = raw === true ? "100%" : typeof raw === "number" ? `${raw}` : raw;
|
|
935
934
|
let res;
|
|
936
935
|
if (!isNaN(Number(str))) {
|
|
937
936
|
res = str + "px";
|
|
@@ -1202,7 +1201,7 @@ function getVariable(propertyName, fallback = "") {
|
|
|
1202
1201
|
const DEFAULT_BUILD_TIME_FALLBACK = "\u672A\u6CE8\u5165";
|
|
1203
1202
|
function getUtilsBuildTime(fallback = DEFAULT_BUILD_TIME_FALLBACK) {
|
|
1204
1203
|
{
|
|
1205
|
-
return "2026-10
|
|
1204
|
+
return "2026-11-10 13:51:09";
|
|
1206
1205
|
}
|
|
1207
1206
|
}
|
|
1208
1207
|
function test() {
|
|
@@ -306,22 +306,15 @@ function createHttp(options = {}) {
|
|
|
306
306
|
const response = await instance.request(config);
|
|
307
307
|
return config.rawResponse ? response : response.data;
|
|
308
308
|
};
|
|
309
|
-
const
|
|
310
|
-
(key) => key in value
|
|
311
|
-
);
|
|
312
|
-
const request = (url, paramsOrConfig, config = {}) => {
|
|
313
|
-
const params = isRequestConfig(paramsOrConfig) ? void 0 : paramsOrConfig;
|
|
314
|
-
const requestConfig = isRequestConfig(paramsOrConfig) ? paramsOrConfig : config;
|
|
315
|
-
return send({ ...requestConfig, method: "GET", url, params, rawResponse: false });
|
|
316
|
-
};
|
|
309
|
+
const request = (url, config = {}) => send({ ...config, method: "GET", url, rawResponse: false });
|
|
317
310
|
const client = Object.assign(request, instance, {
|
|
318
311
|
send,
|
|
319
|
-
get: (url,
|
|
320
|
-
post: (url,
|
|
321
|
-
put: (url,
|
|
322
|
-
patch: (url,
|
|
312
|
+
get: (url, config) => request(url, config),
|
|
313
|
+
post: (url, config) => send({ ...config, method: "POST", url, rawResponse: false }),
|
|
314
|
+
put: (url, config) => send({ ...config, method: "PUT", url, rawResponse: false }),
|
|
315
|
+
patch: (url, config) => send({ ...config, method: "PATCH", url, rawResponse: false }),
|
|
323
316
|
delete: (url, config) => send({ ...config, method: "DELETE", url, rawResponse: false }),
|
|
324
|
-
download: (url,
|
|
317
|
+
download: (url, config) => send({ ...config, method: "GET", url, responseType: "blob", rawResponse: false })
|
|
325
318
|
});
|
|
326
319
|
return client;
|
|
327
320
|
}
|
|
@@ -397,9 +390,15 @@ function $toast(message, type = "success", otherParams = {}) {
|
|
|
397
390
|
if (options.closeAll) {
|
|
398
391
|
ElMessage.closeAll();
|
|
399
392
|
}
|
|
400
|
-
const resolvedCustomClass =
|
|
393
|
+
const resolvedCustomClass = _mergeClassNames(
|
|
394
|
+
"s-toast",
|
|
395
|
+
customClass !== "el" && "s-antd-message",
|
|
396
|
+
customClass !== "el" && theme !== "default" && `s-antd-message--${theme}`,
|
|
397
|
+
customClass !== "el" && customClass
|
|
398
|
+
);
|
|
401
399
|
ElMessage({
|
|
402
400
|
...messageOptions,
|
|
401
|
+
showClose: options.showClose ?? true,
|
|
403
402
|
customClass: resolvedCustomClass
|
|
404
403
|
});
|
|
405
404
|
}
|
|
@@ -922,10 +921,10 @@ const _CSS_UNIT_RE = /^[0-9]+(\.[0-9]+)?(px|%|em|rem|vw|vh|ch)$/;
|
|
|
922
921
|
const _CSS_LENGTH_FUNCTION_RE = /^(?:calc|min|max|clamp|var)\(.+\)$/;
|
|
923
922
|
function processWidth(initValue, isBase = false) {
|
|
924
923
|
const raw = unref(initValue);
|
|
925
|
-
if (raw === void 0 || raw === null || raw === "") {
|
|
924
|
+
if (raw === void 0 || raw === null || raw === "" || raw === false) {
|
|
926
925
|
return isBase ? "" : {};
|
|
927
926
|
}
|
|
928
|
-
const str = typeof raw === "number" ? `${raw}` : raw;
|
|
927
|
+
const str = raw === true ? "100%" : typeof raw === "number" ? `${raw}` : raw;
|
|
929
928
|
let res;
|
|
930
929
|
if (!isNaN(Number(str))) {
|
|
931
930
|
res = str + "px";
|
|
@@ -1196,7 +1195,7 @@ function getVariable(propertyName, fallback = "") {
|
|
|
1196
1195
|
const DEFAULT_BUILD_TIME_FALLBACK = "\u672A\u6CE8\u5165";
|
|
1197
1196
|
function getUtilsBuildTime(fallback = DEFAULT_BUILD_TIME_FALLBACK) {
|
|
1198
1197
|
{
|
|
1199
|
-
return "2026-10
|
|
1198
|
+
return "2026-11-10 13:51:09";
|
|
1200
1199
|
}
|
|
1201
1200
|
}
|
|
1202
1201
|
function test() {
|