From d5dffa1a6dfb958fae7aa944cc7bbaf68806bcb1 Mon Sep 17 00:00:00 2001 From: FadeAgain <402878692@qq.com> Date: Mon, 8 Aug 2022 07:21:57 +0000 Subject: [PATCH] =?UTF-8?q?=E3=80=90OpenHarmony=E5=BC=80=E6=BA=90=E8=B4=A1?= =?UTF-8?q?=E7=8C=AE=E8=80=85=E8=AE=A1=E5=88=922022=E3=80=91zh-cn/applicat?= =?UTF-8?q?ion-dev/reference/arkui-ts/ts-methods-menu.md.=20=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3=E4=BB=A3=E7=A0=81=E5=92=8C=E6=96=87=E6=A1=A3=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=20Signed-off-by:=20FadeAgain<402878692@qq.com>?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reference/arkui-ts/ts-methods-menu.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-methods-menu.md b/zh-cn/application-dev/reference/arkui-ts/ts-methods-menu.md index e5fa15b4f5..7a64be6a6b 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-methods-menu.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-methods-menu.md @@ -3,15 +3,24 @@ 在页面范围内关闭通过[bindContextMenu](./ts-universal-attributes-menu.md#属性)属性绑定的菜单。 > **说明:** -> 从 API Version 8 开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。 +> 从API Version 8开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。 + + +## 权限列表 + +无 + ## ContextMenu.close |方法|描述| |----|---| | close(): void | 可以通过该方法在页面范围内关闭通过[bindContextMenu](./ts-universal-attributes-menu.md#属性)给组件绑定的菜单。 | -- 示例 -``` + +## 示例 + +```ts +// xxx.ets @Entry @Component struct Index { -- GitLab