Skip to content

Commit

Permalink
Merge pull request #303 from xrkffgg/k-fix-date
Browse files Browse the repository at this point in the history
fix: datepicker left picker
  • Loading branch information
icarusion authored Feb 24, 2020
2 parents a5f6f6c + e024905 commit b03681f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/components/date-picker/panel/Date/date-range.vue
Original file line number Diff line number Diff line change
Expand Up @@ -296,11 +296,7 @@
},
changePanelDate(panel, type, increment, updateOtherPanel = true){
const current = new Date(this[`${panel}PanelDate`]);
if (panel === 'left') {
current[`set${type}`](current[`get${type}`](), 0);
} else {
current[`set${type}`](current[`get${type}`]() + increment);
}
current[`set${type}`](current[`get${type}`]() + increment);
this[`${panel}PanelDate`] = current;
if (!updateOtherPanel) return;
Expand Down

0 comments on commit b03681f

Please sign in to comment.