From 66a1ce9fc3d50d86edd6423bd12d4eb77bce1d66 Mon Sep 17 00:00:00 2001 From: DreamLoveJay Date: Tue, 8 Jul 2025 22:19:28 +0800 Subject: [PATCH] =?UTF-8?q?ArkTS1.2=E4=BA=A4=E4=BA=92=E5=AE=89=E5=85=A8Num?= =?UTF-8?q?ber=E7=B1=BB=E5=9E=8B=E8=BD=AC=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: DreamLoveJay --- api/@internal/component/ets/web.d.ts | 20 ++++++++++---------- api/@ohos.web.webview.d.ts | 8 ++++---- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/api/@internal/component/ets/web.d.ts b/api/@internal/component/ets/web.d.ts index dc279cd7df..abbd311185 100644 --- a/api/@internal/component/ets/web.d.ts +++ b/api/@internal/component/ets/web.d.ts @@ -284,13 +284,13 @@ declare interface WebKeyboardOptions { /** * Set the enter key type when the system keyboard is used, the "enter" key related to the {@link inputMethodEngine}. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - enterKeyType?: number; + enterKeyType?: int; /** * Set the custom keyboard builder when the custom keyboard is used. * @@ -334,30 +334,30 @@ declare class WebKeyboardController { /** * Delete text from back to front. * - * @param { number } length - length of text, which will be deleted from back to front. + * @param { int } length - length of text, which will be deleted from back to front. * @syscap SystemCapability.Web.Webview.Core * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - deleteForward(length: number): void; + deleteForward(length: int): void; /** * Delete text from front to back. * - * @param { number } length - length of text, which will be deleted from front to back. + * @param { int } length - length of text, which will be deleted from front to back. * @syscap SystemCapability.Web.Webview.Core * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - deleteBackward(length: number): void; + deleteBackward(length: int): void; /** * Send the function of the key. * - * @param { number } key - action indicates the "enter" key related to the {@link inputMethodEngine} + * @param { int } key - action indicates the "enter" key related to the {@link inputMethodEngine} * @syscap SystemCapability.Web.Webview.Core * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - sendFunctionKey(key: number): void; + sendFunctionKey(key: int): void; /** * Close the custom keyboard. * @@ -5635,12 +5635,12 @@ declare interface RenderProcessNotRespondingData { /** * Process id of render process not responding. * - * @type { number } + * @type { int } * @syscap SystemCapability.Web.Webview.Core * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - pid: number; + pid: int; /** * Reason for the render process not responding. diff --git a/api/@ohos.web.webview.d.ts b/api/@ohos.web.webview.d.ts index de0be74a27..8ebc06162c 100644 --- a/api/@ohos.web.webview.d.ts +++ b/api/@ohos.web.webview.d.ts @@ -4308,7 +4308,7 @@ declare namespace webview { /** * Gets the id for the current Web. - * @returns { number } Returns the index value of the current Web component. + * @returns { int } Returns the index value of the current Web component. * @throws { BusinessError } 17100001 - Init error. * The WebviewController must be associated with a Web component. * @syscap SystemCapability.Web.Webview.Core @@ -4316,7 +4316,7 @@ declare namespace webview { */ /** * Gets the id for the current Web. - * @returns { number } Returns the index value of the current Web component. + * @returns { int } Returns the index value of the current Web component. * @throws { BusinessError } 17100001 - Init error. * The WebviewController must be associated with a Web component. * @syscap SystemCapability.Web.Webview.Core @@ -4325,7 +4325,7 @@ declare namespace webview { */ /** * Gets the id for the current Web. - * @returns { number } Returns the index value of the current Web component. + * @returns { int } Returns the index value of the current Web component. * @throws { BusinessError } 17100001 - Init error. * The WebviewController must be associated with a Web component. * @syscap SystemCapability.Web.Webview.Core @@ -4334,7 +4334,7 @@ declare namespace webview { * @since arkts {'1.1':'18', '1.2':'20'} * @arkts 1.1&1.2 */ - getWebId(): number; + getWebId(): int; /** * Gets the default user agent. -- Gitee