Эх сурвалжийг харах

fix the tab bar dynamic bug

baiyaaaaa 8 жил өмнө
parent
commit
5e692418ff

+ 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();
       }
     }
   };