浏览代码

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