Commit 12e19b82d83b7bf0f93314a5ba7ff9f3b75fa6cf
1 parent
4a42b047
fixed #4524
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
src/components/date-picker/panel/Date/date-range.vue
... | ... | @@ -261,7 +261,8 @@ |
261 | 261 | setPanelDates(leftPanelDate){ |
262 | 262 | this.leftPanelDate = leftPanelDate; |
263 | 263 | const rightPanelDate = new Date(leftPanelDate.getFullYear(), leftPanelDate.getMonth() + 1, 1); |
264 | - this.rightPanelDate = this.splitPanels ? new Date(Math.max(this.dates[1].getTime(), rightPanelDate.getTime())) : rightPanelDate; | |
264 | + const splitRightPanelDate = this.dates[1]? this.dates[1].getTime() : rightPanelDate.getTime(); | |
265 | + this.rightPanelDate = this.splitPanels ? new Date(Math.max(splitRightPanelDate, rightPanelDate.getTime())) : rightPanelDate; | |
265 | 266 | }, |
266 | 267 | panelLabelConfig (direction) { |
267 | 268 | const locale = this.t('i.locale'); | ... | ... |