二货机器人
9f26e7a85e
fix: Form item has default height align with form size ( #21476 )
...
* fix: Form item has default height align with form size
* fix lint
* update snapshot
2020-02-19 22:04:25 +08:00
二货机器人
aa6ccda4ba
feat: Form support scrollToFirstError ( #21462 )
...
* feat: add scrollToFirstError support
* add test case
* clean up
* coverage
* feat: add scrollToFirstError support
* add test case
* clean up
* coverage
* update docs
2020-02-19 17:38:46 +08:00
二货机器人
5ebac5f9d6
feat: Form & ConfigProvider support component size ( #20570 )
...
* feat: Support form & ConfigProvider set component size
* update snapshot
* fix lint
* rm only
* update doc
* Table & Card support sizing
* Update snapshot
* fix lint
* update snapshot
* flush rest snapshot
2020-01-03 13:38:16 +08:00
Saeed Rahimi
676de29eb4
feat: added rtl direction to all of ant-design components ( #19380 )
...
* rtl demo change en-us description
* change bundlesize css limit
* RTL: modal component (exclude confirm)
* RTL: table component
* RTL: pagination component
* cleanup rtl demo
* fix pagination.tsx compile error
* RTL: button and button-group
* RTL: Steps component
* fix rtl demo style
* fix input suffix icon alignment
* fix select component arrow issue
* RTL: form component
* add pagination rtl test
* fix test lint error
* RTL: rate component
* RTL: radio and radio group components
* RTL: tree-select component
* some fixes to RTL components
* RTL: badge component
* fix rtl issue in inline form
* fix input component rtl padding issue
* fix switch component text rtl issue
* fix table grouped header text-align
* add rtl support to whole demo with RTL button
* Update rtl demo responsive
* RTL: page-header component
* RTL: typography component
* RTL: Dropdown (Partial)
* update config-provider doc
* RTL: input component
* RTL: select component
* RTL: switch component
* RTL: tree component
* fix rtl demo lint
* rtl demo change en-us description
* RTL: modal component (exclude confirm)
* RTL: table component
* RTL: pagination component
* cleanup rtl demo
* RTL: button and button-group
* RTL: Steps component
* fix rtl demo style
* fix input suffix icon alignment
* RTL: form component
* RTL: rate component
* RTL: radio and radio group components
* RTL: tree-select component
* RTL: badge component
* fix rtl issue in inline form
* fix input component rtl padding issue
* add rtl support to whole demo with RTL button
* fix lost changes after rebase
* fix lint errors
* RTL: Transfer Component
* RTL: upload component
* RTL: update avatar demo
* RTL: comment component
* RTL: collapse component
* RTL: carousel component
* update snapshots
* RTL: Card component
* RTL: descriptions component
* RTL: Empty component
* RTL: list component
* RTL: slider component
* slider component import/order
* add shared rtlTest
* RTL: Statistic component
* RTL: tooltip components
* RTL: popover component
* RTL: timeline component
* RTL: tag component
* RTL: alert component
* RTL: drawer component
* RTL: Tab component
* change direction definition
* RTL: progress component
* input.tsx, remove duplicate after rebase
* fix demo.less after rebase
* fix ant-row-rtl after rebase
* fix upload issues in rtl
* badge rtl demo margin fix
* fix: tabs with icon margin
* fix: radio-wrapper margin
* fix: table component after rebase
* fix: centered modal text-align
* update slider snapshot
* RTL: popconfirm component
* RTL: back-top component
* RTL: spin component
* RTL: result component
* RTL: skeleton component
* RTL: menu component
* RTL: time-picker component
* RTL: calendar component
* RTL: date-picker component
* RTL: home page
* update snapshots
* test: add auto-complete rtl test
* test: add avatar component rtl tests
* test: add badge component rtl tests
* test: add breadcrumb component rtl tests
* test: add button components rtl tests
* test: add card component rtl tests
* test: add carousel component rtl tests
* test: add cascader component rtl tests
* test: add checkbox component rtl tests
* test: add collapse component rtl tests
* test: add comment component rtl tests
* test: add dropdown component rtl tests
* test: add empty component rtl tests
* test: add form component rtl tests
* test: add grid component rtl tests
* test: add input component rtl tests
* test: add search component rtl tests
* test: add input-number component rtl tests
* test: add layout component rtl tests
* test: add list component rtl tests
* test: add mentions component rtl tests
* test: add modal component rtl tests
* test: add page-header component rtl tests
* test: add pagination component rtl tests
* test: add radio component rtl tests
* test: add rate component rtl tests
* test: add select component rtl tests
* test: add slider component rtl tests
* test: add steps component rtl tests
* test: add switch component rtl tests
* test: add table component rtl tests
* test: add transfer component rtl tests
* test: add tree component rtl tests
* test: add tree-select component rtl tests
* test: add typography component rtl tests
* test: add upload component rtl tests
* test: add affix component rtl tests
* update calendar tests
* increase css file maxSize
* update snapshots
* remove workflows to allow push
* remove duplicate reverse prop from slider
* fix: remove table demo from config-provider
* fix: remove table demo from config-provider
* fix lint error
* Added direction property to ConfigProvider
* cascader rtl tests added
* update config-provider doc
* RTL: grid system
* RTL: input component
* RTL: switch component
* fix rtl demo lint
* RTL: modal component (exclude confirm)
* RTL: table component
* RTL: pagination component
* cleanup rtl demo
* fix pagination.tsx compile error
* RTL: button and button-group
* RTL: Steps component
* fix rtl demo style
* RTL: form component
* add pagination rtl test
* RTL: rate component
* RTL: radio and radio group components
* RTL: tree-select component
* RTL: badge component
* fix rtl issue in inline form
* fix input component rtl padding issue
* add rtl support to whole demo with RTL button
* RTL: input component
* RTL: select component
* RTL: switch component
* RTL: tree component
* fix rtl demo lint
* rtl demo change en-us description
* RTL: modal component (exclude confirm)
* RTL: table component
* RTL: pagination component
* cleanup rtl demo
* RTL: button and button-group
* RTL: Steps component
* fix rtl demo style
* fix input suffix icon alignment
* RTL: form component
* RTL: rate component
* RTL: radio and radio group components
* RTL: tree-select component
* RTL: badge component
* fix rtl issue in inline form
* fix input component rtl padding issue
* add rtl support to whole demo with RTL button
* input.tsx, remove duplicate after rebase
* fix ant-row-rtl after rebase
* update snapshots
* test: add cascader component rtl tests
* test: add pagination component rtl tests
* update calendar tests
* update snapshots
* fix: remove table demo from config-provider
* fix: remove table demo from config-provider
* fix lint error
* update direction.md icons
* dropdown and cascader default placement in rtl
* update snapshots
* fix lint errors
* remove duplicate import
* update snapshots
* update snapshot
* update calendar snapshot
* update snapshots
* integrate with new rc-picker
* update snapshots
* fix lint errors
* update snapshot
* update snapshots
* update snapshots
* update snapshots :|
* update snapshots
* fix compile error.
* fix typo after rebase
* update snapshots
* remove workflows to allow push
* update snapshots
* update snapshots
* fix dist error
* front-page css fix
* update snapshots
* fix lint and test issues
* restore cascader index.less
* update snapshots
* fix logo in rtl and demo controls
* ci errors
* resolve steps/index.tsx conflicts
* tooltip family demo remove inline style
* resolve table/Table.tsx conflicts
* resolve modal/Modal.tsx conflicts
* resolve cascader/index.tsx conflicts
* add workflows from upstream
* update snapshots
* revert logo to default
* fix codebox demo direction of placements
* resolve tooltip overlayClassName conflicts
* update snapshots
* update popover test
* fix: cascader miss popupClassName
* fix: fix select missing dropdownClassName
* chore: Update snapshot
* chore: Adjust menu use rtl logic
* docs: Update demo line color
Co-authored-by: 二货机器人 <smith3816@gmail.com>
2020-01-02 19:10:16 +08:00
叶枫
6bb5e4ea3d
feat: export interface ( #20121 )
...
* Update Form.tsx
* Update Form.tsx
* feat: add export
2019-12-06 14:59:16 +08:00
jeessy2
a57a2f754d
Update Form typescript definition ( #17652 )
2019-07-17 16:53:45 +08:00
zombieJ
b3a76c14ca
feat: Form support scrollToField
( #17457 )
...
* support scroll & label htmlFor
* update snapshot
* add test case
* doc update
* add decleare
* adjust logic of label id
* clean ts error
2019-07-04 15:00:11 +08:00
zombieJ
4cdf37bedb
feat: New Form ( #17327 )
...
* init form
* first demo
* add normal login
* add style
* webit
* support nest errors
* beauti form errors
* use onReset
* modal demo
* add list demo
* match key of errors logic
* date demo
* customize component
* moving style
* add status style
* without form create
* add demos
* add inline style
* clean up legacy
* fix drawer demo
* mention
* fix edit-row
* editable table cell
* update mentions demo
* fix some test case
* fix upload test
* fix lint
* part of doc
* fix ts
* doc update
* rm react 15
* rm config
* enhance test coverage
* clean up
* fix FormItem context pass logic
* add more demo
* en to build
* update demo
* update demo & snapshot
* more doc
* update list doc
* update doc
* update demo to display condition render
* update snapshot
* add provider doc
* support configProvider
* more doc about validateMessages
* more description
* more and more doc
* fix typo
* en doc
* Form.List doc
* m v3 -> v4
* add skip
2019-07-03 20:14:39 +08:00
zombieJ
340ff711ab
chore: Support TypeScript & JavaScript with Demo ( #17247 )
...
* update bisheng
* support lang panel
* display tabs if multiple lang
* rm tmp file
2019-06-23 12:49:28 +08:00
SylvanasGone
a19a500970
fix(Form): improve method onFieldsChange params type defs ( #16577 )
2019-05-15 12:24:33 +08:00
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).
2019-05-10 15:22:55 -04:00
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
2019-04-28 15:29:18 +08:00
zombieJ
da9cef91b8
fix: Form with forwardRef typescript ( #16242 )
...
* update form typescript define with forawardRef
* add ts test
2019-04-23 11:23:20 +08:00
zombieJ
fdcfabfa78
fix: form typescript definition ( #16126 )
...
* use redux-react ts define
* update doc
* follow origin rule
2019-04-17 13:51:52 +08:00
zombieJ
ae101a2056
fix: labelAlign should work in Form.Item ( #16072 )
...
* labelAlign should work in Form.Item
* add Form & Form.Item
* rename type
2019-04-15 12:10:04 +08:00
Wei Zhu
d1f64b1bc9
Add generic type to form values
2019-03-12 22:59:27 +08:00
愚道
a4f73ff64e
chore: sync master to feature
2019-03-08 15:21:36 +08:00
DiamondYuan
c8ba4da309
docs: add since comment for FormProps
2019-03-08 13:03:29 +08:00
DiamondYuan
5b162897a8
feat: support props colon of Form
2019-03-08 11:25:37 +08:00
yoyo837
5281d7b7f2
add labelAlign for Form and FormItem
2019-03-07 15:14:27 +08:00
zombieJ
2f6b367137
fix form warning ( #15160 )
...
* fix form warning
* update snapshot
2019-03-04 14:51:40 +08:00
zombiej
6f95995faa
merge master
2019-02-27 19:57:48 +08:00
zombieJ
4d1a998246
add component param in warning ( #15078 )
...
* add component param in warning
* update snapshot
2019-02-27 15:32:29 +08:00
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
2019-02-25 19:04:09 +08:00
RunningCoderLee
86e0431f9b
fix: make all the properties in the ValidateFieldsOptions typing optional
2019-02-02 11:50:44 +08:00
RunningCoderLee
71503751a2
add ValidateFieldsOptions typing for validateFields
2019-02-02 11:30:11 +08:00
Bora Ikizoglu
3e85e51b58
Fixed Form.create missing type ( #14584 )
2019-01-28 12:35:57 +08:00
zombiej
f5cbf0f9f1
update getFieldsValue types
2019-01-25 16:01:21 +08:00
afc163
30fe9918d8
Merge branch 'master' into feature
...
* master:
📝 Add bodyStyle and style of Drawer in documentation, #13850
🐛 Fix Drawer style not working
🐛 fix markStyle affset style
Update Santa.jsx
update changelog
bump 3.11.6
revert Christmas egg
[type] make type of components compatible with ComponentType<P>
bump 3.11.5
✨ site: make document side bar sticky
2018-12-25 16:28:50 +08:00
frezc
5f9b376456
[type] make type of components compatible with ComponentType<P>
2018-12-25 01:10:00 +08:00
afc163
801fb77299
🔨 Merge master into feature
2018-12-23 18:11:04 +08:00
j3l11234
95cf9f3e48
Update rc-form requirement from ~2.2.7 to ~2.4.0 ( #13788 )
...
& and preserve option
2018-12-23 00:07:43 +08:00
zombiej
f65fb2867f
add options.preserve of form
2018-12-21 23:58:31 +08:00
陈帅
8e11f0bdb9
merge support prettier
2018-12-07 20:02:01 +08:00
陈帅
dca9715186
support prettier
2018-12-07 18:27:30 +08:00
zombieJ
1a0a06fca9
ConfigProvider support prefixCls ( #13389 )
...
Basic support prefixCls.
2018-12-05 19:12:18 +08:00
TomIsion
4d486416bf
change Form typescript define about async callback order
2018-10-08 18:05:02 +08:00
zombiej
03b198775a
close #12221 . Adjust form validateFields type
2018-09-13 16:33:02 +08:00
newraina
f8408510a6
fix form onFieldsChange param type ( #12185 )
2018-09-11 11:54:39 +08:00
Tomás Francisco
7d38f8f435
improve form types and docs ( #11932 )
2018-08-29 11:20:33 +08:00
Nikolay
7bf50c85e1
Update Form.tsx
2018-08-22 23:28:07 +08:00
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.
2018-08-22 23:28:07 +08:00
Wei Zhu
064bfaf554
Add @types/prop-types
2018-08-07 21:09:05 +08:00
Lucien Lee
7c43bc553f
change message type to React.ReactNode
2018-07-31 13:58:26 +08:00
Lucien Lee
6606aad391
allow validator message as ReactChild
2018-07-31 13:58:26 +08:00
Sebastian Busch
ee0a7ce3bb
Form: add missing type definition for form create option validateMessages
...
(Docs for validateMessages had been added in rev 16133aac65
)
2018-06-12 14:32:08 +08:00
Sebastian Busch
619b0ed628
add type definition for missing third parameter "allFields" to onFieldsChange (introduced
...
(_Implementation_ of this parameter had been added in 16133aac65
)
2018-06-12 14:32:08 +08:00
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
2018-05-17 23:45:13 +08:00
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
.
2018-05-02 18:24:51 +08:00
Wu Haotian
4ea20e696c
fix(form): fix typing for Form.onValuesChange
( #10231 )
2018-04-24 23:33:58 +08:00
Wei Zhu
61e4f8011a
Remove sCU from Form ( #10029 )
...
Related #9790
Form and Form.Item are not considered as pure components
2018-04-19 11:49:50 +08:00
Ed Moore
31e50e50b6
Fix types ( #10063 )
...
* Fix types
Fix https://github.com/ant-design/ant-design/issues/8796
* Fix exported types
2018-04-16 10:58:17 +08:00
Wei Zhu
82b721a432
Extend CardProps from native div element attributes
...
Close #9933
2018-04-11 19:41:54 +08:00
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