From 476211451647ae57451a4407225e7231ab4352e2 Mon Sep 17 00:00:00 2001 From: Pavel Mironchik Date: Fri, 15 Aug 2025 15:50:59 +0300 Subject: [PATCH] remove DividerStyle duplication from sidebar Signed-off-by: Pavel Mironchik --- api/arkui/component/sidebar.static.d.ets | 49 +----------------------- 1 file changed, 1 insertion(+), 48 deletions(-) diff --git a/api/arkui/component/sidebar.static.d.ets b/api/arkui/component/sidebar.static.d.ets index fb327076e0..c12159deb9 100644 --- a/api/arkui/component/sidebar.static.d.ets +++ b/api/arkui/component/sidebar.static.d.ets @@ -22,7 +22,7 @@ import { Resource } from '../../global/resource'; import { Length, ResourceColor, Dimension } from './units'; -import { CommonMethod, PixelMap, Bindable, AttributeModifier } from './common'; +import { CommonMethod, PixelMap, Bindable, AttributeModifier, DividerStyle } from './common'; import { memo, ComponentBuilder } from './../stateManagement/runtime'; /** @@ -179,53 +179,6 @@ export declare interface ButtonStyle { icons?: ButtonIconOptions; } -/** - * Provides an interface for the style of a divider including stroke width, color, start margin - * and end margin - * - * @interface DividerStyle - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 20 - */ -export interface DividerStyle { - /** - * Define the stroke width of the divider - * - * @type { Length } - * @default 1vp - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 20 - */ - strokeWidth: Length; - - /** - * Define the color of the divider - * - * @type { ?ResourceColor } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 20 - */ - color?: ResourceColor; - - /** - * Define the start margin of the divider - * - * @type { ?Length } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 20 - */ - startMargin?: Length; - - /** - * Define the end margin of the divider - * - * @type { ?Length } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @since 20 - */ - endMargin?: Length; -} - /** * The attribute function of sidebar * -- Gitee