智能客服
你问我答,随时在线为你解决问题

























如何移除bindPopup弹窗的阴影效果?
问题效果预览:


通过配置ShadowOptions实现阴影效果的灵活控制。在ShadowOptions模式中,当满足radius设置为0时,即可实现无阴影效果。
- @Entry
- @Component
- struct PopupExample {
- @State customPopup: boolean = false;
-
- build() {
- Column({ space: 100 }) {
- Button('popup')
- .margin({ top: 50 })
- .onClick(() => {
- this.customPopup = !this.customPopup;
- })
- .bindPopup(this.customPopup, {
- message: 'this is a popup',
- arrowHeight: 20,
- arrowWidth: 20,
- radius: 20,
- shadow: {
- radius: 0
- },
- });
- }
- .width('100%');
- }
- }
智能客服
你问我答,随时在线为你解决问题
合作咨询
我们的专家服务团队将竭诚为您提供专业的合作咨询服务
解决方案
精准高效的一站式服务支持,助力开发者商业成功