Skip to content

Commit 2653564

Browse files
9125phzzzLeopoldthecoder
authored andcommitted
fix tabs bug
1 parent 8e761ef commit 2653564

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/tabs/src/tabs.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
},
6363
addPanes(item) {
6464
const index = this.$slots.default.filter(item => {
65-
return item.elm.nodeType === 1 && /\bel-tab-pane\b/.test('el-tab-pane');
65+
return item.elm.nodeType === 1 && /\bel-tab-pane\b/.test(item.elm.className);
6666
}).indexOf(item.$vnode);
6767
this.panes.splice(index, 0, item);
6868
},

0 commit comments

Comments
 (0)