Tabs: fix a 'activeName' attribute init bug

pull/1101/head
kingwl 2016-11-16 15:35:23 +08:00
parent af4bca8abe
commit 5be8575ba1
1 changed files with 2 additions and 1 deletions

View File

@ -72,8 +72,9 @@
} }
}, },
mounted() { mounted() {
this.currentName = this.activeName || this.$children[0].index || '1';
this.$nextTick(() => { this.$nextTick(() => {
this.currentName = this.activeName || this.$children[0].index || '1'; this.$forceUpdate();
}); });
}, },
render(h) { render(h) {