From 7d32a0071743ac7b8dcc649405b9476ccb200379 Mon Sep 17 00:00:00 2001 From: ia_oi Date: Tue, 19 Aug 2025 10:12:17 +0800 Subject: [PATCH] =?UTF-8?q?Web=20Menu=20Sdk=20=E4=B8=80=E8=87=B4=E6=80=A7?= =?UTF-8?q?=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ia_oi --- api/@internal/component/ets/web.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/@internal/component/ets/web.d.ts b/api/@internal/component/ets/web.d.ts index c35f107e5e..98987a1277 100644 --- a/api/@internal/component/ets/web.d.ts +++ b/api/@internal/component/ets/web.d.ts @@ -7295,8 +7295,10 @@ declare enum PdfLoadResult { declare interface PreviewMenuOptions { /** * Defines the haptic feedback mode of preview menu. + * To enable haptic feedback, you must declare the ohos.permission.VIBRATE permission. * * @type { ?HapticFeedbackMode } + * @default HapticFeedbackMode.DISABLED * @syscap SystemCapability.Web.Webview.Core * @since 20 */ @@ -10354,7 +10356,7 @@ declare class WebAttribute extends CommonMethod { * The number of menu items, as well as the content size and icon size of the menu, * should be consistent with the ArkUI Menu component. * The system-provided id enumeration values (TextMenuItemId) in the menu are only - * supportedfor CUT, COPY, PASTE, and SELECT_ALL in the web. + * supported for CUT, COPY, PASTE, SELECT_ALL, TRANSLATE, SEARCH and some AI menu in the web. * The textRange parameter in the onMenuItemClick function is meaningless in the web, * and the input value is -1. * @returns { WebAttribute } -- Gitee