mirror of https://github.com/ElemeFE/element
Tabs: fix a 'activeName' attribute init bug
parent
af4bca8abe
commit
5be8575ba1
|
@ -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