fix(calendar): fix calendar reset miss default Date (#5546)

This commit is contained in:
johnsonwong666 2023-09-11 17:22:43 +08:00 committed by GitHub
parent 7423e18ae3
commit f330cf2a34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -168,7 +168,7 @@ VantComponent({
methods: { methods: {
reset() { reset() {
this.setData({ currentDate: this.getInitialDate() }); this.setData({ currentDate: this.getInitialDate(this.data.defaultDate) });
this.scrollIntoView(); this.scrollIntoView();
}, },