可以设置customStyle为true,自定义样式,背景就是透明的文档:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/ts-methods-custom-dialog-box-V5\#customdialogcontrolleroptions%E5%AF%B9%E8%B1%A1%E8%AF%B4%E6%98%8Enew CustomDialogController({ alignment: DialogAlignment.Center, autoCancel: false, builder: CustomDialogExampleTwo(), customStyle: true, backgroundColor: Color.Transparent });
可以设置customStyle为true,自定义样式,背景就是透明的
文档:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/ts-methods-custom-dialog-box-V5\#customdialogcontrolleroptions%E5%AF%B9%E8%B1%A1%E8%AF%B4%E6%98%8E