未验证 提交 6c57707a 编写于 作者: L LiAn 提交者: Gitee

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

Signed-off-by: NLiAn <lian15@huawei.com>
上级 dd7ee541
......@@ -15,7 +15,8 @@
对组件化的深入描述,请参考深入理解组件化。
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> **说明:**
>
> - 自定义组件必须定义build方法。
>
> - 自定义组件禁止自定义构造函数。
......@@ -78,11 +79,11 @@ struct ParentComponent {
}
}
private aboutToAppear() {
aboutToAppear() {
console.log('ParentComponent: Just created, about to become rendered first time.')
}
private aboutToDisappear() {
aboutToDisappear() {
console.log('ParentComponent: About to be removed from the UI.')
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册