// 注:可能会出现搜索的情况,比如初始化选择某一值或者选完后光标离开再重新选中,添加下面的样式可解决
.ant-select-selector {
position: relative;
z-index: 1;
}
<Select
allowClear
// 搜索
showSearch
optionFilterProp="children"
// 这个是解决下拉框错位问题
getPopupContainer={triggerNode => triggerNode.parentNode}
// 多选
mode="multiple"
>
<Option value={1}>11</Option>
</Select>
Select 单选下拉筛选框标配
于 2022-09-20 10:11:56 首次发布