change prop-from-parent to propFromParent

This commit is contained in:
张磊 2018-12-05 09:10:38 +08:00
parent 167b849d07
commit b0c74a2cdd
12 changed files with 12 additions and 12 deletions

View File

@ -412,7 +412,7 @@ define('my-app', class extends WeElement {
Hello {props.name} {data.abc}
<hello-element
onAbc={this.onAbc}
prop-from-parent={data.passToChild}
propFromParent={data.passToChild}
msg="WeElement"
/>
</div>

View File

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

View File

@ -411,7 +411,7 @@ define('my-app', class extends WeElement {
Hello {props.name} {data.abc}
<hello-element
onAbc={this.onAbc}
prop-from-parent={data.passToChild}
propFromParent={data.passToChild}
msg="WeElement"
/>
</div>

View File

@ -9,7 +9,7 @@ declare global {
interface IntrinsicElements {
'hello-omi': Omi.CustomElementBaseAttributes & {
msg: string;
'prop-from-parent': string;
propFromParent: string;
onAbc: (e: Event) => void;
};
}

View File

@ -87,7 +87,7 @@ class MyApp extends WeElement<MyAppProps, MyAppData> {
<h1 class="app-title">Welcome to {props.name}</h1>
</header>
Hello {this.props.name} {this.data.abc}
<hello-omi onAbc={this.onAbc} prop-from-parent={this.data.passToChild} msg="Omi"></hello-omi>
<hello-omi onAbc={this.onAbc} propFromParent={this.data.passToChild} msg="Omi"></hello-omi>
</div>
)
}

View File

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

View File

@ -29,7 +29,7 @@ declare namespace Omi {
* namespace JSX {
* interface IntrinsicElements {
* 'hello-element': CustomElementBaseAttributes & {
* 'prop-from-parent': string;
* propFromParent: string;
* }
* }
* }

View File

@ -29,7 +29,7 @@ declare namespace Omi {
* namespace JSX {
* interface IntrinsicElements {
* 'hello-element': CustomElementBaseAttributes & {
* 'prop-from-parent': string;
* propFromParent: string;
* }
* }
* }

View File

@ -30,7 +30,7 @@ declare namespace Omi {
* namespace JSX {
* interface IntrinsicElements {
* 'hello-element': CustomElementBaseAttributes & {
* 'prop-from-parent': string;
* propFromParent: string;
* }
* }
* }

View File

@ -28,7 +28,7 @@ define('my-app', class extends WeElement {
Hello {props.name} {data.abc} {this.dd.a}
<hello-element
onAbc={this.onAbc}
prop-from-parent={data.passToChild}
propFromParent={data.passToChild}
dd={this.dd}
msg="WeElement"
/>

View File

@ -37,7 +37,7 @@ define('my-app', class extends WeElement {
)}
<hello-element
onAbc={this.onAbc}
prop-from-parent={data.passToChild}
propFromParent={data.passToChild}
msg="WeElement"
/>
</div>

View File

@ -30,7 +30,7 @@ declare namespace Omi {
* namespace JSX {
* interface IntrinsicElements {
* 'hello-element': CustomElementBaseAttributes & {
* 'prop-from-parent': string;
* propFromParent: string;
* }
* }
* }