From f1a5097a2e906602934e13ec343af17f07d88479 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=98=89=E6=B6=B5?= Date: Mon, 17 Feb 2020 14:28:40 +0800 Subject: [PATCH] feat(Calendar): scroll to currecnt month when default-date changed (#5664) --- src/calendar/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calendar/index.js b/src/calendar/index.js index 2c1512967..d00480c25 100644 --- a/src/calendar/index.js +++ b/src/calendar/index.js @@ -133,6 +133,7 @@ export default createComponent({ defaultDate(val) { this.currentDate = val; + this.scrollIntoView(); }, },