mirror of https://github.com/ElemeFE/element
DatePicker: fix toDate, fixed #2538
parent
ed299e9003
commit
1f53559c20
|
@ -13,7 +13,7 @@ export const equalDate = function(dateA, dateB) {
|
||||||
};
|
};
|
||||||
|
|
||||||
export const toDate = function(date) {
|
export const toDate = function(date) {
|
||||||
return isDate(date) ? date : null;
|
return isDate(date) ? new Date(date) : null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const isDate = function(date) {
|
export const isDate = function(date) {
|
||||||
|
|
Loading…
Reference in New Issue