提交 ced634f0 编写于 作者: H hct95 提交者: 贺晨韬

fixed 8eab795b from https://gitee.com/hct95/xts_acts/pulls/8666

修复拖拽接口修改后xts文件
Signed-off-by: Nhct95 <hechentao@huawei.com>
Change-Id: I6183b6a33cccaaf73feb3fb6212644955ef1a6ad
上级 79cac857
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册