feat(Tabs): add rendered prop (#5315)

This commit is contained in:
neverland
2019-12-19 17:16:33 +08:00
committed by GitHub
parent 329a5cd0c3
commit 80834d7400
6 changed files with 69 additions and 15 deletions
+6
View File
@@ -41,6 +41,12 @@ export default createComponent({
title() {
this.parent.setLine();
},
inited(val) {
if (this.parent.lazyRender && val) {
this.parent.$emit('rendered', this.computedName, this.title);
}
}
},