Merge branch '2.0' of https://github.com/iview/iview into 2.0

This commit is contained in:
梁灏 2018-02-27 16:21:03 +08:00
commit 226c7f3dd0

View file

@ -37,7 +37,7 @@ export default {
}, },
methods: { methods: {
handleClick (cell) { handleClick (cell) {
if (cell.disabled) return; if (cell.disabled || cell.type === 'weekLabel') return;
const newDate = new Date(clearHours(cell.date)); const newDate = new Date(clearHours(cell.date));
this.$emit('on-pick', newDate); this.$emit('on-pick', newDate);