Compare commits

..

1 Commits

Author SHA1 Message Date
wssam d5d9c810b7 Pre Merge pull request !9 from wssam/N/A 2025-10-25 01:55:16 +00:00
@@ -248,7 +248,6 @@
return (index, type) => { return (index, type) => {
let color = type === 'bg' ? '' : this.color let color = type === 'bg' ? '' : this.color
let day = index + 1 let day = index + 1
let date = `${this.year}-${this.month}-${day}` let date = `${this.year}-${this.month}-${day}`
let timestamp = new Date(date.replace(/\-/g,'/')).getTime() let timestamp = new Date(date.replace(/\-/g,'/')).getTime()
let start = this.startDate.replace(/\-/g,'/') let start = this.startDate.replace(/\-/g,'/')
@@ -488,9 +487,8 @@
let daysArr = days.map((item) => { let daysArr = days.map((item) => {
let bottomInfo = this.showLunar ? Calendar.solar2lunar(this.year, this.month, item).IDayCn : '' let bottomInfo = this.showLunar ? Calendar.solar2lunar(this.year, this.month, item).IDayCn : ''
let color = this.showLunar ? this.lunarColor : this.activeColor let color = this.showLunar ? this.lunarColor : this.activeColor
let date = `${this.year}-${this.month}-${item}`
if ( if (
(this.mode === 'date' && date == this.activeDate) || (this.mode === 'date' && this.day == item) ||
(this.mode === 'range' && (this.startDay == item || this.endDay == item)) (this.mode === 'range' && (this.startDay == item || this.endDay == item))
) { ) {
color = this.activeColor color = this.activeColor