Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2018年12月前的数据都显示不了 #8

Open
chengzl opened this issue Jan 4, 2019 · 4 comments
Open

2018年12月前的数据都显示不了 #8

chengzl opened this issue Jan 4, 2019 · 4 comments

Comments

@chengzl
Copy link

chengzl commented Jan 4, 2019

从当前月滑动到2018年12之前的月份都没数据,是空白页,请问如何解决?

@Huang-Hao
Copy link

calendar_base.js 里面的 onSlidePrevStart 函数:
if(preMonthIndex == 0) { preYearIndex--; preMonthIndex = 12; }
preMonthIndex = -1 不会进入if语句中,导致重新渲染失败 js获取不到对象报错
可以像 onSlideNextStart 函数里一样加上一行
preMonthIndex += parseInt(1);

@chengzl
Copy link
Author

chengzl commented Jan 17, 2019

上面问题解决了,但是2018-11月没有31号的

@slnxyr
Copy link

slnxyr commented Jan 7, 2020

请问你解决了吗 我按上面那个加的话前面的日期是错误的

@Huang-Hao
Copy link

Huang-Hao commented Feb 5, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants