callmesoul / wepy-calendar

wepy calendar
MIT License
36 stars 14 forks source link

不显示 日 啊 #1

Closed zhangchao828 closed 6 years ago

callmesoul commented 6 years ago

什么需求?需要怎么显示日?

zhangchao828 commented 6 years ago

image 最后显示是这样的,下面空白,然后年月的滑动选择不流畅啊,划不动 你这个是根据https://github.com/treadpit/wx_calendar.git 这个改的吗

callmesoul commented 6 years ago

是不是没调用this.$broadcast("startRenderCalendar"); 通知渲染。 我根据一个问答社区的 的代码改的,具体忘了。

callmesoul commented 6 years ago

应该不会啊,是写在同一个页面的。而且我这边使用也正常啊。看下是不是其他问题

zhangchao828 commented 6 years ago

日是固定写死的吗?比如切换到几几年2月份的时候,不应该有29,30,31号

callmesoul commented 6 years ago

不是写死的,是算出来的,就像2018年2月,是没有23,30,31的。正常的啊

zhangchao828 commented 6 years ago

嗯,知道了,,每次改变日期之后还需要调用this.$broadcast("startRenderCalendar")才会变化 ,谢谢

callmesoul commented 6 years ago

对的,因为有些需要渲染打卡有些需要不需要,只好统一使用一个事件去通知