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] el-date-picker week bug #20782

Open panchichun opened 3 years ago

panchichun commented 3 years ago

Element UI version

2.15.0

OS/Browsers version

windows10/goole

Vue version

2.6.12

Reproduction Link

https://github.com/ElemeFE/element/blob/dev/FAQ.md#%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98

Steps to reproduce

代码如下: <el-date-picker @change="changeOne" ref="startWeek" v-model="startWeek" type="week" format="yyyy 第 W 周" placeholder="选择周" style="width:145px">

选择2020-12-27~2021-01-02 周期显示了53周

What is Expected?

52周

What is actually happening?

53周

image image

element-bot commented 3 years ago

Translation of this issue:

Element UI version

2.15.0

OS/Browsers version

windows10/goole

Vue version

2.6.12

Reproduction Link

https://github.com/ElemeFE/element/blob/dev/FAQ.md# %E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98

Steps to reproduce

The code is as follows:

< El date picker @ change = \"changeOne\" ref = \"startweek\" V-model = \"startweek\" type = \"week\" format = \"yyyy week\" placeholder = \"select week\" style=“ width:145px \">

Choose 2020-12-27 ~ 2021-01-02 The cycle shows 53 weeks

What is Expected?

52 weeks

What is actually happening?

53 weeks

image image

PiuQiuPiaQia commented 3 years ago

这个本身就是53周八,用的iso的时间计算方式,就是53周

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.