antd *验证

<FormItem label="联系方式" >
              {getFieldDecorator("mobile", {
                rules :[
                  {
                    pattern: /^1[3|4|5|7|8][0-9]d{8}$/, message: '请输入正确的手机号'
                  }
                ]
              },{
                initialValue:vehicleinfo.mobile
              })(
                <Input />
              )}
            </FormItem>
rules :[
                  {
                    pattern: /^1[3|4|5|7|8][0-9]d{8}$/, message: '请输入正确的手机号'
                  }
                ]
原文地址:https://www.cnblogs.com/chaojimali/p/11417287.html