From 2f5a60393cc1d176bed3a54605c3e7ceddbd1878 Mon Sep 17 00:00:00 2001 From: Ultrame <1019265060@qq.com> Date: Thu, 25 Sep 2025 00:18:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E6=9C=9F=E8=8C=83=E5=9B=B4=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Picker/CalendarDialog/DialogCalendarCard.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Picker/CalendarDialog/DialogCalendarCard.tsx b/src/components/Picker/CalendarDialog/DialogCalendarCard.tsx index 9961bc9..35d07c5 100644 --- a/src/components/Picker/CalendarDialog/DialogCalendarCard.tsx +++ b/src/components/Picker/CalendarDialog/DialogCalendarCard.tsx @@ -48,7 +48,9 @@ const DialogCalendarCard: React.FC = ({ if (searchType === 'range') { const delta = calculateMonthDifference(selected as Date, new Date(year, month - 1, 1)) console.log('xxxxx', calendarRef.current) - calendarRef.current?.gotoMonth(delta) + setTimeout(() => { + calendarRef.current?.gotoMonth(delta) + }, 50) } else { setSelected(new Date(year, month - 1, 1)) }