From 7d97368bd7e29f4236c92415fac63c46d3431ebb Mon Sep 17 00:00:00 2001 From: 189******51 Date: Fri, 1 Sep 2023 09:15:49 +0000 Subject: [PATCH] =?UTF-8?q?IssueNo:=20#I7XV75:[=E6=96=B0=E9=9C=80=E6=B1=82?= =?UTF-8?q?]:=20Rectify=20the=20arkts=20syntax=203=20Description:=20Rectif?= =?UTF-8?q?y=20the=20arkts=20syntax=20in=20arkts-observed-and-objectlink.m?= =?UTF-8?q?d=20Sig:=20SIG=5FApplicaitonFramework=20Feature=20or=20Bugfix:?= =?UTF-8?q?=20Feature=20Binary=20Source:=20No?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 189******51 --- .../quick-start/arkts-observed-and-objectlink.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh-cn/application-dev/quick-start/arkts-observed-and-objectlink.md b/zh-cn/application-dev/quick-start/arkts-observed-and-objectlink.md index 538c27e9e0..e4c7838e12 100644 --- a/zh-cn/application-dev/quick-start/arkts-observed-and-objectlink.md +++ b/zh-cn/application-dev/quick-start/arkts-observed-and-objectlink.md @@ -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] }) -- GitLab