fix(Tab): add nextTick to ensure rendered (#5327)
This commit is contained in:
+3
-1
@@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user