Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report] el-date-picker组件type="week" format="yyyy 第 WW 周" value-format="yyyy-MM-dd",当选取跨年周时,获取的日期错误,不是该周的第一个日期。 #23023

Open
HenryLin0 opened this issue Jan 10, 2025 · 0 comments

Comments

@HenryLin0
Copy link

Element UI version

2.15.14

OS/Browsers version

win10 Edge浏览器 130.0.2849.56 (正式版本) (64 位)

Vue version

2.7.16

Reproduction Link

https://codepen.io/pen

Steps to reproduce

// HTML部分

<script src="//unpkg.com/vue@2/dist/vue.js"></script> <script src="//unpkg.com/[email protected]/lib/index.js"></script>
{{value1}}

// js 部分
var Main = {
data() {
return {
value1: '',
};
}
};
var Ctor = Vue.extend(Main)
new Ctor().$mount('#app')

// css部分
@import url("//unpkg.com/[email protected]/lib/theme-chalk/index.css");

What is Expected?

周输入框选择2025年第一周后,value1的值应该为2024-12-30

What is actually happening?

周输入框选择2025年第一周后,value1的值却是2025-01-02

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant