diff --git a/src/components/date-picker/panel/Date/date-range.vue b/src/components/date-picker/panel/Date/date-range.vue index c7057d8..ca017a4 100644 --- a/src/components/date-picker/panel/Date/date-range.vue +++ b/src/components/date-picker/panel/Date/date-range.vue @@ -221,7 +221,6 @@ } }, selectionMode(type){ - console.log('Selection type change!', type); this.currentView = type || 'range'; } }, diff --git a/src/components/date-picker/panel/Date/date.vue b/src/components/date-picker/panel/Date/date.vue index c65d9c2..529d8e4 100644 --- a/src/components/date-picker/panel/Date/date.vue +++ b/src/components/date-picker/panel/Date/date.vue @@ -168,18 +168,12 @@ this.pickerTable = this.getTableType(this.currentView); }, handlePick (value) { - const {selectionMode, panelDate, pickerType} = this; + const {selectionMode, panelDate} = this; if (selectionMode === 'year') value = new Date(value.getFullYear(), 0, 1); else if (selectionMode === 'month') value = new Date(panelDate.getFullYear(), value.getMonth(), 1); else value = new Date(value); - if (pickerType === selectionMode){ - this.$emit('on-pick', value); - } else { - this.selectionMode - } - - + this.$emit('on-pick', value); }, }, }; -- libgit2 0.21.4