Commit Graph

14285 Commits

Author SHA1 Message Date
Zheeeng
b89ed86698
chore: prefer using type-compatible-assigning over using type-assertion (#36694) 2022-07-26 11:25:45 +08:00
xrkffgg
16d2c5def3
Merge pull request #36685 from ant-design/feature
branch: merge feature into master
2022-07-26 00:09:16 +08:00
二货机器人
d422d71c1e
refactor: Drawer refactor (#36672)
* chore: back part of styl

* chore: all basic

* test: part test case

* test: part test case

* test: more test case

* test: update snapshot

* test: demo test support

* test: update snapshot

* chore: adjust mock logic to inject on rc-drawer instead

* test: more snapshot

* chore: adjust pos

* chore: back of render

* test: drawer demo extends test
2022-07-25 21:04:43 +08:00
github-actions[bot]
b5302f404a
chore: auto merge branches (#36684)
branch: merge feature into master
2022-07-25 11:59:51 +00:00
zombiej
46d146d692 chore: resolve conflict of feature merge master 2022-07-25 17:39:38 +08:00
afc163
80114d62c7
Revert "fix: Upload item removed should keep status className (#36439)" (#36682)
This reverts commit cebbe23393.
2022-07-25 17:38:28 +08:00
zombiej
2b46b3e6e1 Merge remote-tracking branch 'origin/master' into feature-merge-master 2022-07-25 17:37:47 +08:00
叶枫
00c891ac05
feat: Typography ellipsis.tooltip could be a object (#36099)
* feat: add tooltipProps

* feat: doc

* feat: props

* feat: props

* feat: props

* feat: docs

* feat: review

* feat: add tooltipProps

* feat: doc

* feat: props

* feat: props

* feat: props

* feat: docs

* feat: review
2022-07-25 13:09:39 +08:00
fairyland
3675ad5a3f
test: move-test-cases-to-testing-lib-for-Radio (#36664)
* test: move-test-cases-to-testing-lib-for-Radio

* update toMatchSnapshot

Co-authored-by: ranrui.cwj <ranrui.cwj@alibaba-inc.com>
2022-07-24 12:33:05 +08:00
afc163
1e88248903
docs: renew Select dropdownRender demo and FAQ (#36665)
* docs: renew Select dropdownRender FAQ and demo

* chore: update snapshot

* chore: fix Select demo tsc

* chore: fix Select demo tsc
2022-07-23 17:00:19 +08:00
Alan Deng
3920a724cc
feat: Tree/TreeSelect switcherIcon support more parameter in argument (#36651) 2022-07-23 16:54:36 +08:00
Zheeeng
fd5d463213
chore: write React.ChangeEvent<E> once (#36644) 2022-07-23 16:37:32 +08:00
Wuxh
16ecdbb58d
fix(modal): Modal.xxx onCancel close argument is not a function (#36600)
* fix(modal):  fix the error of `onCancel` parameter of modal returned by `useModal`

resolve: 36581

ref: https://github.com/ant-design/ant-design/issues/36581#issuecomment-1189396007

* test(confirm): 补充 modal 测试用例

* test(modal): 添加测试用例

* Revert "fix(modal):  fix the error of `onCancel` parameter of modal returned by `useModal`"

This reverts commit e4fcb3e62add63193ec9081b2c21e657379bebfb.

* fix(modal): fix modal onOk/onCancel method is not a valid function when there is a close parameter

closed: #36581

* chore: cancel the introduction of `noop` from third-party library
2022-07-23 16:04:23 +08:00
Tianyuan Zhang
09de419253
fix(Tree): DraggableFn params type (#36648)
* fix(Tree): DraggableFn params type

* chore: add blank line

* test: add typ test for draggable Fn

* test: add typ test for draggable Fn

Co-authored-by: tianyuan233 <zty.dev@outlook.com>
2022-07-22 20:26:52 +08:00
二货机器人
0b9f1db072
Revert "feat: Space support align stretch (#36310)" (#36650)
This reverts commit bfa8aaec5e.
2022-07-22 14:14:01 +08:00
Tianyuan Zhang
1180b61131
docs: tabpane add disabled (#36634)
close #36610
2022-07-21 18:45:48 +08:00
Yuki Zhang
817773e015
test: move test cases to testing lib for Collapse (#36227)
* test: move test cases to testing lib for Collapse

* chore: remove useless file

* fix: react 18 concurrent

* chore: remove useless file
2022-07-21 11:18:14 +08:00
黑雨
8c34cb793f
feat: Replace input-number part test with testing lib (#36080)
* feat: Replace input-number part test with testing lib

* feat: update rc-input-number version
2022-07-20 20:47:09 +08:00
dashaowang
cff762cf3d
style: fix Table extra shadow and scrollbar when all columns are fixed
Co-authored-by: weiwang <wren@xuncetech.com>
2022-07-20 13:30:57 +08:00
afc163
2146d18045
style: fix Table tree data ellipsis style problem (#36608)
close #36583
2022-07-20 13:30:34 +08:00
二货机器人
31eef3a956
docs: menu faq (#36604)
* docs: menu faq

* docs: patch codesandbox
2022-07-20 10:58:47 +08:00
二货机器人
03ea767cad
fix: Form validate message shaking (#36575)
* refactor: move component out

* refactor: clean up code

* chore: stable it

* chore: back of container

* chore: adjust leave motion

* test: update snapshot

* chore: update motion logic

* fix: list start motion

* test: update snapshot

* test: update snapshot

* test: test for marginBottom
2022-07-19 16:01:31 +08:00
二货机器人
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