RunningCoderLee
86e0431f9b
fix: make all the properties in the ValidateFieldsOptions typing optional
6 years ago
RunningCoderLee
71503751a2
add ValidateFieldsOptions typing for validateFields
6 years ago
Bora Ikizoglu
3e85e51b58
Fixed Form.create missing type ( #14584 )
6 years ago
zombiej
f5cbf0f9f1
update getFieldsValue types
6 years ago
frezc
5f9b376456
[type] make type of components compatible with ComponentType<P>
6 years ago
j3l11234
95cf9f3e48
Update rc-form requirement from ~2.2.7 to ~2.4.0 ( #13788 )
& and preserve option
6 years ago
zombiej
f65fb2867f
add options.preserve of form
6 years ago
陈帅
8e11f0bdb9
merge support prettier
6 years ago
陈帅
dca9715186
support prettier
6 years ago
zombieJ
1a0a06fca9
ConfigProvider support prefixCls ( #13389 )
Basic support prefixCls.
6 years ago
TomIsion
4d486416bf
change Form typescript define about async callback order
6 years ago
zombiej
03b198775a
close #12221 . Adjust form validateFields type
6 years ago
newraina
f8408510a6
fix form onFieldsChange param type ( #12185 )
6 years ago
Tomás Francisco
7d38f8f435
improve form types and docs ( #11932 )
6 years ago
Nikolay
7bf50c85e1
Update Form.tsx
6 years ago
Nikolay
563e349946
add strict mode for submit object property names
This feature adds a posibility to validate property names in TypeScript by inserting required object interface.
6 years ago
Wei Zhu
064bfaf554
Add @types/prop-types
6 years ago
Lucien Lee
7c43bc553f
change message type to React.ReactNode
6 years ago
Lucien Lee
6606aad391
allow validator message as ReactChild
6 years ago
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