lx544690189 / vue-mobile-calendar

a vue component of calendar for mobile移动端vue日期选择组件

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

设置defaultDate时,没有跳转到对应的月份

mingmLiang opened this issue · comments

commented

我打开选择日期的时候,是当前月份9月。而不是默认选中月份10月。感觉有点不太符合用户操作行为。image
期望打开的时候,是以下效果
image

看了源码,初始化是在create钩子里面进行的
created() {
this.init();
},

如果你的 defaultDate 是异步获取的,就可能会出现你的情况