未验证 提交 a2046d6f 编写于 作者: O openharmony_ci 提交者: Gitee

!14647 翻译完成 13978:getInspectorTree接口返回值修改为Object-monthly

Merge pull request !14647 from ester.zhou/cherry-pick-1676353399
...@@ -39,7 +39,7 @@ This API is used only for test purposes. ...@@ -39,7 +39,7 @@ This API is used only for test purposes.
### getInspectorTree<sup>9+</sup> ### getInspectorTree<sup>9+</sup>
getInspectorTree(): string getInspectorTree(): Object
Obtains the component tree and component attributes. Obtains the component tree and component attributes.
...@@ -49,7 +49,7 @@ This API is used only for test purposes. ...@@ -49,7 +49,7 @@ This API is used only for test purposes.
| Type | Description | | Type | Description |
| ------ | --------------------------- | | ------ | --------------------------- |
| string | JSON string of the component tree and component attribute list.| | Object | JSON object of the component tree and component attribute list.|
### sendEventByKey<sup>9+</sup> ### sendEventByKey<sup>9+</sup>
...@@ -181,7 +181,7 @@ struct IdExample { ...@@ -181,7 +181,7 @@ struct IdExample {
}.margin({ top: 20 }) }.margin({ top: 20 })
.onClick(() => { .onClick(() => {
console.info(getInspectorByKey("click")) console.info(getInspectorByKey("click"))
console.info(getInspectorTree()) console.info(JSON.stringify(getInspectorTree()))
this.text = "Button 'click to start' is clicked" this.text = "Button 'click to start' is clicked"
setTimeout(() => { setTimeout(() => {
sendEventByKey("longClick", 11, "") // Send a long-click event to the component whose ID is "longClick". sendEventByKey("longClick", 11, "") // Send a long-click event to the component whose ID is "longClick".
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册