Skip to content
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

Synchronize the update of antd 4.22.3 version #84

Merged
merged 1,417 commits into from
Aug 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1417 commits
Select commit Hold shift + click to select a range
cc9e3c2
docs: update FAQ titles
afc163 Jun 1, 2022
7dc56e3
test: move test cases to @testing/library for List (#35850)
yykoypj Jun 1, 2022
81a2b2d
chore: bump rc-dialog & update snapshot
zombieJ Jun 1, 2022
938cdab
fix: set jest shard to 2 (#35831)
vagusX Jun 1, 2022
c3fc5db
fix: drawer close twice children is undefined (#35853)
crazyair Jun 1, 2022
6423e22
chore: merge feature
afc163 Jun 1, 2022
792d230
test: update snapshot
afc163 Jun 1, 2022
1223895
chore: auto merge branchs (#35857)
github-actions[bot] Jun 1, 2022
d239ae5
fix: remove extraneous space from rc-segmented version (#35863)
momesana Jun 1, 2022
2113c25
feat: Progress steps support custom strokeColor for each step (#35855)
afc163 Jun 1, 2022
8b27d06
chore: stlye patch of statistic (#35874)
zombieJ Jun 2, 2022
6e55310
test: replace Input part test with test lib (#35754)
zhengshuai1001 Jun 2, 2022
a5d8db0
refactor: pagination mini className (#35881)
MadCcc Jun 2, 2022
a5074ef
refactor: Wave in React 18 StrictMode (#35889)
Carrotzpc Jun 2, 2022
77823c5
feat: tabs support popupClassName (#35892)
MadCcc Jun 2, 2022
1bae50c
fix:border-style for inputNumber addon when rtl (#35876)
yykoypj Jun 2, 2022
9346858
chore(deps): update dependency @types/jest to v28 (#35907)
renovate[bot] Jun 6, 2022
2c1d512
chore: auto merge branchs (#35910)
github-actions[bot] Jun 6, 2022
7bd78e7
chore: auto merge branchs (#35911)
github-actions[bot] Jun 6, 2022
423ebea
ci: fix typo
xrkffgg Jun 6, 2022
c9145d7
fix: 类型“FormListFieldData”上不存在属性“fieldKey”。(#35883) (#35884)
nanianlisao Jun 6, 2022
d303889
chore: update changelog script (#35916)
xrkffgg Jun 6, 2022
ebe9c3c
docs: add typography format version
xrkffgg Jun 6, 2022
d1de6d9
fix: remove important in radio style (#35920)
MadCcc Jun 6, 2022
7bb5a7a
docs: correct types (#35919)
kungege Jun 6, 2022
b29d749
test: migrate part of Button tests (#35869)
Carrotzpc Jun 6, 2022
22c8bc4
test: migrate part of Affix tests (#35860)
zggmd Jun 6, 2022
c22fce2
docs: add changelog 4.21.0 (#35915)
xrkffgg Jun 6, 2022
4dd6fca
Feat: support 'treeExpandAction' prop for TreeSelect (#35618)
NE-SmallTown Jun 6, 2022
2d7122c
Merge remote-tracking branch 'origin/feature' into master-merge-feature
zombieJ Jun 6, 2022
d56ba70
chore: bump bundle size of babel runtime
zombieJ Jun 6, 2022
e56abdf
docs: Update 4.21.0 changelog
zombieJ Jun 6, 2022
ae6279a
chore: auto merge branches (#35922)
github-actions[bot] Jun 6, 2022
6e04120
docs: fix tree demo (#35927)
MadCcc Jun 6, 2022
1f080c2
fix: Form.Item noStyle should not be affected by parent Form.Item (#3…
MadCcc Jun 6, 2022
dfd1897
test: replace test case with test library (#35925)
poyiding Jun 7, 2022
eafe3fc
docs: clean up useless space
zombieJ Jun 7, 2022
37e333d
chore: auto merge branches (#35928)
github-actions[bot] Jun 7, 2022
771836c
test: refactor tree with testing lib (#35937)
zombieJ Jun 7, 2022
08a9c0b
test: move test cases to testing lib (#35909)
foryuki Jun 8, 2022
c0389d2
test: move test cases to testing lib (#35900)
foryuki Jun 8, 2022
d099dea
fix: menu items typings (#35790)
MasaoBlue Jun 8, 2022
c56bb2b
fix: cubic-bezier should be animation-timing-function (#35943)
MadCcc Jun 8, 2022
c80ddb4
chore: upgrade react-slick to 0.29.1 (#35959)
afc163 Jun 9, 2022
e5ed96d
chore: fix code (#35949)
yaogengzhu Jun 9, 2022
da9324f
Fix color generation for grey colors (#35954)
christian-lechner Jun 9, 2022
cfc790d
test: move test cases to @testing/library for Typography (#35955)
yykoypj Jun 9, 2022
4c0ac91
chore: Update it_IT.tsx (#35970)
gariggio Jun 9, 2022
4fd49a8
docs: Segmented API type (#35974)
hoosin Jun 9, 2022
74287ac
chore: fix typo
afc163 Jun 10, 2022
66c3639
chore: bump rc-dialog version (#35969)
zombieJ Jun 10, 2022
f2a5d2f
fix: Button has no disabled style when link type (#35975)
MuxinFeng Jun 10, 2022
a86feb7
fix: `DropdownProps` definition (#35990)
robothot Jun 10, 2022
9ddde89
chore(deps-dev): bump stylelint from 14.8.3 to 14.9.0 (#35998)
dependabot[bot] Jun 10, 2022
c7aa754
chore: update ts config (#36000)
zombieJ Jun 10, 2022
c7638a9
fix: Fixed the getContainer property in Image not reading the setting…
robothot Jun 11, 2022
961383f
fix: missing semicolon (#36008)
robothot Jun 11, 2022
e963060
Update package.json
afc163 Jun 11, 2022
f93480a
docs: fix onChange description repeated twice (#36013)
hinatades Jun 12, 2022
e1a6241
chore(deps): update dependency stylelint-config-standard to v26 (#36017)
renovate[bot] Jun 12, 2022
3f822ac
test: move test cases to testing lib for Statistic (#36019)
foryuki Jun 13, 2022
52b049d
test: replace Table part test with test lib (#35989)
poyiding Jun 13, 2022
250497a
docs: add changelog 4.21.1 (#36022)
vagusX Jun 13, 2022
2956527
docs: title is no loger supported by SubMenuType (#36037)
csr632 Jun 14, 2022
c72c700
docs: fix menu API table (#36043)
afc163 Jun 14, 2022
0b2b273
chore: auto merge branches (#36042)
github-actions[bot] Jun 14, 2022
e397485
fix: Radio.Group focus and blur should work (#36041)
MadCcc Jun 14, 2022
524c936
docs: fix demos (#36040)
kungege Jun 14, 2022
147468a
fix: fix incorrect form status with noStyle (#36054)
MadCcc Jun 14, 2022
25e1d1b
docs: 4.21.2 (#36055)
MadCcc Jun 14, 2022
88858c7
test: improve test cases for Statistic (#36034)
foryuki Jun 15, 2022
6195376
test: move test cases to testing lib for Badge (#36033)
foryuki Jun 15, 2022
0e6e1c0
fix:when props.value is not undefined, can't reset value and focus (#…
Pulset Jun 15, 2022
34dfb80
feat: Form support `setFieldValue` (#36058)
zombieJ Jun 15, 2022
8383515
feat: Synchronize the update of antd 4.20.2 version
Jun 16, 2022
83eb5e5
test: move test cases to @testing/library for Upload (#36024)
yykoypj Jun 16, 2022
853a04d
fix: exporting Rule, FormListFieldData, FormListOperation from form (…
chentsulin Jun 17, 2022
89717f1
fix: exporting RefSelectProps from select (#34732)
chentsulin Jun 17, 2022
f19cf66
fix: Typescript - Tree component DirectoryTreeProps, missing Node Typ…
JaylanChen Jun 17, 2022
63fc505
fix: Table customize filterDropdown with Menu should not block defaul…
zombieJ Jun 17, 2022
96ccdfe
test: change to fakeTimer when error happens sometimes (#36102)
yykoypj Jun 17, 2022
ad45f6c
docs(:sparkles:): release 4.21.3 (#36105)
afc163 Jun 17, 2022
4fe88a5
docs: add locale link in Calender (#36108)
afc163 Jun 17, 2022
ef286d5
fix: exporting UploadFile from upload (#34733)
chentsulin Jun 17, 2022
8d05774
fix: Skeleton active style in dark theme (#36116)
afc163 Jun 19, 2022
0ff19bb
fix: Table multiple dropdown not closed (#36132)
zombieJ Jun 20, 2022
1cec18e
fix: component.displayName To distinguish the environment (#36126)
yaogengzhu Jun 21, 2022
7045aa7
fix: repeat a css class in readOnly, which has been declared in rc-in…
Adrian-Zephyr-Liao Jun 21, 2022
5120b38
chore(deps): update dependency inquirer to v9 (#36121)
renovate[bot] Jun 21, 2022
b7cf4e6
chore(deps-dev): bump jsdom from 19.0.0 to 20.0.0 (#36133)
dependabot[bot] Jun 21, 2022
24a7da8
docs(Input): add proper type for `inputRef` (#36135)
Dennis273 Jun 21, 2022
1d8d871
style: enlarge draggable area for Slider handle (#36018)
slotDumpling Jun 21, 2022
092bfd7
docs: update demo code (#36127) (#36143)
wellssu0 Jun 21, 2022
9ab8cc4
fix: Dropdown with group menu can not close (#36148)
zombieJ Jun 21, 2022
8227a53
style: Code style optimization (#36144)
li-jia-nan Jun 21, 2022
db58f19
style: Remove methed of Array push (#36157)
li-jia-nan Jun 22, 2022
15b8b85
style: fix Button loading icon margin issue (#36168)
afc163 Jun 22, 2022
2c2c631
chore: prettier components (#36171)
zombieJ Jun 22, 2022
8c172a0
test: replace pagination test with test-library (#36178)
poyiding Jun 22, 2022
d692a88
feat: add si_LK locale (#36149)
sayuri-gi Jun 22, 2022
ebc7527
fix: fix snapshot after si_LK locale is merged (#36181)
yoyo837 Jun 22, 2022
4401c74
refactor: performance optimization (#36177)
li-jia-nan Jun 22, 2022
1c8415c
Corrected grammar in comment in hooks.md (#36185)
sophyphreak Jun 23, 2022
726dd85
Fix breaks (#36186)
RyanCavanaugh Jun 23, 2022
88415f4
chore: fix Menu deprecated warning when item={undefined} (#36190)
afc163 Jun 23, 2022
3ea2817
fix: type incompatibility in strict mode (#36189)
Dunqing Jun 23, 2022
2971e3b
fix: Reset the last selection key (#34705)
Dunqing Jun 23, 2022
7357f55
fix: Upload listType="picture-card" select button when children is em…
afc163 Jun 23, 2022
7c4e6c4
perf: unify regeneratorRuntime import path for bundle size (#36200)
afc163 Jun 23, 2022
478bd67
Docs: FAQ add explanation of null in controlled components. (#36082)
shezhangzhang Jun 23, 2022
5e8280d
chore: bump rc-util (#36210)
zombieJ Jun 23, 2022
f8a9cb3
fix: nested Table margin style (#36209)
afc163 Jun 24, 2022
326978e
style: fix Table expand icon align issue (#36215)
afc163 Jun 24, 2022
02a0e6f
style: Skeleton.Button square shape style (#36123)
denghuacc Jun 24, 2022
295f1ee
docs: fix English FAQ title (#36222)
shezhangzhang Jun 24, 2022
d733de8
docs: update valueStyle description (#36226)
afc163 Jun 24, 2022
eeedb87
chore: fix eslint warning and bisheng terminal log (#36220)
afc163 Jun 24, 2022
93400e2
docs: update Tabs demo code (#36217)
zty42 Jun 24, 2022
ee28570
chore(deps-dev): bump @types/jest-image-snapshot from 4.3.2 to 5.1.0 …
dependabot[bot] Jun 25, 2022
a613a26
chore(deps): update dependency remark-cli to v11 (#36237)
renovate[bot] Jun 26, 2022
c0411d7
chore: dev config (#36240)
MadCcc Jun 27, 2022
db62ade
fix: popover arrow support custom color (#36241)
MadCcc Jun 27, 2022
483c8d3
refactor: wrap Wave with FC (#36248)
MadCcc Jun 27, 2022
2d233fb
docs: add 4.21.4 changelog (#36246)
chenshuai2144 Jun 27, 2022
4439891
chore(deps-dev): bump cheerio from 1.0.0-rc.10 to 1.0.0-rc.12 (#36255)
dependabot[bot] Jun 27, 2022
3ee6c47
chore: update Belarusian locale (#36265)
afc163 Jun 28, 2022
f4e5e8d
docs: update English sketch file link (#36269)
afc163 Jun 28, 2022
bf924df
style(Divider): replace fixed class name with variable (#36271)
denghuacc Jun 28, 2022
a2c7ea4
test: replace test case with test lib (#36276)
poyiding Jun 28, 2022
fe52f2c
style: fix Table shadow bug in nested situation (#36277)
afc163 Jun 29, 2022
d24f67f
test: Fix table empty test (#36290)
zombieJ Jun 29, 2022
33400ee
chore: reduce css bundle size (#36307)
afc163 Jun 30, 2022
42e030e
fix: arrow compatibility (#36266)
MadCcc Jun 30, 2022
5f933eb
fix: Fixed an error when the loading property of the Button component…
kejianfeng Jun 30, 2022
201a667
test: move test cases to testing lib for Spin (#36317)
foryuki Jul 1, 2022
efe6d7c
test: move test cases to testing lib for Switch (#36326)
foryuki Jul 1, 2022
d8fc1b6
Merge branch 'master' of github.com:infra-fe/infra-design into zl/v4.…
Jul 1, 2022
8ab7851
test: update snapshot (#36344)
MadCcc Jul 1, 2022
0a7b4d3
fix: checkbox should be disabled by form (#36345)
MadCcc Jul 1, 2022
1d82f22
test: move test cases to @testing/library for Carousel (#35926)
yykoypj Jul 2, 2022
40728fb
test: replace layout test case with test lib (#36323)
poyiding Jul 2, 2022
6231309
docs: v4.21.5 (#36353)
MadCcc Jul 3, 2022
b2c31ae
chore(deps): update dependency eslint-plugin-unicorn to v43 (#36350)
renovate[bot] Jul 4, 2022
5afec96
feat: Sync 4.21.4 version from Antd
Jul 4, 2022
b69f289
style: Radio focus shadow should be transparency (#36335)
afc163 Jul 4, 2022
9bc30d1
fix: ErrorList shaking (#36358)
zombieJ Jul 4, 2022
ab19033
docs: replace lib with es (#36367)
MadCcc Jul 4, 2022
80e7f70
chore: merge feature to master, resolve conflict
afc163 Jul 5, 2022
e7bc2e2
chore: auto merge branches (#36379)
github-actions[bot] Jul 5, 2022
bfa8aae
feat: Space support align stretch (#36310)
cw1997 Jul 5, 2022
cff413e
fix: Table hover perf (#36383)
zombieJ Jul 5, 2022
e503f9d
fix: correct border radius when table has title (#36384)
Unuuuuu Jul 5, 2022
345cbce
style: fix size of close icon on Modal header (#36309)
cw1997 Jul 6, 2022
2e04982
Update index.en-US.md (#36400)
KirillSBarsukov Jul 6, 2022
e262ae8
docs: fix customize calendar example (#36356)
hsk-kr Jul 6, 2022
3fc4ff2
docs(Typography): translate docs from English to Chinese (#36417)
denghuacc Jul 7, 2022
47f68d0
fix: fix table container z-index (#36420)
shunyue1320 Jul 8, 2022
1a8edd9
fix: fix wrong color of date picker with status set (#35685)
simplejason Jul 8, 2022
4e03961
feat: Update Doc (#36437)
jiameng123 Jul 8, 2022
1d0ae57
docs(Typography): fix `editable.onChange` parameter (#36443)
denghuacc Jul 8, 2022
cebbe23
fix: Upload item removed should keep status className (#36439)
afc163 Jul 8, 2022
4614d15
docs: fix typo (#36450)
wsp971 Jul 10, 2022
46be23a
fix: breadcrumb seperators hidden when used in list (#36448)
LeonKattendick Jul 10, 2022
91ff1dc
style: fix Skeleton active lost border-radius in Safari (#36445)
afc163 Jul 10, 2022
20b3f20
docs: 4.21.6 changelog (#36455)
zombieJ Jul 11, 2022
1643acf
feat: Add support to Skeleton, which allow deployer use custom node a…
DawnLck Jul 11, 2022
6ada28c
docs: fix typo (#36457)
suica Jul 11, 2022
7dfc805
docs: update index.zh-CN.md (#36471)
bobo0902 Jul 12, 2022
6497d0d
docs: moment version mismatched issue (#36473)
afc163 Jul 12, 2022
e46dedd
chore: auto merge branches (#36478)
github-actions[bot] Jul 12, 2022
41464e7
chore: bump mentions (#36479)
zombieJ Jul 12, 2022
6599c27
fix: Select with percent width leaves unexpected height in Form (#36484)
zombieJ Jul 12, 2022
563de19
ci: add conch msg (#36481)
xrkffgg Jul 12, 2022
4f7ac9f
fix: tooltip cannot close on disabled Radio (#36483)
MadCcc Jul 12, 2022
c32aa46
ci: split notice (#36495)
xrkffgg Jul 13, 2022
008681c
style: Table expandIcon style when column is fixed and ellipsis (#36496)
afc163 Jul 13, 2022
efd9aa3
fix: merge from master and resolve conflict
Jul 13, 2022
c86d02e
docs: simplified `Layout` component sample code (#36497)
Wxh16144 Jul 13, 2022
e9ab30d
chore: bump rc-tooltip (#36501)
zombieJ Jul 13, 2022
aca2c3d
feat: add Form.Item.useStatus (#36486)
MadCcc Jul 14, 2022
92c8bdc
fix: SVG Upload Preview Error (#36402)
jonioni Jul 14, 2022
14c7c63
fix: fixed the non draggable element did not hide the draggable icon …
Wxh16144 Jul 14, 2022
2255dba
docs: update select documentation
afc163 Jul 14, 2022
006c055
refactor: move popconfirm content out (#36530)
zombieJ Jul 15, 2022
ed5f4c3
test: update snapshot
zombieJ Jul 15, 2022
5cd007a
chore: update .gitignore (#36534)
MadCcc Jul 15, 2022
9989a2d
add Modal @modal-border-radius less variable (#36527)
kkkisme Jul 15, 2022
f9db56c
feat: Sync 4.21.6 version from Antd
Jul 15, 2022
912d274
chore(deps): update dependency eslint-plugin-markdown to v3 (#36560)
renovate[bot] Jul 17, 2022
8c9ad9b
fix: form disabeld support Upload (#36573)
cwjTerrace Jul 18, 2022
10b153f
docs: changelog for 4.21.7 (#36572)
PeachScript Jul 18, 2022
3301b4d
Merge pull request #36576 from ant-design/master
zombieJ Jul 18, 2022
d383a87
ci: fix publish (#36580)
xrkffgg Jul 19, 2022
03ea767
fix: Form validate message shaking (#36575)
zombieJ Jul 19, 2022
31eef3a
docs: menu faq (#36604)
zombieJ Jul 20, 2022
2146d18
style: fix Table tree data ellipsis style problem (#36608)
afc163 Jul 20, 2022
cff762c
style: fix Table extra shadow and scrollbar when all columns are fixed
dashaowang Jul 20, 2022
8c34cb7
feat: Replace input-number part test with testing lib (#36080)
heiyu4585 Jul 20, 2022
817773e
test: move test cases to testing lib for Collapse (#36227)
foryuki Jul 21, 2022
1180b61
docs: tabpane add `disabled` (#36634)
zty42 Jul 21, 2022
ad7df07
docs: faq for internal API (#36643)
zombieJ Jul 21, 2022
0b9f1db
Revert "feat: Space support align stretch (#36310)" (#36650)
zombieJ Jul 22, 2022
e68f246
Merge branch 'master' into zl/v4.21.6-sync
Jul 22, 2022
09de419
fix(Tree): DraggableFn params type (#36648)
zty42 Jul 22, 2022
16ecdbb
fix(modal): Modal.xxx onCancel close argument is not a function (#3…
Wxh16144 Jul 23, 2022
fd5d463
chore: write React.ChangeEvent<E> once (#36644)
zheeeng Jul 23, 2022
3920a72
feat: Tree/TreeSelect `switcherIcon` support more parameter in argume…
denghuacc Jul 23, 2022
1e88248
docs: renew Select dropdownRender demo and FAQ (#36665)
afc163 Jul 23, 2022
3675ad5
test: move-test-cases-to-testing-lib-for-Radio (#36664)
cwjTerrace Jul 24, 2022
00c891a
feat: Typography `ellipsis.tooltip` could be a object (#36099)
crazyair Jul 25, 2022
1ca2a57
feat: Sync 4.21.7 version from Antd
Jul 25, 2022
2b46b3e
Merge remote-tracking branch 'origin/master' into feature-merge-master
zombieJ Jul 25, 2022
80114d6
Revert "fix: Upload item removed should keep status className (#36439…
afc163 Jul 25, 2022
46d146d
chore: resolve conflict of feature merge master
zombieJ Jul 25, 2022
6386431
chore: auto merge branches (#36683)
github-actions[bot] Jul 25, 2022
b5302f4
chore: auto merge branches (#36684)
github-actions[bot] Jul 25, 2022
d422d71
refactor: Drawer refactor (#36672)
zombieJ Jul 25, 2022
16d2c5d
Merge pull request #36685 from ant-design/feature
xrkffgg Jul 25, 2022
b89ed86
chore: prefer using type-compatible-assigning over using type-asserti…
zheeeng Jul 26, 2022
78bc4a3
chore: update the PULL_REQUEST_TEMPLATE (#36700)
zheeeng Jul 26, 2022
789a557
chore: Support deprecated version warning (#36701)
zombieJ Jul 26, 2022
f3db1f2
docs: fix Menu api layout (#36697)
hoho2017 Jul 26, 2022
84c0498
fix: Upload item removed should keep status className (#36706)
zombieJ Jul 26, 2022
7b3220f
chore: refine getScroll internal signature and some assertion (#36695)
zheeeng Jul 26, 2022
64a60e6
docs: add changelog 4.22.0 (#36699)
xrkffgg Jul 26, 2022
926aa0d
chore: 替换 bundlesize 为 size-limit (#36712)
LiHaoGit Jul 26, 2022
1ef4543
test: replace Cascader test case with test library (#36475)
poyiding Jul 26, 2022
f1aa52a
ci: 添加 size-limit 的 workflows (#36721)
LiHaoGit Jul 27, 2022
740d9f4
fix: Drawer width with ptg (#36729)
zombieJ Jul 27, 2022
c231e13
docs: 4.22.1 changelog (#36732)
zombieJ Jul 27, 2022
24be945
fix: Not work in old browser (#36748)
zombieJ Jul 27, 2022
ddb97b2
chore: collapse title text auto width (#36761)
zombieJ Jul 28, 2022
9a308bb
docs: 4.22.2 changelog (#36764)
zombieJ Jul 28, 2022
51954aa
fix: fix row in flex layout size cal (#36770)
zombieJ Jul 28, 2022
c5668a7
docs: Form disabled version (#36760)
MadCcc Jul 29, 2022
ffb3a4d
fix: Form vertical with span row (#36800)
zombieJ Jul 30, 2022
f01aa3c
chore(deps): update dependency size-limit to v8 (#36803)
renovate[bot] Jul 31, 2022
819eec8
chore(deps): update dependency @size-limit/file to v8 (#36802)
renovate[bot] Jul 31, 2022
ae43c26
fix: upload list item flashes after being removed in react18 (#36801)
zhengjitf Jul 31, 2022
587c911
Fix custom less variable being overwritten (#36805)
strivelen Aug 1, 2022
a09377f
docs: add changelog 4.22.3 (#36812)
vagusX Aug 1, 2022
ab0b6b2
chore: clean Drawer ts def (#36823)
zombieJ Aug 1, 2022
01bd2f2
docs: Add tag info (#36843)
zombieJ Aug 2, 2022
5b45a8f
style(drawer): fix drawer nesting style pollution (#36845)
yanm1ng Aug 2, 2022
4d7ef8d
test: move test cases to testing-library for Skeleton (#36856)
foryuki Aug 3, 2022
01087b2
refactor: rewrite header and footer by FunctionComponent (#36851)
li-jia-nan Aug 3, 2022
fff1130
docs: Tech TS params usage (#36865)
zombieJ Aug 3, 2022
4fc00ec
fix: strong type (#36868)
li-jia-nan Aug 3, 2022
7d47655
Merge branch 'master' into zl/v4.21.7-sync
Aug 3, 2022
2e20a8d
feat: sync 4.22.3 version from antd and modified the title's font siz…
Aug 4, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
<!--
First of all, thank you for your contribution! 😄

New feature please send a pull request to feature branch, and rest to master branch.
Pull requests will be merged after one of the collaborators approve.
Please makes sure that these forms are filled before submitting your pull request, thank you!
For requesting to pull a new feature or bugfix, please send it from a feature/bugfix branch based on the `master` branch.

Before submitting your pull request, please make sure the checklist below is confirmed.

Your pull requests will be merged after one of the collaborators approve.

Thank you!

-->

[[中文版模板 / Chinese template](https://github.com/ant-design/ant-design/blob/master/.github/PULL_REQUEST_TEMPLATE/pr_cn.md)]
Expand All @@ -29,15 +34,15 @@ Please makes sure that these forms are filled before submitting your pull reques
### 🔗 Related issue link

<!--
1. Describe the source of requirement, like related issue link.
1. Put the related issue or discussion links here.
-->

### 💡 Background and solution

<!--
1. Describe the problem and the scenario.
2. GIF or snapshot should be provided if includes UI/interactive modification.
3. How to fix the problem, and list final API implementation and usage sample if that is a new feature.
3. How to fix the problem, and list the final API implementation and usage sample if that is a new feature.
-->

### 📝 Changelog
Expand All @@ -51,7 +56,7 @@ Describe changes from the user side, and list all potential break changes or oth
| 🇺🇸 English | |
| 🇨🇳 Chinese | |

### ☑️ Self Check before Merge
### ☑️ Self-Check before Merge

⚠️ Please check all items below before review. ⚠️

Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/size-limit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: 📦 Compressed Size(size-limit)

on:
pull_request:
types: [opened, synchronize]

# Cancel prev CI if new commit come
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
compressed-size:
permissions:
contents: read # for actions/checkout to fetch code
pull-requests: write # for preactjs/compressed-size-action to create PR comments
runs-on: ubuntu-latest
env:
CI_JOB_NUMBER: 1

steps:
- uses: actions/checkout@v3
- uses: andresz1/size-limit-action@v1
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
pattern: "./dist/**/*.min.{js,css}"
build-script: "dist:esbuild-no-dup-check"
clean-script: "clean-lockfiles"
48 changes: 48 additions & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ timeline: true

| infrad version | antd version | update content | time |
| --- | --- | --- | --- |
| 4.22.3 | 4.22.3 | 1.Synchronize the update of antd 4.22.3 version<br/>2.Modified the title's font size and font weight of the PageHeader component | 2022-08-04 |
| 4.21.7 | 4.21.7 | Synchronize the update of antd 4.21.7 version | 2022-07-25 |
| 4.21.6 | 4.21.6 | Synchronize the update of antd 4.21.6 version | 2022-07-15 |
| 4.21.4 | 4.21.4 | 1.Synchronize the update of antd 4.21.4 version<br/>2.Modified some styles of the table component<br/>3.The tooltip component has been rolled back to keep it consistent with antd<br/>4.Fix the style problem in the small state of the progress component<br/>5.Fixed the enter event penetration problem of the sorting cell of the table component | 2022-07-04 |
Expand Down Expand Up @@ -38,6 +39,53 @@ if you have some problem, welcome to connect `taofeng.yang@shopee.com` or `lay.z

---

## 4.22.3

`2022-08-01`

- 🐞 Fixed flickering when `fileList` updating in Uploader with React 18. [#36801](https://github.com/ant-design/ant-design/pull/36801) [@zhengjitf](https://github.com/zhengjitf)
- 🐞 Fix Form.Item with small size `labelCol` and `wrapperCol` not break line in vertical layout. [#36800](https://github.com/ant-design/ant-design/pull/36800)
- 🐞 Fix Row in flex layout takes too wide space by default. [#36770](https://github.com/ant-design/ant-design/pull/36770)

## 4.22.2

`2022-07-28`

- 💄 Adjust Collapse title click region which will be fully width when `collapsible=default` now. [#36761](https://github.com/ant-design/ant-design/pull/36761)
- Drawer
- 🐞 Fix Drawer not work in 360 browser. [#36748](https://github.com/ant-design/ant-design/pull/36748)
- 🐞 Revert back panel style into wrapper dom node in case developer use `contentWrapperStyle` for overwrite. [#36748](https://github.com/ant-design/ant-design/pull/36748)
- 🐞 Fix for the string type as `width/height` value and warning which should use number type instead. [#284](https://github.com/react-component/drawer/pull/284)

## 4.22.1

`2022-07-27`

- 🐞 Fix Drawer with percentage width display issue. [#36729](https://github.com/ant-design/ant-design/pull/36729)

## 4.22.0

`2022-07-26`

- Form
- 🔥 Form support `Form.Item.useStatus` for custom components to get Form.Item validate status. [#36486](https://github.com/ant-design/ant-design/pull/36486)
- 🆕 Form support `setFieldValue` to simplify config array index value. [#36058](https://github.com/ant-design/ant-design/pull/36058)
- 🐞 Fix Form.Item shaking when trigger validate so fast. [#36575](https://github.com/ant-design/ant-design/pull/36575)
- 🆕 Radio.Group support `onBlur` and `onFocus` props. [#36041](https://github.com/ant-design/ant-design/pull/36041)
- 🆕 Typography `ellipsis.tooltip` supports a object for Tooltip props. [#36099](https://github.com/ant-design/ant-design/pull/36099)
- 🛠 Refactor Drawer to remove directly style control which helps more React way. [#36672](https://github.com/ant-design/ant-design/pull/36672)
- 🛠 Refactor Sketelon.Button square shape style that its width is equal to height, and old become the default. [#36123](https://github.com/ant-design/ant-design/pull/36123) [@alanhaledc](https://github.com/alanhaledc)
- 🐞 Fix Modal.confirm `onCancel` argument close is not a function sometimes. [#36600](https://github.com/ant-design/ant-design/pull/36600) [@Wxh16144](https://github.com/Wxh16144)
- 🐞 Revert [#36439](https://github.com/ant-design/ant-design/pull/36439) to fix the problem of incorrect status when uploading and deleting files, and fix the status color change when Upload removes files again change problem. [#36706](https://github.com/ant-design/ant-design/pull/36706)
- Tree
- 🛠 Tree/TreeSelect `switcherIcon` argument support more parameters from `{ expanded: boolean }` to `AntTreeNodeProps`. [#36651](https://github.com/ant-design/ant-design/pull/36651) [@alanhaledc](https://github.com/alanhaledc)
- 🐞 Fix Tree `draggable` Fn params type from AntTreeNode to DataNode. [#36648](https://github.com/ant-design/ant-design/pull/36648) [@tianyuan233](https://github.com/tianyuan233)
- Table
- 💄 Fix Table extra shadow and scrollbar when all columns are fixed. [#36606](https://github.com/ant-design/ant-design/pull/36606) [@dashaowang](https://github.com/dashaowang)
- 💄 Fix Table tree data ellipsis style problem. [#36608](https://github.com/ant-design/ant-design/pull/36608)
- 🌐 Localization
- 🇱🇰 Add Sri Lanka locale. [#36149](https://github.com/ant-design/ant-design/pull/36149) [@sayuri-gi](https://github.com/sayuri-gi)

## 4.21.7

`2022-07-18`
Expand Down
48 changes: 48 additions & 0 deletions CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ timeline: true

| infrad 版本号 | 对应 antd 版本号 | 更新内容 | 时间 |
| --- | --- | --- | --- |
| 4.22.3 | 4.22.3 | 1.同步 antd 4.22.3 版本的更新<br/>2.修改了 PageHeader 组件的 title 字重与字体大小 | 2022-08-04 |
| 4.21.7 | 4.21.7 | 同步 antd 4.21.7 版本的更新 | 2022-07-25 |
| 4.21.6 | 4.21.6 | 同步 antd 4.21.6 版本的更新 | 2022-07-15 |
| 4.21.4 | 4.21.4 | 1.同步 antd 4.21.4 版本的更新<br/>2.修改了 table 组件的部分样式<br/>3.回退 tooltip 组件保持与 Antd 一致<br/>4.修复 progress 组件在 small 状态下的样式问题<br/>5.修复了 table 组件排序单元格 enter 事件穿透问题 | 2022-07-04 |
Expand Down Expand Up @@ -39,6 +40,53 @@ timeline: true

---

## 4.22.3

`2022-08-01`

- 🐞 修复在 React 18 版本中 Uploader 的 `fileList` 发生更新后出现闪烁的情况。[#36801](https://github.com/ant-design/ant-design/pull/36801) [@zhengjitf](https://github.com/zhengjitf)
- 🐞 修复 Form.Item 在垂直布局下使用小尺寸的 `labelCol` 和 `wrapperCol` 时不换行的问题。[#36800](https://github.com/ant-design/ant-design/pull/36800)
- 🐞 修复 Row 在 flex 布局中占据过多空间的问题。[#36770](https://github.com/ant-design/ant-design/pull/36770)

## 4.22.2

`2022-07-28`

- 💄 调整 Collapse 标题文本在 `collapsible=default` 时为完整宽度点击区域。[#36761](https://github.com/ant-design/ant-design/pull/36761)
- Drawer
- 🐞 修复 Drawer 在 360 浏览器不生效的问题。[#36748](https://github.com/ant-design/ant-design/pull/36748)
- 🐞 回滚将样式恢复至包裹层以防止原本通过 `contentWrapperStyle` 覆盖样式的用法。[#36748](https://github.com/ant-design/ant-design/pull/36748)
- 🐞 修复兼容以 string 类型作为 `width/height` 的用法,并且警告用户应当使用 number 类型。[#284](https://github.com/react-component/drawer/pull/284)

## 4.22.1

`2022-07-27`

- 🐞 修复 Drawer 使用百分比宽度时的展示问题。[#36729](https://github.com/ant-design/ant-design/pull/36729)

## 4.22.0

`2022-07-26`

- Form
- 🔥 Form 新增 `Form.Item.useStatus` 用于获取 Form.Item 的校验状态。[#36486](https://github.com/ant-design/ant-design/pull/36486)
- 🆕 Form 支持 `setFieldValue` 以简化设置数字单个值的操作流程。[#36058](https://github.com/ant-design/ant-design/pull/36058)
- 🐞 修复 Form.Item 在快速切换校验状态时高度抖动的问题。[#36575](https://github.com/ant-design/ant-design/pull/36575)
- 🆕 Radio.Group 支持 `onBlur` 和 `onFocus` 属性。[#36041](https://github.com/ant-design/ant-design/pull/36041)
- 🆕 Typography `ellipsis.tooltip` 属性支持传入一个对象。[#36099](https://github.com/ant-design/ant-design/pull/36099)
- 🛠 重构 Drawer 移除直接的 dom 操作以使其更符合 React 运作方式。[#36672](https://github.com/ant-design/ant-design/pull/36672)
- 🛠 重构 Sketelon.Button square shape 样式为宽高相等,之前的 square 改为默认样式。[#36123](https://github.com/ant-design/ant-design/pull/36123) [@alanhaledc](https://github.com/alanhaledc)
- 🐞 修复 Modal.confirm 中 `onCancel(close)` 参数有时候不是 function 的问题。[#36600](https://github.com/ant-design/ant-design/pull/36600) [@Wxh16144](https://github.com/Wxh16144)
- 🐞 回滚 [#36439](https://github.com/ant-design/ant-design/pull/36439) 以修复上传和删除文件时状态不对的问题,并再次修复 Upload 移除文件时状态色会变化的问题。[#36706](https://github.com/ant-design/ant-design/pull/36706)
- Tree
- 🛠 Tree/TreeSelect `switcherIcon` 参数现在支持完整 TreeNode 属性,从 `{ expanded: boolean }` 变为 `AntTreeNodeProps`。[#36651](https://github.com/ant-design/ant-design/pull/36651) [@alanhaledc](https://github.com/alanhaledc)
- 🐞 修改 Tree `draggable` 函数的参数类型由 AntTreeNode 改为 DataNode。[#36648](https://github.com/ant-design/ant-design/pull/36648) [@tianyuan233](https://github.com/tianyuan233)
- Table
- 💄 修复 Table 固定列额外阴影和滚动条样式的问题。[#36606](https://github.com/ant-design/ant-design/pull/36606) [@dashaowang](https://github.com/dashaowang)
- 💄 修复 Table 树形数据固定列的省略样式错位的问题。[#36608](https://github.com/ant-design/ant-design/pull/36608)
- 🌐 国际化
- 🇱🇰 添加斯里兰卡语言。[#36149](https://github.com/ant-design/ant-design/pull/36149) [@sayuri-gi](https://github.com/sayuri-gi)

## 4.21.7

`2022-07-18`
Expand Down
18 changes: 12 additions & 6 deletions components/_util/getScroll.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function isWindow(obj: any) {
export function isWindow(obj: any): obj is Window {
return obj !== null && obj !== undefined && obj === obj.window;
}

Expand All @@ -12,16 +12,22 @@ export default function getScroll(
const method = top ? 'scrollTop' : 'scrollLeft';
let result = 0;
if (isWindow(target)) {
result = (target as Window)[top ? 'pageYOffset' : 'pageXOffset'];
result = target[top ? 'pageYOffset' : 'pageXOffset'];
} else if (target instanceof Document) {
result = target.documentElement[method];
} else if (target instanceof HTMLElement) {
result = target[method];
} else if (target) {
result = (target as HTMLElement)[method];
// According to the type inference, the `target` is `never` type.
// Since we configured the loose mode type checking, and supports mocking the target with such shape below::
// `{ documentElement: { scrollLeft: 200, scrollTop: 400 } }`,
// the program may falls into this branch.
// Check the corresponding tests for details. Don't sure what is the real scenario this happens.
result = target[method];
}

if (target && !isWindow(target) && typeof result !== 'number') {
result = ((target as HTMLElement).ownerDocument || (target as Document)).documentElement?.[
method
];
result = (target.ownerDocument ?? target).documentElement?.[method];
}
return result;
}
Loading