AutoComplete 支持显示 option.tip

This commit is contained in:
liaoxuezhi 2019-05-23 20:10:28 +08:00 committed by catchonme
parent 9552fd9577
commit 68340a700e

View File

@ -453,7 +453,9 @@ export default class TextControl extends React.PureComponent<TextProps, TextStat
>
{option.isNew ? (
<span>{option.label}{enterIcon}</span>
) : option.disabled ? option.label : highlight(option.label, inputValue as string)}
) : (
<span>{option.disabled ? option.label : highlight(option.label, inputValue as string)}{option.tip}</span>
)}
</div>
);
})}