提交 cb78a526 编写于 作者: E ester.zhou

Update docs (17951)

Signed-off-by: Nester.zhou <ester.zhou@huawei.com>
上级 ac0fa5f5
...@@ -320,7 +320,7 @@ For details about the error codes, see [Router Error Codes](../errorcodes/errorc ...@@ -320,7 +320,7 @@ For details about the error codes, see [Router Error Codes](../errorcodes/errorc
| ID | Error Message| | ID | Error Message|
| --------- | ------- | | --------- | ------- |
| 100001 | if UI execution context not found, only throw in standard system. | | 100001 | if can not get the delegate, only throw in standard system. |
| 200002 | if the uri is not exist. | | 200002 | if the uri is not exist. |
**Example** **Example**
...@@ -362,7 +362,7 @@ For details about the error codes, see [Router Error Codes](../errorcodes/errorc ...@@ -362,7 +362,7 @@ For details about the error codes, see [Router Error Codes](../errorcodes/errorc
| ID | Error Message| | ID | Error Message|
| --------- | ------- | | --------- | ------- |
| 100001 | if can not get the delegate, only throw in standard system. | | 100001 | if UI execution context not found, only throw in standard system. |
| 200002 | if the uri is not exist. | | 200002 | if the uri is not exist. |
**Example** **Example**
...@@ -661,8 +661,8 @@ struct Second { ...@@ -661,8 +661,8 @@ struct Second {
private content: string = "This is the second page." private content: string = "This is the second page."
@State text: string = router.getParams()['text'] @State text: string = router.getParams()['text']
@State data: object = router.getParams()['data'] @State data: object = router.getParams()['data']
@State secondData : string = '' @State secondData: string = ''
build() { build() {
Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) {
Text(`${this.content}`) Text(`${this.content}`)
...@@ -670,14 +670,14 @@ struct Second { ...@@ -670,14 +670,14 @@ struct Second {
.fontWeight(FontWeight.Bold) .fontWeight(FontWeight.Bold)
Text(this.text) Text(this.text)
.fontSize(30) .fontSize(30)
.onClick(()=>{ .onClick(() => {
this.secondData = (this.data.['array'][1]).toString() this.secondData = (this.data.['array'][1]).toString()
}) })
.margin({top:20}) .margin({ top: 20 })
Text(`This is the data passed from the first page: ${this.secondData}`) Text(`This is the data passed from the first page: ${this.secondData}`)
.fontSize(20) .fontSize(20)
.margin({top:20}) .margin({ top: 20 })
.backgroundColor('red') .backgroundColor('red')
} }
.width('100%') .width('100%')
.height('100%') .height('100%')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册