瀏覽代碼

fix the tab bar dynamic bug

baiyaaaaa 8 年之前
父節點
當前提交
5e692418ff
共有 1 個文件被更改,包括 3 次插入0 次删除
  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();
       }
     }
   };