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