<Select
allowClear
mode="multiple"
showArrow={true}
showSearch={true}
filterOption={(inputValue, option) => option?.props?.label.includes(inputValue)}
placeholder="请选择用户"
>
{notificationfeishuUsers.map((item) => {
return (
<Select.Option
key={item.id}
value={item.id}
label={item.name}
{...item}
className="OptionsBasic"
>
{item.name}
</Select.Option>
);
})}
</Select>
标签:filterOption,下拉,选择,item,搜索,antd From: https://www.cnblogs.com/Simoon/p/18178119