-
-
Notifications
You must be signed in to change notification settings - Fork 46.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
typescript使用antd Form组件问题 #2885
Comments
console 无任何报错信息。 |
是typescript的语法检查会提示错误 |
afc163
added a commit
that referenced
this issue
Aug 30, 2016
通过 |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
本地环境
你做了什么?
使用typescript去写react,用到了antd的Form组件
经过 Form.create 包装了一个组件,在其他组件里面使用这个组件
你期待的结果是:
没有提示错误
实际上的结果:
如果组件属性定义的form是可选,Form.create()会提示错误;
如果组件属性定义的form是必须,Form.create()不会提示错误,但是使用这个组件的时候,会提示没有设置form属性
可重现的在线演示
http://codepen.io/infeng/pen/qaWbpE?editors=0010
The text was updated successfully, but these errors were encountered: