lijianan
120db80c25
type: Button type optimization ( #39533 )
* type: type optimization
* fix type
* fix type
* fix type
* update docs
2 years ago
Tom Xu
77ea4038d1
chore: remo format and remove prettierrc arrowParens ( #38722 )
2 years ago
lijianan
038c9d0763
type: optimization React.useRef type ( #38388 )
2 years ago
二货机器人
006c055cf8
refactor: move popconfirm content out ( #36530 )
* refactor: move popconfirm content out
* fix: lint
2 years ago
二货机器人
2c2c631bfd
chore: prettier components ( #36171 )
2 years ago
Tom Xu
1719748a29
chore: eslint add consistent-type-imports ( #35419 )
* chore: eslint add consistent-type-imports
* fix avatar
* Update Item.tsx
3 years ago
二货机器人
5b8e4e51e9
chore: Compatible for @types/react@18 ( #34937 )
* 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
3 years ago
二货机器人
b51c900847
refactor: rm useDestroy hook ( #34418 )
3 years ago
MadCcc
3effa51572
refactor: refactor useMounted to useDestroyed
3 years ago
MadCcc
285e2bd9ea
refactor: refactor useMountedRef to useMounted
3 years ago
MadCcc
727e394d75
feat: add useMountedRef hook
3 years ago
MadCcc
1d738d1902
fix: not allow setState in Popconfirm if unmounted
3 years ago
Wendell
5ddd9e6b97
feat(module:popconfirm): support closing based on promise ( #30871 )
* feat(module:popconfirm): support closing based on promise
fix: typos
fix: fix tests
fix: fix ActionButton for Popconfirm
* chore: cleanup
* test: add test
4 years ago
二货机器人
9e5e4c8743
chore: Fix ts ( #29383 )
4 years ago
偏右
cf42a16505
feat: Modal.config rootPrefixCls ( #25613 )
* feat: Modal.config rootPrefixCls
* fix tsd
4 years ago
Tom Xu
50fe770458
refactor(modal): rewrite with hook and support strict mode ( #24238 )
* refactor(modal): rewrite with hook and support strict mode
* Update ActionButton.tsx
* improve code
5 years ago
二货机器人
dff19af744
chore: Update Popconfirm & Modal okType type ( #23867 )
* chore: Update Popconfirm & Modal okType type
* add test case
* update test case
5 years ago
偏右
f4c489553f
fix: Modal.info onOk execute times ( #23360 )
* refactor: modal confirm onOk code
* fix: Modal.xxx onOk execute time when has close argument
close #23358
* Add test case
* fix lint
5 years ago
偏右
8dbaf66c2b
fix: confirm button should only trigger once ( #22963 )
close #22861
5 years ago
Chiciuc Nicușor
1321d90e8b
Replace NativeButtonProps with ButtonProps for okButtonProps and cancelButtonProps. ( #21165 ) ( #22913 )
5 years ago
afc163
5e99ed7bbe
✅ Fix eslint warnings
5 years ago
orzyyyy
63b33d4020
fix: unexpected changes of snapshots
5 years ago
Jason
db5da92f0c
Fix: Print reject error when ActionButton catch promise rejects
6 years ago
ztplz
94814d955f
Format ( #15027 )
6 years ago
陈帅
8e11f0bdb9
merge support prettier
6 years ago
陈帅
dca9715186
support prettier
6 years ago
C.J. Winslow
b9a86b2ea1
Pass the ok and cancel button props in the confirm API ( #12425 )
This PR adds the `okButtonProps` and `cancelButtonProps` API to the `Modal.confirm` and associated methods.
* [x] Make sure that you propose PR to right branch: bugfix for `master`, feature for branch `feature`.
* [x] Make sure that you follow antd's [code convention](https://github.com/ant-design/ant-design/wiki/Code-convention-for-antd ).
* [x] Run `npm run lint` and fix those errors before submitting in order to keep consistent code style.
* [x] Rebase before creating a PR to keep commit history clear.
* [x] Add some descriptions and refer relative issues for you PR.
Extra checklist:
*isNewFeature* **:**
* [x] Update API docs for the component.
* [x] Update/Add demo to demonstrate new feature.
* [x] Update TypeScript definition for the component.
* [x] Add unit tests for the feature.
6 years ago
Wei Zhu
d8f6c3bd8c
Fix implicit any error for Modal and Message
7 years ago
Wei Zhu
479a5cb743
Remove allowSyntheticDefaultImports ( #8218 )
7 years ago
偏右
2bced36f0c
New component styles ( #7731 )
* Tweak button padding
* upgrade input and button size
* update form controls size
* update components size
* Add lemon color and update rate color
* Add new icons
* update layout style
* breadcrumb and dropdown
* update menu arrow width
* update layout and menu
* update steps
* fix var name
* update cascasder style
* Update DatePicker
* update InputNumber and Mention
* radio and switch
* select and transfer
* TimePicker & Upload
* more components
* calendar and list
* Tree Timeline Popover Tag
* divider modal popover
* update search input
* update card style
* update switch disabled opacity
* update shoadow and mask
* Add v2-compatible-reset.less
* Fix undefined className
* update snahshotssssssssssssssssss 👻
7 years ago
Eden Wang
ee176347ac
fix ci compile error
7 years ago
Eden Wang
f2b987aaa9
update custom type for modal components
7 years ago
Benjy Cui
8c632ef2cf
fix: Modal.method should stop loading when promise throw err, close : #6183
8 years ago
afc163
0eb5c689a3
remove type="ghost" from demo
8 years ago
Benjy Cui
4758302ad5
deps: upgrade antd-tools, close : #4208
8 years ago