优化Select
parent
e8a59bc96d
commit
18e923f35f
|
|
@ -56,7 +56,7 @@ function BasicSelect(props) {
|
||||||
}, [data]);
|
}, [data]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Select placeholder={`请选择${placeholder}`} showSearch allowClear onChange={handleChange} {...restProps}>
|
<Select placeholder={`请选择${placeholder}`} showSearch allowClear optionFilterProp="children" onChange={handleChange} {...restProps}>
|
||||||
{data.map((item) => {
|
{data.map((item) => {
|
||||||
const value = item[idKey];
|
const value = item[idKey];
|
||||||
const label = item[nameKey];
|
const label = item[nameKey];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue