@rebilly/revel 13.10.9 → 13.10.10
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
## 13.10.
|
|
1
|
+
## 13.10.10 (2026-11-12)
|
|
2
2
|
|
|
3
|
-
###
|
|
3
|
+
### Bug Fixes
|
|
4
4
|
|
|
5
|
-
-
|
|
5
|
+
- **revel:** select the default route tab without a new history entry ([#32033](https://github.com/Rebilly/rebilly/pull/32033))
|
|
@@ -96,7 +96,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
96
96
|
isInvalidTab(): boolean;
|
|
97
97
|
}, {
|
|
98
98
|
getTabName(tab: Tab, index: number): string;
|
|
99
|
-
selectTab({ name, value, to, tabId }: Tab, index?: Nullable<number
|
|
99
|
+
selectTab({ name, value, to, tabId }: Tab, index?: Nullable<number>, { replace }?: {
|
|
100
|
+
replace?: boolean | undefined;
|
|
101
|
+
}): void;
|
|
100
102
|
getRouteTab(): {
|
|
101
103
|
tabId: string;
|
|
102
104
|
tabPanelId: string;
|
|
@@ -250,13 +250,13 @@ var p = a({
|
|
|
250
250
|
getTabName(t, r) {
|
|
251
251
|
return t.name ? t.name.includes(" ") ? e(t.name) : n(t.name) ? e(t.name.split("-").join(" ")) : t.name : `Tab ${r + 1}`;
|
|
252
252
|
},
|
|
253
|
-
selectTab({ name: e, value: t, to: n, tabId: r }, i = null) {
|
|
253
|
+
selectTab({ name: e, value: t, to: n, tabId: r }, i = null, { replace: a = !1 } = {}) {
|
|
254
254
|
(i !== null || r !== null) && this.$emit("tab-selected", {
|
|
255
255
|
name: e,
|
|
256
256
|
value: t,
|
|
257
257
|
index: i,
|
|
258
258
|
tabId: r
|
|
259
|
-
}), n && !this.goingToSameRoute(n) ? this.$router.push(n) : (i !== null || r !== null ? this.tabs.forEach((e) => {
|
|
259
|
+
}), n && !this.goingToSameRoute(n) ? a ? this.$router.replace(n) : this.$router.push(n) : (i !== null || r !== null ? this.tabs.forEach((e) => {
|
|
260
260
|
e.isActive = r === e.tabId;
|
|
261
261
|
}) : this.tabs.forEach((t) => {
|
|
262
262
|
t.isActive = t.name === e;
|
|
@@ -282,7 +282,7 @@ var p = a({
|
|
|
282
282
|
if (!this.tabs.length) throw Error("<r-tabs> must contain multiple <r-tab> in its required slot");
|
|
283
283
|
if (this.tabs.find((e) => e.active)) return;
|
|
284
284
|
let e = this.getRouteTab();
|
|
285
|
-
e ? e.isActive = !0 : this.selectTab(this.visibleTabs[this.preselectedTab]);
|
|
285
|
+
e ? e.isActive = !0 : this.selectTab(this.visibleTabs[this.preselectedTab], null, { replace: !0 });
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
});
|