优化Select

master
LiuJiaNan 2025-11-14 11:26:33 +08:00
parent e8a59bc96d
commit 18e923f35f
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ function BasicSelect(props) {
}, [data]);
return (
<Select placeholder={`请选择${placeholder}`} showSearch allowClear onChange={handleChange} {...restProps}>
<Select placeholder={`请选择${placeholder}`} showSearch allowClear optionFilterProp="children" onChange={handleChange} {...restProps}>
{data.map((item) => {
const value = item[idKey];
const label = item[nameKey];