mirror of https://github.com/ElemeFE/element
date-picker: fix you want to add a validity date selector. (#21477)
parent
84cccc5297
commit
07af36f019
|
@ -281,7 +281,7 @@ const parseAsFormatAndType = (value, customFormat, type, rangeSeparator = '-') =
|
|||
const formatAsFormatAndType = (value, customFormat, type) => {
|
||||
if (!value) return null;
|
||||
|
||||
if (value.toDateString() === S_LONG_TERM) return t('el.datepicker.longTerm');
|
||||
if (type === "date" && value.toDateString() === S_LONG_TERM) return t('el.datepicker.longTerm');
|
||||
|
||||
const formatter = (
|
||||
TYPE_VALUE_RESOLVER_MAP[type] ||
|
||||
|
|
Loading…
Reference in New Issue