<Form name="menu" form={formList}> {pickList && pickList.map((item: any, index: number) => ( <> <Form.Item label={`缸号${item.key + 1}`} name={`batchCode-${item.key + 1}`} rules={[{ required: true, message: "请输入缸号" }]} > <Input placeholder="请输入缸号" /> </Form.Item> <Form.Item label={`领取数量${item.key + 1}`} name={`receiveQty-${item.key + 1}`} rules={[{ required: true, message: "请输入领取数量" }]} > <Input placeholder="请输入领取数量" /> </Form.Item> </> ))} </Form>
ant design进行动态表单添加