ElemeFE / element

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

[Bug Report] el-date-picker #19958

Open JingGeGe77 opened 4 years ago

JingGeGe77 commented 4 years ago

Element UI version

2.13.2

OS/Browsers version

win10/Google Chrome 已是最新版本 版本 84.0.4147.105(正式版本) (64 位

Vue version

2.6.10

Reproduction Link

https://codepen.io/jinggege77/pen/mdVYvaB?editors=1000

Steps to reproduce

使用value-format="yyyy 第 WW 周",显示value1的值,控制台报错 [Vue warn]: Error in render: "TypeError: e.getMonth is not a function" found in

---> at packages/date-picker/src/picker.vue

[Vue warn]: Error in render: "TypeError: t.getFullYear is not a function" found in ---> at packages/date-picker/src/basic/year-table.vue ### What is Expected? 可以修复报错 ### What is actually happening? 可以修复报错 ![image](https://user-images.githubusercontent.com/42129510/88753440-b4f90000-d18e-11ea-895c-d62ff9ab09fd.png)
leevane commented 4 years ago

遇到同样问题

learnzpk commented 4 years ago

遇到同样问题

CHANCCCZQ commented 3 years ago

2020年7月份的bug到现在都不解决吗。。。

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.

goubar commented 2 years ago

Hi, I don't know if anybody still facing the same issue , but I had the same one, for my case the issue was : when I init the datapicker , and the format was different from value-format

<el-date-picker
                  v-model="value"
                  type="date"
                  placeholder="Pick a day"
                  format="dd/MM/yyyy"
                  value-format="yyyy-MM-dd"
                  :editable="false"
                  ....
                >
                </el-date-picker>

So I had to use the format 'yyyy-MM-dd' for value