OpenHarmony开发者论坛
标题:
小白求助!!!半模态(bindsheet)窗口如何实现半透明背景,可以模糊看到下一层
[打印本页]
作者:
yu666
时间:
2025-2-24 15:01
标题:
小白求助!!!半模态(bindsheet)窗口如何实现半透明背景,可以模糊看到下一层
[md]具体需要实现的效果如下所示:

代码如下所示:“
```
.bindSheet($$this.isShow, this.listPage(), {
height: 350,
showClose: false,
})
```
”
具体半模态的内容实在自定义组件listPage里面写的,应该怎么改?
[/md]
作者:
鸿蒙小语哥
时间:
2025-2-24 20:14
很简单啊,bindsheet有个属性backgroundColor,你设置成透明背景就行了!
.bindSheet($$this.isShow, this.listPage(), {
height: 350,
showClose: false,
backgroundColor: "#aa3579ff"
})
作者:
yu666
时间:
2025-2-27 10:35
回复
鸿蒙小语哥
: 谢谢哥,好人一生平安
欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/)
Powered by Discuz! X3.5