Commit 26535645 authored by baiyaaaaa's avatar baiyaaaaa Committed by 杨奕

fix tabs bug

parent 8e761efb
......@@ -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);
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment