Commit Graph

20 Commits

Author SHA1 Message Date
偏右
cf42a16505
feat: Modal.config rootPrefixCls (#25613)
* feat: Modal.config rootPrefixCls

* fix tsd
2020-07-14 18:43:55 +08:00
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
2020-05-19 20:15:51 +08:00
二货机器人
dff19af744
chore: Update Popconfirm & Modal okType type (#23867)
* chore: Update Popconfirm & Modal okType type

* add test case

* update test case
2020-05-05 12:03:16 +08:00
偏右
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
2020-04-18 01:09:14 +08:00
偏右
8dbaf66c2b
fix: confirm button should only trigger once (#22963)
close #22861
2020-04-06 21:57:51 +08:00
Chiciuc Nicușor
1321d90e8b
Replace NativeButtonProps with ButtonProps for okButtonProps and cancelButtonProps. (#21165) (#22913) 2020-04-06 13:00:41 +08:00
afc163
5e99ed7bbe Fix eslint warnings 2019-08-12 19:04:33 +08:00
orzyyyy
63b33d4020 fix: unexpected changes of snapshots 2019-08-06 15:36:12 +08:00
Jason
db5da92f0c Fix: Print reject error when ActionButton catch promise rejects 2019-05-09 12:24:59 +08:00
ztplz
94814d955f Format (#15027) 2019-02-24 15:49:12 +08:00
陈帅
dca9715186 support prettier 2018-12-07 18:27:30 +08:00
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.
2018-09-30 14:50:03 +08:00
Wei Zhu
d8f6c3bd8c Fix implicit any error for Modal and Message 2017-11-21 17:20:25 +08:00
Wei Zhu
479a5cb743
Remove allowSyntheticDefaultImports (#8218) 2017-11-17 14:38:54 +08:00
偏右
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 👻
2017-09-27 22:32:49 +08:00
Eden Wang
ee176347ac fix ci compile error 2017-08-07 10:40:33 +08:00
Eden Wang
f2b987aaa9 update custom type for modal components 2017-08-07 10:40:32 +08:00
Benjy Cui
8c632ef2cf fix: Modal.method should stop loading when promise throw err, close: #6183 2017-06-06 11:51:50 +08:00
afc163
0eb5c689a3 remove type="ghost" from demo 2017-02-04 22:35:33 +08:00
Benjy Cui
4758302ad5 deps: upgrade antd-tools, close: #4208 2016-12-19 14:01:52 +08:00