mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 20:09:08 +08:00
AutoComplete 支持显示 option.tip
This commit is contained in:
parent
9552fd9577
commit
68340a700e
@ -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