From f330cf2a34e07f0ecfb9c93b82265fd0c84ee5f4 Mon Sep 17 00:00:00 2001 From: johnsonwong666 <64689255+johnsonwong666@users.noreply.github.com> Date: Mon, 11 Sep 2023 17:22:43 +0800 Subject: [PATCH] fix(calendar): fix calendar reset miss default Date (#5546) --- packages/calendar/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/calendar/index.ts b/packages/calendar/index.ts index 3c58f8c9..c156fb06 100644 --- a/packages/calendar/index.ts +++ b/packages/calendar/index.ts @@ -168,7 +168,7 @@ VantComponent({ methods: { reset() { - this.setData({ currentDate: this.getInitialDate() }); + this.setData({ currentDate: this.getInitialDate(this.data.defaultDate) }); this.scrollIntoView(); },