From d0201bbd30d8ea1c1915887449a2eb6c292c3cbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9F=B3=E4=B8=9C=E6=B5=B7?= Date: Tue, 9 Sep 2025 19:36:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/pages/BillHomePage.ets | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/entry/src/main/ets/pages/BillHomePage.ets b/entry/src/main/ets/pages/BillHomePage.ets index 8d24e96..5fcda68 100644 --- a/entry/src/main/ets/pages/BillHomePage.ets +++ b/entry/src/main/ets/pages/BillHomePage.ets @@ -112,7 +112,7 @@ struct BillHomePage { build() { Column() { Stack({ alignContent: Alignment.TopStart }) { - Column() { + Flex({ direction: FlexDirection.Column }) { this.NavigationTitle(); Search({ @@ -122,6 +122,7 @@ struct BillHomePage { }) .width('100%') .height(40) + .flexShrink(0) .borderRadius(24) .margin({ top: 8, @@ -218,13 +219,18 @@ struct BillHomePage { .color('rgba(0,0,0,0.2)') .strokeWidth(0.5) .margin({ - left: 56 + left: 68 }) } } } .width('100%') .height(48) + .padding({ + left: 12, + right: 12, + }) + .backgroundColor(Color.White) .onClick(() => { this.selectListItem(item); this.dialogController.open(); @@ -232,14 +238,13 @@ struct BillHomePage { }) } .width('100%') + .flexGrow(1) + .borderRadius(16) + .clip(true) .padding({ top: this.accounts.length ? 4 : 0, - left: 12, - right: 12, bottom: this.accounts.length ? 4 : 0 }) - .borderRadius(16) - .backgroundColor(Color.White) } if (!this.isEdit) { @@ -366,5 +371,6 @@ struct BillHomePage { }) } .height(56) + .flexShrink(0) } } \ No newline at end of file -- Gitee