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 committed Oct 22, 2024
1 parent 8007b15 commit 8ba5ff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/date-picker/DateRangePickerPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ 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 8ba5ff0

Please sign in to comment.