Skip to content

Commit

Permalink
fix(DatePicker): panel top arrow doesn't work when using week mode
Browse files Browse the repository at this point in the history
  • Loading branch information
RSS1102 authored Oct 22, 2024
1 parent ce3c7f1 commit 623ca35
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/date-picker/DateRangePickerPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,13 @@ export default defineComponent({
prev: 'arrow-previous',
next: 'arrow-next',
};
const monthCountMap = { date: 1, month: 12, year: 120 };
const monthCountMap = {
date: 1,
week: 1,
month: 12,
quarter: 12,
year: 120,
};
const monthCount = monthCountMap[props.mode] || 0;
const current = new Date(year.value[partialIndex], month.value[partialIndex]);

Expand Down

0 comments on commit 623ca35

Please sign in to comment.