ElemeFE / element

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

The [bug report] component datetimepicker > attributes > format is converted to (at HH on mm / DD / yyyy) (this bug may only exist for Chinese developers) #21381

Open liubao425 opened 2 years ago

liubao425 commented 2 years ago

Element UI version

2.15.6

OS/Browsers version

Windows11

Vue version

2.6.14

Reproduction Link

localhost

Steps to reproduce

添加组件DateTimePicker 设置组件属性format,填写属性值(yyyy年MM月dd日 HH时) 组件的文本显示框预览值显示错误,错误值的格式为: (yyyy年MM月dd时 日HH时) image image

What is Expected?

What is actually happening?

element-bot commented 2 years ago

Translation of this issue:

Element UI version

2.15.6

OS/Browsers version

Windows11

Vue version

2.6.14

Reproduction Link

localhost

Steps to reproduce

Add component datetimepicker

Set the component attribute format and fill in the attribute value (mm / DD / yyyy HH) The preview value of the text display box of the component displays an error. The format of the error value is: (yyyy mm MM DD h h h)

! image ! image

What is Expected?

What is actually happening?

wangfpp commented 2 years ago

@liubao425 你后续是怎么解决的