未验证 提交 4800812c 编写于 作者: 1 189******51 提交者: Gitee

update zh-cn/application-dev/quick-start/arkts-builder.md.

Signed-off-by: N189******51 <lipeicheng5@huawei.com>
上级 47ac5fd6
...@@ -21,14 +21,14 @@ ...@@ -21,14 +21,14 @@
```ts ```ts
@Builder MyBuilderFunction({ ... }) @Builder MyBuilderFunction() { ... }
``` ```
使用方法: 使用方法:
```ts ```ts
this.MyBuilderFunction({ ... }) this.MyBuilderFunction() { ... }
``` ```
- 允许在自定义组件内定义一个或多个自定义构建函数,该函数被认为是该组件的私有、特殊类型的成员函数。 - 允许在自定义组件内定义一个或多个自定义构建函数,该函数被认为是该组件的私有、特殊类型的成员函数。
...@@ -44,7 +44,7 @@ this.MyBuilderFunction({ ... }) ...@@ -44,7 +44,7 @@ this.MyBuilderFunction({ ... })
```ts ```ts
@Builder function MyGlobalBuilderFunction({ ... }) @Builder function MyGlobalBuilderFunction() { ... }
``` ```
使用方法: 使用方法:
...@@ -82,7 +82,7 @@ class ABuilderParam { ...@@ -82,7 +82,7 @@ class ABuilderParam {
paramB1: string = '' paramB1: string = ''
} }
ABuilder($$ : ABuilderParam); @Builder function ABuilder($$ : ABuilderParam) {...}
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册