fix: 移除 lunar-javascript 不支持的 isLeapMonth 方法
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
9e3bd5aba4
commit
3b49746401
@ -13,7 +13,6 @@ export interface LunarInfo {
|
||||
day: number; // 农历日期
|
||||
monthInChinese: string; // 农历月份中文
|
||||
dayInChinese: string; // 农历日期中文
|
||||
isLeapMonth: boolean; // 是否闰月
|
||||
yearInChinese: string; // 农历年(甲子年等)
|
||||
zodiac: string; // 生肖
|
||||
}
|
||||
@ -43,7 +42,6 @@ export function getLunarInfo(date: Date): LunarInfo {
|
||||
day: lunar.getDay(),
|
||||
monthInChinese: lunar.getMonthInChinese(),
|
||||
dayInChinese: lunar.getDayInChinese(),
|
||||
isLeapMonth: lunar.isLeap(),
|
||||
yearInChinese: lunar.getYearInChinese(),
|
||||
zodiac: lunar.getZodiac(),
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user