Browse Source

fix the tab bar dynamic bug

baiyaaaaa 8 years ago
parent
commit
5e692418ff
1 changed files with 3 additions and 0 deletions
  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) {
         if (this.index === oldValue) {
           this.transition = oldValue > newValue ? 'slideInRight' : 'slideInLeft';
           this.transition = oldValue > newValue ? 'slideInRight' : 'slideInLeft';
         }
         }
+      },
+      label() {
+        this.$parent.$forceUpdate();
       }
       }
     }
     }
   };
   };