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

IssueNo: #I7XV75:[新需求]: Rectify the arkts syntax 3

Description: Rectify the arkts syntax in arkts-observed-and-objectlink.md
Sig: SIG_ApplicaitonFramework
Feature or Bugfix: Feature
Binary Source: No
Signed-off-by: N189******51 <lipeicheng5@huawei.com>
上级 e960d59d
......@@ -346,7 +346,7 @@ struct ViewB {
(item: ClassA) => {
ViewA({ label: `#${item.id}`, a: item })
},
(item: ClassA) => item.id.toString()
(item: ClassA): string => item.id.toString()
)
// 使用@State装饰的数组的数组项初始化@ObjectLink,其中数组项是被@Observed装饰的ClassA的实例
ViewA({ label: `ViewA this.arrA[first]`, a: this.arrA[0] })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册