mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
fix(Calendar): fix wxs error on init when showConfirm is true (#2951)
fix #2949
This commit is contained in:
parent
26fd387ee8
commit
b23ff3ee89
@ -16,6 +16,10 @@ function getMonths(minDate, maxDate) {
|
||||
}
|
||||
|
||||
function getButtonDisabled(type, currentDate) {
|
||||
if (currentDate == null) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (type === 'range') {
|
||||
return !currentDate[0] || !currentDate[1];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user