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

IssueNo: #I7X5WW:[新需求]: Rectify the arkts syntax of qs on monthly

Description: Rectify the arkts syntax of qs on monthly
Sig: SIG_ApplicaitonFramework
Feature or Bugfix: Feature
Binary Source: No
Signed-off-by: N189******51 <lipeicheng5@huawei.com>
上级 4b5b5446
...@@ -118,7 +118,7 @@ this.title.push('3') ...@@ -118,7 +118,7 @@ this.title.push('3')
```ts ```ts
@Component @Component
struct DateComponent { struct DateComponent {
@Prop selectedDate: Date; @Prop selectedDate: Date = new Date('');
build() { build() {
Column() { Column() {
...@@ -198,7 +198,7 @@ ParentComponent的状态变量countDownStartValue的变化将重置CountDownComp ...@@ -198,7 +198,7 @@ ParentComponent的状态变量countDownStartValue的变化将重置CountDownComp
```ts ```ts
@Component @Component
struct CountDownComponent { struct CountDownComponent {
@Prop count: number; @Prop count: number = 0;
costOfOneAttempt: number = 1; costOfOneAttempt: number = 1;
build() { build() {
...@@ -370,7 +370,7 @@ class Book { ...@@ -370,7 +370,7 @@ class Book {
@Component @Component
struct ReaderComp { struct ReaderComp {
@Prop book: Book; @Prop book: Book = new Book("", 0);
build() { build() {
Row() { Row() {
...@@ -497,7 +497,7 @@ class Book { ...@@ -497,7 +497,7 @@ class Book {
```ts ```ts
@Component @Component
struct MyComponent { struct MyComponent {
@Prop customCounter: number; @Prop customCounter: number = 0;
@Prop customCounter2: number = 5; @Prop customCounter2: number = 5;
build() { build() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册