element [bug report] the El date picker setting only displays the month and year. If you select a leap year, February 29 of 2020 will become March 1 of this year

iklwldmw  于 2022-11-02  发布在  其他
关注(0)|答案(1)|浏览(120)

Element UI version

2.15.1

OS/Browsers version

windows

Vue version

2.6.11

https://codepen.io/zzh3319/pen/gOmPOvE

Steps to reproduce

<el-date-picker
                      style="flex:1"
                      v-model="basicInfo.femaleBirthday"
                      format="yyyy-MM-dd" 
                      value-format="MM-dd"
                      type="date"
                      placeholder="选择日期">
                    </el-date-picker>

What is Expected?

二月29日

What is actually happening?

三月1日

twh00eeo

twh00eeo1#

Translation of this issue:

Element UI version

2.15.1

OS/Browsers version

windows

Vue version

2.6.11

https://codepen.io/zzh3319/pen/gOmPOvE

Steps to reproduce

<el-date-picker

style=" flex:1 "
v-model="basicInfo.femaleBirthday"

format="yyyy-MM-dd"
value-format="MM-dd"

type="date"
Placeholder = "select date" >

What is Expected?

February 29th

What is actually happening?

March 1st

相关问题