fix: select maxTagPlaceholder display error #3085

This commit is contained in:
tanjinzhou 2020-11-02 17:53:45 +08:00
parent 948727a2ef
commit 8dc62f59bb

View File

@ -59,8 +59,8 @@ const props = {
maxTagCount: PropTypes.number,
maxTagTextLength: PropTypes.number,
maxTagPlaceholder: PropTypes.any.def(
(omittedValues: LabelValueType[]) => `+ ${omittedValues.length} ...`,
maxTagPlaceholder: PropTypes.any.def(() => (omittedValues: LabelValueType[]) =>
`+ ${omittedValues.length} ...`,
),
tagRender: PropTypes.func,