From e9252bbfcd5e9581b819fe2faff21561c03ac058 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9B=AE=E6=A3=83?= Date: Fri, 26 Jul 2024 21:27:54 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20=E8=B0=83=E6=95=B4=E4=B8=8D?= =?UTF-8?q?=E5=90=8C=E7=8A=B6=E6=80=81=E4=B8=8B=E7=9A=84=E8=83=8C=E6=99=AF?= =?UTF-8?q?=E8=89=B2=E3=80=81=E8=BE=B9=E7=BC=98=E3=80=81=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/home/t-calendar.vue | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/components/home/t-calendar.vue b/src/components/home/t-calendar.vue index 00b086b6..9e9f7f3f 100644 --- a/src/components/home/t-calendar.vue +++ b/src/components/home/t-calendar.vue @@ -16,9 +16,19 @@ :key="text.week" rounded :style="{ - border: text.week === weekNow ? '1px solid var(--common-shadow-4)' : 'none', - backgroundColor: text.week === btnNow ? 'var(--tgc-yellow-1)' : 'var(--tgc-btn-1)', - color: text.week === btnNow ? 'var(--box-text-4)' : 'var(--btn-text)', + border: text.week === weekNow ? '1px solid var(--tgc-yellow-1)' : 'none', + backgroundColor: + text.week === btnNow + ? 'var(--tgc-yellow-1)' + : text.week === weekNow + ? 'transparent' + : 'var(--tgc-btn-1)', + color: + text.week === btnNow + ? 'var(--box-text-4)' + : text.week === weekNow + ? 'var(--tgc-yellow-1)' + : 'var(--btn-text)', }" @click="getContents(text.week)" >{{ text.text }}