element icon indicating copy to clipboard operation
element copied to clipboard

[Bug Report] DateTimePicker cannot set default values like yyyy-MM-dd HH

Open mingbai2006 opened this issue 9 years ago • 2 comments

Element UI version

1.3.5

OS/Browsers version

Windows10/Chrome58.0.3029.110 (64-bit)

Vue version

2.3.4

Reproduction Link

https://jsfiddle.net/aeet72o1/1/

Steps to reproduce

如链接所示,给第一个组件设置‘2017-06-02 12’这种默认值会报错

What is Expected?

正常工作

What is actually happening?

报错且默认值没有显示

mingbai2006 avatar Jun 09 '17 09:06 mingbai2006

Translation of this issue:

Element UI version

1.3.5

OS/Browsers version

Windows10/Chrome58.0.3029.110 (64-bit)

Vue version

2.3.4

Reproduction Link

https://jsfiddle.net/aeet72o1/1/

Steps to reproduce

As shown in the link, the default value for the first component is set to '2017-06-02 12'

What is Expected?

Normal work

What is actually happening?

Error reporting and default value not shown

element-bot avatar Jun 09 '17 09:06 element-bot

The binding value of v-model should always be a Date: https://jsfiddle.net/aeet72o1/3/

Leopoldthecoder avatar Jun 09 '17 09:06 Leopoldthecoder