fix(Calendar): reading getFullYear error in some cases (#10909)

This commit is contained in:
neverland
2022-08-13 12:03:07 +08:00
committed by GitHub
parent c3776877ca
commit e5cc32ca97

View File

@@ -299,7 +299,7 @@ export default defineComponent({
props.type === 'single'
? (currentDate.value as Date)
: (currentDate.value as Date[])[0];
if (targetDate) {
if (isDate(targetDate)) {
scrollToDate(targetDate);
}
} else {