From 1ac0b7c7c7f129e7be5f8e98b053cfecfad89e1c Mon Sep 17 00:00:00 2001 From: zhaichao Date: Wed, 23 Sep 2026 18:13:30 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B6=E9=83=A8=E6=A0=87=E9=A2=98=E5=B1=85?= =?UTF-8?q?=E4=B8=AD=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/fy-header.vue | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/components/fy-header.vue b/components/fy-header.vue index 031c96a..89e1f68 100644 --- a/components/fy-header.vue +++ b/components/fy-header.vue @@ -4,8 +4,8 @@ {{ leftLabel }} - {{ title }} + {{ title }} @@ -58,19 +58,29 @@ export default { padding: 0 28rpx; display: flex; align-items: center; - justify-content: space-between; + position: relative; } -.left { display: flex; align-items: center; min-width: 0; } +.left, .right { + width: 160rpx; + display: flex; + align-items: center; + flex-shrink: 0; + z-index: 1; +} +.right { margin-left: auto; justify-content: flex-end; gap: 4rpx; } .back { font-size: 52rpx; line-height: 1; - margin-right: 4rpx; color: #111827; width: 56rpx; font-weight: 300; } -.leftlab { font-size: 28rpx; color: #1677FF; margin-right: 16rpx; } +.leftlab { font-size: 28rpx; color: #1677FF; } .title { + position: absolute; + left: 180rpx; + right: 180rpx; + text-align: center; font-size: 34rpx; font-weight: 600; color: #111827; @@ -78,7 +88,5 @@ export default { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; - max-width: 440rpx; } -.right { display: flex; align-items: center; gap: 4rpx; }