Explorar o código

fix the tab bar dynamic bug

baiyaaaaa %!s(int64=8) %!d(string=hai) anos
pai
achega
5e692418ff
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      packages/tabs/src/tab-pane.vue

+ 3 - 0
packages/tabs/src/tab-pane.vue

@@ -70,6 +70,9 @@
         if (this.index === oldValue) {
           this.transition = oldValue > newValue ? 'slideInRight' : 'slideInLeft';
         }
+      },
+      label() {
+        this.$parent.$forceUpdate();
       }
     }
   };