ant design pro how to achieve step by step form, and return to the previous value still be saved

First, step by step form ant design pro support, see the official Demo can, then how to achieve such problems, the key is to set initialValue

getFieldDecorator {( 'name' , { 
                  the initialValue: data.name.value, 
                  the rules: [{ 
                    required: to true , 
                    Message: 'Please enter a project name' 
                  }], 
                }) ( <the Input />)}

This is because the redux of this is to support the global cache value, and therefore can be used directly

Guess you like

Origin www.cnblogs.com/ww01/p/10968961.html