Skip to content

Commit 623ca35

Browse files
authored
fix(DatePicker): panel top arrow doesn't work when using week mode
1 parent ce3c7f1 commit 623ca35

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/date-picker/DateRangePickerPanel.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,13 @@ export default defineComponent({
135135
prev: 'arrow-previous',
136136
next: 'arrow-next',
137137
};
138-
const monthCountMap = { date: 1, month: 12, year: 120 };
138+
const monthCountMap = {
139+
date: 1,
140+
week: 1,
141+
month: 12,
142+
quarter: 12,
143+
year: 120,
144+
};
139145
const monthCount = monthCountMap[props.mode] || 0;
140146
const current = new Date(year.value[partialIndex], month.value[partialIndex]);
141147

0 commit comments

Comments
 (0)