From 8629754e507f6b29c2e63cc2cd48579b831dbc44 Mon Sep 17 00:00:00 2001 From: aisen Date: Wed, 5 Nov 2025 15:51:10 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E4=BF=AE=E5=A4=8D=E6=97=A5=E5=8E=86?= =?UTF-8?q?=E9=80=89=E4=B8=AD=E5=90=8E=E4=B8=8B=E4=B8=80=E4=B8=AA=E6=9C=88?= =?UTF-8?q?=E4=BB=BD=E5=87=BA=E7=8E=B0=E5=AD=97=E4=BD=93=E8=89=B2=E5=87=BA?= =?UTF-8?q?=E7=8E=B0=E7=A9=BA=E7=99=BD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tuniao-ui/components/tn-calendar/tn-calendar.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tuniao-ui/components/tn-calendar/tn-calendar.vue b/tuniao-ui/components/tn-calendar/tn-calendar.vue index fb6bee3..c5d11ab 100644 --- a/tuniao-ui/components/tn-calendar/tn-calendar.vue +++ b/tuniao-ui/components/tn-calendar/tn-calendar.vue @@ -248,6 +248,7 @@ return (index, type) => { let color = type === 'bg' ? '' : this.color let day = index + 1 + let date = `${this.year}-${this.month}-${day}` let timestamp = new Date(date.replace(/\-/g,'/')).getTime() let start = this.startDate.replace(/\-/g,'/') @@ -487,8 +488,9 @@ let daysArr = days.map((item) => { let bottomInfo = this.showLunar ? Calendar.solar2lunar(this.year, this.month, item).IDayCn : '' let color = this.showLunar ? this.lunarColor : this.activeColor + let date = `${this.year}-${this.month}-${item}` if ( - (this.mode === 'date' && this.day == item) || + (this.mode === 'date' && date == this.activeDate) || (this.mode === 'range' && (this.startDay == item || this.endDay == item)) ) { color = this.activeColor @@ -501,7 +503,7 @@ bottomInfo = this.endText } } - + return { day: item, color: color,