afc163
760853e239
💄 eslint for all
5 years ago
afc163
5e99ed7bbe
✅ Fix eslint warnings
5 years ago
lixiaoyang1992
4e804bd466
feat(Form): upgrade setFieldsValue function declaration
5 years ago
afc163
32132c58cf
🐛 Fix Form onSubmit type
close #17400
5 years ago
afc163
4c84c41da0
🐛 Revert Form type `unknown` to `any`
close #17245
6 years ago
Zzzen
f1ee189bd2
eliminate `any` type in exported interfaces.#14044
6 years ago
SylvanasGone
a19a500970
fix(Form): improve method onFieldsChange params type defs ( #16577 )
6 years ago
Victor Repkow
611909514c
fix(forms): improve field error method type defs
Change `getFieldError` and `getFieldsError` to return actual types, instead of very restrictive `Object` type (which should be avoided in general, in favour of `unknown`, `object`, or `Record` depending on actual use).
6 years ago
Sebastian Busch
5ce2f89adc
Form onFieldsChange(): document third parameter "allFields", remove non-existent fourth parameter "add" from TypeScript definition ( #16343 )
* there is no fourth parameter, added by mistake in 619b0ed628
* Form onFieldsChange(): document third parameter 'allFields', introduced in 619b0ed628
6 years ago
zombieJ
da9cef91b8
fix: Form with forwardRef typescript ( #16242 )
* update form typescript define with forawardRef
* add ts test
6 years ago
zombieJ
fdcfabfa78
fix: form typescript definition ( #16126 )
* use redux-react ts define
* update doc
* follow origin rule
6 years ago
zombieJ
ae101a2056
fix: labelAlign should work in Form.Item ( #16072 )
* labelAlign should work in Form.Item
* add Form & Form.Item
* rename type
6 years ago
Wei Zhu
d1f64b1bc9
Add generic type to form values
6 years ago
DiamondYuan
c8ba4da309
docs: add since comment for FormProps
6 years ago
DiamondYuan
5b162897a8
feat: support props colon of Form
6 years ago
yoyo837
5281d7b7f2
add labelAlign for Form and FormItem
6 years ago
zombieJ
2f6b367137
fix form warning ( #15160 )
* fix form warning
* update snapshot
6 years ago
zombieJ
4d1a998246
add component param in warning ( #15078 )
* add component param in warning
* update snapshot
6 years ago
zombieJ
1fc8dd3042
Form support `labelCol` & `wrapperCol` props. ( #15038 )
* use context
* update doc
* update doc
* not pass context if nest
* update snapshot
* update doc
* update doc
6 years ago
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