Commit Graph

14263 Commits

Author SHA1 Message Date
二货机器人
3301b4d6fc
Merge pull request #36576 from ant-design/master
chore: feature merge master
2022-07-18 20:59:32 +08:00
fairyland
8c9ad9b1b6
fix: form disabeld support Upload (#36573)
Co-authored-by: ranrui.cwj <ranrui.cwj@alibaba-inc.com>
2022-07-18 14:21:52 +08:00
Neil
9989a2d751
add Modal @modal-border-radius less variable (#36527)
* add Modal @modal-border-radius less variable

* fix:  add less variable
2022-07-15 14:50:07 +08:00
zombiej
ed5f4c3626 test: update snapshot 2022-07-15 11:47:57 +08:00
二货机器人
006c055cf8
refactor: move popconfirm content out (#36530)
* refactor: move popconfirm content out

* fix: lint
2022-07-15 11:11:50 +08:00
afc163
2255dbada6 docs: update select documentation 2022-07-14 19:27:37 +08:00
Wuxh
14c7c63bbf
fix: fixed the non draggable element did not hide the draggable icon (#36511)
fix #33708
2022-07-14 18:03:11 +08:00
Jon
92c8bdc88f
fix: SVG Upload Preview Error (#36402)
* Update utils.tsx

* style: unify img styling

Unify the styling  of img attribute setting.

* test: add previewImage test for svg file

Add previewImage test for SVG upload

* fix: remove charset

Remove charset in data url for text content.

* test: fix test

* fix: typo

* fix: correct patching for svg upload error

* fix: correct patching for svg upload error

* test: update test
2022-07-14 11:25:57 +08:00
MadCcc
aca2c3d4e7
feat: add Form.Item.useStatus (#36486)
* feat: add useFormItemStatus

* chore: code clean

* docs: update example

* refactor: api change

* docs: fix typo

* docs: update docs

* docs: udpate

* chore: add warning

* test: add test case

* chore: update warning

* chore: code clean

* test: fix test case
2022-07-14 11:01:39 +08:00
Wuxh
c86d02e03f
docs: simplified Layout component sample code (#36497)
the component example code expands to take up the entire monitor screen and is not well read
2022-07-13 16:57:18 +08:00
afc163
008681c1bf
style: Table expandIcon style when column is fixed and ellipsis (#36496)
close #36485
2022-07-13 14:40:43 +08:00
MadCcc
4f7ac9f6bc
fix: tooltip cannot close on disabled Radio (#36483)
* fix: tooltip cannot close on disabled Radio

* test: add test
2022-07-12 19:31:45 +08:00
二货机器人
6599c2780e
fix: Select with percent width leaves unexpected height in Form (#36484) 2022-07-12 18:01:05 +08:00
二货机器人
41464e7068
chore: bump mentions (#36479) 2022-07-12 16:49:44 +08:00
github-actions[bot]
e46dedd90c
chore: auto merge branches (#36478)
chore: feature merge master
2022-07-12 08:21:41 +00:00
afc163
6497d0dfef
docs: moment version mismatched issue (#36473)
https://github.com/ant-design/ant-design/issues/36465#issuecomment-1181275538
2022-07-12 13:10:20 +08:00
bobo
7dfc80504a
docs: update index.zh-CN.md (#36471)
去掉文案描述中多的标点
2022-07-12 11:35:13 +08:00
Sg
6ada28cce2
docs: fix typo (#36457)
fix typo in useWatch.md
2022-07-11 14:40:35 +08:00
Dawnlck
1643acf0d0
feat: Add support to Skeleton, which allow deployer use custom node as prop. (#36441)
* feat: Skeleton component supports for custom node

* fix: Clear redundant code

* refactor: Remove changes in package.json

* test: Update the snapshot of Skeleton demo

* Update components/skeleton/demo/element.md

Co-authored-by: afc163 <afc163@gmail.com>

Co-authored-by: afc163 <afc163@gmail.com>
2022-07-11 12:04:18 +08:00
afc163
91ff1dcce2
style: fix Skeleton active lost border-radius in Safari (#36445)
* style: fix Skeleton active lost border-radius in Safari

* perf: reduce skeleton css bundle size

* chore: fix bundle size limit

* chore: fix active typing
2022-07-10 12:05:35 +08:00
Leon Kattendick
46be23a5db
fix: breadcrumb seperators hidden when used in list (#36448) 2022-07-10 12:05:16 +08:00
afc163
cebbe23393
fix: Upload item removed should keep status className (#36439)
* fix: Upload item removed should keep status className

* add test case

* test: fix act warning

* revert act test

* test: update snapshot
2022-07-08 22:41:58 +08:00
Alan Deng
1d0ae5712d
docs(Typography): fix editable.onChange parameter (#36443) 2022-07-08 22:10:24 +08:00
NinJa
4e03961b91
feat: Update Doc (#36437)
Co-authored-by: meng.jia <meng.jia@ly.com>
2022-07-08 19:12:03 +08:00
simplejason
1a8edd992c
fix: fix wrong color of date picker with status set (#35685)
* fix: fix wrong color of date picker with status set

* Update status.less

Co-authored-by: afc163 <afc163@gmail.com>
2022-07-08 11:59:32 +08:00
舜岳
47f68d0e5c
fix: fix table container z-index (#36420) 2022-07-08 10:31:53 +08:00
Alan Deng
3fc4ff2dc6
docs(Typography): translate docs from English to Chinese (#36417) 2022-07-07 18:38:23 +08:00
hsk-kr
e262ae8133
docs: fix customize calendar example (#36356)
* docs: fix customize calendar example

* test: changed calendar snapshot

Co-authored-by: lico <lico@licoui-MacBookPro.local>
2022-07-06 23:29:57 +08:00
Kirill Barsukov
2e04982882
Update index.en-US.md (#36400)
Fixed a typo
2022-07-06 23:28:27 +08:00
Chang Wei
345cbcef0d
style: fix size of close icon on Modal header (#36309)
* fix: update default.less, set the @modal-header-close-size to @modal-header-title-line-height + 2 * @modal-header-padding-vertical to keep the close icon in the center of vertical

Signed-off-by: Chang Wei <changwei1006@gmail.com>

* fix: update variable.less, set the @modal-header-close-size to @modal-header-title-line-height + 2 * @modal-header-padding-vertical to keep the close icon in the center of vertical

Signed-off-by: Chang Wei <changwei1006@gmail.com>

* fix: update compact.less, set the @modal-header-close-size to @modal-header-title-line-height + 2 * @modal-header-padding-vertical to keep the close icon in the center of vertical

Signed-off-by: Chang Wei <changwei1006@gmail.com>
2022-07-06 10:36:04 +08:00
Yunwoo Ji
e503f9d5ae
fix: correct border radius when table has title (#36384) 2022-07-05 17:27:49 +08:00
Chang Wei
bfa8aaec5e
feat: Space support align stretch (#36310)
* feat/Space-component-support-align-stretch: support align to stretch

Signed-off-by: Chang Wei <changwei1006@gmail.com>

* feat/Space-component-support-align-stretch: update document of zh-CN and en-US

Signed-off-by: Chang Wei <changwei1006@gmail.com>

* feat/Space-component-support-align-stretch: update demo

Signed-off-by: Chang Wei <changwei1006@gmail.com>

* feat/Space-component-support-align-stretch: update snapshot by command `npm test -- components/space -u`

Signed-off-by: Chang Wei <changwei1006@gmail.com>
2022-07-05 16:37:50 +08:00
afc163
80e7f7087d chore: merge feature to master, resolve conflict 2022-07-05 11:23:35 +08:00
MadCcc
ab19033876
docs: replace lib with es (#36367) 2022-07-04 22:09:54 +08:00
二货机器人
9bc30d1ed1
fix: ErrorList shaking (#36358)
* fix: ErrorList shaking

* fix: React 18 test case
2022-07-04 13:32:48 +08:00
afc163
b69f2895d9
style: Radio focus shadow should be transparency (#36335) 2022-07-04 13:13:09 +08:00
dingkang
40728fb4dc
test: replace layout test case with test lib (#36323)
* test: replace layout test case with test lib

* test: fix react 18

* test: clean up

Co-authored-by: zombiej <smith3816@gmail.com>
2022-07-02 16:31:38 +08:00
yykoypj
1d82f221b6
test: move test cases to @testing/library for Carousel (#35926)
* test: move test cases to @testing/library for Carousel

* fix: wait for animation
2022-07-02 16:31:13 +08:00
MadCcc
0a7b4d331d
fix: checkbox should be disabled by form (#36345)
* fix: checkbox should be disabled by form

* chore: code clean

* test: update snapshot

* chore: snapshot
2022-07-01 21:29:31 +08:00
MadCcc
8ab7851870
test: update snapshot (#36344)
* test: update snapshot

* test: update snapshot
2022-07-01 20:00:25 +08:00
Yuki Zhang
efe6d7c8a1
test: move test cases to testing lib for Switch (#36326)
* add

* test: wave

* fix: type
2022-07-01 11:55:03 +08:00
Yuki Zhang
201a66793f
test: move test cases to testing lib for Spin (#36317)
* test: move test cases to testing lib for Spin

* fix: types

* fix: lint
2022-07-01 11:53:49 +08:00
Jamki
5f933ebd2b
fix: Fixed an error when the loading property of the Button component… (#36288)
* fix: Fixed an error when the loading property of the Button component was passed into null

* Update components/button/button.tsx

Obviously, this suggestion is more concise , thanks a lot

Co-authored-by: afc163 <afc163@gmail.com>

* Update components/button/button.tsx

* Update components/button/button.tsx

Co-authored-by: kejianfeng <kejianfeng@cvte.com>
Co-authored-by: afc163 <afc163@gmail.com>
2022-06-30 13:25:47 +08:00
MadCcc
42e030edd9
fix: arrow compatibility (#36266)
* fix: arrow campatibility

* chore: code clean

* chore: rm useless style

* chore: code clean

* fix: use inset

* chore: bundlesize optimization

* chore: rm useless style

* chore: rm useless style
2022-06-30 11:11:01 +08:00
afc163
33400eee8f
chore: reduce css bundle size (#36307) 2022-06-30 10:21:31 +08:00
二货机器人
d24f67f66b
test: Fix table empty test (#36290) 2022-06-29 12:07:28 +08:00
afc163
fe52f2c8dc
style: fix Table shadow bug in nested situation (#36277)
close #36203
2022-06-29 10:10:55 +08:00
dingkang
a2c7ea4ab6
test: replace test case with test lib (#36276) 2022-06-28 18:47:21 +08:00
Alan Deng
bf924df874
style(Divider): replace fixed class name with variable (#36271) 2022-06-28 16:11:19 +08:00
afc163
3ee6c47da2
chore: update Belarusian locale (#36265)
* Edited Belarusian locale:
 - Added missed entries
 - Fixed some mistakes

* test: update snapshot

Co-authored-by: Aliaksiej Razumaŭ <belarusaed@gmail.com>
2022-06-28 12:03:35 +08:00
MadCcc
483c8d39bd
refactor: wrap Wave with FC (#36248)
* refactor: wrap Wave with FC

* test: update test case
2022-06-27 16:57:34 +08:00
MadCcc
db62ade5f6
fix: popover arrow support custom color (#36241) 2022-06-27 10:57:42 +08:00
Tianyuan Zhang
93400e25ec
docs: update Tabs demo code (#36217)
* docs:update demo code

* docs: update Tabs demo code

* docs: update Tabs demo code
2022-06-24 18:08:17 +08:00
afc163
eeedb876c0
chore: fix eslint warning and bisheng terminal log (#36220)
* chore: fix eslint warning

* chore: fix bisheng log

* Update basic.md
2022-06-24 16:40:48 +08:00
afc163
d733de8f14
docs: update valueStyle description (#36226)
close #36219
2022-06-24 16:39:21 +08:00
Alan Deng
02a0e6f160
style: Skeleton.Button square shape style (#36123)
* refactor: Skeleton.Button square shape style

the Button's square shape style is same as Avator's that its width is equal to height,
and the old square shape become the default shape that its width is double size to height.

* fix: `ButtonShapeType` type annotation
2022-06-24 12:30:47 +08:00
afc163
326978e736
style: fix Table expand icon align issue (#36215) 2022-06-24 12:04:28 +08:00
afc163
f8a9cb3498
fix: nested Table margin style (#36209)
* fix: nested Table margin style

* fix: tsx demo

* test: update snapshot
2022-06-24 10:49:59 +08:00
afc163
7357f55d52
fix: Upload listType="picture-card" select button when children is empty (#36196)
* fix: Upload listType="picture-card" select button should be hidden when children is empty

close #36183

* test: fix test case
2022-06-23 16:45:24 +08:00
Dunqing
2971e3b081
fix: Reset the last selection key (#34705)
* fix: reset last selection key

* reset last selection key when deselect

* fix: add test case

* fix: remove unused code

* fix: enzyme bug

* fix: update test

* styles: remove empty line

* fix: lint error

* test: migrate to testing-libary

* fix: xxx.simulate is not a function

* fix: lint error

* fix: use wrong

* fix: solved test not work

Co-authored-by: dengqing <qing.deng@goldenpig.com.cn>
2022-06-23 16:04:55 +08:00
Dunqing
3ea2817549
fix: type incompatibility in strict mode (#36189)
* fix: type incompatibility

* fix: type
2022-06-23 12:17:05 +08:00
afc163
88415f45e1
chore: fix Menu deprecated warning when item={undefined} (#36190) 2022-06-23 11:25:21 +08:00
Andrew Horn
1c8415c494
Corrected grammar in comment in hooks.md (#36185) 2022-06-23 10:33:12 +08:00
lijianan
4401c74a16
refactor: performance optimization (#36177)
* style: code style optimization

* style: code style optimization

* style: code style optimization

* style: code style optimization

* fix: Code style optimization

* style: format
2022-06-22 21:01:00 +08:00
Amumu
ebc7527de3
fix: fix snapshot after si_LK locale is merged (#36181) 2022-06-22 20:05:11 +08:00
සයුරි | Sayuri
d692a88ed7
feat: add si_LK locale (#36149)
* දින තේරුම සකස් කිරීම

* චීන ප්‍රලේඛනය යාවත්කාල කිරීම

* ඉංග්‍රීසි ප්‍රලේඛනය යාවත්කාල කිරීම

* තවත් දත්ත ඇතුල් කිරීම

* දින දසුනට භාෂාව යෙදීම

* ප්‍රධාන දේශීයකරණ සංරචකය යෙදීම

* සැපයුම්කරු සඳහා ගොනුව යෙදීම

* කාලය තේරීමට අදාළ සංරචකය යෙදීම

* යෝජනාව ඇතුළු කෙරිණි

Co-authored-by: Amumu <yoyo837@hotmail.com>

* නව ඇසුරුමට වෙනස් කළා

* ගොනුව යාවත්කාල කෙරිණි

Co-authored-by: Amumu <yoyo837@hotmail.com>
2022-06-22 19:38:21 +08:00
dingkang
8c172a0d64
test: replace pagination test with test-library (#36178) 2022-06-22 17:12:04 +08:00
二货机器人
2c2c631bfd
chore: prettier components (#36171) 2022-06-22 14:57:09 +08:00
afc163
15b8b85ce8
style: fix Button loading icon margin issue (#36168)
* style: fix Button loading icon margin issue

* test: update snapshot

* test: fix tsx demo error
2022-06-22 12:58:56 +08:00
lijianan
db58f19d8c
style: Remove methed of Array push (#36157)
* style: code style optimization

* style: code style optimization

* style: code style optimization

* style: code style optimization
2022-06-22 10:06:02 +08:00
lijianan
8227a53791
style: Code style optimization (#36144)
* style: code style optimization

* style: code style optimization

* style: code style optimization
2022-06-21 19:17:20 +08:00
二货机器人
9ab8cc44a3
fix: Dropdown with group menu can not close (#36148)
* test: test driven

* fix: Dropdown with Menu list group
2022-06-21 15:48:29 +08:00
pfsu
092bfd7496
docs: update demo code (#36127) (#36143) 2022-06-21 14:09:31 +08:00
slotDumpling
1d8d871c4b
style: enlarge draggable area for Slider handle (#36018)
* active skeleton animated with transform

* properties order fixed

* properties order fixed

* properties order fixed

* bigger dragable area for slider handle

* Update components/slider/style/index.less

Co-authored-by: afc163 <afc163@gmail.com>

* Update index.less

6px

Co-authored-by: afc163 <afc163@gmail.com>
2022-06-21 10:52:03 +08:00
Dennis Chen
24a7da8ea8
docs(Input): add proper type for inputRef (#36135)
* docs(Input): add proper type for `inputRef`

* docs: use `InputRef` instead of `ElementRef`

Co-authored-by: afc163 <afc163@gmail.com>
2022-06-21 10:45:49 +08:00
RainyLiao
7045aa7d7b
fix: repeat a css class in readOnly, which has been declared in rc-input-number (#36120)
Co-authored-by: afc163 <afc163@gmail.com>
2022-06-21 10:28:40 +08:00
龙风
1cec18e8eb
fix: component.displayName To distinguish the environment (#36126)
Co-authored-by: afc163 <afc163@gmail.com>
2022-06-21 10:24:52 +08:00
二货机器人
0ff19bb239
fix: Table multiple dropdown not closed (#36132)
* fix: Table dropdown can not close

* test: Test case

* test: cov

* chore: bump rc-util

* chore: reorder

* chore: bump rc-util

* chore: rm test

* chore: clean up
2022-06-20 23:28:46 +08:00
afc163
8d05774053
fix: Skeleton active style in dark theme (#36116)
close #36114
2022-06-19 14:22:52 +08:00
C. T. Lin
ef286d5eb4
fix: exporting UploadFile from upload (#34733) 2022-06-17 21:34:12 +08:00
afc163
4fe88a5577
docs: add locale link in Calender (#36108)
close https://github.com/ant-design/ant-design/issues/36107#issuecomment-1158630726
2022-06-17 17:41:01 +08:00
yykoypj
96ccdfedf1
test: change to fakeTimer when error happens sometimes (#36102) 2022-06-17 15:07:32 +08:00
二货机器人
63fc5055f9
fix: Table customize filterDropdown with Menu should not block default selectable (#36098)
* fix: Table customize Menu should be selectable

* test: Add test case

* test: Update snapshow
2022-06-17 14:37:18 +08:00
Jaylan
f19cf66c88
fix: Typescript - Tree component DirectoryTreeProps, missing Node Type (#36092)
* fix: edit DirectoryTreeProps

* test: add DirectoryTree type test

* fix: edit type

Co-authored-by: JaylanChen <JaylanChen@126.com>
2022-06-17 11:37:57 +08:00
C. T. Lin
89717f1b0f
fix: exporting RefSelectProps from select (#34732) 2022-06-17 09:52:56 +08:00
C. T. Lin
853a04ddce
fix: exporting Rule, FormListFieldData, FormListOperation from form (#34735) 2022-06-17 09:51:36 +08:00
yykoypj
83eb5e5a35
test: move test cases to @testing/library for Upload (#36024)
* test: move test cases to @testing/library for Upload

* refactor: use jest.fn to replace done logic

* test: sample of moving test to testing lib

* test: check for 17

* refactor: manual control timer for React18

* refactor: animateEnd for useless middle state snapshot for 'handle error'

Co-authored-by: zombiej <smith3816@gmail.com>
2022-06-16 23:29:04 +08:00
二货机器人
34dfb808ad
feat: Form support setFieldValue (#36058) 2022-06-15 17:30:10 +08:00
Humble
0e6e1c047d
fix:when props.value is not undefined, can't reset value and focus (#34728)
* fix: when props.value is not undefined, can't reset value and focus

* test: add test case

Co-authored-by: MadCcc <1075746765@qq.com>
2022-06-15 14:51:30 +08:00
Yuki Zhang
6195376bd0
test: move test cases to testing lib for Badge (#36033) 2022-06-15 10:43:56 +08:00
Yuki Zhang
88858c7888
test: improve test cases for Statistic (#36034) 2022-06-15 10:38:11 +08:00
MadCcc
147468a69c
fix: fix incorrect form status with noStyle (#36054)
* fix: form status

* test: update test case
2022-06-15 00:09:31 +08:00
kalykun
524c93642c
docs: fix demos (#36040)
* docs: fix demos

* ++
2022-06-14 14:58:06 +08:00
MadCcc
e3974850fa
fix: Radio.Group focus and blur should work (#36041) 2022-06-14 14:00:33 +08:00
afc163
c72c70024e
docs: fix menu API table (#36043)
* docs: fix menu API table

* Update index.en-US.md
2022-06-14 11:08:16 +08:00
csr632
29565273cb
docs: title is no loger supported by SubMenuType (#36037) 2022-06-14 11:04:18 +08:00
dingkang
52b049d170
test: replace Table part test with test lib (#35989)
* test: replace Table part test with test lib

* test: replace table test with test library

* test: update snapshot

* test: replace last mount

* test: fix 18 testing

Co-authored-by: zombiej <smith3816@gmail.com>
2022-06-13 11:26:16 +08:00
Yuki Zhang
3f822ac43f
test: move test cases to testing lib for Statistic (#36019)
Co-authored-by: afc163 <afc163@gmail.com>
2022-06-13 09:05:49 +08:00
Taisuke Hinata
f93480a61d
docs: fix onChange description repeated twice (#36013) 2022-06-12 18:29:40 +08:00
苯苯
961383fa0c
fix: missing semicolon (#36008) 2022-06-11 15:10:03 +08:00