From a1af98da3c8f11b0236f90f920731e00e22dc370 Mon Sep 17 00:00:00 2001 From: yaoyuchi Date: Wed, 9 Feb 2022 10:56:44 +0800 Subject: [PATCH] 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