💄 调整不同状态下的背景色、边缘、文本色

This commit is contained in:
目棃
2024-07-26 21:27:54 +08:00
parent e3e5b757e4
commit e9252bbfcd

View File

@@ -16,9 +16,19 @@
:key="text.week" :key="text.week"
rounded rounded
:style="{ :style="{
border: text.week === weekNow ? '1px solid var(--common-shadow-4)' : 'none', border: text.week === weekNow ? '1px solid var(--tgc-yellow-1)' : 'none',
backgroundColor: text.week === btnNow ? 'var(--tgc-yellow-1)' : 'var(--tgc-btn-1)', backgroundColor:
color: text.week === btnNow ? 'var(--box-text-4)' : 'var(--btn-text)', 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)" @click="getContents(text.week)"
>{{ text.text }} >{{ text.text }}