未验证 提交 a800e44f 编写于 作者: 钱渊铭's avatar 钱渊铭 提交者: Gitee

【OpenHarmony开源贡献者计划2022】优化ts-methods-menu.md

#I5B6TH
Signed-off-by: 钱渊铭's avatarGoldgom <qym2005723@hotmail.com>
上级 b00eac5f
......@@ -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.
## ContextMenu.close
close(): void
Closes the menu bound to this component through [bindContextMenu](./ts-universal-attributes-menu.md#Atrributes) on a page.
|methods|description|
|----|---|
|close(): void|Closes the menu bound to this component through [bindContextMenu](./ts-universal-attributes-menu.md#Atrributes) on a page.|
- Example
```
......
......@@ -4,13 +4,12 @@
> 从 API Version 8 开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。
## ContextMenu.close
close(): void
可以通过该方法在页面范围内关闭通过[bindContextMenu](./ts-universal-attributes-menu.md#属性)给组件绑定的菜单。
|方法|描述|
|----|---|
| close(): void | 可以通过该方法在页面范围内关闭通过[bindContextMenu](./ts-universal-attributes-menu.md#属性)给组件绑定的菜单。 |
- 示例
```ts
```
// xxx.ets
@Entry
@Component
......@@ -37,4 +36,4 @@ close(): void
.height('100%')
}
}
```
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册