diff --git a/src/components/date-picker/base/mixin.js b/src/components/date-picker/base/mixin.js index ba64cc5..ba4f699 100644 --- a/src/components/date-picker/base/mixin.js +++ b/src/components/date-picker/base/mixin.js @@ -37,7 +37,7 @@ export default { }, methods: { handleClick (cell) { - if (cell.disabled) return; + if (cell.disabled || cell.type === 'weekLabel') return; const newDate = new Date(clearHours(cell.date)); this.$emit('on-pick', newDate); @@ -50,4 +50,4 @@ export default { this.$emit('on-change-range', newDate); }, } -}; \ No newline at end of file +}; -- libgit2 0.21.4