展示普通的select框
const [typeList, setTypeList] = useState(["增加","减少"]);
<Form.Item name="fruitType" label="类型" rules={[{ required: true }]}><Select style={{width:500}} placeholder="请选择类型">{typeList.map((item,index)=> <Option key={index} value={index}>{item||null}</Option>)||null}</Select></Form.Item>
自定义搜索框(input框变为select框)
renderFormItem: (_, { type, defaultRender, ...rest }, form) => {return <Select {...rest} placeholder="请选择责任人">{userList.map((item,index)=> <Option key={index} value={item.userId}>{item.realName||null}</Option>)||null}</Select>;return defaultRender(_);},