ElemeFE / element

A Vue.js 2.0 UI Toolkit for Web
https://element.eleme.io/
MIT License
54.12k stars 14.64k forks source link

[Bug Report] DatePicker week type choosing wrong week when firstDayOfWeek is 2 and the begining of the month is Monday #19660

Open mrdottb opened 4 years ago

mrdottb commented 4 years ago

Element UI version

2.13.2

OS/Browsers version

Windows 10/Opera 68.0.3618.125

Vue version

2.5.21

Reproduction Link

https://jsfiddle.net/20btuagp/

Steps to reproduce

  1. DatePicker with firstDayOfWeek: 2
  2. Begining of the month: Monday
  3. Pick e.g. 9-15 June
  4. Get 16-22

What is Expected?

It should pick correct week on every month.

What is actually happening?

When the month begins with 1st Monday and the firstDayOfWeek is Tuesday it picks the next week instead of the correct one.

USTCAK commented 3 years ago

这个bug目前还是存在

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.