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

feat: Sync antd 4.18.3 version update #33

Merged
merged 527 commits into from
Jan 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
527 commits
Select commit Hold shift + click to select a range
0e7d82b
refactor: Use getKeyThenIncreaseKey in message notice function (#32642)
Jtree03 Oct 26, 2021
a09e1ad
fix: Avoid selecting the placeholder of input control on Chrome brows…
cw1997 Oct 26, 2021
16bb548
feat: add showCancel prop for popconfirm (#32620)
cwjTerrace Oct 26, 2021
a35b567
fix: Collapse style issue when expandIconPosition is right (#32648)
hydraZty Oct 27, 2021
7065e03
style: fix Upload picture loading style (#32664)
afc163 Oct 27, 2021
4d9b6dc
docs: form register demo add textarea item (#32669)
cwjTerrace Oct 28, 2021
70e1d6a
feat: Modal.xxx support wrapClassName prop (#32676)
cwjTerrace Oct 28, 2021
b0e0e59
chore(ci): update release workflow (#32668)
zwlafk Oct 28, 2021
b4d1612
docs: add Version (#32678)
cwjTerrace Oct 29, 2021
5a1d815
chore: auto merge branchs (#32686)
github-actions[bot] Oct 29, 2021
e40b02b
docs: fix List demo
afc163 Oct 29, 2021
184402a
feat: Form.Item no longer need `fieldKey` anymore (#32689)
zombieJ Oct 29, 2021
a098208
style: fix Card tabs of left position (#32695)
afc163 Oct 30, 2021
d1f87cc
feat: input number support prefix (#32600)
Austaras Oct 30, 2021
6d06f40
docs(:sparkles:): release 4.17.0-alpha.9 (#32705)
afc163 Oct 31, 2021
439598c
chore: auto merge branchs (#32704)
github-actions[bot] Oct 31, 2021
884c8ef
fix: table loading css error when sticky is true (#32703)
miloudbelaabed Oct 31, 2021
afb271c
chore: improve overview card style
afc163 Nov 1, 2021
2bd673f
chore: Create bug-report.yml (#32716)
afc163 Nov 2, 2021
e6ebabd
Rename bug-report.yml to 1-bug-report.yml
afc163 Nov 2, 2021
6dcaa44
Rename 1-bug-report.yml to template-1-bug-report.yml
afc163 Nov 2, 2021
75fde38
chore: add ISSUE_TEMPLATE
afc163 Nov 2, 2021
5257260
chore: add ISSUE_TEMPLATE
afc163 Nov 2, 2021
d9ce314
chore: update ISSUE_TEMPLATE
afc163 Nov 2, 2021
c88a03d
chore: update ISSUE_TEMPLATE
afc163 Nov 2, 2021
c179c39
fix: Typography ellipsis with 1 row doesn't wrap (#32735)
hydraZty Nov 4, 2021
9fa79dc
fix: Input disabled should not keep focus style (#32739)
zombieJ Nov 4, 2021
0224151
fix: tweak Steps vertical progressDot style (#32742)
afc163 Nov 4, 2021
410e92f
chore: update issue template (#32749)
afc163 Nov 4, 2021
ea52572
chore(💄): fix issue template
afc163 Nov 4, 2021
5360722
chore: update form demo
afc163 Nov 5, 2021
f88bd4d
refactor: Move part mixins less to theme instead (#32763)
zombieJ Nov 5, 2021
fa65cd3
chore(deps-dev): bump @types/gtag.js from 0.0.7 to 0.0.8 (#32746)
dependabot[bot] Nov 5, 2021
10a8578
fix: Spin tip can be react node (#32733)
tychenjiajun Nov 5, 2021
b1ea2e4
fix: opening animation of the bottom drawer (#32761)
solitia7125 Nov 5, 2021
f7380b7
chore(deps-dev): bump eslint-plugin-unicorn from 37.0.1 to 38.0.0 (#3…
dependabot[bot] Nov 5, 2021
cf15379
docs: add 4.17.0-alpha.10 changelog (#32775)
chenshuai2144 Nov 8, 2021
ecc54dd
fix: codepen demo error using hooks (#32766)
X-Jagger Nov 8, 2021
a73f4a3
docs: Fix the link in Table's API doc (#32779)
pobch Nov 8, 2021
8a3b5d9
fix: Form horizontal broken style when select item is too long (#32778)
afc163 Nov 8, 2021
90aff3a
docs: fix Spin API ts description (#32786)
DanielLeefu Nov 8, 2021
852a451
chore(Tag): update tween-one (#32800)
jljsj33 Nov 10, 2021
5f642cb
fix: tag animation demo (#32804)
jljsj33 Nov 10, 2021
01887b4
fix: if breadcrumbRender return false, breadcrumb will hidden (#32738)
chenshuai2144 Nov 10, 2021
1d5f2e2
chore: extends limit (#32814)
zombieJ Nov 11, 2021
9bc148a
feat: ConfigProvider add form colon (#32818)
Patersooon Nov 11, 2021
7ed7c60
style: fix Tree icon align bug (#32822)
afc163 Nov 11, 2021
43569b9
docs: update customize-theme-variable.zh-CN.md
afc163 Nov 11, 2021
3f495bb
chore: Upgrade react router v6 (#32821)
afc163 Nov 11, 2021
ce006bd
docs: Version Robin (#32830)
zombieJ Nov 12, 2021
958df3d
docs: add demo for Input.Group (#32837)
afc163 Nov 12, 2021
bac876a
chore: auto merge branchs (#32839)
github-actions[bot] Nov 12, 2021
491cc4f
fix: borderLeftRadius error for Input.Search #32808 (#32812)
KAROTT7 Nov 13, 2021
7e2dc80
chore(.gitignore):add ignore for pnpm (#32860)
Sepush Nov 15, 2021
3a5b6b8
chore(deps-dev): bump stylelint-config-standard from 23.0.0 to 24.0.0…
dependabot[bot] Nov 15, 2021
870b72a
docs: 4.17.0 changelog (#32859)
zombieJ Nov 15, 2021
c92138d
style: use @height-base in PageHeader (#32883)
afc163 Nov 16, 2021
ed08303
chore: fix site in IE11 (#32868)
afc163 Nov 16, 2021
899af67
fix: Move variable related code to theme file (#32887)
zombieJ Nov 16, 2021
2f96995
chore: 4.17.1-alpha.0
zombieJ Nov 16, 2021
c1c51d5
test: Patch test case of mixins (#32889)
zombieJ Nov 16, 2021
a008ebb
docs: Update Cascader changeOnSelect desc
zombieJ Nov 17, 2021
892bf99
feat: Expand pl_PL translations to latest translation spec (#32896)
MichalPodeszwa Nov 17, 2021
2424a1a
style: fix placholder color missing (#32915)
afc163 Nov 17, 2021
dba842f
chore(deps-dev): bump eslint-plugin-compat from 3.13.0 to 4.0.0 (#32917)
dependabot[bot] Nov 17, 2021
39f7ec5
fix: Tabs editable missing remove icon style in dropdown (#32919)
zombieJ Nov 17, 2021
b0e7dd5
refatcor: Move mixins back (#32920)
zombieJ Nov 17, 2021
e720706
chore: bump 4.17.1-alpha.1
zombieJ Nov 17, 2021
3fafb7f
fix: `Submit` typo (#32933)
JounQin Nov 18, 2021
077ff7c
fix: inherit `itemRender` typing from `rc-pagination` (#32931)
JounQin Nov 18, 2021
b03fae3
chore: fix types declaration (#32935)
huangkairan Nov 18, 2021
4ca6976
chore: remove unused css code
afc163 Nov 18, 2021
3084479
fix: Modal.method bodyStyle not working (#32934)
jin-benben Nov 18, 2021
16432ae
chore(deps-dev): bump typescript from 4.4.4 to 4.5.2 (#32940)
dependabot[bot] Nov 18, 2021
47d480b
docs: Update customize-theme-variable document (#32930)
sunnylqm Nov 19, 2021
9166e99
refactor: Remove unnecessary div containers (#31492)
ppbl Nov 19, 2021
f0c8402
feat: Add km_KH locale to component (#32853)
vireakkeosokvibol Nov 20, 2021
0c66aee
style: fix menu link color in collapsed tooltip (#32956)
afc163 Nov 20, 2021
c8cddc1
docs: 4.17.1 changelog (#32968)
PeachScript Nov 22, 2021
38ecbd7
fix: remove space (#32974)
cwjTerrace Nov 22, 2021
0280857
chore(deps-dev): bump eslint-plugin-unicorn from 38.0.1 to 39.0.0 (#3…
dependabot[bot] Nov 22, 2021
37442ae
fix: Form layout span 24 usage (#32981)
afc163 Nov 23, 2021
b926c53
docs: site build script update (#32984)
zombieJ Nov 23, 2021
3886ad6
refactor: Tree support generic (#32992)
zombieJ Nov 23, 2021
34d23c8
fix: Input.Search enterButton don't trigger click event (#32999)
afc163 Nov 24, 2021
c1d17fc
test: Update snapshot
zombieJ Nov 24, 2021
e7ac69e
fix: Cascader typescript (#33008)
zombieJ Nov 24, 2021
5f9ed37
fix: Updated translations in et_EE.tsx (#33005)
wedeso Nov 25, 2021
c1b1d8c
chore: fix eslint
afc163 Nov 25, 2021
d9ce96a
docs: fix Drawer closable description (#33018)
GannonSun Nov 25, 2021
285fa6e
fix: Modal centered not centered (#33022)
afc163 Nov 25, 2021
ededd9a
chore: use https://new-issue.ant.design back (#33029)
afc163 Nov 25, 2021
4dcc85e
docs: fix Drawer onClose description (#33031)
dreampasss Nov 26, 2021
1066793
fix: en-US#docs-fix Drawer closable description (#33035)
GaboMendez Nov 26, 2021
6f837e0
chore: upgrade @ant-design/bisheng-plugin
afc163 Nov 26, 2021
24ec3ba
chore: merge master
zombieJ Nov 26, 2021
67bfa39
Merge pull request #33038 from ant-design/feature-merge-master
zombieJ Nov 26, 2021
20d5502
chore(deps-dev): bump eslint-config-airbnb from 18.2.1 to 19.0.0 (#32…
dependabot[bot] Nov 26, 2021
142bda8
chore: opt of theme gen
zombieJ Nov 26, 2021
ea5bb0f
chore: speed up site build mode
zombieJ Nov 26, 2021
90bfbe2
Merge pull request #33045 from ant-design/opt-theme
zombieJ Nov 26, 2021
dd1670a
chore: merge master
zombieJ Nov 26, 2021
122fd8b
test: Update snapshot
zombieJ Nov 26, 2021
78a67d6
chore: fix lint
zombieJ Nov 26, 2021
c162045
Merge pull request #33047 from ant-design/feature-merge-master
zombieJ Nov 26, 2021
2ab4e56
docs(✨): release 4.17.2 (#33051)
afc163 Nov 26, 2021
2b152b0
feat: Support Table.EXPAND_COLUMN & Table.SELECTION_COLUMN (#33026)
zombieJ Nov 26, 2021
e7f2359
feat: support Form labelWrap (#33048)
afc163 Nov 26, 2021
264b351
fix: TextArea height bug (#33055)
afc163 Nov 27, 2021
a95030c
ci: fix site deploy
xrkffgg Nov 27, 2021
97ee6df
fix: Back of relative (#33070)
zombieJ Nov 29, 2021
c6c0662
docs: Cascader displayRender data (#33087)
zombieJ Nov 30, 2021
aae945d
docs: update demo
afc163 Dec 1, 2021
80a05f9
docs: clarify select option title doc
afc163 Dec 1, 2021
69da0de
fix(locale): Add missing zh-TW translation for Form.optional, fix #30…
dengfuping Dec 1, 2021
9b46aa5
fix: carousel type declaration (#33109)
q1uxu Dec 1, 2021
de33041
chore: refactor some code (#33034)
FrankFang Dec 1, 2021
1698426
test: Update snapshot
zombieJ Dec 1, 2021
ad0aa8a
chore: auto merge branchs (#33116)
github-actions[bot] Dec 1, 2021
4cc0557
refactor: Move Table `rowSpan` & `colSpan` demo to `onCell` instead (…
zombieJ Dec 2, 2021
b4b44da
fix: Radio dot offset when zooming (#33086)
hydraZty Dec 2, 2021
441eb64
chore: bump version (#33124)
zombieJ Dec 2, 2021
e49a451
fix: Select width bug when searching (#32988)
afc163 Dec 2, 2021
98e36aa
test: add test helper for accessibility
StefSchenkelaars Dec 2, 2021
f0fb377
chore(deps-dev): bump react-helmet-async from 1.1.2 to 1.2.0 (#33133)
dependabot[bot] Dec 3, 2021
bcb5002
chore: fix ci in npm 8
afc163 Dec 3, 2021
ef8179e
chore: remove react-virtualized from demo
afc163 Dec 3, 2021
e0c777d
refactor: replace let with const (#33134)
sunkuangdong Dec 3, 2021
46e700f
Merge branch 'accessibility-tests' of https://github.com/StefSchenkel…
afc163 Dec 3, 2021
9f78bf2
Merge branch 'StefSchenkelaars-accessibility-tests'
afc163 Dec 3, 2021
b9a381e
chore(deps-dev): bump jsdom from 18.1.1 to 19.0.0 (#33156)
dependabot[bot] Dec 3, 2021
b34f72b
test: fix ci warnings (#33160)
afc163 Dec 4, 2021
ea7c41b
fix: anchor add prefixCls (#33085)
tangjinzhou Dec 4, 2021
830d3a5
docs: update badge
xrkffgg Dec 5, 2021
90f062e
ci: fix checkout version (#33164)
xrkffgg Dec 5, 2021
3881e5d
test: fix test error
xrkffgg Dec 5, 2021
97fd6d5
Revert "test: fix test error"
xrkffgg Dec 5, 2021
a04a4ef
Merge pull request #33163 from ant-design/master
xrkffgg Dec 5, 2021
d4b4edf
fix: fix badge animation end not trigger when parent is display:none …
songlinn Dec 6, 2021
499ee6c
test: fix Alert test (#33167)
xrkffgg Dec 6, 2021
eb3cf79
docs: Update index.zh-CN.md (#33184)
zhichenshaw Dec 7, 2021
2df7cc6
fix: Upload `data` type (#33193)
afc163 Dec 7, 2021
ad3ba27
fix: radio cursor style (#33198)
tangjinzhou Dec 8, 2021
1f22ebb
chore: auto merge branchs (#33200)
github-actions[bot] Dec 8, 2021
1db4ac2
fix: Drawer title position (#33205)
afc163 Dec 8, 2021
602726d
fix(locale): Add missing zh-TW translation for Transfer (#33209)
dengfuping Dec 8, 2021
d7b3079
chore: auto merge branchs (#33206)
github-actions[bot] Dec 8, 2021
28855c2
fix: Button loading style missing in Firefox (#33199)
afc163 Dec 8, 2021
6ea37b5
docs(:sparkles:): release 4.17.3 (#33213)
afc163 Dec 8, 2021
3977881
ci: fix footer click (#33214)
xrkffgg Dec 9, 2021
4f92908
New Pull Request for README-sp_MX.md (#33226)
mursulis Dec 12, 2021
34dbf5f
fix: Form.Item的name属性改为parentNode,dom-align 死循环,内存溢出的bug (#31846)
DaoxingHuang Dec 12, 2021
678cf49
docs: update customize-theme-variable.md (#33272)
banchichen Dec 12, 2021
b164223
fix: Revert "fix: TextArea missing maxLength attr." (#33312)
afc163 Dec 15, 2021
d91ebe9
test: fix initial test case (#33313)
zombieJ Dec 15, 2021
42bc6dc
Merge remote-tracking branch 'origin/master' into feature-merge-master
zombieJ Dec 16, 2021
396cfab
test: Update snapshot
zombieJ Dec 16, 2021
6946f0b
chore: auto merge branchs (#33322)
github-actions[bot] Dec 16, 2021
bcf4f1d
docs(faq): correct 'Ant Design Mobile' (#33341)
curly210102 Dec 17, 2021
448da57
chore(deps): update dependency antd-img-crop to v4 (#33352)
renovate[bot] Dec 19, 2021
8135ef0
docs: add 4.17.4 changelog (#33354)
chenshuai2144 Dec 20, 2021
e1a05c2
chore: remove whitespace
afc163 Dec 21, 2021
aa64c8b
fix(slider): disabled rail background-color error (#33369)
chen-jingjie Dec 21, 2021
5aecc1b
docs: improve changelog
afc163 Dec 21, 2021
0f8fc6f
Add Capture prop to Upload Component Typescript Definition (#33370)
MichalPodeszwa Dec 21, 2021
fb28661
chore: add sorting translations for fi_FI (#33372)
ZakarFin Dec 21, 2021
ff88851
chore: Bump Select related deps (#33364)
zombieJ Dec 21, 2021
f1c6d37
fix: Missing Catalan (ca_ES) translation key: Form.optional #33280 (#…
LongHaoo Dec 22, 2021
5c3e483
docs: fixing document issues (#33259)
binyellow Dec 22, 2021
2df1118
test: Demo check popup content (#33378)
zombieJ Dec 23, 2021
0edf042
fix: Descriptions default overflow value (#33392)
afc163 Dec 23, 2021
f1e0c9c
chore: Internal Menu interface for ProLayout usage (#33399)
zombieJ Dec 24, 2021
9c086c5
fix: Skeleton missing style (#33405)
zombieJ Dec 24, 2021
7f09f0a
chore(deps): update dependency scrollama to v3 (#33418)
renovate[bot] Dec 26, 2021
73ac1b1
docs: Update practical-projects.zh-CN.md (#33419)
hxmwr Dec 27, 2021
6ed4d85
Merge remote-tracking branch 'origin/master' into feature-merge-master
zombieJ Dec 27, 2021
7ae4517
test: update snapshot
zombieJ Dec 27, 2021
b3cc1e5
chore: auto merge branchs (#33422)
github-actions[bot] Dec 27, 2021
24458eb
chore: auto merge branchs (#33423)
github-actions[bot] Dec 27, 2021
41ac1f0
chore: 4.18.0 changelog (#33424)
zombieJ Dec 27, 2021
1d738d1
fix: not allow setState in Popconfirm if unmounted
MadCcc Dec 27, 2021
4f4e2f8
Docs: fix fieldNames options typo (#33241)
Dunqing Dec 27, 2021
629cacc
fix: The current change of pagination triggers onChange (#33411)
2724635499 Dec 27, 2021
67bf890
docs: Update use-in-typescript.zh-CN.md (#33434)
xianxin011 Dec 28, 2021
3324bb2
docs: fix version error (#33443)
cwjTerrace Dec 28, 2021
56c675c
fix: Dropdown button destroyPopupOnHide prop not working #33433 (#33442)
LongHaoo Dec 28, 2021
8038974
docs: update changelog
afc163 Dec 28, 2021
a90ad06
test: Update snapshot
zombieJ Dec 28, 2021
727e394
feat: add useMountedRef hook
MadCcc Dec 28, 2021
19e4b57
chore: revert import order change
MadCcc Dec 28, 2021
c6188fd
fix(Divider): with text dashed border color error (#33452)
chen-jingjie Dec 28, 2021
6d09878
test: add test for react memory leak warning in Popconfirm
MadCcc Dec 29, 2021
0c621c4
fix: input not support number value (#33462)
zombieJ Dec 29, 2021
d53e16f
docs: Update index.en-US.md (#33464)
localpath Dec 29, 2021
285e2bd
refactor: refactor useMountedRef to useMounted
MadCcc Dec 29, 2021
3effa51
refactor: refactor useMounted to useDestroyed
MadCcc Dec 29, 2021
7df1d52
Merge pull request #33432 from MadCcc/dev
MadCcc Dec 29, 2021
3913fd5
docs: 4.18.1 changelog (#33476)
zombieJ Dec 29, 2021
fb59bd2
docs: improve Cascader API documentation (#33484)
afc163 Dec 30, 2021
150bd23
docs: improve changelog
afc163 Dec 30, 2021
9ec2709
Revert "fix: The current change of pagination triggers onChange (#33…
afc163 Dec 30, 2021
e94f467
docs: release 4.18.2 (#33491)
afc163 Dec 30, 2021
0976e9e
test: add test case for #33487 (#33492)
afc163 Dec 31, 2021
c0d2c7e
chore: remove whitespace
afc163 Dec 31, 2021
a926aa5
fix: Form should have default validateMessages in en locale (#33511)
afc163 Dec 31, 2021
659571e
fix missing words in commets (#33514)
seki2020 Jan 2, 2022
8ed607d
chore(deps): update dependency eslint-plugin-unicorn to v40 (#33520)
renovate[bot] Jan 2, 2022
a4d1396
fix: image demo test in argo-ci (#33523)
afc163 Jan 2, 2022
a559742
Update README-sp_MX.md (#33535)
bison92 Jan 4, 2022
a801933
fix: Select tag margin issue when using tagRender (#33539)
afc163 Jan 4, 2022
a29154e
docs: update upload-png-only demo (#33544)
xqa Jan 4, 2022
7caa03e
docs: fix update demo
afc163 Jan 4, 2022
970dd8c
docs: correct react-router usage for breadcrumb (#33551)
PeachScript Jan 4, 2022
b8ec712
ci: update verify-files-modify (#33552)
xrkffgg Jan 4, 2022
ef51e4e
docs: correct semicolon in upload demo (#33544) (#33553)
PeachScript Jan 4, 2022
cf5eac1
fix: PageHeader state update error (#33546)
wuifdesign Jan 4, 2022
36a5485
fix: Avoid mutating Event properties that are supposed to be getters …
developit Jan 4, 2022
9a6ae9b
perf: upgrade rc-table (#33554)
afc163 Jan 5, 2022
8ebb4a3
fix: Upload types for pass generic (#33543)
woochanleee Jan 5, 2022
5ba83cd
fix: CardGridProps should expose Div Properties like onClick #33264 (…
LongHaoo Jan 5, 2022
7d0193e
style: remove svg reset styles (#33579)
afc163 Jan 6, 2022
e38bead
chore: classnames now provides its own type definitions, so we do not…
yoyo837 Jan 7, 2022
690e288
chore(deps): update dependency concurrently to v7 (#33630)
renovate[bot] Jan 10, 2022
4ebc61f
fix: Table emptynode fixed display (#33610)
hemengke1997 Jan 10, 2022
6e17649
docs(TreeSelect): add one missing field (#33619)
csjkevin Jan 10, 2022
6fd5d2a
fix: table tree hover error #33453 (#33638)
LongHaoo Jan 10, 2022
34f2978
feat: menu support home & end key (#33642)
MadCcc Jan 10, 2022
ec5b33e
fix: Form.Item shaking when `help` is empty string (#33644)
zombieJ Jan 10, 2022
b18c09c
docs: add changelog 4.18.3 (#33639)
xrkffgg Jan 10, 2022
0eedd0b
docs: add ProComponents cards (#33647)
chenshuai2144 Jan 11, 2022
98b2df4
docs: fix changelog page build issue
zombieJ Jan 11, 2022
35aaa49
docs: improve changelog of 4.18.3 (#33668)
afc163 Jan 11, 2022
18296d1
refactor: opt for typography Tooltip perf (#33669)
zombieJ Jan 11, 2022
10c3ec6
fix: Warning: Encountered two children with the same key, 'seperator'…
dimbslmh Jan 11, 2022
7a3f7ba
test: improve layout demo (#33653)
afc163 Jan 12, 2022
29f68f9
fix: checkbox group support options other than string (#33678)
MadCcc Jan 12, 2022
319d8f0
fix: Image 图片底部空白 #30825 (#33631)
fanerge Jan 12, 2022
1c38ef9
fix: remove input showCount attribute from parent component (#33686)
whwangms Jan 12, 2022
5c7d29d
ci: simple files check actions
xrkffgg Jan 12, 2022
a8495ba
ci: preview-deploy download add run_id (#33680)
94dreamer Jan 12, 2022
2d484bb
fix: Form validateMessages in nested ConfigProvider (#33705)
afc163 Jan 13, 2022
aecf52e
fix: Input can not be hidden when prefix is set (#33706)
hydraZty Jan 13, 2022
80e7cc0
fix: <Icon component={HomeOutlined} /> align issue (#33709)
afc163 Jan 13, 2022
5f9e3a8
fix: Steps tail shouldn't show when type is navigation and labelPlace…
toSayNothing Jan 14, 2022
e38c9c5
fix: <Icon component={SyncOutlined} spin /> shake issue. (#33726)
JX-Zhuang Jan 14, 2022
f81e392
docs: add controlled preview demo for Image (#33727)
MadCcc Jan 14, 2022
f53e615
fix: Invalid memoized context value in LocaleProvider (#33723)
mrwd2009 Jan 14, 2022
54ef44b
docs(table): upgrade react-sortable-hoc usage (#33729)
yanm1ng Jan 14, 2022
0092253
fix Input及相关组件设置 hidden 时展示问题 (#33735)
fanerge Jan 15, 2022
8840f41
feat: Sync antd 4.18.3 version update
Jan 17, 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
4 changes: 3 additions & 1 deletion .github/workflows/preview-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
uses: dawidd6/action-download-artifact@v2
with:
workflow: ${{ github.event.workflow_run.workflow_id }}
run_id: ${{ github.event.workflow_run.id }}
name: pr

# Save PR id to output
Expand All @@ -33,7 +34,7 @@ jobs:
uses: dawidd6/action-download-artifact@v2
with:
workflow: ${{ github.event.workflow_run.workflow_id }}
workflow_conclusion: success
run_id: ${{ github.event.workflow_run.id }}
name: site

- name: upload surge service
Expand Down Expand Up @@ -75,6 +76,7 @@ jobs:
uses: dawidd6/action-download-artifact@v2
with:
workflow: ${{ github.event.workflow_run.workflow_id }}
run_id: ${{ github.event.workflow_run.id }}
name: pr

# Save PR id to output
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/verify-files-modify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Verify Files modify

on:
pull_request_target:
types: [opened, edited, synchronize, ready_for_review]
types: [opened, synchronize]

jobs:
verify:
Expand All @@ -25,7 +25,8 @@ jobs:
forbid-files: 'components/style/themes/default.less'
skip-verify-authority: 'admin'
comment: |
🚨 Hi @${{ github.event.pull_request.user.login }}. Thanks for your contribution, as the `default.less` file is currently being upgraded, changes will not be accepted for the time being.
🚨 Hi @${{ github.event.pull_request.user.login }}. Thanks for your contribution, as the `default.less` file is currently being upgraded, changes are not recommended.

🚨 你好,@${{ github.event.pull_request.user.login }}。感谢你的贡献,由于 `default.less` 文件近期处于升级状态,暂不接受更改。
close: true
🚨 你好,@${{ github.event.pull_request.user.login }}。感谢你的贡献,由于 `default.less` 文件近期处于升级状态,不建议进行更改。
close: false
set-failed: false
20 changes: 20 additions & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,26 @@ if you have some problem, welcome to connect `[email protected]` or `lay.z

---

## 4.18.3

`2022-01-10`

- 🆕 Menu support `home` and `end` keyboard navigate. [#33642](https://github.com/ant-design/ant-design/pull/33642) [@dartamonov-vertex](https://github.com/dartamonov-vertex)
- Table
- ⚡️ Improve Table perfermance significantly when mount and unmount. [#33554](https://github.com/ant-design/ant-design/pull/33554)
- 🐞 Fix Table emptynode fixed display. [#33610](https://github.com/ant-design/ant-design/pull/33610) [@hemengke1997](https://github.com/hemengke1997)
- 🐞 Fix Table tree data hover error. [#33638](https://github.com/ant-design/ant-design/pull/33638) [@LongHaoo](https://github.com/LongHaoo)
- Form
- 🐞 Fix Form validateMessages is not correct in default locale. [#33511](https://github.com/ant-design/ant-design/pull/33511)
- 🐞 Fix Form.Item help with empty string makes layout shaking. [#33644](https://github.com/ant-design/ant-design/pull/33644)
- 🐞 Fix Input.Textarea throws error on preact. [#33536](https://github.com/ant-design/ant-design/pull/33536) [@developit](https://github.com/developit)
- 🐞 Fix PageHeader state update error after unmounted. [#33546](https://github.com/ant-design/ant-design/pull/33546) [@wuifdesign](https://github.com/wuifdesign)
- 💄 Fix Select tag margin issue when using `tagRender`. [#33539](https://github.com/ant-design/ant-design/pull/33539)
- 💄 Remove svg reset style for IE9-, fix svg elements being cutting style problem. [#33579](https://github.com/ant-design/ant-design/pull/33579)
- TypeScript
- 🤖 Fix Upload types for pass generic. [#33543](https://github.com/ant-design/ant-design/pull/33543) [@woochanleee](https://github.com/woochanleee)
- 🤖 Fix Card.Grid props should expose Div Properties like `onClick`. [#33563](https://github.com/ant-design/ant-design/pull/33563) [@LongHaoo](https://github.com/LongHaoo)

## 4.18.2

`2021-12-30`
Expand Down
20 changes: 20 additions & 0 deletions CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,26 @@ timeline: true

---

## 4.18.3

`2022-01-10`

- 🆕 Menu 组件支持 `home`(跳转到第一项)和 `end`(跳转到最后一项)的键盘操作。[#33642](https://github.com/ant-design/ant-design/pull/33642) [@dartamonov-vertex](https://github.com/dartamonov-vertex)
- Table
- ⚡️ 大幅优化 Table 渲染时和卸载时的性能。[#33554](https://github.com/ant-design/ant-design/pull/33554)
- 🐞 修复 Table 空状态未居中显示。[#33610](https://github.com/ant-design/ant-design/pull/33610) [@hemengke1997](https://github.com/hemengke1997)
- 🐞 修复 Table 树形数据展示 hover 高亮异常的问题。[#33638](https://github.com/ant-design/ant-design/pull/33638) [@LongHaoo](https://github.com/LongHaoo)
- Form
- 🐞 修复 Form 在英文语言包下错误提示文案不生效的问题。[#33511](https://github.com/ant-design/ant-design/pull/33511)
- 🐞 修复 Form.Item `help` 使用空字符串的时候布局抖动的问题。[#33644](https://github.com/ant-design/ant-design/pull/33644)
- 🐞 修复 Input.Textarea 在 preact 下报错的问题。[#33536](https://github.com/ant-design/ant-design/pull/33536) [@developit](https://github.com/developit)
- 🐞 修复 PageHeader unmounted 后报 `React state update on an unmounted component` 的错误。[#33546](https://github.com/ant-design/ant-design/pull/33546) [@wuifdesign](https://github.com/wuifdesign)
- 💄 修复 Select 使用 `tagRender` 时标签上下边距不统一的问题。[#33539](https://github.com/ant-design/ant-design/pull/33539)
- 💄 移除 svg 针对 IE9- 的重设样式,修复全局样式影响部分 svg 元素的问题。[#33579](https://github.com/ant-design/ant-design/pull/33579)
- TypeScript
- 🤖 修复 Upload 泛型定义。[#33543](https://github.com/ant-design/ant-design/pull/33543) [@woochanleee](https://github.com/woochanleee)
- 🤖 修复 Card.Grid 未能正常支持 `onClick` 的问题。[#33563](https://github.com/ant-design/ant-design/pull/33563) [@LongHaoo](https://github.com/LongHaoo)

## 4.18.2

`2021-12-30`
Expand Down
18 changes: 11 additions & 7 deletions components/anchor/Anchor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,16 @@ export default class Anchor extends React.Component<AnchorProps, AnchorState, Co
}
};

getMemoizedContextValue = memoizeOne(
(link: AntAnchor['activeLink'], onClickFn: AnchorProps['onClick']): AntAnchor => ({
registerLink: this.registerLink,
unregisterLink: this.unregisterLink,
scrollTo: this.handleScrollTo,
activeLink: link,
onClick: onClickFn,
}),
);

render() {
const { getPrefixCls, direction } = this.context;
const {
Expand Down Expand Up @@ -310,13 +320,7 @@ export default class Anchor extends React.Component<AnchorProps, AnchorState, Co
</div>
);

const contextValue = memoizeOne((link, onClickFn) => ({
registerLink: this.registerLink,
unregisterLink: this.unregisterLink,
scrollTo: this.handleScrollTo,
activeLink: link,
onClick: onClickFn,
}))(activeLink, onClick);
const contextValue = this.getMemoizedContextValue(activeLink, onClick);

return (
<AnchorContext.Provider value={contextValue}>
Expand Down
51 changes: 51 additions & 0 deletions components/anchor/__tests__/cached-context.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import React, { memo, useState, useRef, useContext } from 'react';
import { mount } from 'enzyme';
import Anchor from '../Anchor';
import AnchorContext from '../context';

// we use'memo' here in order to only render inner component while context changed.
const CacheInner = memo(() => {
const countRef = useRef(0);
countRef.current++;
// subscribe anchor context
useContext(AnchorContext);
return (
<div>
Child Rendering Count: <span id="child_count">{countRef.current}</span>
</div>
);
});

const CacheOuter = () => {
// We use 'useState' here in order to trigger parent component rendering.
const [count, setCount] = useState(1);
const handleClick = () => {
setCount(count + 1);
};
// During each rendering phase, the cached context value returned from method 'Anchor#getMemoizedContextValue' will take effect.
// So 'CacheInner' component won't rerender.
return (
<div>
<button type="button" onClick={handleClick} id="parent_btn">
Click
</button>
Parent Rendering Count: <span id="parent_count">{count}</span>
<Anchor affix={false}>
<CacheInner />
</Anchor>
</div>
);
};

it("Rendering on Anchor without changed AnchorContext won't trigger rendering on child component.", () => {
const wrapper = mount(<CacheOuter />);
const childCount = wrapper.find('#child_count').text();
wrapper.find('#parent_btn').at(0).simulate('click');
expect(wrapper.find('#parent_count').text()).toBe('2');
// child component won't rerender
expect(wrapper.find('#child_count').text()).toBe(childCount);
wrapper.find('#parent_btn').at(0).simulate('click');
expect(wrapper.find('#parent_count').text()).toBe('3');
// child component won't rerender
expect(wrapper.find('#child_count').text()).toBe(childCount);
});
136 changes: 136 additions & 0 deletions components/avatar/__tests__/__snapshots__/demo-extend.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,142 @@ Array [
+2
</span>
</span>
<div>
<div
class="ant-popover ant-avatar-group-popover"
style="opacity:0;pointer-events:none"
>
<div
class="ant-popover-content"
>
<div
class="ant-popover-arrow"
>
<span
class="ant-popover-arrow-content"
/>
</div>
<div
class="ant-popover-inner"
role="tooltip"
>
<div
class="ant-popover-inner-content"
>
<span
class="ant-avatar ant-avatar-lg ant-avatar-circle ant-avatar-icon"
style="background-color:#87d068"
>
<span
aria-label="user"
class="anticon anticon-user"
role="img"
>
<svg
aria-hidden="true"
data-icon="user"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"
/>
</svg>
</span>
</span>
<div>
<div
class="ant-tooltip"
style="opacity:0;pointer-events:none"
>
<div
class="ant-tooltip-content"
>
<div
class="ant-tooltip-arrow"
>
<span
class="ant-tooltip-arrow-content"
/>
</div>
<div
class="ant-tooltip-inner"
role="tooltip"
>
Ant User
</div>
</div>
</div>
</div>
<span
class="ant-avatar ant-avatar-lg ant-avatar-circle ant-avatar-icon"
style="background-color:#1890ff"
>
<span
aria-label="ant-design"
class="anticon anticon-ant-design"
role="img"
>
<svg
aria-hidden="true"
data-icon="ant-design"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M716.3 313.8c19-18.9 19-49.7 0-68.6l-69.9-69.9.1.1c-18.5-18.5-50.3-50.3-95.3-95.2-21.2-20.7-55.5-20.5-76.5.5L80.9 474.2a53.84 53.84 0 000 76.4L474.6 944a54.14 54.14 0 0076.5 0l165.1-165c19-18.9 19-49.7 0-68.6a48.7 48.7 0 00-68.7 0l-125 125.2c-5.2 5.2-13.3 5.2-18.5 0L189.5 521.4c-5.2-5.2-5.2-13.3 0-18.5l314.4-314.2c.4-.4.9-.7 1.3-1.1 5.2-4.1 12.4-3.7 17.2 1.1l125.2 125.1c19 19 49.8 19 68.7 0zM408.6 514.4a106.3 106.2 0 10212.6 0 106.3 106.2 0 10-212.6 0zm536.2-38.6L821.9 353.5c-19-18.9-49.8-18.9-68.7.1a48.4 48.4 0 000 68.6l83 82.9c5.2 5.2 5.2 13.3 0 18.5l-81.8 81.7a48.4 48.4 0 000 68.6 48.7 48.7 0 0068.7 0l121.8-121.7a53.93 53.93 0 00-.1-76.4z"
/>
</svg>
</span>
</span>
</div>
</div>
</div>
</div>
</div>
</div>,
<div
class="ant-divider ant-divider-horizontal"
role="separator"
/>,
<div
class="ant-avatar-group"
>
<span
class="ant-avatar ant-avatar-lg ant-avatar-circle ant-avatar-image"
>
<img
src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png"
/>
</span>
<span
class="ant-avatar ant-avatar-lg ant-avatar-circle"
style="background-color:#f56a00"
>
<span
class="ant-avatar-string"
style="opacity:0"
>
K
</span>
</span>
<span
class="ant-avatar ant-avatar-lg ant-avatar-circle"
style="color:#f56a00;background-color:#fde3cf;cursor:pointer"
>
<span
class="ant-avatar-string"
style="opacity:0"
>
+2
</span>
</span>
<div>
<div
class="ant-popover ant-avatar-group-popover"
Expand Down
37 changes: 37 additions & 0 deletions components/avatar/__tests__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,43 @@ Array [
</span>
</span>
</div>,
<div
class="ant-divider ant-divider-horizontal"
role="separator"
/>,
<div
class="ant-avatar-group"
>
<span
class="ant-avatar ant-avatar-lg ant-avatar-circle ant-avatar-image"
>
<img
src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png"
/>
</span>
<span
class="ant-avatar ant-avatar-lg ant-avatar-circle"
style="background-color:#f56a00"
>
<span
class="ant-avatar-string"
style="opacity:0"
>
K
</span>
</span>
<span
class="ant-avatar ant-avatar-lg ant-avatar-circle"
style="color:#f56a00;background-color:#fde3cf;cursor:pointer"
>
<span
class="ant-avatar-string"
style="opacity:0"
>
+2
</span>
</span>
</div>,
]
`;

Expand Down
14 changes: 14 additions & 0 deletions components/avatar/demo/group.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,20 @@ const Demo = () => (
<Avatar style={{ backgroundColor: '#1890ff' }} icon={<AntDesignOutlined />} />
</Avatar.Group>
<Divider />
<Avatar.Group
maxCount={2}
maxPopoverTrigger="click"
size="large"
maxStyle={{ color: '#f56a00', backgroundColor: '#fde3cf', cursor: 'pointer' }}
>
<Avatar src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png" />
<Avatar style={{ backgroundColor: '#f56a00' }}>K</Avatar>
<Tooltip title="Ant User" placement="top">
<Avatar style={{ backgroundColor: '#87d068' }} icon={<UserOutlined />} />
</Tooltip>
<Avatar style={{ backgroundColor: '#1890ff' }} icon={<AntDesignOutlined />} />
</Avatar.Group>
<Divider />
<Avatar.Group
maxCount={2}
maxPopoverTrigger="click"
Expand Down
Loading