From 54414173d8ad3e008c40ac8f6cfd8dedee6e3526 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Fri, 29 Nov 2024 18:27:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=9A=E4=BD=8D=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/diy/header.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/diy/header.vue b/components/diy/header.vue index afd96c95..a32f5cac 100644 --- a/components/diy/header.vue +++ b/components/diy/header.vue @@ -297,7 +297,8 @@ border += `border-${location_border_direction}: ${location_border_size}px solid ${location_border_color};`; } } - return background_computer(style) + padding_computer(location_padding) + border; + const height = 32 - new_style.location_margin.margin_top - new_style.location_margin.margin_bottom; + return background_computer(style) + padding_computer(location_padding) + border + `height: ${ height * 2}rpx;line-height: ${height * 2}rpx;`; }, // 获取顶部导航高度 get_nav_height() {