mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 03:11:15 +00:00
fix(Calendar): should not check range in single mode
This commit is contained in:
@@ -281,9 +281,11 @@ export default createComponent({
|
|||||||
},
|
},
|
||||||
|
|
||||||
onConfirm() {
|
onConfirm() {
|
||||||
if (this.checkRange()) {
|
if (this.range && !this.checkRange()) {
|
||||||
this.$emit('confirm', this.currentDate);
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.$emit('confirm', this.currentDate);
|
||||||
},
|
},
|
||||||
|
|
||||||
genMonth(date, index) {
|
genMonth(date, index) {
|
||||||
|
Reference in New Issue
Block a user