-
-
Notifications
You must be signed in to change notification settings - Fork 48.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(inputNumber): fix size of inputNumber behaves differently when si… #36922
fix(inputNumber): fix size of inputNumber behaves differently when si… #36922
Conversation
…ze is set by configProvider
Codecov Report
@@ Coverage Diff @@
## master #36922 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 437 437
Lines 8035 8035
Branches 2420 2420
=========================================
Hits 8035 8035
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
rebase master |
…reEvent (ant-design#36921) Co-authored-by: ian.xufeng <ian.xufeng@shopee.com>
…t-design#36929) * fix(docs):fix useFormItemStatus description code * fix():修复CR意见
…n#36953) * AutoComplete(test): refactor custom input autocomplete with userEvent and screen * AutoComplete(test): refactor dataSource is object array with screen and userEvent * AutoComplete(test): update file name to tsx and refactor with screen * AutoComplete(test): option test refactor * AutoComplete(test): className test refactor * remove fireEvent * ignore ts error * disable no-console Co-authored-by: ian.xufeng <ian.xufeng@shopee.com>
* fix: sync flush * test: test case * test: fix deps
Co-authored-by: hydraZty <hydra_zty@163.com>
* refactor: rewrite header by FunctionComponent * refactor: rewrite footer by FunctionComponent * fix: strong type * refactor: rewrite IconDisplay & PicSearcher & Category by FunctionComponent * style: formatting * pref: add useCallback/useMemo * refactor: use typescript refactor javascript * fix: remove string * fix: fix eslint * test: migrate part of Descriptions tests * test: migrate part of Descriptions tests * test: migrate part of Descriptions tests
…ant-design#37022) Bumps [stylelint-config-standard](https://github.com/stylelint/stylelint-config-standard) from 26.0.0 to 27.0.0. - [Release notes](https://github.com/stylelint/stylelint-config-standard/releases) - [Changelog](https://github.com/stylelint/stylelint-config-standard/blob/main/CHANGELOG.md) - [Commits](stylelint/stylelint-config-standard@26.0.0...27.0.0) --- updated-dependencies: - dependency-name: stylelint-config-standard dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* add 4.22.5 changelog * fix
* test: replace test case with test lib * test: Update test case to make more sense * chore: trigger ci * test: rm firstChild Co-authored-by: 二货机器人 <smith3816@gmail.com>
* test: migrate part of TimePicker tests * test: test clearIcon * test: migrate part of TimePicker tests Co-authored-by: 二货机器人 <smith3816@gmail.com>
* temp * fix: mock esmodule default for Dropdown * test: move test cases to testing-library for DropDown * chore: remove console * fix: snapshot test * refactor: jest mock improvement
* chore: release script includes current info * chore: more issue
* test: move test cases to testing-library for Grid * fix: test when typeof gutter is object array in large screen
This reverts commit 9e7e32b.
* docs: update 4.0 sketch file link * docs: add dark theme sketh
* fix: Drawer add motion deadline * test: Update snapshot * test: ignore motion in snapshot render
* docs: 4.22.6 * chore: changelog version * chore: update
* test: add table multi-sort case * chore: code clean
Hi @gp0119. Thanks for your contribution. The path |
重新提交了一个 #37112 |
…ze is set by configProvider
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
https://codesandbox.io/s/zu-jian-chi-cun-antd-4-22-3-forked-yb7pi6?file=/demo.js
💡 Background and solution
当
ConfigProvider
提供了size
属性时,InputNumber
的大小表现跟没有提供size
的时候表现不一样,打开上面的链接可以发现, 当
ConfigProvider
提供了size
属性时,InputNumber
在small
的时候会多了ant-input-number-affix-wrapper-sm
属性,导致左右padding跟没有提供的时候不同,InputNumber
在large
的时候会多了ant-input-number-affix-wrapper-lg
属性,导致高度不同📝 Changelog
☑️ Self-Check before Merge