feat(Calendar): scroll to current month after reset

This commit is contained in:
陈嘉涵 2020-02-17 14:35:56 +08:00
parent 79d2c344f9
commit 407b7ded43

View File

@ -147,6 +147,7 @@ export default createComponent({
// @exposed-api // @exposed-api
reset() { reset() {
this.currentDate = this.getInitialDate(); this.currentDate = this.getInitialDate();
this.scrollIntoView();
}, },
initRect() { initRect() {