Sfoglia il codice sorgente

fix the tab bar dynamic bug

baiyaaaaa 8 anni fa
parent
commit
5e692418ff
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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();
       }
     }
   };