fix tabs bug

pull/6127/head
baiyaaaaa 2017-07-27 20:01:13 +08:00 committed by 杨奕
parent 8e761efbd6
commit 265356453e
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@
}, },
addPanes(item) { addPanes(item) {
const index = this.$slots.default.filter(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); }).indexOf(item.$vnode);
this.panes.splice(index, 0, item); this.panes.splice(index, 0, item);
}, },