From b994a27a357cb99c7a21efe81917d25a59744bca Mon Sep 17 00:00:00 2001 From: lanyill Date: Sat, 19 Mar 2022 12:08:06 +0800 Subject: [PATCH] fixed af461d4 from https://gitee.com/lanyill/interface_sdk-js/pulls/1252 web hittexttyre enum fix Signed-off-by: lanyill --- api/@internal/component/ets/web.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/api/@internal/component/ets/web.d.ts b/api/@internal/component/ets/web.d.ts index d39d726d7d..360a1a1d1c 100755 --- a/api/@internal/component/ets/web.d.ts +++ b/api/@internal/component/ets/web.d.ts @@ -74,7 +74,7 @@ declare enum HitTestType { * The edit text. * @since 8 */ - Edit, + EditText, /** * The email address. @@ -86,13 +86,13 @@ declare enum HitTestType { * The HTML::a tag with src=http. * @since 8 */ - Http, + HttpAnchor, /** * The HTML::a tag with src=http + HTML::img. * @since 8 */ - HttpImg, + HttpAnchorImg, /** * The HTML::img tag. @@ -469,7 +469,7 @@ declare class WebController { * Load the given URL * @since 8 */ - loadUrl(options: { url: string; headers?: Array<{ key: string; value: string }> }); + loadUrl(options: { url: string; headers?: Array
}); /** * refreshes the current URL. @@ -487,7 +487,7 @@ declare class WebController { * Registers the JavaScript object and method list. * @since 8 */ - registerJavaScriptProxy(options: { obj: object; name: string; methodList: Array }); + registerJavaScriptProxy(options: { object: object; name: string; methodList: Array }); /** * Deletes a registered JavaScript object with given name. @@ -625,7 +625,7 @@ declare class WebAttribute extends CommonMethod { * @since 8 */ javaScriptProxy(javaScriptProxy: { - obj: object; + object: object; name: string; methodList: Array; controller: WebController; -- Gitee