1
0
mirror of https://gitee.com/vant-contrib/vant.git synced 2025-04-06 03:57:59 +08:00

feat(Calendar): scroll to currecnt month when default-date changed ()

This commit is contained in:
陈嘉涵 2020-02-17 14:28:40 +08:00
parent 3672441839
commit f1a5097a2e

@ -133,6 +133,7 @@ export default createComponent({
defaultDate(val) { defaultDate(val) {
this.currentDate = val; this.currentDate = val;
this.scrollIntoView();
}, },
}, },