From a1af98da3c8f11b0236f90f920731e00e22dc370 Mon Sep 17 00:00:00 2001 From: yaoyuchi Date: Wed, 9 Feb 2022 10:56:44 +0800 Subject: [PATCH 1/2] modify button attribute interface Signed-off-by: yaoyuchi --- api/@internal/component/ets/sidebar.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/@internal/component/ets/sidebar.d.ts b/api/@internal/component/ets/sidebar.d.ts index d03148ce7d..083b948e47 100644 --- a/api/@internal/component/ets/sidebar.d.ts +++ b/api/@internal/component/ets/sidebar.d.ts @@ -61,7 +61,7 @@ declare interface ButtonStyle { * Set the button icon when sidebar status has changed * @since 8 */ - icons?: {shown:string, hidden: string, switching?: string} + icons?: {shown:string | PixelMap | Resource, hidden: string | PixelMap | Resource, switching?: string | PixelMap | Resource} } /** @@ -75,7 +75,7 @@ interface SideBarContainerInterface { */ (options?: { showSideBarContainer?: boolean, style?: SideBarContainerStyle, - buttonAtt?: ButtonStyle}): SideBarContainerAttribute; + buttonAttr?: ButtonStyle}): SideBarContainerAttribute; } /** -- Gitee From 101d965670671d86c3e796b1da531256d6bfcfb0 Mon Sep 17 00:00:00 2001 From: yaoyuchi Date: Wed, 9 Feb 2022 18:45:25 +0800 Subject: [PATCH 2/2] add badge attribute of visible status Signed-off-by: yaoyuchi --- api/@internal/component/ets/badge.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/@internal/component/ets/badge.d.ts b/api/@internal/component/ets/badge.d.ts index a8e9684092..509c2774e8 100644 --- a/api/@internal/component/ets/badge.d.ts +++ b/api/@internal/component/ets/badge.d.ts @@ -137,6 +137,11 @@ interface BadgeInterface { * @since 7 */ (value: BadgeParamWithString): BadgeAttribute; + /** + * value: visible status of badge. + * @since 8 + */ + visible(value?: boolean) : BadgeAttribute; } /** -- Gitee