Commit Graph

22 Commits

Author SHA1 Message Date
Rinku Chaudhari
c9e94c26f6
refactor: convertLegacyProps function moved to buttonHelpers () 2023-09-12 11:38:11 +08:00
二货爱吃白萝卜
72b449a1a4
docs: update faq ()
* docs: update faq

* chore: update lint

* chore: update lint

* chore: use returnType
2023-08-14 13:32:57 +08:00
二货爱吃白萝卜
b072d3a02c
feat: Modal hooks confirm function support await ()
* docs: move demo to useModal

* docs: reorder

* chore: update ts def

* test: test case

* chore: fix compile
2023-07-11 09:58:25 +08:00
lijianan
ac5a06027e
revert: "chore: unified import method ()" ()
This reverts commit ea8ed28209.
2023-05-06 15:49:37 +08:00
lijianan
ea8ed28209
chore: unified import method ()
* chore: unified import method

* fix lint
2023-05-05 20:52:44 +08:00
二货爱吃白萝卜
87f13b3ddc
fix: Popconfirm loading should finish ()
* fix: Popconfirm loading should finish

* chore: update bug version
2023-03-08 17:20:17 +08:00
Rafael Martins
14dd2cdcdb
fix: confirm modal firing onOk event twice ()
* fix: confirm modal firing onOk event twice ()

* fix: use loading state instead using disabled

* test: update test to use mock timer

---------

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2023-02-24 16:59:57 +08:00
lijianan
130c22ab03
style: Code style optimization ()
* style: Code style optimization

* add

* rename

* rename

* revert

* revert

* revert

* add
2023-01-08 15:36:50 +08:00
Peter Gassner
25ea3a7202
fix: Allow users to handle promise rejections in ActionButton's onOk callback ()
* fix: Allow users to handle promise rejections in onOk callback

Components that rely on ActionButton swallow rejected promises. This makes it impossible for userland code to handle them.

* polish: Fix linting problems

* polish: Return rejected promise instead of throwing

* refact: Remove test for unhandled promise rejection

This test breaks when run in parallel by Jest. At the moment we have no way of changing the way Jest works and it prohibits us from testing for "unhandledRejection" events.

See: https://github.com/ant-design/ant-design/pull/40018#issuecomment-1373590259

* test: hack for rejection

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2023-01-08 00:27:33 +08:00
lijianan
120db80c25
type: Button type optimization ()
* type: type optimization

* fix type

* fix type

* fix type

* update docs
2022-12-15 17:48:29 +08:00
Tom Xu
77ea4038d1
chore: remo format and remove prettierrc arrowParens () 2022-11-19 13:47:33 +08:00
lijianan
038c9d0763
type: optimization React.useRef type () 2022-11-04 18:36:54 +08:00
二货机器人
006c055cf8
refactor: move popconfirm content out ()
* refactor: move popconfirm content out

* fix: lint
2022-07-15 11:11:50 +08:00
二货机器人
2c2c631bfd
chore: prettier components () 2022-06-22 14:57:09 +08:00
Tom Xu
1719748a29
chore: eslint add consistent-type-imports ()
* chore: eslint add consistent-type-imports

* fix avatar

* Update Item.tsx
2022-05-07 14:31:54 +08:00
二货机器人
5b8e4e51e9
chore: Compatible for @types/react@18 ()
* chore: bump types def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: part ts def

* chore: free --legacy-peer-deps

* chore: ignore peer

* chore: fix ts logic

* chore: use fork docsearch

* chore: fix demo ts
2022-04-08 22:55:42 +08:00
二货机器人
b51c900847
refactor: rm useDestroy hook () 2022-03-10 18:54:32 +08:00
MadCcc
3effa51572 refactor: refactor useMounted to useDestroyed 2021-12-29 17:10:16 +08:00
MadCcc
285e2bd9ea refactor: refactor useMountedRef to useMounted 2021-12-29 14:42:00 +08:00
MadCcc
727e394d75 feat: add useMountedRef hook 2021-12-28 17:21:00 +08:00
MadCcc
1d738d1902 fix: not allow setState in Popconfirm if unmounted 2021-12-27 18:06:46 +08:00
Wendell
5ddd9e6b97
feat(module:popconfirm): support closing based on promise ()
* feat(module:popconfirm): support closing based on promise

fix: typos

fix: fix tests

fix: fix ActionButton for Popconfirm

* chore: cleanup

* test: add test
2021-06-09 12:18:52 +08:00