From 9c6c7eb4c2c6b9c0147f82e5c46dbe061f5dca5d Mon Sep 17 00:00:00 2001 From: expdsn <18111002318@163.com> Date: Tue, 19 Nov 2024 18:44:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9E=81=E7=AE=80=E6=A8=A1=E5=BC=8F=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E6=98=BE=E7=A4=BA=E4=BD=8D=E7=BD=AE=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/header/GlobalTime.tsx | 41 ++++++++++++++++++++---------- src/layout/header/search/index.tsx | 2 +- 2 files changed, 28 insertions(+), 15 deletions(-) diff --git a/src/layout/header/GlobalTime.tsx b/src/layout/header/GlobalTime.tsx index 4d0eb15..d10287f 100644 --- a/src/layout/header/GlobalTime.tsx +++ b/src/layout/header/GlobalTime.tsx @@ -42,14 +42,21 @@ export default defineComponent({
@@ -58,7 +65,7 @@ export default defineComponent({
{settings.state.timeOptions.includes('date') &&
{text.value.dateStr}
} - {!layout.isCompact && settings.state.timeOptions.includes('week') && ( -
星期{info.value.dayWeek}
- )} + {!(layout.isCompact && !layout.state.simple) && + settings.state.timeOptions.includes('week') && ( +
星期{info.value.dayWeek}
+ )}
- {!layout.isCompact && settings.state.timeOptions.includes('lunal') && ( -
{info.value.day}
- )} + {!(layout.isCompact && !layout.state.simple) && + settings.state.timeOptions.includes('lunal') &&
{info.value.day}
}
) : settings.state!.showTime && (
{settings.state.timeOptions.includes('date') &&
{text.value.dateStr}
} diff --git a/src/layout/header/search/index.tsx b/src/layout/header/search/index.tsx index 3898100..07acbb8 100644 --- a/src/layout/header/search/index.tsx +++ b/src/layout/header/search/index.tsx @@ -23,7 +23,7 @@ export default defineComponent( props.isMini ? {} : { - top: layout.isCompact ? '50px' : layout.state.simple ? '230px' : '172px', + top: layout.isCompact && !layout.state.simple ? '50px' : layout.state.simple ? '230px' : '172px', width: settings.state.searchWidth + 'rem' } }