1.Form.Item的name

validateMoneyRule(value,base_range?.company_base_range_end)}]}style={{ display: 'inline-block', width: 'calc(50% - 15px)' }}><InputNumbercontrols={false}placeholder='下限'addonAfter='元'style={{ width: '100%' }}/>

form.item的naem可以为数组或者字符串,当后端接口文档中的字段有相同名字的时候,可以用数组。

dependencies,依赖,一般是校验规则时会用到。

2.设置Form.List的某个字段的值

 {(fields) => ({fields.map(({ key, name }, index) => ( {form.setFieldValue(['account_info', index, 'id'], undefined)}}>{sceneList[index]}<BankAccountSelectplaceholder='请选择'disabled={!!subjectScene?.[index]?.scene || !account_info?.[index]?.scene}subject_id={subjectObject?.key}open_status={1}style={{ width: '100%' }}/>))})}

3.一行展示form.item

{ display: 'flex', alignItems: 'center' }}>validateMoneyRule(value, base_range?.personal_base_range_end)}]}style={{ display: 'inline-block', width: 'calc(50% - 15px)' }}><InputNumbercontrols={false}placeholder='下限'addonAfter='元'style={{ width: '100%' }}/><span style={{ margin: '0 10px 24px' }}>— validateMoneyRule(value)}]}style={{ display: 'inline-block', width: 'calc(50% - 15px)' }}><InputNumbercontrols={false}placeholder='上限'addonAfter='元'style={{ width: '100%' }}/>