From a51736abab69614c1a4db9c151acc75fe5c0857a Mon Sep 17 00:00:00 2001 From: yaoyuchi Date: Wed, 23 Feb 2022 19:43:42 +0800 Subject: [PATCH] modify sidebar according comment Signed-off-by: yaoyuchi --- api/@internal/component/ets/sidebar.d.ts | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/api/@internal/component/ets/sidebar.d.ts b/api/@internal/component/ets/sidebar.d.ts index 083b948e47..bc58cec239 100644 --- a/api/@internal/component/ets/sidebar.d.ts +++ b/api/@internal/component/ets/sidebar.d.ts @@ -17,7 +17,7 @@ * Sets the sidebar style of showing * @since 8 */ -declare enum SideBarContainerStyle { +declare enum SideBarContainerType { /** * The sidebar invisible * @since 8 @@ -73,9 +73,7 @@ interface SideBarContainerInterface { * Called when showing the sidebar of a block entry. * @since 8 */ - (options?: { showSideBarContainer?: boolean, - style?: SideBarContainerStyle, - buttonAttr?: ButtonStyle}): SideBarContainerAttribute; + (type?: SideBarContainerType): SideBarContainerAttribute; } /** @@ -84,6 +82,16 @@ interface SideBarContainerInterface { */ declare class SideBarContainerAttribute extends CommonMethod { + /** + * Callback showControlButton function when setting the status of sidebar + * @since 8 + */ + showSideBar(value: boolean): SideBarContainerAttribute; + /** + * Callback controlButton function when setting the style of button + * @since 8 + */ + controlButton(value: ButtonStyle): SideBarContainerAttribute; /** * Callback showControlButton function when setting the status of button * @since 8 -- Gitee