mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
fix(calendar): fix default-date not work in multiple mode (#3284)
fix #3271
This commit is contained in:
parent
8456e58b46
commit
9717d4170b
@ -165,7 +165,7 @@ VantComponent({
|
||||
}
|
||||
|
||||
if (type === 'multiple') {
|
||||
return [defaultDate || minDate];
|
||||
return defaultDate || [minDate];
|
||||
}
|
||||
|
||||
return defaultDate || minDate;
|
||||
@ -316,7 +316,10 @@ VantComponent({
|
||||
},
|
||||
|
||||
onConfirm() {
|
||||
if (this.data.type === 'range' && !this.checkRange(this.data.currentDate)) {
|
||||
if (
|
||||
this.data.type === 'range' &&
|
||||
!this.checkRange(this.data.currentDate)
|
||||
) {
|
||||
return;
|
||||
}
|
||||
wx.nextTick(() => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user