fix(FormBuilder): 修复 Select 组件的 showSearch 属性用法
- 将 showSearch 属性改为布尔值,以启用搜索功能 - 删除无效的 showSearch 对象配置,改用 optionFilterProp 设置过滤字段 - 优化 Select 组件的搜索逻辑行为 - 保持组件其他属性与功能不变1.0
parent
ba31fd3273
commit
a678fcc90d
|
|
@ -304,7 +304,8 @@ const FormItemsRenderer = ({
|
|||
return (
|
||||
<Select
|
||||
placeholder={placeholder}
|
||||
showSearch={{ optionFilterProp: "label" }}
|
||||
optionFilterProp="label"
|
||||
showSearch
|
||||
allowClear
|
||||
options={(option.items || []).map(item => getSelectableItemAttributes(item, itemsFieldKey))}
|
||||
{...componentProps}
|
||||
|
|
|
|||
Loading…
Reference in New Issue