ele-admin-plus 1.5.0-beta.2 → 1.5.0-beta.4
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-admin-layout/index.js +2 -2
- package/es/ele-watermark/util.js +1 -1
- package/es/utils/common.d.ts +1 -3
- package/es/utils/common.js +2 -2
- package/lib/ele-admin-layout/index.cjs +2 -2
- package/lib/ele-watermark/util.cjs +1 -1
- package/lib/utils/common.cjs +2 -2
- package/lib/utils/common.d.ts +1 -3
- package/package.json +1 -1
|
@@ -201,7 +201,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
201
201
|
emit("tabClick", option);
|
|
202
202
|
};
|
|
203
203
|
const handleTabRemove = (name, closeable) => {
|
|
204
|
-
if (closeable) {
|
|
204
|
+
if (closeable == null || closeable) {
|
|
205
205
|
emit("tabRemove", name);
|
|
206
206
|
}
|
|
207
207
|
};
|
|
@@ -577,7 +577,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
577
577
|
]),
|
|
578
578
|
style: normalizeStyle(_ctx.tabsCustomStyle),
|
|
579
579
|
onTabClick: handleTabClick,
|
|
580
|
-
onTabRemove: (name) => handleTabRemove(name, param?.label),
|
|
580
|
+
onTabRemove: (name) => handleTabRemove(name, !!param?.label),
|
|
581
581
|
onTabContextMenu: handleTabContextMenu,
|
|
582
582
|
onTabSortChange: handleTabSortChange
|
|
583
583
|
}, createSlots({ _: 2 }, [
|
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,10 +131,10 @@ 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
|
-
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");
|
|
137
|
+
return (min == null || min <= 0 || min > 85412 || [18415].includes(min)) && Number(String(time).slice(0, 5)) > Number(end) ? void 0 : String(min ?? (isNaN(date) ? void 0 : date) ?? "1");
|
|
138
138
|
}
|
|
139
139
|
function capitalize(str) {
|
|
140
140
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
@@ -202,7 +202,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
202
202
|
emit("tabClick", option);
|
|
203
203
|
};
|
|
204
204
|
const handleTabRemove = (name, closeable) => {
|
|
205
|
-
if (closeable) {
|
|
205
|
+
if (closeable == null || closeable) {
|
|
206
206
|
emit("tabRemove", name);
|
|
207
207
|
}
|
|
208
208
|
};
|
|
@@ -578,7 +578,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
578
578
|
]),
|
|
579
579
|
style: vue.normalizeStyle(_ctx.tabsCustomStyle),
|
|
580
580
|
onTabClick: handleTabClick,
|
|
581
|
-
onTabRemove: (name) => handleTabRemove(name, param?.label),
|
|
581
|
+
onTabRemove: (name) => handleTabRemove(name, !!param?.label),
|
|
582
582
|
onTabContextMenu: handleTabContextMenu,
|
|
583
583
|
onTabSortChange: handleTabSortChange
|
|
584
584
|
}, vue.createSlots({ _: 2 }, [
|
|
@@ -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,10 +133,10 @@ 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
|
-
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");
|
|
139
|
+
return (min == null || min <= 0 || min > 85412 || [18415].includes(min)) && Number(String(time).slice(0, 5)) > Number(end) ? void 0 : String(min ?? (isNaN(date) ? void 0 : date) ?? "1");
|
|
140
140
|
}
|
|
141
141
|
function capitalize(str) {
|
|
142
142
|
return str.charAt(0).toUpperCase() + str.slice(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 字符串
|