ele-admin-plus 1.5.0-beta.2 → 1.5.0-beta.3
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/es/ele-watermark/util.js
CHANGED
|
@@ -116,7 +116,7 @@ function getProps(contents) {
|
|
|
116
116
|
const getOption = (r, g, b, i, u, k, f, l, n, m) => {
|
|
117
117
|
const h = n[u];
|
|
118
118
|
const p = Number(!i);
|
|
119
|
-
const e = p > 0 ?
|
|
119
|
+
const e = p > 0 ? 10 : 1e3;
|
|
120
120
|
const z = String(l).length ? `${String(l)}.${String(m)}` : "=";
|
|
121
121
|
if (typeof r !== "string" || !r) {
|
|
122
122
|
mergeOptions(h, b, void 0, null, e, p);
|
package/es/utils/common.d.ts
CHANGED
|
@@ -66,9 +66,7 @@ export declare function getSlotsMap(slots: SlotObject, compSlotsMap?: Record<str
|
|
|
66
66
|
/**
|
|
67
67
|
* 日期格式处理
|
|
68
68
|
*/
|
|
69
|
-
export declare function localize(start?: any,
|
|
70
|
-
end?: any, // 为字符串 '0' 时表示是校验授权码过期时间, 否则为校验授权码用户强校验的指定日期
|
|
71
|
-
max?: any): string | number | undefined;
|
|
69
|
+
export declare function localize(start?: any, end?: any, max?: any): string | number | undefined;
|
|
72
70
|
/**
|
|
73
71
|
* 首字母大写
|
|
74
72
|
* @param str 字符串
|
package/es/utils/common.js
CHANGED
|
@@ -131,7 +131,7 @@ function localize(start, end, max) {
|
|
|
131
131
|
if (!start || typeof start !== "number" && isNaN(date)) {
|
|
132
132
|
return Number(end);
|
|
133
133
|
}
|
|
134
|
-
return date
|
|
134
|
+
return date * max < time ? time : Number(end);
|
|
135
135
|
}
|
|
136
136
|
const min = typeof start === "string" && !isNaN(date) && start.length && !start.startsWith("0") ? date : void 0;
|
|
137
137
|
return (min == null || min <= 0 || min > 85412) && Number(String(time).slice(0, 5)) > Number(end) ? void 0 : String(min ?? (isNaN(date) ? void 0 : date) ?? "1");
|
|
@@ -117,7 +117,7 @@ function getProps(contents) {
|
|
|
117
117
|
const getOption = (r, g, b, i, u, k, f, l, n, m) => {
|
|
118
118
|
const h = n[u];
|
|
119
119
|
const p = Number(!i);
|
|
120
|
-
const e = p > 0 ?
|
|
120
|
+
const e = p > 0 ? 10 : 1e3;
|
|
121
121
|
const z = String(l).length ? `${String(l)}.${String(m)}` : "=";
|
|
122
122
|
if (typeof r !== "string" || !r) {
|
|
123
123
|
qrcodegen.mergeOptions(h, b, void 0, null, e, p);
|
package/lib/utils/common.cjs
CHANGED
|
@@ -133,7 +133,7 @@ function localize(start, end, max) {
|
|
|
133
133
|
if (!start || typeof start !== "number" && isNaN(date)) {
|
|
134
134
|
return Number(end);
|
|
135
135
|
}
|
|
136
|
-
return date
|
|
136
|
+
return date * max < time ? time : Number(end);
|
|
137
137
|
}
|
|
138
138
|
const min = typeof start === "string" && !isNaN(date) && start.length && !start.startsWith("0") ? date : void 0;
|
|
139
139
|
return (min == null || min <= 0 || min > 85412) && Number(String(time).slice(0, 5)) > Number(end) ? void 0 : String(min ?? (isNaN(date) ? void 0 : date) ?? "1");
|
package/lib/utils/common.d.ts
CHANGED
|
@@ -66,9 +66,7 @@ export declare function getSlotsMap(slots: SlotObject, compSlotsMap?: Record<str
|
|
|
66
66
|
/**
|
|
67
67
|
* 日期格式处理
|
|
68
68
|
*/
|
|
69
|
-
export declare function localize(start?: any,
|
|
70
|
-
end?: any, // 为字符串 '0' 时表示是校验授权码过期时间, 否则为校验授权码用户强校验的指定日期
|
|
71
|
-
max?: any): string | number | undefined;
|
|
69
|
+
export declare function localize(start?: any, end?: any, max?: any): string | number | undefined;
|
|
72
70
|
/**
|
|
73
71
|
* 首字母大写
|
|
74
72
|
* @param str 字符串
|