From 7e47a0721bd56d4c3a5237ae0daff6763ae84417 Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Sun, 26 Jul 2020 15:35:37 +0800 Subject: [PATCH] fix(Tabs): update:active event --- src/tabs/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tabs/index.js b/src/tabs/index.js index 9c2ff1cf3..119074626 100644 --- a/src/tabs/index.js +++ b/src/tabs/index.js @@ -86,7 +86,7 @@ export default createComponent({ }, }, - emits: ['rendered', 'input', 'change', 'disabled', 'click', 'scroll'], + emits: ['click', 'change', 'scroll', 'disabled', 'rendered', 'update:active'], data() { this.titleRefs = []; @@ -243,7 +243,7 @@ export default createComponent({ if (isDef(currentIndex) && currentIndex !== this.currentIndex) { const shouldEmitChange = this.currentIndex !== null; this.currentIndex = currentIndex; - this.$emit('input', this.currentName); + this.$emit('update:active', this.currentName); if (shouldEmitChange) { this.$emit(