mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-13 11:34:02 +08:00
fix tabs bug
This commit is contained in:
@@ -62,7 +62,7 @@
|
||||
},
|
||||
addPanes(item) {
|
||||
const index = this.$slots.default.filter(item => {
|
||||
return item.elm.nodeType === 1 && /\bel-tab-pane\b/.test('el-tab-pane');
|
||||
return item.elm.nodeType === 1 && /\bel-tab-pane\b/.test(item.elm.className);
|
||||
}).indexOf(item.$vnode);
|
||||
this.panes.splice(index, 0, item);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user