wuyanan

ref |> 修复评论输入面板语音输入图标不居中问题

@@ -45,14 +45,12 @@ export struct VoiceInputView { @@ -45,14 +45,12 @@ export struct VoiceInputView {
45 }) 45 })
46 } 46 }
47 }.height(100) 47 }.height(100)
48 - Button()  
49 - .type(ButtonType.Circle)  
50 - .backgroundImage($r('app.media.WDInput_voice_longPress_icon'))  
51 - .backgroundColor(Color.White) 48 + Image($r('app.media.WDInput_voice_longPress_icon'))
52 .width(60) 49 .width(60)
53 .height(60) 50 .height(60)
  51 +
54 .gesture( 52 .gesture(
55 - LongPressGesture() 53 + LongPressGesture({duration:300})
56 .onAction((event: GestureEvent) => { 54 .onAction((event: GestureEvent) => {
57 // this 55 // this
58 this.playAnimationOne = true 56 this.playAnimationOne = true