ElemeFE / element

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

[Bug Report] DatePicker first DayOfWeek:1 type :week the value is Tuesday #19706

Open jmjlbmn opened 4 years ago

jmjlbmn commented 4 years ago

Element UI version

2.13.2

OS/Browsers version

Windows 10 2004/ Microsoft Edge 83.0.478.54

Vue version

2.6.11

Reproduction Link

https://codepen.io/jmjlbmn/pen/LYGWJvE

Steps to reproduce

firstDayOfWeek:1 type:week the value is Tuesday
选择周模式,设置 firstDayOfWeek=1 获取到的值是周二的日期

What is Expected?

根据firstDayOfWeek 得到的值是每周第一天

What is actually happening?

忽略了firstDayOfWeek, 固定取值是每周第二天

element-bot commented 4 years ago

Translation of this issue:

Element UI version

2.13.2

OS/Browsers version

Windows 10 2004/ Microsoft Edge 83.0.478.54

Vue version

2.6.11

Reproduction Link

https://codepen.io/jmjlbmn/pen/LYGWJvE

Steps to reproduce

first DayOfWeek:1 type :week the value is Tuesday

Select week mode and set firstdayofweek = 1 to get the value of Tuesday

What is Expected?

According to firstdayofweek, the value is the first day of the week

What is actually happening?

Ignoring firstdayofweek, fixed value is the second day of every week

DaikonX commented 4 years ago

+1 同出现 设置了firstdayofweek 为周一就有问题

stale[bot] commented 3 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.