HarmonyOS 自定义弹窗如何取消背景颜色?

private controller = new CustomDialogController({
  builder: CustomDialogView({
    visible: $visible,
    onCancel: this.onCancel,
    onConfirm: this.onConfirm,

  }),
  alignment:DialogAlignment.Center,
  autoCancel: false,
  backgroundColor:'#00000000'
})

原来设置了backgroundColor基本上 弹窗颜色就跟遮罩层差不多, 后面手机更新后发现,原来的白色背景又出现了

阅读 710
1 个回答
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进