Commit Graph

349 Commits

Author SHA1 Message Date
Jichao Zhong
b60eb4d20d Fix Documentation for Form API (#20830) 2020-01-11 23:18: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
二货机器人
5f7ca16ed5
docs: Update form demo to remove defaultValue (#20524)
* docs: Update form demo to remove defaultValue

* update demo

* update styl

* add missing content

* update snapshot
2019-12-30 14:53:47 +08:00
二货机器人
0189ba61bf
docs: Update demo error message (#20521) 2019-12-29 18:32:13 +08:00
afc163
276a02dfe0 fix test case 2019-12-27 16:13:13 +08:00
afc163
08ab82d17f :clipper: Add complex form control demo for Form
https://github.com/ant-design/ant-design/issues/20481#issuecomment-569184410
2019-12-27 15:36:27 +08:00
ycjcl868
bd2633d303 Merge 4.0-prepare into feat-dark-palette 2019-12-25 21:13:07 +08:00
zombiej
9e8ce489e9 merge master 2019-12-25 19:09:17 +08:00
ycjcl868
bd8564e53e fix: form demo dark style 2019-12-25 17:12:36 +08:00
ycjcl868
c10a6f029c fix: demo style 2019-12-24 20:58:42 +08:00
ycjcl868
3a38cfaa01 fix: card, form site dark theme 2019-12-23 20:07:56 +08:00
Hami Abdi
0a00c5e22a Correct Grammar in Form Component's Documentation (#20381)
In a demo corresponding to the form component, a comment contains a grammatical mistake: an infinitive in this context requires the present instead of past tense.
2019-12-23 09:13:04 +08:00
骗你是小猫咪
74082defe9 fix(Form): feedback icon with input suffix display not correct (#20363)
* fix(From): feedback icon with input suffix display not correct

* update snapshots

* review change

* revert register.md and improve feedback example
2019-12-20 16:24:55 +08:00
Guichi Zhao
1958b78ecc docs: copy state to props is a bad practice (#20212)
* Copy state to props is a bad practice 

The original code copy the props the state which is not necessary at all, it will only confuse the reader!
Also, it considered being a bad practice: https://overreacted.io/writing-resilient-components/

* remove console

* fix indentation

* fix lint error

* improve js syntax
2019-12-13 20:00:35 +08:00
ycjcl868
e8dd412c84 fix: Avatar User icon 2019-11-29 16:36:33 +08:00
ycjcl868
6ca5628417 Merge 4.0-prepare into fix-button-demo 2019-11-29 14:27:47 +08:00
二货机器人
64b905e9bd
chore: Update @ant-design/icons deps (#19979)
* update icons deps

* update all icon ref

* fix lint

* update snapshot
2019-11-28 12:34:33 +08:00
ycjcl868
ec0dba9323 fix: button group 2019-11-25 07:02:24 +00:00
ycjcl868
55e34f6ac1 fix: icon error 2019-11-25 07:02:24 +00:00
二货机器人
6396ddb4e7
fix: Omit useless props & fix icon missing (#19833) 2019-11-20 17:31:11 +08:00
zombiej
fa8ddb4104 merge master 2019-09-16 11:23:26 +08:00
afc163
4615c70d95
🎬 fix Dragger style in Form demo 2019-09-07 19:32:24 +08:00
vagusX
149729e524
use ant design icons 4.0 (#18217)
* feat: use @ant-design/icons@4.0

* feat: use createFromIconfontCN to make site works

* feat: update doc for Icon

* feat: use icon in component Alert

* feat: use icon in component Avatar

* feat: use icon in component Breadcrumb

* feat: use icon in component Button

* feat: use icon in component Cascader

* feat: use icon in component Collapse

* feat: use icon in component Datepicker

* feat: use icon in component Dropdown

* feat: use icon in component Form

* feat: use icon in component Input

* feat: use icon in component InputNumber

* feat: use icon in component Layout

* feat: use icon in component Mention

* feat: use icon in component Message

* feat: use icon in component Modal

* feat: use icon in component Notification

* feat: use icon in component PageHeader

* feat: use icon in component Pagination

* feat: use icon in component Popconfirm

* feat: use icon in component Progress

* feat: use icon in component Rate

* feat: use icon in component Result

* feat: use icon in component Select

* feat: use icon in component Step

* feat: use icon in component Switch

* feat: use icon in component Table

* feat: use icon in component Tab

* feat: use icon in component Tag

* feat: handle rest component which using Icon

* fix: remove unused vars

* feat: use latest alpha ant design icons

* fix: failed test in uploadlist.test.js

* test: update snapshot for icons

* doc: add Icon for site

* doc: use @ant-design/icons in site

* chore: use latest icons

* fix: tslint issue

* fix: test cases

* fix: types for react

* fix: lint rules for import orders

* fix: use @ant-design/icons@4.0.0-alpha.5 to avoid insert css in server render

* fix: eslint error in demo/**.md

* inject antd icons

* update snapshot

* fix site

* doc: update docs

* fix: code snippets icon in site

* feat: use latest @ant-design/icons

* fix: icon props in message
2019-08-13 14:07:17 +08:00
afc163
d07b298ae4 Fix eslint errors 2019-08-12 19:04:31 +08:00
zombiej
1cb346573c merge master 2019-08-12 13:34:23 +08:00
Wendell
49c81322b2 docs: fix form doc typo (#18160) 2019-08-08 14:12:04 +08:00
orzyyyy
63b33d4020 fix: unexpected changes of snapshots 2019-08-06 15:36:12 +08:00
zombieJ
779bc5f56a
rename (#17729) 2019-07-19 14:07:39 +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
陈帅
82b85709be style: run lint-fix (#17172) 2019-06-19 19:09:08 +08:00
afc163
13379aa0d8
💄 Optimize examples code style 2019-05-27 22:04:17 +08:00
afc163
b780070351
💄 prittier all files 2019-05-07 14:57:32 +08:00
afc163
715f2f6ebc
🐛 Fix hasFeedback overlap issue with Input.Password
close #16443
2019-05-07 11:13:55 +08:00
HiddenMan
0350544de1 fix: username misspelling in the form. (#16398)
* fix normal-login spelling mistake

* fix horizontal-login spelling mistake

* fix index.zh-CN spelling mistake

* fix index.en-US spelling mistake

* update form demo.test.js.snap
2019-05-01 23:44:22 +08:00
zombiej
b54157a395 update doc 2019-04-09 22:52:25 +08:00
Minwei Xu
98bc178a36 update mapPropsToFields demo 2019-04-04 12:51:14 -04:00
偏右
fc8977b627
Merge pull request #15808 from liaoyinglong/master
Update dynamic-form-item.md
2019-04-03 14:25:09 +08:00
zombiej
30b3fcdc18 update demo of dynamic form 2019-04-02 17:40:50 +08:00
廖应龙
065896f53b
Update dynamic-form-item.md
delete unnecessary props
2019-04-02 14:33:47 +08:00
Hsuan Lee
baa5a7971f refactor(form-item): move ant-form-item-no-colon selector position (#15592)
* refactor(form-item): better `ant-form-item-no-colon` selector position

fix: fix lint

close #15585

* chore: update snap
2019-03-24 17:03:52 +08:00
zombiej
6f95995faa merge master 2019-02-27 19:57:48 +08:00
zombieJ
70046f782d
update doc about customize form item component (#15088)
* update doc

* rm test code

* update doc
2019-02-27 18:34:47 +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
zombiej
e94ce11bd9 update form item css 2019-02-20 19:38:09 +08:00
zombieJ
c29323b448
Revert to remove FormItem explain-holder (#14937)
* Revert "Adjust style to be similar with origin (#14886)"

This reverts commit 735175e3cf.

* Revert "sync form item (#14778)"

This reverts commit 5ac674e698.
2019-02-19 23:24:07 +08:00
zombieJ
735175e3cf
Adjust style to be similar with origin (#14886)
* adjust style to be similar with origin

* update snapshot

* add missing extra logic

* adjust tiny

* fix margin

* use element to keep the place

* update snapshot
2019-02-18 16:42:02 +08:00
ycjcl868
89653d2e89 📝 fix site demo, dynamic form firstItem undefined 2019-01-29 11:50:43 +08:00
Michael Salaverry
18dc2c2743 Documentation: fixed typos and grammar (#14518) 2019-01-24 10:51:47 +08:00