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 2ea4ad1a98daefa2808c015303ffb1306c94b9ab..c4087969e27c3cf903969d4277087b764b3d03e1 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() {