chore: use gen instead of render (#4922)

This commit is contained in:
neverland
2019-11-05 09:12:03 +08:00
committed by GitHub
parent 9c54a77845
commit 56e9b7afa0
11 changed files with 46 additions and 46 deletions
+2 -2
View File
@@ -53,7 +53,7 @@ export default createComponent({
}
},
renderChildren() {
genChildren() {
if (this.animated) {
return (
<div class={bem('track')} style={this.style}>
@@ -72,7 +72,7 @@ export default createComponent({
class={bem('content', { animated: this.animated })}
{...{ on: this.listeners }}
>
{this.renderChildren()}
{this.genChildren()}
</div>
);
}