diff --git a/src/calendar/index.js b/src/calendar/index.js index d1c901623..8a0dd9712 100644 --- a/src/calendar/index.js +++ b/src/calendar/index.js @@ -308,6 +308,10 @@ export default createComponent({ }, onClickDay(item) { + if (this.readonly) { + return; + } + const { date } = item; const { type, currentDate } = this; @@ -365,10 +369,6 @@ export default createComponent({ }, select(date, complete) { - if (this.readonly) { - return; - } - const emit = (date) => { this.currentDate = date; this.$emit('select', copyDates(this.currentDate)); diff --git a/src/list/index.js b/src/list/index.js index bad897dab..06c3e4944 100644 --- a/src/list/index.js +++ b/src/list/index.js @@ -118,7 +118,7 @@ export default createComponent({ const renderLoading = () => { if (loading.value && !props.finished) { return ( -
+
{slots.loading ? ( slots.loading() ) : (