优化FormItemsRenderer

master
LiuJiaNan 2025-11-01 08:40:02 +08:00
parent 33ad1e87d5
commit 6ec56dcb55
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ const FormItemsRenderer = ({
case FORM_ITEM_RENDER_ENUM.SELECT: case FORM_ITEM_RENDER_ENUM.SELECT:
return ( return (
<Select placeholder={placeholder} {...componentProps}> <Select placeholder={placeholder} showSearch allowClear {...componentProps}>
{(option.items || []).map((item) => { {(option.items || []).map((item) => {
const value = item[itemsFieldKey.valueKey]; const value = item[itemsFieldKey.valueKey];
const label = item[itemsFieldKey.labelKey]; const label = item[itemsFieldKey.labelKey];