大图查看页面增加日历展示,支持显示节假日信息,提高实用性

This commit is contained in:
2026-01-28 20:22:55 +08:00
parent 617c1d0967
commit 8bc9b44a14
8 changed files with 804 additions and 26 deletions

20
webapp/src/types/lunar-javascript.d.ts vendored Normal file
View File

@@ -0,0 +1,20 @@
declare module 'lunar-javascript' {
export class Solar {
static fromDate(date: Date): Solar
getLunar(): Lunar
getFestivals(): string[]
}
export class Lunar {
getYearInChinese(): string
getMonthInChinese(): string
getDayInChinese(): string
getDay(): number
getJieQi(): string
getFestivals(): string[]
}
export class HolidayUtil {
// Add methods if needed
}
}