From 8eab795bfdcde198603a4b250fd0f4e947f034d1 Mon Sep 17 00:00:00 2001 From: hct95 Date: Wed, 17 May 2023 07:10:20 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8B=96=E6=8B=BD=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E4=BF=AE=E6=94=B9=E5=90=8Exts=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: hct95 Change-Id: I6183b6a33cccaaf73feb3fb6212644955ef1a6ad --- .../entry/src/main/ets/MainAbility/pages/imageTwo.ets | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 56a2cfe59..49d305cd2 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) -- GitLab