未验证 提交 049ba406 编写于 作者: L LiAn 提交者: Gitee

update zh-cn/application-dev/ui/ts-custom-component-initialization.md.

Signed-off-by: NLiAn <lian15@huawei.com>
上级 10e00b63
......@@ -93,7 +93,7 @@ struct CompA {
Row() {
CompB({bLink: $aLink, // valid init a @Link with reference of another @Link,
bProp: this.aState}) // valid init a @Prop with value of a @State
CompB({aLink: $aState, // invalid: type missmatch expected ref to ClassA, provided reference to boolean
CompB({aLink: $aState, // invalid: type mismatch expected ref to ClassA, provided reference to boolean
bProp: false}) // valid init a @Prop by constants value
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册