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() {
|
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) {
|
||||||
|
|
Loading…
Reference in New Issue