mirror of https://github.com/ElemeFE/element
Merge pull request #1101 from Kingwl/master
Tabs: fix a 'activeName' attribute init bugpull/1104/head
commit
73e9e918ae
|
@ -72,8 +72,9 @@
|
|||
}
|
||||
},
|
||||
mounted() {
|
||||
this.currentName = this.activeName || this.$children[0].index || '1';
|
||||
this.$nextTick(() => {
|
||||
this.currentName = this.activeName || this.$children[0].index || '1';
|
||||
this.$forceUpdate();
|
||||
});
|
||||
},
|
||||
render(h) {
|
||||
|
|
Loading…
Reference in New Issue