Commit Graph

553 Commits

Author SHA1 Message Date
afc163
c83f3ca411
demo: fix Form variant demo (#51587) 2024-11-12 15:23:44 +08:00
叶枫
54fb6bd831
Form.Item support noLabel (#51524)
* feat: Form.Item support noLabel

* feat: doc

* feat: test

* feat: test

* feat: test

* feat: review

* feat: review

* feat: 仅支持 span

* feat: review

* feat: review

* feat: review

* feat: review

* feat: review

* feat: test

* feat: test

* feat: test

* feat: test

* feat: test

* feat: test

* feat: add test

* feat: demo

* feat: test

* feat: test

* feat: test

* feat: 代码优化

* feat: add labelCol

* feat: 代码优化

* feat: 代码优化

* feat: reset

* feat: test

* feat: test

* feat: review

* feat: doc
2024-11-08 18:32:20 +08:00
NathanLao
1d76fe94fa
feat: focus on the first field with error in form validation (#51231)
Co-authored-by: afc163 <afc163@gmail.com>
2024-10-15 16:24:27 +08:00
thinkasany
9b7adc1859
demo(form): improve layout demo (#50933) 2024-09-20 11:51:25 +08:00
renovate[bot]
863f61d908
chore(deps): update dependency eslint to v9 (#50690)
Co-authored-by: afc163 <afc163@gmail.com>
2024-09-19 03:30:19 +08:00
Nicolò Zandarin
1cd79e3b0a
fix: Disable the Rate component within Form.Item when the form is disabled (#50594)
Co-authored-by: Nicolò Zandarin <nicolo.zandarin@atroos.com>
2024-08-27 18:56:54 +08:00
thinkasany
78a65ef072
demo: improve variant demo (#50495)
* demo(form): improve variant demo

* chore: replace semented
2024-08-20 16:04:11 +08:00
lijianan
e8fa5938ab
site: rewrite with CSS logical properties (#50109)
* site: use CSS logical properties

* Update components/anchor/demo/targetOffset.tsx

Co-authored-by: afc163 <afc163@gmail.com>
Signed-off-by: lijianan <574980606@qq.com>

* fix: fix

* fix: fix

* chore: fix

* fix: add more

* fix: add more

---------

Signed-off-by: lijianan <574980606@qq.com>
Co-authored-by: afc163 <afc163@gmail.com>
2024-07-28 10:43:45 +08:00
afc163
43dca4875d
demo: refactor form login demo (#50010)
* demo: refactor form login demo

* demo: refactor form login demo

* remove site-form-item-icon
2024-07-22 20:45:30 +08:00
DerianRambo
b29c314b4c
docs: improved grammar on certain documentation pages (#49374)
* button documentation grammar fixes

* english float button documentation changes

* english documentation grammar changes for icons

* english typography documentation grammar changes

* english divider documenation changes

* english layout documentation fixes

* english cascader documentation improvements

* english color-picker documentation changes

* english date-picker documentation changes

* english form documentation changes

* English documentation changes for select

* English documentation changes for slider

* English documentation changes for time-picker

* English documenation changes for transfer
2024-06-12 14:27:15 +08:00
叶枫
2119e2d560
feat: Form.Item support layout 3 (#49152)
* feat: Form.Item support layout 3

* feat: test

* feat: antCls

* feat: CSSObject
2024-05-31 14:46:22 +08:00
afc163
38050d6ada
Merge pull request #49145 from ant-design/master
chore: feature merge master
2024-05-31 12:20:03 +08:00
叶枫
5932005ce4
Form.Item support layout (#49119)
* feat: FormItem support layout

* feat: doc

* feat: test

* feat: test

* feat: test

* feat: test

* feat: itemPrefixCls
2024-05-31 10:50:47 +08:00
二货爱吃白萝卜
20fa082785
test: Update test of demo (#49140)
* chore: rollback ci

* test: one day
2024-05-30 19:49:07 +08:00
github-actions[bot]
d4c5cb66de
chore: auto merge branches (#49137)
chore: feature merge master
2024-05-30 10:45:03 +00:00
叶枫
54286673de
docs: add getValueProps demo (#49072)
* docs: add getValueProps demo

* feat: normalize

* feat: normalize

* feat: name

* feat: name

* feat: doc

* feat: date

* feat: tz

* feat: tz
2024-05-28 22:54:54 +08:00
github-actions[bot]
95ba19f9d0
chore: auto merge branches (#48984)
chore: feature merge master
2024-05-21 08:16:54 +00:00
二货爱吃白萝卜
bf265c0efe
docs: fix some doc and lint issue (#48982)
* chore: fix dumi lint

* test: update snapshot
2024-05-20 14:26:51 +08:00
叶枫
f912fa0c30
Form support clearOnDestroy (#48921)
* feat: form support clearOnDestroy

* feat: demo

* feat: demo
2024-05-14 17:35:11 +08:00
lijianan
8b1f79c1f5
demo: update demo type { children: React.ReactNode } => React.PropsWithChildren (#48771)
* demo: update demo type React.ReactNode => React.PropsWithChildren

* fix: fix
2024-05-06 12:04:27 +08:00
tanghui
d70de6c6e6 Merge branch 'master' into feature-merge-master 2024-04-26 17:20:46 +08:00
vagusX
7c23e51400
docs: fix wrong anchor for form#dependencies (#48570)
* docs: fix wrong anchor for form#dependencies

* test: update snapshot

* scripts: add new badcases to reporter

* scripts: added one

* scripts: copy new added imgs

* scripts: fix filename

* scripts: fix path

* scripts: fix src and dest
2024-04-23 15:50:48 +08:00
9965d96259
feat(form): improve scrollToField logic (#48211)
* feat(form): improve scrollToField logic

* docs: update form faq

* test: add unit test

* fix: boundary error

* style: update code

ref: https://github.com/ant-design/ant-design/pull/48211#discussion_r1547535631
ref: https://github.com/ant-design/ant-design/pull/48211#issuecomment-2031635922

* docs: add scrolltofield demo

* chore: update snapshot

* Update components/form/demo/validate-scroll2field.md

Co-authored-by: afc163 <afc163@gmail.com>
Signed-off-by: 红 <wxh16144@qq.com>

* chore: update demo

* chore: update logic

* chore: update snapshot

* Update components/form/demo/validate-scroll-to-field.tsx

Co-authored-by: lijianan <574980606@qq.com>
Signed-off-by: 红 <wxh16144@qq.com>

* chore: update demo

* chore: update snap

* chore: update

* chore: update demo

* chore: update

* chore: update docs

* chore: update

* chore: update snap

* Update components/form/demo/validate-scroll-to-field.tsx

Co-authored-by: crazyair <crazyair@users.noreply.github.com>

Signed-off-by: 红 <wxh16144@qq.com>

* chore:update logic

* test: add unit test

ref: https://github.com/ant-design/ant-design/issues/28869

* chore: update demo

* test: update snap

* chore: update demo

* chore: update

* chore: update

* chore: fix TS type

* chore: update demo fix layout

* chore: update demo

---------

Signed-off-by: 红 <wxh16144@qq.com>
Co-authored-by: afc163 <afc163@gmail.com>
Co-authored-by: lijianan <574980606@qq.com>
2024-04-17 17:56:29 +08:00
Cooper
8026366676
feat: add inlineMargin token support form inline layout (#48362)
* feat: add inlineMargin token support form inline layout

* fix

* fix

---------

Co-authored-by: afc163 <afc163@gmail.com>
2024-04-17 12:09:08 +08:00
叶枫
502dac12aa
docs: format code (#48309)
* docs: fix code

* feat: lint

* feat: prettier

* feat: test

* feat: review

* feat: format html

* feat: format html
2024-04-08 14:04:08 +08:00
叶枫
14a1e6bd51
feat: tsconfig enable strict (#47998)
* feat: tsconfig enable strict

* feat: add no-explicit-any

* feat: strict

* feat: as THEME

* feat: 优化 keys 类型写法

* feat: demo remove any

* feat: as number

* feat: this any

* feat: add eslint

* feat: cascader

* feat: props any

* feat: remove any

* feat: remove any

* feat: any 提示错误

* feat: remove any

* feat: add eslint

* feat: 允许 T = any 存在

* feat: color funciton

* feat: 恢复 lint

* feat: merge master

* feat: as ReactElement

* feat: type
2024-04-01 15:49:45 +08:00
二货爱吃白萝卜
100fa29bef
feat: Input.OTP component support (#48076)
* chore: basic control

* chore: input instad

* docs: update demo

* chore: adjust operation interactive

* chore: lock selection

* chore: fix patch logic

* chore: merge logic

* chore: patch autoFocus

* test: update snapshot

* test: add test case

* test: coverage

* chore: update size limit

* docs: update docs

* test: fix test case

* chore: update comment

* refactor: change to length

* chore: blur all

* chore: size limit
2024-03-28 14:05:58 +08:00
Olivier Louvignes
44b55c6435
demo: improve types for form basic demo (#47722) 2024-03-06 09:44:26 +08:00
afc163
7abae5e973
demo: a better Form usage inside Modal (#47574)
* demo: a better Form usage inside Modal

* chore: drop ref usage

* fix: useForm

* show values after submit

* chore: update snapshot

* chore: remove form preserve
2024-03-02 01:11:00 +08:00
lijianan
dccdb377b0
demo: demo update (#47551)
* demo: update demo code

* fix: fix
2024-02-23 11:01:56 +08:00
lijianan
943072704c
Merge branch master into master-merge-feature 2024-01-11 16:14:48 +08:00
二货爱吃白萝卜
e7aa014c31
chore: Add type util (#46923)
* docs: init

* chore: all types

* docs: faq

* chore: fix lint
2024-01-11 15:55:58 +08:00
lijianan
276e66cdaa
Merge pull request #46710 from ant-design/master
chore: merge master into feature
2023-12-31 06:57:55 +08:00
afc163
8705640a19
fix: Upload accessibility experience (#46432)
* fix: Upload tab experience

* test: update snapshot

* fix lint
2023-12-30 15:21:52 +08:00
陈帅
968200d11e
feat: Menu support darkPopupBg token (#46618)
* feat: Menu support darkPopupBg token

* fix lint

* fix
2023-12-29 16:49:57 +08:00
MadCcc
924f46fd88
feat: form support variant (#46573) 2023-12-22 10:05:15 +08:00
MadCcc
8816dc04c7 Merge branch 'master' into feature-merge-master 2023-11-30 20:22:00 +08:00
叶枫
f5e0408649
feat: support selector (#46180)
* feat: support selector

* fix: ts text

* feat: md

* feat: snap
2023-11-30 17:34:50 +08:00
afc163
005fc972cc
chore: fix form demo style (#46156) 2023-11-29 20:19:49 +08:00
afc163
9f9f64eebd
demo: remove form ref usage from demo (#46046) 2023-11-23 20:21:10 +08:00
红果汁
4baef311f8
fix: color-picker not support form disabled (#45978) 2023-11-21 14:28:50 +08:00
叶枫
923aaba047
chore: add lodash eslint (#45627) 2023-11-02 15:10:56 +08:00
二货爱吃白萝卜
ee8cf22aa6
feat: Form validation support validateDebounce (#44633)
* chore: bump rc-field-form

* docs: add debounce demo

* docs: update demo

* test: update snapshot

* docs: typo
2023-09-05 19:52:06 +08:00
Gunay
46341b115c
feat: custom feedback icons (#43894)
* custom feedback icons initial

(cherry picked from commit 22e43ad0357ea5294baf6eda659c900b1ab170f1)

* tests added and snaps updated

* Revert "tests added and snaps updated"

This reverts commit 13b57be30c.

* unittest and documentation changes

* feedback items could be turn off

* documentation fix

* move feedback icons object into the hasFeedback prop

* feedbackIcons added to the form element

* test: commit trigger

* fix: failed form test

* snaps updated

* Update components/form/index.en-US.md

Co-authored-by: afc163 <afc163@gmail.com>
Signed-off-by: Gunay <gladio@gmail.com>

* Update components/form/index.en-US.md

Co-authored-by: afc163 <afc163@gmail.com>
Signed-off-by: Gunay <gladio@gmail.com>

* Update components/form/index.zh-CN.md

Co-authored-by: afc163 <afc163@gmail.com>
Signed-off-by: Gunay <gladio@gmail.com>

* Update components/form/demo/custom-feedback-icons.md

Signed-off-by: afc163 <afc163@gmail.com>

* Update components/form/demo/custom-feedback-icons.md

Signed-off-by: afc163 <afc163@gmail.com>

---------

Signed-off-by: Gunay <gladio@gmail.com>
Signed-off-by: afc163 <afc163@gmail.com>
Co-authored-by: afc163 <afc163@gmail.com>
2023-09-04 20:36:45 +08:00
栗嘉男
b12d69cf42 chore: merge master into feature 2023-09-01 00:02:50 +08:00
lijianan
a608bfa08a
chore: fix form demo error (#44549)
* fix: fix form demo error

* update snap
2023-08-31 21:23:02 +08:00
二货机器人
620e168cfc chore: feature merge master 2023-08-29 19:51:31 +08:00
二货爱吃白萝卜
8d7dd80120
docs: Update batch of docs & demos (#44509)
* docs: update select opt

* docs: update form deps demo

* docs: upload onChange

* docs: update form nest Form.List demo
2023-08-29 18:47:41 +08:00
MadCcc
68ee32268b Merge branch 'master' into feature-merge-master 2023-08-24 21:04:48 +08:00
二货爱吃白萝卜
0dd651c559
docs: Fix Form provider demo (#44391)
* docs: fix provider demo

* test: update snapshot
2023-08-24 13:27:59 +08:00