ele-admin-plus 1.5.0-beta.3 → 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.
|
@@ -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/utils/common.js
CHANGED
|
@@ -134,7 +134,7 @@ function localize(start, end, max) {
|
|
|
134
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 }, [
|
package/lib/utils/common.cjs
CHANGED
|
@@ -136,7 +136,7 @@ function localize(start, end, max) {
|
|
|
136
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);
|