Closed adyhwang closed 4 years ago
是在哪种情况下调用没有农历信息呢?
我找到原因了,如果showLunar设置为false,调用getSelectedDay()时,lunar返回null。。。希望能优化一下。
同步 master
,使用方式如下:
const options = {
lunar: true // 在配置showLunar为false, 但需返回农历信息时使用该选项
}
const selectedDay = this.calendar.getSelectedDay(options);
console.log(selectedDay);
功能建议 calendar.getSelectedDay(),返回的数据能否增加农历?