fix(Tab): add nextTick to ensure rendered (#5327)

This commit is contained in:
neverland
2019-12-20 10:43:32 +08:00
committed by GitHub
parent fb59e39622
commit cd2faa2e02
3 changed files with 12 additions and 3 deletions
+3 -1
View File
@@ -45,7 +45,9 @@ export default createComponent({
inited(val) {
if (this.parent.lazyRender && val) {
this.parent.$emit('rendered', this.computedName, this.title);
this.$nextTick(() => {
this.parent.$emit('rendered', this.computedName, this.title);
});
}
}
},