fix: 修复 lunar-javascript API 名称 getZodiac 为 getShengxiao
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
3b49746401
commit
8ed7eb9154
@ -14,7 +14,7 @@ export interface LunarInfo {
|
|||||||
monthInChinese: string; // 农历月份中文
|
monthInChinese: string; // 农历月份中文
|
||||||
dayInChinese: string; // 农历日期中文
|
dayInChinese: string; // 农历日期中文
|
||||||
yearInChinese: string; // 农历年(甲子年等)
|
yearInChinese: string; // 农历年(甲子年等)
|
||||||
zodiac: string; // 生肖
|
zodiac: string; // 生肖(属相)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -43,7 +43,7 @@ export function getLunarInfo(date: Date): LunarInfo {
|
|||||||
monthInChinese: lunar.getMonthInChinese(),
|
monthInChinese: lunar.getMonthInChinese(),
|
||||||
dayInChinese: lunar.getDayInChinese(),
|
dayInChinese: lunar.getDayInChinese(),
|
||||||
yearInChinese: lunar.getYearInChinese(),
|
yearInChinese: lunar.getYearInChinese(),
|
||||||
zodiac: lunar.getZodiac(),
|
zodiac: lunar.getShengxiao(),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user