Browse Source

fix(tabs): change event emit bug v3 #1884

richard1015 3 years ago
parent
commit
32a4b6c973
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/packages/__VUE/tabs/common.ts

+ 1 - 1
src/packages/__VUE/tabs/common.ts

@@ -214,7 +214,7 @@ export const component = {
     const methods = {
       tabChange: (item: Title, index: number) => {
         emit('click', item);
-        if (item.disabled) {
+        if (item.disabled || currentIndex.value == index) {
           return;
         }
         currentIndex.value = index;