From 13d82cbcdc012534d5af2f8eb6f02c612ca33995 Mon Sep 17 00:00:00 2001 From: sunjiakun Date: Tue, 4 Jul 2023 14:00:13 +0800 Subject: [PATCH] update interface Signed-off-by: sunjiakun --- .../src/main/ets/TestAbility/pages/Index.ets | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arkui/ace_ets_components_ux/ace_ets_component_slider/src/main/ets/TestAbility/pages/Index.ets b/arkui/ace_ets_components_ux/ace_ets_component_slider/src/main/ets/TestAbility/pages/Index.ets index 2ea4ad1a9..c4087969e 100644 --- a/arkui/ace_ets_components_ux/ace_ets_component_slider/src/main/ets/TestAbility/pages/Index.ets +++ b/arkui/ace_ets_components_ux/ace_ets_component_slider/src/main/ets/TestAbility/pages/Index.ets @@ -37,12 +37,12 @@ struct SliderTest { Ellipse = new Ellipse({ width: '280px', height: '280px' }).fill('#FFFF0000') Path = new Path({ width: '280px', height: '280px' }).fill('#FFFF0000') Rect = new Rect({ width: '280px', height: '280px' }).fill('#FFFF0000') - private sliderImage: SliderBlockStyle = { type: 1, image: $r('app.media.icon') } - private sliderShapeCircle: SliderBlockStyle = { type: 2, shape: this.circle } - private sliderShapeEllipse: SliderBlockStyle = { type: 2, shape: this.Ellipse } - private sliderShapePath: SliderBlockStyle = { type: 2, shape: this.Path } - private sliderShapeRect: SliderBlockStyle = { type: 2, shape: this.Rect } - private sliderDefault: SliderBlockStyle = { type: 0 } + private sliderImage: SliderBlockStyle = { type: SliderBlockType.IMAGE, image: $r('app.media.icon') } + private sliderShapeCircle: SliderBlockStyle = { type: SliderBlockType.SHAPE, shape: this.circle } + private sliderShapeEllipse: SliderBlockStyle = { type: SliderBlockType.SHAPE, shape: this.Ellipse } + private sliderShapePath: SliderBlockStyle = { type: SliderBlockType.SHAPE, shape: this.Path } + private sliderShapeRect: SliderBlockStyle = { type: SliderBlockType.SHAPE, shape: this.Rect } + private sliderDefault: SliderBlockStyle = { type: SliderBlockType.DEFAULT } build() { Row() { Column() { -- GitLab