0
点赞
收藏
分享

微信扫一扫

前端项目实战241-ant design下拉框具有搜索功能

<Select
showSearch
onChange={onChangeManufacture}
style={{ width: '200px' }}
placeholder="请选择生产单号"
optionFilterProp="children"
filterOption={(input, option) => (option?.label ?? '').includes(input)}
filterSort={(optionA, optionB) =>
(optionA?.label ?? '').toLowerCase().localeCompare((optionB?.label ?? '').toLowerCase())
}
options={roleList}
>

</Select>



举报

相关推荐

0 条评论