fix: 移除 lunar-javascript 不支持的 isLeapMonth 方法

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
ddshi 2026-02-28 14:18:13 +08:00
parent 9e3bd5aba4
commit 3b49746401

View File

@ -13,7 +13,6 @@ export interface LunarInfo {
day: number; // 农历日期 day: number; // 农历日期
monthInChinese: string; // 农历月份中文 monthInChinese: string; // 农历月份中文
dayInChinese: string; // 农历日期中文 dayInChinese: string; // 农历日期中文
isLeapMonth: boolean; // 是否闰月
yearInChinese: string; // 农历年(甲子年等) yearInChinese: string; // 农历年(甲子年等)
zodiac: string; // 生肖 zodiac: string; // 生肖
} }
@ -43,7 +42,6 @@ export function getLunarInfo(date: Date): LunarInfo {
day: lunar.getDay(), day: lunar.getDay(),
monthInChinese: lunar.getMonthInChinese(), monthInChinese: lunar.getMonthInChinese(),
dayInChinese: lunar.getDayInChinese(), dayInChinese: lunar.getDayInChinese(),
isLeapMonth: lunar.isLeap(),
yearInChinese: lunar.getYearInChinese(), yearInChinese: lunar.getYearInChinese(),
zodiac: lunar.getZodiac(), zodiac: lunar.getZodiac(),
}; };