mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(Calendar): readonly not work in multiple mode (#7127)
This commit is contained in:
parent
601277fbe8
commit
bc59e6ea5d
@ -301,6 +301,10 @@ export default createComponent({
|
|||||||
},
|
},
|
||||||
|
|
||||||
onClickDay(item) {
|
onClickDay(item) {
|
||||||
|
if (this.readonly) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const { date } = item;
|
const { date } = item;
|
||||||
const { type, currentDate } = this;
|
const { type, currentDate } = this;
|
||||||
|
|
||||||
@ -358,10 +362,6 @@ export default createComponent({
|
|||||||
},
|
},
|
||||||
|
|
||||||
select(date, complete) {
|
select(date, complete) {
|
||||||
if (this.readonly) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const emit = (date) => {
|
const emit = (date) => {
|
||||||
this.currentDate = date;
|
this.currentDate = date;
|
||||||
this.$emit('select', copyDates(this.currentDate));
|
this.$emit('select', copyDates(this.currentDate));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user