fix(Calendar): readonly not work in multiple mode (#7127)

This commit is contained in:
neverland 2020-09-07 20:53:26 +08:00 committed by GitHub
parent 601277fbe8
commit bc59e6ea5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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));