mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-06 05:49:32 +08:00
AutoComplete 支持显示 option.tip
This commit is contained in:
parent
f8f299f1e2
commit
2b982eb7ca
@ -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>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
Loading…
Reference in New Issue
Block a user