mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +08:00
AutoComplete 支持显示 option.tip
This commit is contained in:
parent
3579d3d224
commit
ca428e5576
@ -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>
|
||||
);
|
||||
})}
|
||||
|
Loading…
Reference in New Issue
Block a user