fix(FormBuilder): 修复 Select 组件的 showSearch 属性用法

- 将 showSearch 属性改为布尔值,以启用搜索功能
- 删除无效的 showSearch 对象配置,改用 optionFilterProp 设置过滤字段
- 优化 Select 组件的搜索逻辑行为
- 保持组件其他属性与功能不变
1.0
LiuJiaNan 2026-08-11 17:31:08 +08:00
parent ba31fd3273
commit a678fcc90d
1 changed files with 2 additions and 1 deletions

View File

@ -304,7 +304,8 @@ const FormItemsRenderer = ({
return ( return (
<Select <Select
placeholder={placeholder} placeholder={placeholder}
showSearch={{ optionFilterProp: "label" }} optionFilterProp="label"
showSearch
allowClear allowClear
options={(option.items || []).map(item => getSelectableItemAttributes(item, itemsFieldKey))} options={(option.items || []).map(item => getSelectableItemAttributes(item, itemsFieldKey))}
{...componentProps} {...componentProps}