change prop-from-parent to propFromParent
This commit is contained in:
parent
167b849d07
commit
b0c74a2cdd
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -9,7 +9,7 @@ declare global {
|
|||
interface IntrinsicElements {
|
||||
'hello-omi': Omi.CustomElementBaseAttributes & {
|
||||
msg: string;
|
||||
'prop-from-parent': string;
|
||||
propFromParent: string;
|
||||
onAbc: (e: Event) => void;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -29,7 +29,7 @@ declare namespace Omi {
|
|||
* namespace JSX {
|
||||
* interface IntrinsicElements {
|
||||
* 'hello-element': CustomElementBaseAttributes & {
|
||||
* 'prop-from-parent': string;
|
||||
* propFromParent: string;
|
||||
* }
|
||||
* }
|
||||
* }
|
||||
|
|
|
@ -29,7 +29,7 @@ declare namespace Omi {
|
|||
* namespace JSX {
|
||||
* interface IntrinsicElements {
|
||||
* 'hello-element': CustomElementBaseAttributes & {
|
||||
* 'prop-from-parent': string;
|
||||
* propFromParent: string;
|
||||
* }
|
||||
* }
|
||||
* }
|
||||
|
|
|
@ -30,7 +30,7 @@ declare namespace Omi {
|
|||
* namespace JSX {
|
||||
* interface IntrinsicElements {
|
||||
* 'hello-element': CustomElementBaseAttributes & {
|
||||
* 'prop-from-parent': string;
|
||||
* propFromParent: string;
|
||||
* }
|
||||
* }
|
||||
* }
|
||||
|
|
|
@ -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"
|
||||
/>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -30,7 +30,7 @@ declare namespace Omi {
|
|||
* namespace JSX {
|
||||
* interface IntrinsicElements {
|
||||
* 'hello-element': CustomElementBaseAttributes & {
|
||||
* 'prop-from-parent': string;
|
||||
* propFromParent: string;
|
||||
* }
|
||||
* }
|
||||
* }
|
||||
|
|
Loading…
Reference in New Issue