adam
77c431b180
support `{ icon: null }` to hide default Icon
6 years ago
zombieJ
4d1a998246
add component param in warning ( #15078 )
* add component param in warning
* update snapshot
6 years ago
郑旭
b3df86a74f
fix destroyFns not reduce when instance.destroy() ( #14600 )
* fix destroyFns not reduce when instance.destroy()
* Use object destructuring prefer-destructuring
6 years ago
Thomas
df65240094
feat: Add transitionName and maskTransitionName for Modal.method ( #14273 )
6 years ago
诸岳
21f0419ace
feat: Add mask prop for Modal method, close #14177 ( #14197 )
6 years ago
afc163
5c266355ec
⚡ Add `icon` to Modal.confirm/info/warning/error
deperated `iconType`
close #13918
6 years ago
afc163
7ac13298ec
💄 Fix one tslint problem
6 years ago
tom
d9e0b33dbe
Modal.destroy():destroy all cofirm modal dialogs
6 years ago
Sam Lanning
bfc75f5872
[chore] remove unneeded checks
args will always be defined, and an array, additionally Array.some()
will always return false if the array is empty. So these conditions
are uneeded.
6 years ago
陈帅
8e11f0bdb9
merge support prettier
6 years ago
陈帅
dca9715186
support prettier
6 years ago
zombiej
9aa62d42c2
Modal.xxx support maskStyle
fix #12688
6 years ago
黄文鉴
df9b20209c
fix: change modal's default prefixCls to ant-modal and ant-modal-confirm ( #12548 )
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
Erwin Kort
2d8f9ccf63
Add button autofocus prop to confirm modal ( #11756 )
@picodoth
6 years ago
zombiej
fe2728cb20
fix #11969 . Pass centered prop to popup modal
6 years ago
afc163
0f472505db
use const
6 years ago
afc163
b8b9c02fb9
Add update function for Modal.method, close #11721
6 years ago
afc163
877f9fd7d6
Add getContainer to Modal.info etc, close #11377
6 years ago
yoyo837
eab74fa693
For #11537 , Centered style should be applied to the wrap element.
6 years ago
yoyo837
f14e207912
Boolean
6 years ago
yoyo837
ef31697d26
Support centered settings
6 years ago
afc163
220d28d3e4
support keyboard for Modal.confirm, close #8818
7 years ago
Wei Zhu
45815d1148
Refactor confirm ( #8409 )
* Refactor confirm
* Add okCancel test
* Only test React 16
* Upgrade rc-dialog
7 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
Alex Chao
3727ea2c33
feat: Modal.confirm supports zIndex prop #6722 ( #6880 )
* Modal.confirm supports zIndex prop #6722
* Fix filename
* Fix the zIndex missing in ModalFuncProps interface
7 years ago
yociduo
528a7645ca
remove cancel text
7 years ago
Eden Wang
f2b987aaa9
update custom type for modal components
7 years ago
paranoidjk
ba168b826f
refactor: use spread operator replace object-assign ( #6677 )
8 years ago
afc163
fd625ef1a0
upgrade and fix tslint problems
8 years ago
Benjy Cui
0e5431d21b
deps: upgrade antd-tools and code style
8 years ago
ddcat1115
24e6fb4ba6
fix Modal.confirm error when onCancel not set ( #5294 )
* fix Modal.confirm error when onCancel not set
* add test case
8 years ago
elios
f3cc8dfe0d
+ call onCancel when pressing esc key ( #5209 )
* + call onCancel when pressing esc key
* + call onCancel when press esc corrections
8 years ago
afc163
0eb5c689a3
remove type="ghost" from demo
8 years ago
Pixy Yuan
a2bef2b87e
feat: Modal.confirm add maskClosable option ( #4488 ) ( #4490 )
* feat: Modal.confirm add maskClosable option (#4488 )
* feat: Modal.confirm add maskClosable option (#4488 )
8 years ago
Benjy Cui
4758302ad5
deps: upgrade antd-tools, close : #4208
8 years ago
afc163
3af1821bde
remove whitespaces
8 years ago
Andrey G
a307a7acf7
refactor: remove unnecessary computed props for classNames ( #4055 )
* remove unnecessary computed props for classNames
* rollback autocomplete optimization for possible css style order issue
* update snapshots
* remove more unnecessary computed props at Input
8 years ago
Benjy Cui
4878258f6c
refactor: ref: #3490
8 years ago
afc163
2969f9d1e5
Improve confirm Modal style detail
8 years ago
Benjy Cui
bd7e9f00c0
style: update code style
8 years ago
马金花儿
3d187d00a1
feat: 为Modal组件的confirm、success、error、warning、info 子组件增加快捷键,模仿原生体验。 ( #3061 )
* Add hotkey for Modal.confirm
* Optimize
* 重构快捷键逻辑
* 根据CR 进一步优化逻辑
* timeoutId 改为非强制
* Update confirm.tsx
* 使用 onCancel 回调代替 onClose,并修改 onCancel 注释。
* 修改注释
8 years ago
马斯特
a25ec29fb8
refactor: 保证所有的tsx和less都正确使用prefix ( #3024 )
* refactor: extract prefix cls as less variable
* refactor: apply ant icon prefix cls in less files
* refactor: all components support prefixCls props
8 years ago
Benjy Cui
5dcce12c2c
fix: some tsc errors ( #2804 )
8 years ago
afc163
36293e2ccb
fix tslint
8 years ago
ddcat1115
3bdd8212ec
refactor: Ts rewrite patination notification modal menu ( #2699 )
8 years ago
Benjy Cui
8dd31d0bb2
fix: buttons of Modal.xxx should be disabled, close : #2684 ( #2687 )
8 years ago
afc163
d7defe458b
blank line
8 years ago
yiminghe
94706f1d2c
fix ts
9 years ago