Skip to content

Commit

Permalink
fix(components): [date-picker] monthRange mode switching month sync (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxch committed Oct 28, 2022
1 parent 874aa0a commit 43b5ea1
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -15,13 +15,13 @@ export const useMonthRangeHeader = ({
const { t } = useLocale()
const leftPrevYear = () => {
leftDate.value = leftDate.value.subtract(1, 'year')
if (!unlinkPanels) {
if (!unlinkPanels.value) {
rightDate.value = rightDate.value.subtract(1, 'year')
}
}

const rightNextYear = () => {
if (!unlinkPanels) {
if (!unlinkPanels.value) {
leftDate.value = leftDate.value.add(1, 'year')
}
rightDate.value = rightDate.value.add(1, 'year')
Expand Down

0 comments on commit 43b5ea1

Please sign in to comment.