date-picker: fix you want to add a validity date selector. (#21477)

pull/21988/head
MrXhh 2022-07-28 22:56:14 +08:00
parent 84cccc5297
commit 07af36f019
1 changed files with 1 additions and 1 deletions

View File

@ -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] ||