From 51592c99897982c0bc4d25ce5d413e3095169ea6 Mon Sep 17 00:00:00 2001 From: yxk2026 <10178404+yxk2026@user.noreply.gitee.com> Date: Wed, 28 May 2025 11:15:19 +0800 Subject: [PATCH] =?UTF-8?q?6.0=E7=89=88=E6=9C=ACtitle=E4=B8=8D=E6=98=BE?= =?UTF-8?q?=E7=A4=BAbug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/pages/Index.ets | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/entry/src/main/ets/pages/Index.ets b/entry/src/main/ets/pages/Index.ets index 889e812..50ca607 100644 --- a/entry/src/main/ets/pages/Index.ets +++ b/entry/src/main/ets/pages/Index.ets @@ -36,28 +36,13 @@ struct Index { } .padding(16) } - .title(this.CustomTitle()) + .title(this.title) .mode(this.isSplitMode ? NavigationMode.Split : NavigationMode.Stack) .navBarWidth(0.4 * this.windowWidth) .titleMode(NavigationTitleMode.Full) .hideToolBar(true) .width('100%') .height('100%') - .backgroundColor($r("app.color.list_background")) - } - - @Builder - CustomTitle() { - Row() { - Text(this.title) - .fontColor($r("app.color.list_title")) - .fontSize(26) - .fontWeight(FontWeight.Medium) - .padding({ left: 16 }) - .margin({ bottom: 10 }) - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Bottom) + .backgroundColor($r('app.color.list_background')) } } \ No newline at end of file -- Gitee