Sebastian Busch
ee0a7ce3bb
Form: add missing type definition for form create option validateMessages
(Docs for validateMessages had been added in rev 16133aac65
)
7 years ago
Sebastian Busch
619b0ed628
add type definition for missing third parameter "allFields" to onFieldsChange (introduced
(_Implementation_ of this parameter had been added in 16133aac65
)
7 years ago
Walter Barbagallo
963120f702
Improved Form component typings ( #10564 )
* Improved Form component typings
With this fix you can use HTMLFormElement attributes on Form component
without getting TypeScript errors.
For example this code does not longer produce error for the additional
`autoComplete` prop:
```
const myForm = (
<Form autoComplete="off">
...
</Form>
)
```
* Fix onBlur / onChange typings with Input component
This improvement fix a typing issue incompatibility with
`react-final-form`
The incompatibility involve [this
line](https://github.com/final-form/react-final-form/blob/v3.4.2/src/index.d.ts#L20 )
where the handler argument is a more specific SyntheticEvent
7 years ago
paranoidjk
b6f8ab89c7
Fix: Form tsd ( #10324 )
* Fix(form): wrappedComponentRef interface
- ref: https://github.com/react-component/form/blob/master/src/createBaseForm.js#L499
* refactor: use ts conditional type
* fix: merge
* Revert "refactor: use ts conditional type"
This reverts commit ab3035da83
.
7 years ago
Wu Haotian
4ea20e696c
fix(form): fix typing for `Form.onValuesChange` ( #10231 )
7 years ago
Wei Zhu
61e4f8011a
Remove sCU from Form ( #10029 )
Related #9790
Form and Form.Item are not considered as pure components
7 years ago
Ed Moore
31e50e50b6
Fix types ( #10063 )
* Fix types
Fix https://github.com/ant-design/ant-design/issues/8796
* Fix exported types
7 years ago
Wei Zhu
82b721a432
Extend CardProps from native div element attributes
Close #9933
7 years ago
Wei Zhu
dc439bd7c3
Remove generic type from ComponentDecorator, fix #9331
7 years ago
Wei Zhu
33119ec535
Update form type
Close #8935
7 years ago
徐坤龙
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
7 years ago
Wei Zhu
4aeb811b72
Remove deprecations ( #8351 )
7 years ago
Wei Zhu
ad21c9837f
Fix implicit any error for Form
7 years ago
Benjy Cui
ac463a10f2
deps: upgrade form to 2.0.0 ( #8207 )
7 years ago
Wei Zhu
479a5cb743
Remove allowSyntheticDefaultImports ( #8218 )
7 years ago
Benjy Cui
7ff7519207
fix: upgrade rc-form and refactor to be compatible with react@16
7 years ago
ddcat1115
712637907d
fix #7930
7 years ago
Mitchell Demler
298a60f13b
chore: add validateFirst to fieldDecorator options ( #7573 )
7 years ago
Bilal Sirazitdinov
5bb45279bb
chore: GetFieldDecoratorOptions missing property - normalize ( #7562 )
7 years ago
Wei Zhu
145ed77c00
fix: form type ( #7245 )
7 years ago
Randy
df934445c0
add a generic type for `FormCreateOption` ( #7119 )
7 years ago
Benjy Cui
87bfe2df87
fix: wrappedComponentRef should work, close : #6545
7 years ago
afc163
896e738fce
Fix missing semicolon
7 years ago
Randy
a0dc7d3a72
Separate getFieldDecorator options type
Taking getFieldDecorator options type out of WrappedFormUtils
7 years ago
Benjy Cui
119d498935
chore: replace http with https, close : #6893
7 years ago
paranoidjk
ba168b826f
refactor: use spread operator replace object-assign ( #6677 )
8 years ago
Leo
f4312895d6
chore: componentDecorator return specific type instead of any ( #6308 )
8 years ago
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
8 years ago
mitchell.demler
64befeda32
Add ValidationRule type for getFieldDecorator validation rules
Copied types from english documentation. (these might need checking?)
8 years ago
afc163
c6ec1ce9bb
use create-react-class, ref #5678
8 years ago
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
8 years ago
Wei Zhu
b8fca87461
Fix some form type definition issues ( #5560 )
Close #5515
8 years ago
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
8 years ago
afc163
d0114d8d9f
fix tslint
8 years ago
feng zhi hao
18fced672a
chore: improve Form.create ts definition of Form ( #5420 )
* improve Form.create ts definition of Form
* use function<T>() instead of arrow function
8 years ago
偏右
0308138974
[WIP] upgrade deps ( #5455 )
* upgrade deps
* autofix some tslint problems
* Fix tslint problems manually
8 years ago
afc163
a19845c1bb
fix tslint
8 years ago
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
8 years ago
偏右
674255bd14
[WIP] upgrade deps ( #5455 )
* upgrade deps
* autofix some tslint problems
* Fix tslint problems manually
8 years ago
feng zhi hao
dab5f3547d
chore: improve ts definition of Form ( #5134 )
8 years ago
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
8 years ago
Kyle Rosenberg
aa84b826c1
chore: Added missing getFieldsError in WrappedFormUtils ( #5133 )
8 years ago
feng zhi hao
4019ef4b0c
chore: fix hideRequiredMark ts definition of Form ( #5112 )
8 years ago
偏右
6e3565b983
Add Form[hideRequiredMark] ( #4500 )
* Add Form[hideRequiredMark]
* omit hideRequiredMark
* Add test case for Form[hideRequiredMark]
8 years ago
偏右
3423d27493
When form layout is vertical, keep the colon inside label, close #4593 ( #4599 )
8 years ago
wallverb
a47c200f7c
Fix validateTrigger type ( #4536 )
* Update validateTrigger type
* Update validateTrigger doc for en-US
* Update validateTrigger doc for zh-CN
8 years ago
Benjy Cui
c4d8c4770c
Add upgrade warning ( #4028 )
* chore: add upgrade warning for time related value
* chore: update warning
* chore: update demo url
8 years ago
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
8 years ago
Benjy Cui
5782253a0f
fix: infinite loop, ref: #3759
8 years ago
Benjy Cui
60ecb3c628
refactor: each message should warn just once
8 years ago