feat(Calendar): allow default-date to be null (#7116)
This commit is contained in:
@@ -189,6 +189,10 @@ export default createComponent({
|
||||
return 'disabled';
|
||||
}
|
||||
|
||||
if (currentDate === null) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (type === 'single') {
|
||||
return compareDay(day, currentDate) === 0 ? 'selected' : '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user