mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-25 19:21:34 +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') {
|
if (type === 'multiple') {
|
||||||
return [defaultDate || minDate];
|
return defaultDate || [minDate];
|
||||||
}
|
}
|
||||||
|
|
||||||
return defaultDate || minDate;
|
return defaultDate || minDate;
|
||||||
@ -316,7 +316,10 @@ VantComponent({
|
|||||||
},
|
},
|
||||||
|
|
||||||
onConfirm() {
|
onConfirm() {
|
||||||
if (this.data.type === 'range' && !this.checkRange(this.data.currentDate)) {
|
if (
|
||||||
|
this.data.type === 'range' &&
|
||||||
|
!this.checkRange(this.data.currentDate)
|
||||||
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
wx.nextTick(() => {
|
wx.nextTick(() => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user