From e960d59d80c078e945f55f39580df51933c8063e Mon Sep 17 00:00:00 2001 From: 189******51 Date: Fri, 1 Sep 2023 09:00: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-prop.md.=20Sig:=20SIG=5FA?= =?UTF-8?q?pplicaitonFramework=20Feature=20or=20Bugfix:=20Feature=20Binary?= =?UTF-8?q?=20Source:=20No?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 189******51 --- zh-cn/application-dev/quick-start/arkts-prop.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zh-cn/application-dev/quick-start/arkts-prop.md b/zh-cn/application-dev/quick-start/arkts-prop.md index 9250154d01..12b19eac88 100644 --- a/zh-cn/application-dev/quick-start/arkts-prop.md +++ b/zh-cn/application-dev/quick-start/arkts-prop.md @@ -264,7 +264,7 @@ struct ParentComponent { ```ts @Component struct Child { - @Prop value: number; + @Prop value: number = 0; build() { Text(`${this.value}`) @@ -288,10 +288,10 @@ struct Index { Divider().height(5) ForEach(this.arr, - item => { + (item: void) => { Child({value: item}) }, - item => item.toString() + (item: string) => item.toString() ) Text('replace entire arr') .fontSize(50) -- GitLab