未验证 提交 63465566 编写于 作者: O openharmony_ci 提交者: Gitee

!8666 增加拖拽相关接口同时修改xts文件

Merge pull request !8666 from 贺晨韬/hct_drag_api_0516
...@@ -24,7 +24,7 @@ struct ImageExample2 { ...@@ -24,7 +24,7 @@ struct ImageExample2 {
@State interpolation:ImageInterpolation = ImageInterpolation.None @State interpolation:ImageInterpolation = ImageInterpolation.None
@State fillColor:Color = Color.Red @State fillColor:Color = Color.Red
@State copyOption:CopyOptions = CopyOptions.None @State copyOption:CopyOptions = CopyOptions.None
@State draggable:boolean = false @State is_draggable:boolean = false
messageManager:MessageManager = new MessageManager() messageManager:MessageManager = new MessageManager()
...@@ -51,7 +51,7 @@ struct ImageExample2 { ...@@ -51,7 +51,7 @@ struct ImageExample2 {
this.fillColor = message.value this.fillColor = message.value
} }
if (message.name == 'draggable') { if (message.name == 'draggable') {
this.draggable = message.value this.is_draggable = message.value
} }
if (message.name == 'copyOption') { if (message.name == 'copyOption') {
this.copyOption = message.value this.copyOption = message.value
...@@ -76,7 +76,7 @@ struct ImageExample2 { ...@@ -76,7 +76,7 @@ struct ImageExample2 {
.copyOption(CopyOptions.InApp) .copyOption(CopyOptions.InApp)
.colorFilter([2,4,5]) .colorFilter([2,4,5])
.overlay('Original', { align: Alignment.Bottom, offset: { x: 0, y: 20 } }) .overlay('Original', { align: Alignment.Bottom, offset: { x: 0, y: 20 } })
.draggable(this.draggable) .draggable(this.is_draggable)
.key("image1") .key("image1")
Image($rawfile('bm.jpg')) Image($rawfile('bm.jpg'))
.renderMode(ImageRenderMode.Template).width(100).height(100) .renderMode(ImageRenderMode.Template).width(100).height(100)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册