mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-04 21:08:55 +08:00
AutoComplete 支持显示 option.tip
This commit is contained in:
parent
e0baa20492
commit
dea569c4ca
@ -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