@rebilly/revel 6.31.2 → 6.31.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/CHANGELOG.md +6 -1
- package/dist/components/r-tabs/r-tabs.vue.d.ts +1 -1
- package/dist/revel.mjs +7 -7
- package/dist/revel.umd.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
## [6.31.
|
|
1
|
+
## [6.31.3](https://github.com/Rebilly/rebilly/compare/revel-v6.31.2...revel-v6.31.3) (2024-09-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **revel:** use tabId instead of index ([#7415](https://github.com/Rebilly/rebilly/issues/7415)) ([3f5ecb5](https://github.com/Rebilly/rebilly/commit/3f5ecb5410626941028d3fc8523dfd308cac23a3))
|
|
@@ -3503,7 +3503,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3503
3503
|
}[];
|
|
3504
3504
|
}, {
|
|
3505
3505
|
getTabName(tab: Tab, index: number): string;
|
|
3506
|
-
selectTab({ name, value, to }: Tab, index?: Nullable<number>): void;
|
|
3506
|
+
selectTab({ name, value, to, tabId }: Tab, index?: Nullable<number>): void;
|
|
3507
3507
|
getRouteTab(): {
|
|
3508
3508
|
tabId: string;
|
|
3509
3509
|
tabPanelId: string;
|
package/dist/revel.mjs
CHANGED
|
@@ -12574,15 +12574,15 @@ const SX = /* @__PURE__ */ w1($X, [["render", DX]]), EX = J({
|
|
|
12574
12574
|
getTabName(M, b) {
|
|
12575
12575
|
return M.name ? M.name.includes(" ") ? xp(M.name) : QB(M.name) ? xp(M.name.split("-").join(" ")) : M.name : `Tab ${b + 1}`;
|
|
12576
12576
|
},
|
|
12577
|
-
selectTab({ name: M, value: b, to: z },
|
|
12578
|
-
if (p !== null && this.$emit("tab-selected", { name: M, value: b, index: p }), z && !this.goingToSameRoute(z)) {
|
|
12577
|
+
selectTab({ name: M, value: b, to: z, tabId: p }, o = null) {
|
|
12578
|
+
if ((o !== null || p !== null) && this.$emit("tab-selected", { name: M, value: b, index: o, tabId: p }), z && !this.goingToSameRoute(z)) {
|
|
12579
12579
|
this.$router.push(z);
|
|
12580
12580
|
return;
|
|
12581
12581
|
}
|
|
12582
|
-
p !== null ? this.tabs.forEach((
|
|
12583
|
-
|
|
12584
|
-
}) : this.tabs.forEach((
|
|
12585
|
-
|
|
12582
|
+
o !== null || p !== null ? this.tabs.forEach((O) => {
|
|
12583
|
+
O.isActive = p === O.tabId;
|
|
12584
|
+
}) : this.tabs.forEach((O) => {
|
|
12585
|
+
O.isActive = O.name === M;
|
|
12586
12586
|
});
|
|
12587
12587
|
},
|
|
12588
12588
|
getRouteTab() {
|
|
@@ -12619,7 +12619,7 @@ function xX(M, b, z, p, o, O) {
|
|
|
12619
12619
|
role: "tablist"
|
|
12620
12620
|
}, [
|
|
12621
12621
|
(s(!0), f(r0, null, w0(M.visibleTabs, (e, c) => (s(), f("div", {
|
|
12622
|
-
key:
|
|
12622
|
+
key: e.tabId,
|
|
12623
12623
|
class: "r-tab-item"
|
|
12624
12624
|
}, [
|
|
12625
12625
|
e.to ? (s(), f("button", {
|