From ea55beb85b6352b8fa262dc2e71358e2c27006be Mon Sep 17 00:00:00 2001 From: liyi0309 Date: Mon, 28 Jul 2025 14:59:47 +0800 Subject: [PATCH] =?UTF-8?q?slider=20=E6=94=AF=E6=8C=81=E6=B8=90=E5=8F=98?= =?UTF-8?q?=E8=89=B2=E6=BB=91=E5=9D=97=20Signed-off-by:=20liyi0309=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/@internal/component/ets/slider.d.ts | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/api/@internal/component/ets/slider.d.ts b/api/@internal/component/ets/slider.d.ts index f436818e19..7c624d87b0 100644 --- a/api/@internal/component/ets/slider.d.ts +++ b/api/@internal/component/ets/slider.d.ts @@ -1258,10 +1258,20 @@ declare class SliderAttribute extends CommonMethod { * @crossplatform * @form * @atomicservice - * @since arkts {'1.1':'11','1.2':'20'} - * @arkts 1.1&1.2 + * @since 11 + */ + /** + * Called when the slider color of the slider bar is set. + * + * @param { ResourceColor | LinearGradient } value + * @returns { SliderAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 20 */ - blockColor(value: ResourceColor): SliderAttribute; + blockColor(value: ResourceColor | LinearGradient): SliderAttribute; /** * Called when the track color of the slider is set. -- Gitee