HarmonyOS POP颜色设置了没有效果

.bindPopup(this.isShowPopu, {
  builder: this.customPop(),
  radius: 2,
  placement: Placement.Bottom,
  arrowOffset: 60,
  popupColor: $r('app.color.color_232934'),
  autoCancel: true,
  onStateChange: (e) => {
    if (!e.isVisible) {
      this.isShowPopu = false
    }
  },
})

/**充电订单 充电帮助的pop*/
@Builder customPop() {
  Column() {
    Text('充电订单').fontSize(16).fontColor(Color.White).padding(16).border({width: {bottom: '1px'}, color: Color.White})
      .onClick(()=>{
        JumpUtil.execJump({url: JumpUtil.getH5Url(H5HostType.APPHOST, Order.CHARGEORDER_LIST)})
        this.isShowPopu = false
      })
    Text('充电帮助').fontSize(16).fontColor(Color.White).padding(16)
      .onClick(()=>{
        JumpUtil.execJump({url: VehicleService.CHARGE_HELP.path.replace('%s', 'take')})
        this.isShowPopu = false
      })
  }.backgroundColor(Color.Transparent)
}
HarmonyOS
2024-12-20 16:16:43
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
fox280

想去除模糊背景填充效果,需将backgroundBlurStyle设置为BlurStyle.NONE。模拟器和真机均可正常显示。

.bindPopup(this.customPopup, {
  builder: this.customPop(), // 气泡的内容
  popupColor: Color.Red, // 气泡的背景色
  backgroundBlurStyle: BlurStyle.NONE,
  radius: 2,
  placement: Placement.Bottom,
  arrowOffset: 60,
  onStateChange: (e) => {
    if (!e.isVisible) {
      this.isShowPopu = false
    }
  }
})
分享
微博
QQ
微信
回复
2024-12-20 20:18:08
相关问题
HarmonyOS 设置全局字体没有效果
316浏览 • 1回复 待解决
HarmonyOS Canvas设置渐变色没有效果
464浏览 • 1回复 待解决
HarmonyOS 相机设置对焦点,没有效果
311浏览 • 1回复 待解决
subscribeInfo.setDeviceId()没有效果
4405浏览 • 1回复 已解决
HarmonyOS 音频面板拉起来没有效果
214浏览 • 1回复 待解决
HarmonyOS没有设置颜色透明度的方法
1176浏览 • 1回复 待解决
HarmonyOS svg图片运行后颜色变色
542浏览 • 1回复 待解决