Skip to content

Commit 3f5e265

Browse files
authored
bugfix use paneName instead of name
1 parent 16311d1 commit 3f5e265

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/tabs/src/tab-bar.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
1515
computed: {
1616
barStyle: {
17-
cache: false,
1817
get() {
1918
if (!this.$parent.$refs.tabs) return {};
2019
let style = {};
@@ -26,7 +25,7 @@
2625
return str.toLowerCase().replace(/( |^)[a-z]/g, (L) => L.toUpperCase());
2726
};
2827
this.tabs.every((tab, index) => {
29-
let $el = arrayFind(this.$parent.$refs.tabs, t => t.id.replace('tab-', '') === tab.name);
28+
let $el = arrayFind(this.$parent.$refs.tabs, t => t.id.replace('tab-', '') === tab.paneName);
3029
if (!$el) { return false; }
3130
3231
if (!tab.active) {

0 commit comments

Comments
 (0)