提交 e64ee75f 编写于 作者: L luoying_ace_admin

revise docs

Signed-off-by: Nluoying_ace_admin <luoying19@huawei.com>
上级 624f13f6
...@@ -58,26 +58,15 @@ struct ComponentA { ...@@ -58,26 +58,15 @@ struct ComponentA {
this.label = (this.languageCode === 'zh') ? '数量' : 'Count' this.label = (this.languageCode === 'zh') ? '数量' : 'Count'
}) })
} }
.margin({ bottom: 50 }) .margin({ top: 50, bottom: 50 })
Row() { Row() {
Button(`更改@StorageLink修饰的变量:${this.varA}`).height(40).fontSize(14) Button(`更改@StorageLink修饰的变量:${this.varA}`).height(40).fontSize(14)
.onClick(() => { .onClick(() => {
this.varA++ this.varA++
}) })
}.margin({ bottom: 50 })
Row() {
Button(`更改@StorageProp修饰的变量:${this.languageCode}`).height(40).fontSize(14)
.onClick(() => {
if (this.languageCode === 'zh') {
this.languageCode = 'en'
} else {
this.languageCode = 'zh'
}
})
}
} }
}.width('100%')
} }
} }
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册