promptAction.openCustomDialog设置backgroundColor无效 - HarmonyOS 鸿蒙Next
promptAction.openCustomDialog设置backgroundColor无效 - HarmonyOS 鸿蒙Next
【设备信息】Mate60pro
【API版本】Api14
【DevEco Studio版本】5.0.2 Release
【问题描述】promptAction.openCustomDialog设置backgroundColor无效
promptAction.openCustomDialog({
builder: customDialogBuilder.bind(that, state),
alignment: DialogAlignment.Center,
isModal: false,
backgroundColor: '#00000000'
})
弹窗打开后仍然时白色
更多关于promptAction.openCustomDialog设置backgroundColor无效 - HarmonyOS 鸿蒙Next的实战教程也可以访问 https://www.itying.com/category-93-b0.html
2 回复
需要设置backgroundBlurStyle属性为BlurStyle.NONE,默认的值是BlurStyle.COMPONENT_ULTRA_THICK
更多关于promptAction.openCustomDialog设置backgroundColor无效 - HarmonyOS 鸿蒙Next的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html