From e948c64a4438d3a76f3a7b3df54616eaf305045b Mon Sep 17 00:00:00 2001 From: "DESKTOP-H8KLN8I\\lisitao" Date: Mon, 4 Aug 2025 19:19:24 +0800 Subject: [PATCH] =?UTF-8?q?[L]=20add=20overload=20backgroundimage,=20focus?= =?UTF-8?q?scropeid=20=E4=BF=AE=E6=94=B9Signed-off-by:lisitaolisitao3@huaw?= =?UTF-8?q?ei.com?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: DESKTOP-H8KLN8I\lisitao --- api/arkui/component/common.static.d.ets | 48 +++++++++++++++++++++---- 1 file changed, 42 insertions(+), 6 deletions(-) diff --git a/api/arkui/component/common.static.d.ets b/api/arkui/component/common.static.d.ets index 31b466c06d..c04be69a99 100644 --- a/api/arkui/component/common.static.d.ets +++ b/api/arkui/component/common.static.d.ets @@ -10596,8 +10596,23 @@ export declare interface CommonMethod { * @form * @atomicservice * @since 20 + * @arkts 1.2 */ - default backgroundImage(src: ResourceStr | PixelMap | undefined, repeat?: ImageRepeat | undefined): this; + overload backgroundImage { backgroundImage0, backgroundImage1 } + /** + * Background image + * src: Image address url + * + * @param { ResourceStr | PixelMap } src + * @param { ImageRepeat } repeat + * @returns { T } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 + */ + default backgroundImage0(src: ResourceStr | PixelMap | undefined, repeat?: ImageRepeat | undefined): this; /** * Background image * @@ -10610,7 +10625,7 @@ export declare interface CommonMethod { * @atomicservice * @since 20 */ - default backgroundImage(src: ResourceStr | PixelMap | undefined, options?: BackgroundImageOptions | undefined): this; + default backgroundImage1(src: ResourceStr | PixelMap | undefined, options?: BackgroundImageOptions | undefined): this; /** * Background image size * @@ -11055,6 +11070,16 @@ export declare interface CommonMethod { * @since 20 */ default onTouch(event: ((event: TouchEvent) => void) | undefined): this; + /** + * Keyboard input + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + overload onKeyEvent { onKeyEvent0, onKeyEvent1 } /** * Keyboard input * @@ -11065,7 +11090,7 @@ export declare interface CommonMethod { * @atomicservice * @since 20 */ - default onKeyEvent(event: ((event: KeyEvent) => void) | undefined): this; + default onKeyEvent0(event: ((event: KeyEvent) => void) | undefined): this; /** * Keyboard input * @@ -11076,7 +11101,7 @@ export declare interface CommonMethod { * @atomicservice * @since 20 */ - default onKeyEvent(event: Callback | undefined): this; + default onKeyEvent1(event: Callback | undefined): this; /** * Digital crown input. * @@ -11246,6 +11271,17 @@ export declare interface CommonMethod { /** * Set container as a focus group with a specific identifier. * + * @returns { T } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + overload focusScopeId { focusScopeId0, focusScopeId1 } + /** + * Set container as a focus group with a specific identifier. + * * @param { string } id - focus scope identifier. * @param { boolean } [isGroup] - whether this scope is a focus group, the default value is false * @returns { T } @@ -11254,7 +11290,7 @@ export declare interface CommonMethod { * @atomicservice * @since 20 */ - default focusScopeId(id: string | undefined, isGroup?: boolean | undefined): this; + default focusScopeId0(id: string | undefined, isGroup?: boolean | undefined): this; /** * Set container as a focus group with a specific identifier. * @@ -11268,7 +11304,7 @@ export declare interface CommonMethod { * @atomicservice * @since 20 */ - default focusScopeId(id: string | undefined, isGroup?: boolean | undefined, arrowStepOut?: boolean | undefined): this; + default focusScopeId1(id: string | undefined, isGroup?: boolean | undefined, arrowStepOut?: boolean | undefined): this; /** * Set the focus priority of component in a specific focus scope. * -- Gitee