HarmonyOS 使用bindSheet打开底部弹窗后如何设置左上和右上的圆角

如下代码所示,使用bindSheet打开底部弹窗后如何设置左上和右上的圆角?

@Preview
@Component
export struct GeneralBottomComponent {
  @State isShowSelectSpecificationDialog: boolean = false
  build() {
    Column() {
      Divider().width('100%').height(0.5).color('#eeeeee')
      Row() {
        ConsultComponent()
        CollectComponent()
        ShoppingCarComponent()
        AddToShoppingCarComponent()
        BuyRightNowComponent().onClick(() => {
          console.log("GeneralBottomComponent onClick ")
          this.isShowSelectSpecificationDialog = true
        })
          .bindSheet($$this.isShowSelectSpecificationDialog, buildSelectSpecificationComponent(), {
            height: SheetSize.FIT_CONTENT,
            preferType: SheetType.BOTTOM,
            backgroundColor: Color.White,
            maskColor: '#99000000',
            showClose: false,
          })
      }.width('100%').height(54)
    }.width('100%')
  }
}
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
HarmonyOS
2024-12-26 14:17:47
1121浏览
收藏 0
回答 1
回答 1
按赞同
/
按时间
aquaa

目前bindsheet不支持修改圆角的弧度。目前替代方案,可以参考:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/ts-methods-custom-dialog-box-V5

分享
微博
QQ
微信
回复
2024-12-26 16:45:54
相关问题
HarmonyOS bindSheet怎么设置圆角大小
713浏览 • 1回复 待解决
HarmonyOS bindSheet如何修改圆角大小?
983浏览 • 1回复 待解决
HarmonyOS bindSheet如何自定义圆角
1016浏览 • 1回复 待解决
HarmonyOS bindSheet默认圆角值是多少?
1219浏览 • 1回复 待解决
如何设置分组列表圆角间距
2708浏览 • 1回复 待解决
HarmonyOS bindSheet半模态弹窗
1542浏览 • 1回复 待解决
基于bindSheet半模态弹窗
2087浏览 • 1回复 待解决
HarmonyOS Canvas如何设置圆角
739浏览 • 1回复 待解决