mirror of https://github.com/ElemeFE/element
DatePicker: fix date input format
parent
5d43a7cae5
commit
ffe6b8933c
|
@ -449,7 +449,7 @@
|
|||
|
||||
dateFormat() {
|
||||
if (this.format) {
|
||||
return this.format.replace('HH:mm', '').replace(':ss', '').trim();
|
||||
return this.format.replace('HH', '').replace(':mm', '').replace(':ss', '').trim();
|
||||
} else {
|
||||
return 'yyyy-MM-dd';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue