Commit 623b9dde58d55efd292612b6f7abfe372d3f3af1

Authored by 梁灏
1 parent d9464035

fixed #3973

Showing 1 changed file with 4 additions and 1 deletions   Show diff stats
src/components/date-picker/panel/Date/date-range.vue
... ... @@ -342,7 +342,10 @@
342 342 if (!this.splitPanels){
343 343 const otherPanel = panel === 'left' ? 'right' : 'left';
344 344 this[`${otherPanel}PanelDate`] = value;
345   - this.changePanelDate(otherPanel, 'Month', 1, false);
  345 +
  346 + const increment = otherPanel === 'left' ? -1 : 1; // #3973
  347 +
  348 + this.changePanelDate(otherPanel, 'Month', increment, false);
346 349 }
347 350 },
348 351 handleRangePick (val, type) {
... ...