红
baef247630
refactor: improve the acquisition of dom logic ( #48989 )
...
* deps: bump rc-util to 5.41.0
* refactor: improve the acquisition of dom logic
* test: add unit test
2024-05-20 19:41:30 +08:00
lijianan
5c2e6e3651
Merge pull request #48573 from ant-design/master
...
chore: merge master into feature
2024-04-22 17:09:35 +08:00
二货爱吃白萝卜
ae155b97d5
chore: add bug version & fix test case ( #48571 )
...
* chore: add bug version
* test: clean up
* test: fix test case
* chore: fix lint
* test: fix test case
* test: fix test case
2024-04-21 23:56:41 +08:00
lijianan
27c942a00b
Merge pull request #48524 from ant-design/master
...
chore: merge master into feature
2024-04-18 10:11:58 +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
叶枫
0d34e0b9d8
feat: noStyle no warning ( #48508 )
2024-04-17 14:38:15 +08:00
afc163
c0d2282db4
chore: update mocky.io to mockapi.io ( #48252 )
2024-04-03 23:37:22 +08:00
lijianan
dccdb377b0
demo: demo update ( #47551 )
...
* demo: update demo code
* fix: fix
2024-02-23 11:01:56 +08:00
lijianan
1b2362a425
type: rm useless type ( #46920 )
...
* type: rm useless type"
* update size-limit
2024-01-11 15:11:55 +08:00
二货爱吃白萝卜
1671d279e5
fix: getValueProps should trigger update ( #46445 )
2023-12-14 15:55:19 +08:00
@linhf2023
cca77e61b9
fix(form): legacy hideRequiredMark
props priority ( #46299 )
...
* fix(form): Reduce global requireMark priority
* chore: add test
---------
Co-authored-by: linhf123 <wb-lhf780012@antgroup.com>
2023-12-07 11:22:31 +08:00
MadCcc
8816dc04c7
Merge branch 'master' into feature-merge-master
2023-11-30 20:22:00 +08:00
afc163
7488c58e1f
fix: Form label tooltip icon trigger Switch ( #46155 )
...
* fix: Form label tooltip icon trigger Switch
close https://github.com/ant-design/ant-design/issues/46154
* chore: fix test case
2023-11-30 09:53:23 +08:00
lijianan
17dff7c630
chore: merge master into feature
2023-11-23 03:09:24 +08:00
红果汁
4baef311f8
fix: color-picker not support form disabled ( #45978 )
2023-11-21 14:28:50 +08:00
红
0da10b6cca
feat(switch): support for value and defaultValue props ( #45747 )
...
* feat(switch): support for `value` and `defaultValue` props
* docs: update docs
* chore: add unit case
(cherry picked from commit d25977cd16
)
* chore: update case
* chore: remove skip test case
2023-11-09 13:42:25 +08:00
MadCcc
95322eaad5
fix: InputNumber in Form with hasFeedback should not lose focus ( #45632 )
...
* fix: InputNumber in Form with hasFeedback should not lose focus
* chore: disable lint
2023-11-02 17:15:03 +08:00
afc163
e587a5ff68
chore: update select snapshot ( #45333 )
2023-10-13 20:56:06 +08:00
二货爱吃白萝卜
ef03563334
test: update snapshot ( #44989 )
...
* test: update snapshot
* test: update snapshot
* test: fix test logic
2023-09-21 16:37:54 +08:00
MadCcc
76eade855a
fix: Form hasFeedback should passed to children with noStyle ( #44937 )
2023-09-19 10:27:15 +08:00
afc163
64b649eaee
docs: fix Upload mocky api in demo and test ( #44883 )
2023-09-15 13:48:23 +08:00
MadCcc
114ff39f8c
Merge branch 'master' into feature-merge-master
2023-09-05 13:41: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
二货爱吃白萝卜
0396899ff6
fix: Form.Item noStyle
support validation status ( #44576 )
...
* fix: FormItem.useStatus can not get status
* fix: noStyle not patch style
* fix: noStyle inhreit logic
* docs: update docs
* test: add test case
* refactor: nostyle block status
* fix: coverage
2023-09-04 10:03:12 +08:00
MadCcc
ba90af13c0
Merge branch 'master' into feature-merge-master
2023-08-10 22:17:15 +08:00
红
da35a10f29
fix: update Modal defaultFooter Button disabled logic ( #43055 )
...
* test: add unit test
* fix: update disabled logic
* Revert "test: add unit test"
This reverts commit 7559a15af6
.
* test: add unit case
* test: update snapshot
* chore: update logic
* Revert "chore: update logic"
This reverts commit 89e2233eda
.
2023-08-10 16:48:28 +08:00
afc163
e283ebf2e3
test: update Select jest snapshot ( #44140 )
...
* chore: update snapshot
* test: fix test case of Form Select
2023-08-10 00:43:44 +08:00
二货爱吃白萝卜
5e9ef6803b
feat: Form requiredMark support renderProps ( #44073 )
...
* feat: Form requiredMark support renderProps
* test: add test case
* test: update snapshot
2023-08-07 15:11:06 +08:00
二货爱吃白萝卜
2cdf586291
chore: fix lint ( #43873 )
...
* chore: fix lint
* chore: fix lint
* test: fix 16
* fix: lint
2023-07-28 16:17:43 +08:00
thinkasany
f566e3b24b
type: supplementary React.FC type ( #43410 )
...
* type: supplementary React.FC type
* fix: remove useless code
* revert: remove useStyle
* revert: card-top
* Update card-top.tsx
2023-07-06 23:54:03 +08:00
Starpuccino
5c350a80e2
fix: Slider disabled status in form ( #43142 )
...
* fix slider component disabled status in form
* add test case & update demo
* fix related test cases
2023-06-24 14:20:56 +08:00
MadCcc
7322aa6f5f
Revert "chore: migrate to vitest ( #42506 )" ( #42900 )
...
This reverts commit 6759887c44
.
2023-06-07 21:59:21 +08:00
Dunqing
6759887c44
chore: migrate to vitest ( #42506 )
...
* chore: migrate to vitest
* chore: update ci
* fix: test correctly
* test: support puppeteer
* chore: update coverage
* chore: update include/exclude
* chore: update config
* test: update incorrect tests
* chore: update script
* chore: update
* fix: should close browser at the ended
* chore: improve
* fix: test cause tsc error
* fix: eslint error
* chore: exclude correctly
* test: update snap and fix some tests
* chore: update test config
* fix: countup.js
* fix: incorrect test
* chore: update reference
* test: update
* fix: countup.js
* fix: timeout
* chore: update site test
* fix: fixed countup version
* chore: remove unsed code
* test: update
* test: update demo timeout
* test: update timeout
* chore: update image test
* chore: update threads
* fix: image/svg+xml test failed
* chore: limits threads
* test: update test coverage include
* chore: remove jest files
* chore: rename jest to vi
* chore: update document
* chore: fix missing @types/jsdom
* chore: update coverage
* chore: update snap
* fix:watermark test cases are incorrect
* feat: update ignore comment
* test: fix test case
* test: reset body scrollTop
* test: clean up
* test: use vi
* test: update snapshot
* test: update snapshot
* test: fix dropdown test failed
* fix: toHaveStyle cause test fail
* test: improve test case
* test: fix
* fix: color failed, refer to https://github.com/jsdom/jsdom/pull/3560
* test: fix
* test: fix
* test: fix circular import
* test: revert
* ci: coverage failed
* test: fix c8 ignore comment
* chore: incorrect config
* chore: fix ignore ci
* test: revert svg+xml
* test: fix realTimers
* feat: rc-trigger should be remove
* test: fix some failed test
* chore: remove unused deps and configure eslint-plugin-vitest
* test: update snap
* chore: remove jest
* test: fix lint error
---------
Co-authored-by: 二货机器人 <smith3816@gmail.com>
Co-authored-by: afc163 <afc163@gmail.com>
2023-06-07 11:54:50 +08:00
二货爱吃白萝卜
917e41ecc5
docs: update faq ( #42233 )
2023-05-09 19:09:21 +08:00
二货爱吃白萝卜
e2606d477d
fix: form item support comment ( #41771 )
...
* fix: form item support comment
* chore: clean up
* fix: lint
2023-04-12 16:15:04 +08:00
Wuxh
32f8134f4f
feat: improve noStyle
validation message display logic ( #41698 )
...
* test: add case
* feat: improve `noStyle` validation message display logic
When `noStyle=true` and `help=false`, the error message is blocked from being passed up
* test: update test case
* Revert "test: update test case"
This reverts commit a3e5d84ea620becb9e72b6b71766c01114add9ae.
* chore(type): update typo
* Revert "chore(type): update typo"
This reverts commit e13ec3ba5267394e8112fb742ec9bc9d4afdef5b.
* test(deps): DO NOT MERGE
* test: DO NOT MERGE
* Revert "test: DO NOT MERGE"
This reverts commit 2f4ea8e0ce64f88ab690c6e54b86034a92bcb55f.
* Revert "test(deps): DO NOT MERGE"
This reverts commit 48e700ef4aaa4675f29d3fbd23156bd8f692949e.
2023-04-10 12:03:11 +08:00
Wuxh
0e65dad8e9
chore: Form.Item should not support requiredMark ( #41725 )
...
* test: add case
* chore: Form.Item does not support requiredMark
2023-04-10 12:02:06 +08:00
Wxh16144
ef8b824ef1
chore: improve Form.Item on Require judgment logic ( #41623 )
...
* test: add case
* chore: improve `Form.Item` on Require judgment logic
2023-04-04 15:23:43 +08:00
JiaQi
f414abc96d
fix(Form): Feedback does not automatically deduce the correct state ( #41594 )
...
* fix(form): Feedback does not automatically deduce the correct state
* rerunning
2023-04-02 17:53:29 +08:00
afc163
468f806e03
Merge branch 'feature' into master-merge-feature
2023-04-01 21:17:17 +08:00
JiaQi
6e29fdd319
Fix Form.Item not rendering correctly in Modal when it has help ( #40519 )
...
Co-authored-by: Yuiai01 <dujiaqi@kezaihui.com>
2023-03-31 14:27:55 +08:00
JiaQi
b73b37eee9
feat(Form.Item): useStatus supports get error messages and warning messages ( #41554 )
...
* feat: useStatus supports get error messages
* feat: useStatus supports get warning messages
* chore: update example
* chore: add test case
2023-03-31 11:42:34 +08:00
kiner-tang(文辉)
bf8a36be8f
fix(form): resolve the problem of validation states changing out of sequence ( #41412 )
...
* fix: reolve FormItem's validate status trigger unexpected issue
* feat: add test case
* feat: optimize code
* feat: optimize code
* feat: optimize code
* style: format code
* git
* feat: optimize code
* feat: optimize code
* feat: optimize code
* feat: react version
* style: format code
* refactor: refactor code
* refactor: refactor code
* refactor: refactor code
2023-03-23 16:40:53 +08:00
kiner-tang(文辉)
c3f8424c98
fix(form): success feedback should display when pass hasFeedback prop and current value is valid value ( #41116 )
...
* fix: success feedback should display when pass hasFeedback prop and type valid value
* feat: optimize code
* feat: update test case
* feat: optimize code
* feat: optimize code
* feat: update demo
* feat: update test case
* feat: update demo
* feat: update test case
* feat: reset demo
2023-03-09 21:28:54 +08:00
MadCcc
386588dd2b
chore: update test ( #39824 )
...
* chore: update test
* chore: code clean
2022-12-27 11:49:09 +08:00
MadCcc
663d1454f2
chore: fix ci ( #39811 )
...
* chore: fix ci
* chore: code clean
* chore: update form test
* chore: test
2022-12-26 15:48:50 +08:00
MadCcc
ab4bcc4463
Merge branch 'master' into next-merge-master
2022-11-17 14:04:31 +08:00
Wuxh
4bc23b3ca6
chore: fix the wrong link address ( #38543 )
...
* chore: fix the wrong link address
repo: https://github.com/ant-design/u.ant.design
* Revert "chore: fix the wrong link address"
This reverts commit 63e50f426a
.
* one more time
2022-11-14 16:32:34 +08:00
二货机器人
d5cfd195dd
chore: merge master
2022-11-07 23:32:46 +08:00
Ell Bradshaw
5a61762681
chore: clarify error about children of Form.Item with name
( #38038 )
...
* Clarify error about children of Form.Item with `name`
This is a common error and the message as written was not very clear.
This should be more helpful pointing people in the right direction
* Update error message in test
* Clarify more error messages
Referring to "render props" is confusing because the docs don't explain what that is, and it's not really a prop.
* Update tests for new error messages
Also improve the test names for some
* Further test message updates
Missed a couple messages
* Add short URLs
* Update test error messages
* Apply suggestions from code review
* Apply suggestions from code review
Co-authored-by: Ell Bradshaw <joelbr@tailormed.co>
Co-authored-by: afc163 <afc163@gmail.com>
2022-11-07 17:32:58 +08:00