From eb743c817afff4d69331b71fa6005145a90ed454 Mon Sep 17 00:00:00 2001 From: xuzhidan Date: Thu, 28 Apr 2022 20:46:19 +0800 Subject: [PATCH] Add sidebar split Signed-off-by: xuzhidan Change-Id: I1abeed4f679c84dae5e028d4e9b990e855fee983 --- api/@internal/component/ets/sidebar.d.ts | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/api/@internal/component/ets/sidebar.d.ts b/api/@internal/component/ets/sidebar.d.ts index e38f1ad790..dcd1d9b9b4 100644 --- a/api/@internal/component/ets/sidebar.d.ts +++ b/api/@internal/component/ets/sidebar.d.ts @@ -107,21 +107,30 @@ declare class SideBarContainerAttribute extends CommonMethod void): SideBarContainerAttribute; /** * Sets the length of sidebar. - * @since 8 + * Notice: only supports 'number' type on 8, supports 'Length' type since 9. + * @since 9 */ - sideBarWidth(value: number): SideBarContainerAttribute; + sideBarWidth(value: Length): SideBarContainerAttribute; /** * Sets the min length of sidebar. * default value is 200vp. - * @since 8 + * Notice: only supports 'number' type on 8, supports 'Length' type since 9. + * @since 9 */ - minSideBarWidth(value: number): SideBarContainerAttribute; + minSideBarWidth(value: Length): SideBarContainerAttribute; /** * Sets the max length of sidebar. * default value is 280vp. - * @since 8 + * Notice: only supports 'number' type on 8, supports 'Length' type since 9. + * @since 9 + */ + maxSideBarWidth(value: Length): SideBarContainerAttribute; + /** + * Sets whether to automatically hide when drag sidebar width is less than the minimum width. + * default value is true. + * @since 9 */ - maxSideBarWidth(value: number): SideBarContainerAttribute; + autoHide(value: boolean): SideBarContainerAttribute; } declare const SideBarContainer: SideBarContainerInterface; -- Gitee