Why does element-ui report an error when using value-format when type is week in the time selector?

    <el-date-picker
    v-model="weekRange"
    type="week"
    format="yyyy  WW "
    placeholder=""
    size="medium"
    value-format="yyyy-MM-dd">
</el-date-picker>

Why do you get a normal value if you remove value-format, and you will report an error when you add it?

Apr.27,2021

has the landlord found a solution? I also encountered the same problem ~


how did the landlord solve it?


did the landlord solve this problem? I also encountered the same situation


you should have added form verification, as if adding value-format= "yyyy-MM-dd" > is not the type of date, just pay attention to the type. I removed type: 'date', during form validation and did not validate according to date type


problem solved, I also encountered this problem


take a look at the document.

date-picker

format="yyyy  WW "

bug,typeweek,value-format,moment.js"YYYY WW"
Menu