diff --git a/examples/routers/tabs.vue b/examples/routers/tabs.vue index a6bd5c7..24792d4 100644 --- a/examples/routers/tabs.vue +++ b/examples/routers/tabs.vue @@ -1,59 +1,23 @@ - diff --git a/src/components/tabs/tabs.vue b/src/components/tabs/tabs.vue index 67a1ee1..6f3e49c 100644 --- a/src/components/tabs/tabs.vue +++ b/src/components/tabs/tabs.vue @@ -181,7 +181,7 @@ handleRemove (index) { const tabs = this.getTabs(); const tab = tabs[index]; - tab.$destroy(true); + tab.$destroy(); if (tab.currentName === this.activeKey) { const newTabs = this.getTabs(); @@ -200,6 +200,7 @@ } } this.activeKey = activeKey; + this.$emit('input', activeKey); } this.$emit('on-tab-remove', tab.currentName); this.updateNav(); -- libgit2 0.21.4