From dbaaf1c46bb47f0c569ab10fbfe624738fa48e68 Mon Sep 17 00:00:00 2001 From: "OWNEROR-41FNVD0\\lenovo" Date: Thu, 15 May 2025 10:04:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=B7=BB=E5=8A=A0=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=A0=87=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/application/MailBox.ets | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/entry/src/main/ets/application/MailBox.ets b/entry/src/main/ets/application/MailBox.ets index 8d1806a..4598ccf 100644 --- a/entry/src/main/ets/application/MailBox.ets +++ b/entry/src/main/ets/application/MailBox.ets @@ -28,27 +28,36 @@ struct MailBox { build() { GridRow() { GridCol({ span: { sm: 12, md: 12, lg: 12 } }) { + // [Start set_show_side_bar] SideBarContainer(SideBarContainerType.AUTO) { // Area A Column() { MailSideBar() - }.width('100%').height('100%').backgroundColor('#f1f3f5') + } + .width('100%') + .height('100%') + .backgroundColor('#f1f3f5') // Area B+C Column() { Stack() { MailNavigation() + // [StartExclude set_show_side_bar] if (this.isFold && this.currentBreakPoint !== 'lg') { Column().width('100%').height('100%').backgroundColor('#33000000') } + // [EndExclude set_show_side_bar] } - }.height('100%').width('100%') + } + .height('100%') + .width('100%') } + .showSideBar(this.currentBreakPoint === 'lg') + // [End set_show_side_bar] .sideBarWidth(this.sideBarWidth) .minSideBarWidth(240) .minContentWidth(this.currentBreakPoint === 'sm' ? 360 : 600) .controlButton({ left: 24, top: 40, width: 24, height: 24 }) - .showSideBar(this.currentBreakPoint === 'lg') .onChange((value: boolean) => { this.isFold = value; }) -- Gitee