From 29a3d45695543aabd9343870b50f40a2f68ba748 Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Thu, 13 Dec 2018 23:39:27 +0300 Subject: [PATCH] Fixed params --- src/components/tabview/TabView.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/tabview/TabView.vue b/src/components/tabview/TabView.vue index 4a1cc8d1e..2c157d549 100644 --- a/src/components/tabview/TabView.vue +++ b/src/components/tabview/TabView.vue @@ -31,6 +31,7 @@ export default { this.activateTab(index); this.$emit('tabchange', { + originalEvent: event, tab: tab, index: index }); @@ -42,9 +43,9 @@ export default { this.tabs[i].active = (i === index); } }, - onTabKeydown(event, index) { + onTabKeydown(event, tab, index) { if (event.which === 13) { - this.onTabClick(index); + this.onTabClick(event, tab, index); } } }, @@ -55,8 +56,8 @@ export default { { this.tabs.map((tab, i) => { return ( -