From 297ea4ea2ffb17e0751ac42afefdfe34c17fb82c Mon Sep 17 00:00:00 2001 From: 189******51 Date: Wed, 30 Aug 2023 09:29:50 +0000 Subject: [PATCH] =?UTF-8?q?IssueNo:=20#I7X5WW:[=E6=96=B0=E9=9C=80=E6=B1=82?= =?UTF-8?q?]:=20Rectify=20the=20arkts=20syntax=20of=20qs=20on=20monthly=20?= =?UTF-8?q?Description:=20Rectify=20the=20arkts=20syntax=20of=20qs=20on=20?= =?UTF-8?q?monthly=20Sig:=20SIG=5FApplicaitonFramework=20Feature=20or=20Bu?= =?UTF-8?q?gfix:=20Feature=20Binary=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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zh-cn/application-dev/quick-start/arkts-prop.md b/zh-cn/application-dev/quick-start/arkts-prop.md index b855989d32..171f1fb43b 100644 --- a/zh-cn/application-dev/quick-start/arkts-prop.md +++ b/zh-cn/application-dev/quick-start/arkts-prop.md @@ -118,7 +118,7 @@ this.title.push('3') ```ts @Component struct DateComponent { - @Prop selectedDate: Date; + @Prop selectedDate: Date = new Date(''); build() { Column() { @@ -198,7 +198,7 @@ ParentComponent的状态变量countDownStartValue的变化将重置CountDownComp ```ts @Component struct CountDownComponent { - @Prop count: number; + @Prop count: number = 0; costOfOneAttempt: number = 1; build() { @@ -370,7 +370,7 @@ class Book { @Component struct ReaderComp { - @Prop book: Book; + @Prop book: Book = new Book("", 0); build() { Row() { @@ -497,7 +497,7 @@ class Book { ```ts @Component struct MyComponent { - @Prop customCounter: number; + @Prop customCounter: number = 0; @Prop customCounter2: number = 5; build() { -- GitLab