From aaaccb24cf02174312f0e7281517846b07d43dfe Mon Sep 17 00:00:00 2001 From: xuzhidan Date: Fri, 27 May 2022 09:13:33 +0800 Subject: [PATCH] Sidebar adds Length parameter type interface Signed-off-by: xuzhidan Change-Id: I2a53d68568d83e3f5bc9142228c46ada6149dad7 --- api/@internal/component/ets/sidebar.d.ts | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/api/@internal/component/ets/sidebar.d.ts b/api/@internal/component/ets/sidebar.d.ts index dcd1d9b9b4..1daef1b95b 100644 --- a/api/@internal/component/ets/sidebar.d.ts +++ b/api/@internal/component/ets/sidebar.d.ts @@ -107,21 +107,35 @@ declare class SideBarContainerAttribute extends CommonMethod void): SideBarContainerAttribute; /** * Sets the length of sidebar. - * Notice: only supports 'number' type on 8, supports 'Length' type since 9. + * @since 8 + */ + sideBarWidth(value: number): SideBarContainerAttribute; + /** + * Sets the min length of sidebar. + * default value is 200vp. + * @since 8 + */ + minSideBarWidth(value: number): SideBarContainerAttribute; + /** + * Sets the max length of sidebar. + * default value is 280vp. + * @since 8 + */ + maxSideBarWidth(value: number): SideBarContainerAttribute; + /** + * Sets the length of sidebar. * @since 9 */ sideBarWidth(value: Length): SideBarContainerAttribute; /** * Sets the min length of sidebar. * default value is 200vp. - * Notice: only supports 'number' type on 8, supports 'Length' type since 9. * @since 9 */ minSideBarWidth(value: Length): SideBarContainerAttribute; /** * Sets the max length of sidebar. * default value is 280vp. - * Notice: only supports 'number' type on 8, supports 'Length' type since 9. * @since 9 */ maxSideBarWidth(value: Length): SideBarContainerAttribute; -- Gitee