diff --git a/arkui/ace_ets_component_ui/entry/src/main/ets/MainAbility/pages/imageTwo.ets b/arkui/ace_ets_component_ui/entry/src/main/ets/MainAbility/pages/imageTwo.ets index 56a2cfe5990b9c0db47731ac18c08cff27cb6a76..49d305cd239cde873d3f3319f6da582d4b552be2 100644 --- a/arkui/ace_ets_component_ui/entry/src/main/ets/MainAbility/pages/imageTwo.ets +++ b/arkui/ace_ets_component_ui/entry/src/main/ets/MainAbility/pages/imageTwo.ets @@ -24,7 +24,7 @@ struct ImageExample2 { @State interpolation:ImageInterpolation = ImageInterpolation.None @State fillColor:Color = Color.Red @State copyOption:CopyOptions = CopyOptions.None - @State draggable:boolean = false + @State is_draggable:boolean = false messageManager:MessageManager = new MessageManager() @@ -51,7 +51,7 @@ struct ImageExample2 { this.fillColor = message.value } if (message.name == 'draggable') { - this.draggable = message.value + this.is_draggable = message.value } if (message.name == 'copyOption') { this.copyOption = message.value @@ -76,7 +76,7 @@ struct ImageExample2 { .copyOption(CopyOptions.InApp) .colorFilter([2,4,5]) .overlay('Original', { align: Alignment.Bottom, offset: { x: 0, y: 20 } }) - .draggable(this.draggable) + .draggable(this.is_draggable) .key("image1") Image($rawfile('bm.jpg')) .renderMode(ImageRenderMode.Template).width(100).height(100)