mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 09:24:25 +00:00
fix(Calendar): readonly not work in multiple mode (#7127)
This commit is contained in:
@@ -301,6 +301,10 @@ export default createComponent({
|
||||
},
|
||||
|
||||
onClickDay(item) {
|
||||
if (this.readonly) {
|
||||
return;
|
||||
}
|
||||
|
||||
const { date } = item;
|
||||
const { type, currentDate } = this;
|
||||
|
||||
@@ -358,10 +362,6 @@ export default createComponent({
|
||||
},
|
||||
|
||||
select(date, complete) {
|
||||
if (this.readonly) {
|
||||
return;
|
||||
}
|
||||
|
||||
const emit = (date) => {
|
||||
this.currentDate = date;
|
||||
this.$emit('select', copyDates(this.currentDate));
|
||||
|
Reference in New Issue
Block a user