浏览代码

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

richard1015 3 年之前
父节点
当前提交
32a4b6c973
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;