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

!5072 【轻量级 PR】:【OpenHarmony开源贡献者计划2022】优化ts-methods-menu.md

Merge pull request !5072 from Goldgom/N/A
...@@ -4,10 +4,9 @@ ...@@ -4,10 +4,9 @@
> The APIs of this module are supported since API version 8. Updates will be marked with a superscript to indicate their earliest API version. > The APIs of this module are supported since API version 8. Updates will be marked with a superscript to indicate their earliest API version.
## ContextMenu.close ## ContextMenu.close
|methods|description|
close(): void |----|---|
|close(): void|Closes the menu bound to this component through [bindContextMenu](./ts-universal-attributes-menu.md#Atrributes) on a page.|
Closes the menu bound to this component through [bindContextMenu](./ts-universal-attributes-menu.md#Atrributes) on a page.
- Example - Example
``` ```
......
...@@ -4,13 +4,12 @@ ...@@ -4,13 +4,12 @@
> 从 API Version 8 开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。 > 从 API Version 8 开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。
## ContextMenu.close ## ContextMenu.close
|方法|描述|
close(): void |----|---|
| close(): void | 可以通过该方法在页面范围内关闭通过[bindContextMenu](./ts-universal-attributes-menu.md#属性)给组件绑定的菜单。 |
可以通过该方法在页面范围内关闭通过[bindContextMenu](./ts-universal-attributes-menu.md#属性)给组件绑定的菜单。
- 示例 - 示例
```ts ```
// xxx.ets // xxx.ets
@Entry @Entry
@Component @Component
...@@ -37,4 +36,4 @@ close(): void ...@@ -37,4 +36,4 @@ close(): void
.height('100%') .height('100%')
} }
} }
``` ```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册