Commit Graph

68 Commits

Author SHA1 Message Date
Wei Zhu
dc439bd7c3 Remove generic type from ComponentDecorator, fix #9331 2018-02-22 15:52:35 +08:00
Wei Zhu
33119ec535 Update form type
Close #8935
2018-01-11 21:30:53 +08:00
徐坤龙
b06ea2404f Add React.SFC type for Form.create return value #8672 (#8675)
* Add React.SFC type for Form.create return value

* Restore indented.Fixed #8672

* Commit for lint

* Commit for lint
2017-12-22 16:05:06 +08:00
Wei Zhu
4aeb811b72
Remove deprecations (#8351) 2017-11-30 09:53:32 +08:00
Wei Zhu
ad21c9837f Fix implicit any error for Form 2017-11-21 20:45:24 +08:00
Benjy Cui
ac463a10f2 deps: upgrade form to 2.0.0 (#8207) 2017-11-17 21:19:10 +08:00
Wei Zhu
479a5cb743
Remove allowSyntheticDefaultImports (#8218) 2017-11-17 14:38:54 +08:00
Benjy Cui
7ff7519207 fix: upgrade rc-form and refactor to be compatible with react@16 2017-10-31 01:33:56 -05:00
ddcat1115
712637907d fix #7930 2017-10-18 23:52:54 +08:00
Mitchell Demler
298a60f13b chore: add validateFirst to fieldDecorator options (#7573) 2017-09-13 14:49:59 +08:00
Bilal Sirazitdinov
5bb45279bb chore: GetFieldDecoratorOptions missing property - normalize (#7562) 2017-09-12 09:08:47 +08:00
Wei Zhu
145ed77c00 fix: form type (#7245) 2017-08-18 17:21:18 +08:00
Randy
df934445c0 add a generic type for FormCreateOption (#7119) 2017-08-09 12:59:31 +08:00
Benjy Cui
87bfe2df87 fix: wrappedComponentRef should work, close: #6545 2017-08-09 10:27:34 +08:00
afc163
896e738fce Fix missing semicolon 2017-07-22 15:25:08 +08:00
Randy
a0dc7d3a72 Separate getFieldDecorator options type
Taking getFieldDecorator options type out of WrappedFormUtils
2017-07-20 13:20:15 +08:00
Benjy Cui
119d498935 chore: replace http with https, close: #6893 2017-07-19 14:00:11 +08:00
paranoidjk
ba168b826f refactor: use spread operator replace object-assign (#6677) 2017-07-03 16:57:11 +08:00
Leo
f4312895d6 chore: componentDecorator return specific type instead of any (#6308) 2017-06-01 09:25:32 +08:00
Jordan Hornblow
720a3d30b4 fix: Form and Mention TypeScript definition (#6268)
* Add source and options params to Form.ValidationRule.validator function

As per rules section of async-validation readme: https://github.com/yiminghe/async-validator#rules

* Make prefixCls optional in MentionProps interface
2017-05-26 09:16:53 +08:00
mitchell.demler
64befeda32 Add ValidationRule type for getFieldDecorator validation rules
Copied types from english documentation. (these might need checking?)
2017-05-22 15:57:09 +12:00
afc163
c6ec1ce9bb use create-react-class, ref #5678 2017-05-17 18:01:53 +08:00
Tyler
919cb22eb7 Use the prop-types package from npm instead of React.PropTypes (#6057)
* Use the prop-types package from npm instead of React.PropTypes

* Remove using of PropTypes from React in docs and site
2017-05-09 13:40:33 +08:00
Wei Zhu
b8fca87461 Fix some form type definition issues (#5560)
Close #5515
2017-03-30 13:46:38 +08:00
Kyle Rosenberg
84baa310e2 fix: isFieldTouched and isFieldsTouched types to WrappedFormUtils (#5537)
* Added missing getFieldsError in WrappedFormUtils

* Added isFieldTouched and isFieldsTouched types to WrappedFormUtils interface in Form.tsx
2017-03-29 09:36:54 +08:00
afc163
a19845c1bb fix tslint 2017-03-24 11:56:18 +08:00
feng zhi hao
637d9243ea chore: improve Form.create ts definition of Form (#5420)
* improve Form.create ts definition of Form

* use function<T>() instead of arrow function
2017-03-24 11:43:38 +08:00
偏右
674255bd14 [WIP] upgrade deps (#5455)
* upgrade deps

* autofix some tslint problems

* Fix tslint problems manually
2017-03-23 21:15:49 +08:00
Wei Zhu
67bbae9ea8 Merge branch 'feature-2.8' 2017-03-05 21:34:57 +08:00
feng zhi hao
dab5f3547d chore: improve ts definition of Form (#5134) 2017-03-02 10:53:47 +08:00
Benjy Cui
fb8f90c102 feat: form (#5063)
* feat: support Form[layout], close: #5056

* feat: Form should be responsive, close: #5055

* test: update snapshot

* fix: resolve conflict betwen layout defaultValue and inline & vertical
2017-03-02 10:49:06 +08:00
Kyle Rosenberg
aa84b826c1 chore: Added missing getFieldsError in WrappedFormUtils (#5133) 2017-03-02 09:33:46 +08:00
feng zhi hao
4019ef4b0c chore: fix hideRequiredMark ts definition of Form (#5112) 2017-03-01 09:13:26 +08:00
afc163
35523be6e9 Merge from master 2017-01-20 18:28:09 +08:00
偏右
6e3565b983 Add Form[hideRequiredMark] (#4500)
* Add Form[hideRequiredMark]

* omit hideRequiredMark

* Add test case for Form[hideRequiredMark]
2017-01-13 21:52:48 +08:00
偏右
3423d27493 When form layout is vertical, keep the colon inside label, close #4593 (#4599) 2017-01-13 21:12:31 +08:00
wallverb
a47c200f7c Fix validateTrigger type (#4536)
* Update validateTrigger type

* Update validateTrigger doc for en-US

* Update validateTrigger doc for zh-CN
2017-01-09 21:20:40 +08:00
Benjy Cui
c4d8c4770c Add upgrade warning (#4028)
* chore: add upgrade warning for time related value

* chore: update warning

* chore: update demo url
2016-12-02 15:07:33 +08:00
Andrey G
a307a7acf7 refactor: remove unnecessary computed props for classNames (#4055)
* remove unnecessary computed props for classNames

* rollback autocomplete optimization for possible css style order issue

* update snapshots

* remove more unnecessary computed props at Input
2016-11-30 10:20:23 +08:00
Benjy Cui
5782253a0f fix: infinite loop, ref: #3759 2016-11-08 16:22:36 +08:00
Benjy Cui
60ecb3c628 refactor: each message should warn just once 2016-11-01 11:10:11 +08:00
Wei Zhu
f8d2aeefc3 refactor: Replace react-addons-pure-render-mixin with rc-util/lib/PureRenderMixin (#3627) 2016-10-28 13:56:23 +08:00
Benjy Cui
4878258f6c refactor: ref: #3490 2016-10-24 12:04:26 +08:00
Benjy Cui
3c99097bc8 fix: allow override fileNameProp, close: #3497 2016-10-20 11:28:05 +08:00
yiminghe
8afe3965c1 upgrade ts 2.0 2016-10-19 17:52:23 +08:00
yiminghe
58e0228e86 optimize getFieldProps warning 2016-10-18 12:22:26 +08:00
Albert Zheng
23dd825afd 【Please review】Fixes for supporting TypeScript 2.0.3 (#3439)
* Fixes for supporting TypeScript 2.0.3

* Fixes for supporting TypeScript 2.0.3. Issue is #3358
2016-10-18 11:55:00 +08:00
Benjy Cui
bd7e9f00c0 style: update code style 2016-09-21 11:54:53 +08:00
feng zhi hao
a4be70334d chore: fix some error declaration (#3099) 2016-09-21 09:27:58 +08:00
feng zhi hao
2cf5dc0046 chore: improve declaration (#3078) 2016-09-19 17:35:17 +08:00