日期范围选择组件

This commit is contained in:
2025-09-25 00:18:50 +08:00
parent d99d3d87a9
commit 2f5a60393c

View File

@@ -48,7 +48,9 @@ const DialogCalendarCard: React.FC<DialogCalendarCardProps> = ({
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))
}