AutoComplete 支持显示 option.tip

This commit is contained in:
liaoxuezhi 2019-05-23 20:10:28 +08:00
parent f8f299f1e2
commit 2b982eb7ca

View File

@ -453,7 +453,9 @@ export default class TextControl extends React.PureComponent<TextProps, TextStat
> >
{option.isNew ? ( {option.isNew ? (
<span>{option.label}{enterIcon}</span> <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> </div>
); );
})} })}