diff --git a/entry/src/main/ets/pages/BillHomePage.ets b/entry/src/main/ets/pages/BillHomePage.ets index 8d24e96189b7fe55ab1fc21c976ff86fb71b0540..5fcda68b54a0cd3f5e9cf2839850c6dd39749f7a 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