Compare commits

...

4 Commits

Author SHA1 Message Date
wssam 4dae3e47ea Pre Merge pull request !9 from wssam/N/A 2025-11-05 07:51:20 +00:00
aisen 71e58907a9 Merge remote-tracking branch 'origin/master' 2025-11-05 15:51:16 +08:00
aisen 8629754e50 [fix] 修复日历选中后下一个月份出现字体色出现空白问题 2025-11-05 15:51:10 +08:00
wssam 224c9ea9b1 update tuniao-ui/components/tn-tag/tn-tag.vue.
控制内容line-height高度在tag里居中

Signed-off-by: wssam <573616439@qq.com>
2024-04-23 11:11:17 +00:00
2 changed files with 8 additions and 2 deletions
@@ -248,6 +248,7 @@
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,'/')
@@ -487,8 +488,9 @@
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' && this.day == item) || (this.mode === 'date' && date == this.activeDate) ||
(this.mode === 'range' && (this.startDay == item || this.endDay == item)) (this.mode === 'range' && (this.startDay == item || this.endDay == item))
) { ) {
color = this.activeColor color = this.activeColor
@@ -501,7 +503,7 @@
bottomInfo = this.endText bottomInfo = this.endText
} }
} }
return { return {
day: item, day: item,
color: color, color: color,
+4
View File
@@ -119,21 +119,25 @@
style.padding = '0 12rpx' style.padding = '0 12rpx'
style.fontSize = '20rpx' style.fontSize = '20rpx'
style.height = '32rpx' style.height = '32rpx'
style.lineHeight = '32rpx'
break break
case 'lg': case 'lg':
style.padding = '0 20rpx' style.padding = '0 20rpx'
style.fontSize = '28rpx' style.fontSize = '28rpx'
style.height = '62rpx' style.height = '62rpx'
style.lineHeight = '62rpx'
break break
default: default:
style.padding = '0 16rpx' style.padding = '0 16rpx'
style.fontSize = '24rpx' style.fontSize = '24rpx'
style.height = '48rpx' style.height = '48rpx'
style.lineHeight = '48rpx'
break break
} }
style.width = this.width || '120rpx' style.width = this.width || '120rpx'
style.height = this.height || style.height style.height = this.height || style.height
style.lineHeight = this.height || style.height
style.padding = this.padding || style.padding style.padding = this.padding || style.padding
if (this.margin) { if (this.margin) {