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

Update docs (13865)

Signed-off-by: Nester.zhou <ester.zhou@huawei.com>
上级 84040aa6
...@@ -72,7 +72,7 @@ For details about the error codes, see [Animator Error Codes](../errorcodes/erro ...@@ -72,7 +72,7 @@ For details about the error codes, see [Animator Error Codes](../errorcodes/erro
| ID | Error Message| | ID | Error Message|
| --------- | ------- | | --------- | ------- |
| 100001 | If no page is found for pageId or fail to get object property list. | | 100001 | if no page is found for pageId or fail to get object property list. |
**Example** **Example**
......
...@@ -32,7 +32,7 @@ For details about the error codes, see [promptAction Error Codes](../errorcodes/ ...@@ -32,7 +32,7 @@ For details about the error codes, see [promptAction Error Codes](../errorcodes/
| ID | Error Message| | ID | Error Message|
| --------- | ------- | | --------- | ------- |
| 100001 | If UI execution context not found. | | 100001 | if UI execution context not found. |
**Example** **Example**
...@@ -40,7 +40,7 @@ For details about the error codes, see [promptAction Error Codes](../errorcodes/ ...@@ -40,7 +40,7 @@ For details about the error codes, see [promptAction Error Codes](../errorcodes/
try { try {
promptAction.showToast({ promptAction.showToast({
message: 'Message Info', message: 'Message Info',
duration: 2000, duration: 2000
}); });
} catch (error) { } catch (error) {
console.error(`showToast args error code is ${error.code}, message is ${error.message}`); console.error(`showToast args error code is ${error.code}, message is ${error.message}`);
...@@ -88,7 +88,7 @@ For details about the error codes, see [promptAction Error Codes](../errorcodes/ ...@@ -88,7 +88,7 @@ For details about the error codes, see [promptAction Error Codes](../errorcodes/
| ID | Error Message| | ID | Error Message|
| --------- | ------- | | --------- | ------- |
| 100001 | If UI execution context not found. | | 100001 | if UI execution context not found. |
**Example** **Example**
...@@ -100,11 +100,11 @@ try { ...@@ -100,11 +100,11 @@ try {
buttons: [ buttons: [
{ {
text: 'button1', text: 'button1',
color: '#000000', color: '#000000'
}, },
{ {
text: 'button2', text: 'button2',
color: '#000000', color: '#000000'
} }
], ],
}) })
...@@ -142,7 +142,7 @@ For details about the error codes, see [promptAction Error Codes](../errorcodes/ ...@@ -142,7 +142,7 @@ For details about the error codes, see [promptAction Error Codes](../errorcodes/
| ID | Error Message| | ID | Error Message|
| --------- | ------- | | --------- | ------- |
| 100001 | If UI execution context not found. | | 100001 | if UI execution context not found. |
**Example** **Example**
...@@ -154,11 +154,11 @@ try { ...@@ -154,11 +154,11 @@ try {
buttons: [ buttons: [
{ {
text: 'button1', text: 'button1',
color: '#000000', color: '#000000'
}, },
{ {
text: 'button2', text: 'button2',
color: '#000000', color: '#000000'
} }
] ]
}, (err, data) => { }, (err, data) => {
...@@ -218,7 +218,7 @@ For details about the error codes, see [promptAction Error Codes](../errorcodes/ ...@@ -218,7 +218,7 @@ For details about the error codes, see [promptAction Error Codes](../errorcodes/
| ID | Error Message| | ID | Error Message|
| --------- | ------- | | --------- | ------- |
| 100001 | If UI execution context not found. | | 100001 | if UI execution context not found. |
**Example** **Example**
...@@ -229,11 +229,11 @@ try { ...@@ -229,11 +229,11 @@ try {
buttons: [ buttons: [
{ {
text: 'item1', text: 'item1',
color: '#666666', color: '#666666'
}, },
{ {
text: 'item2', text: 'item2',
color: '#000000', color: '#000000'
}, },
] ]
}, (err, data) => { }, (err, data) => {
...@@ -276,7 +276,7 @@ For details about the error codes, see [promptAction Error Codes](../errorcodes/ ...@@ -276,7 +276,7 @@ For details about the error codes, see [promptAction Error Codes](../errorcodes/
| ID | Error Message| | ID | Error Message|
| --------- | ------- | | --------- | ------- |
| 100001 | If UI execution context not found. | | 100001 | if UI execution context not found. |
**Example** **Example**
...@@ -287,11 +287,11 @@ try { ...@@ -287,11 +287,11 @@ try {
buttons: [ buttons: [
{ {
text: 'item1', text: 'item1',
color: '#666666', color: '#666666'
}, },
{ {
text: 'item2', text: 'item2',
color: '#000000', color: '#000000'
}, },
] ]
}) })
......
...@@ -563,6 +563,7 @@ Describes the page routing options. ...@@ -563,6 +563,7 @@ Describes the page routing options.
> **NOTE** > **NOTE**
>
> The page routing stack supports a maximum of 32 pages. > The page routing stack supports a maximum of 32 pages.
## RouterMode<sup>9+</sup> ## RouterMode<sup>9+</sup>
......
...@@ -38,7 +38,7 @@ export default { ...@@ -38,7 +38,7 @@ export default {
showToast() { showToast() {
prompt.showToast({ prompt.showToast({
message: 'Message Info', message: 'Message Info',
duration: 2000, duration: 2000
}); });
} }
} }
...@@ -67,11 +67,11 @@ export default { ...@@ -67,11 +67,11 @@ export default {
showDialog() { showDialog() {
prompt.showDialog({ prompt.showDialog({
title: 'Title Info', title: 'Title Info',
message: 'Message Info', message: 'Message Info',
buttons: [ buttons: [
{ {
text: 'button', text: 'button',
color: '#666666', color: '#666666'
}, },
], ],
success: function(data) { success: function(data) {
...@@ -110,12 +110,12 @@ export default { ...@@ -110,12 +110,12 @@ export default {
buttons: [ buttons: [
{ {
text: 'item1', text: 'item1',
color: '#666666', color: '#666666'
}, },
{ {
text: 'item2', text: 'item2',
color: '#000000', color: '#000000'
}, },
], ],
success: function(tapIndex) { success: function(tapIndex) {
console.log('dialog success callback, click button : ' + data.tapIndex); console.log('dialog success callback, click button : ' + data.tapIndex);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册