先说一下我的报错场景:
从抽屉里面提取出了一个form表单作为公共组件,这就涉及到了两个组件之间的通信问题,公共组件是一个选择框,抽屉有一个提交按钮,其中需要将选择框中的数据和提交方法都传递给公共组件,使按下提交按钮之后选择框的内容也调用提交的方法存入数据库中。
报错内容:

这里我传参的时候将参数命名为了ref,系统判定ref不是一个参数,修改ref为其他命名之后就可以了。

使用react、antd组件报错TypeError: _this.formRef.current.validateFields is not a function相关推荐

  1. react+antd解决报错:Module not found: Can't resolve 'antd/es/affix'

    react+antd解决报错:Module not found: Can't resolve 'antd/es/affix' 问题 解决 写在最后 问题 今天在使用antd的时候,引入"抽屉 ...

  2. antd Datepicker组件报错 ——date.clone is not a function或者date1.isAfter is not a function

    问题描述: antd Datepicker组件报错 --date.clone is not a function或者date1.isAfter is not a function 原因分析: 在Fro ...

  3. 小程序组件报错Uncaught TypeError: Cannot read property 'name' of undefined

    小程序组件报错Uncaught TypeError: Cannot read property 'name' of undefined Component({/*** 组件的属性列表*/propert ...

  4. antd的联级选择器异步调用编辑回显_react-uplod-img 是一个基于 React antd组件的图片上传组件...

    react-uplod-img 是一个基于 React antd组件的图片上传组件 支持oss qiniu等服务端自定义获取签名,批量上传, 预览, 删除, 图片精确的尺寸限制 排序等功能 需要 re ...

  5. python创建对象后调用对象的方法,报错TypeError: getName() takes 0 positional arguments but 1 was given

    源码 ## TODO: Create multiple cars and visualize them height = 4 width = 6 world = np.zeros((height, w ...

  6. VUE.JS 使用axios数据请求时数据绑定时 报错 TypeError: Cannot set property 'xxxx' of undefined 的解决办法...

    data里面做了定义 在方法里面进行赋值 用 this.info = repos.data 数据可以请求到,但是会报错 TypeError: Cannot set property 'listgrou ...

  7. Python报错TypeError: 'str' object is not callable

    原文:http://blog.sina.com.cn/s/blog_71f3890901017rsh.html Python报错TypeError: 'str' object is not calla ...

  8. python报错 TypeError: an integer is required

    问题描述: 在本地使用socket向NetAssist传送数据的时候,执行python文件后发现报出python 报错TypeError: an integer is required错误 代码: 1 ...

  9. 记录webpack使用问题,使用报错“UnhandledPromiseRejectionWarning,file-loader图片过大,无法加载图片,打包html文件报错TypeError

    记录webpack使用报错 版本号问题 运行npm run build,报错 "UnhandledPromiseRejectionWarning: TypeError: this.getRe ...

最新文章

  1. 第三讲,我们来谈谈:“二进制的负数”
  2. 跨域解决方案之CORS
  3. GDCM:DICOM文件转储图像标题信息的测试程序
  4. Rails non browser app高级篇-capistrano/daemon部署
  5. .NET服务器应用程序开发
  6. [翻译中] 使用Wayland替代X, 大幅提高图形速度
  7. 忆阻器的matlab建模_忆阻器Simulink建模和图形用户界面设计.PDF
  8. android 类型.this,Android中this的用法
  9. php 正则匹配所有路径,与文件路径匹配的PHP正则表达式
  10. JAVA计算器计时器_Java中计时器的使用
  11. JAVA秒杀mysql层实现_一文搞懂MySQL的Join,聊一聊秒杀架构设计
  12. 排序算法--基数排序
  13. 深度总结:软件设计七大原则
  14. Web 全栈工程师的自我修养
  15. vuepress+github+versel部署免费个人博客
  16. mysql 每5分钟统计_SQL按时间段统计(5分钟统计一次访问量为例,oracle统计)
  17. Vue2.5学习笔记(三)动画
  18. 不平衡数据处理方法总结(学习笔记)
  19. 遇见未来 | 对话朱贤文:PostgreSQL是一匹即将发力的黑马
  20. C语言程序课程设计任务书

热门文章

  1. 我与无影的初体验:使用无影云桌面进行一个开源 Angular 项目的端到端测试
  2. 关于 Angular 应用 tsconfig.json 中的 target 属性
  3. SAP UI5 初学者教程之三:开始接触第一个 SAP UI5 控件 试读版
  4. 关于windows的version和OS build version
  5. Where do SAP CRM HANA Live Querys come from
  6. 如何在SAP S/4HANA Cloud系统里创建employee
  7. 如何使用Prometheus采集SAP ABAP Netweaver的应用日志数据
  8. 利用ABAP 740的新关键字REDUCE完成一个实际工作任务
  9. why our extension project didn't load S3 view and controller
  10. Pricing debug - update