fix tabs bug

This commit is contained in:
baiyaaaaa
2017-07-27 20:01:13 +08:00
committed by 杨奕
parent 8e761efbd6
commit 265356453e

View File

@@ -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);
},