update code style

This commit is contained in:
张磊 2018-10-26 17:52:26 +08:00
parent be230f5829
commit 9236471739
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ class HelloElement extends WeElement {
Hello {props.msg} {props.propFromParent}
<div>
Click Me!
{props.num}
{props.num}
</div>
<div>data: {data.a}</div>
<div>props {props.num}</div>

View File

@ -26,7 +26,7 @@ class MyApp extends WeElement {
return (
<div onClick={this.onClick}>
Hello {props.name} {data.abc}
<hello-element
<hello-element
onAbc={this.onAbc}
prop-from-parent={data.passToChild}
msg="WeElement"