From 073faa20e0db96a1eccb976c9c22740cd6f5977b Mon Sep 17 00:00:00 2001 From: rekirt Date: Thu, 7 Aug 2025 21:45:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E6=97=A5=E5=8E=86=E5=BC=B9=E7=AA=97bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/ets/component/CalendarView.ets | 2 +- .../src/main/ets/view/CustomCalendarPickerDialog.ets | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/customdialoggatherslibrary/src/main/ets/component/CalendarView.ets b/customdialoggatherslibrary/src/main/ets/component/CalendarView.ets index efdcc0e..76b60c8 100644 --- a/customdialoggatherslibrary/src/main/ets/component/CalendarView.ets +++ b/customdialoggatherslibrary/src/main/ets/component/CalendarView.ets @@ -44,7 +44,7 @@ export struct CalendarView { currentYear: this.currentYear, cancel: this.onCancel }), - alignment: this.curBp === 'sm' ? DialogAlignment.Bottom : DialogAlignment.Center, + isModal: true, customStyle: true, maskColor: $r('sys.color.mask_fourth') }); diff --git a/customdialoggatherslibrary/src/main/ets/view/CustomCalendarPickerDialog.ets b/customdialoggatherslibrary/src/main/ets/view/CustomCalendarPickerDialog.ets index 777baaf..6fcca56 100644 --- a/customdialoggatherslibrary/src/main/ets/view/CustomCalendarPickerDialog.ets +++ b/customdialoggatherslibrary/src/main/ets/view/CustomCalendarPickerDialog.ets @@ -225,8 +225,7 @@ export struct CustomCalendarPickerDialog { }) } .padding({ top: $r('sys.float.padding_level12') }) - .width(this.curBp === 'sm' ? '100%' : $r('app.integer.bind_sheet_width')) - .height($r('app.integer.bind_sheet_width')) + .width(this.curBp === 'sm' ? '90%' : $r('app.integer.bind_sheet_width')) .borderRadius($r('sys.float.corner_radius_level12')) .backgroundColor($r('app.color.month_day_background')) .alignItems(HorizontalAlign.Center) -- Gitee