Commit 55d1a39e authored by baiyaaaaa's avatar baiyaaaaa Committed by cinwell.li

fix tab insert index (#2898)

parent 9ee825b9
......@@ -60,7 +60,8 @@
this.$emit('input', value);
},
addPanes(item) {
this.panes.push(item);
const index = this.$slots.default.indexOf(item.$vnode);
this.panes.splice(index, 0, item);
},
removePanes(item) {
const panes = this.panes;
......
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