Commit Graph

69 Commits

Author SHA1 Message Date
xrkffgg
b8fb4c411d
feat: modal method rtl (#24682)
* fix: modal rtl

* fix: use hooks

* Update components/modal/index.zh-CN.md
2020-06-03 17:20:04 +08:00
偏右
882cec62d6
docs: 🌈 Add Components overview page (#24491)
* docs: Add components overview page

* fix detail

* remove ContributorsList form overview page

* fix components url

* improve code style

* remove extra file

* fix detail

* fix lint

* fix lint

* docs: Finish components overview page

* fix lint

* docs: Update cover

* fix lint

* update cover

* update menu

* improve overview page

* refactor code

* fix order

* update title

* add components count

* fix overview page ssr bug

* move less file

* update title margin

Co-authored-by: arvinxx <arvinx@foxmail.com>
2020-05-31 11:48:34 +08:00
Tom Xu
6f1fe30df1
docs(modal): improve (#24301) 2020-05-20 10:51:36 +08:00
xrkffgg
01b98e79d9
docs: optimize site of components 3 (#23779)
* docs: optimize site of components in rtl 3

* add
2020-04-30 21:04:19 +08:00
Tom Xu
f5153ab950
docs: improve style type (#23700) 2020-04-28 14:09:54 +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
偏右
5529774513
Update index.en-US.md
#15260
2020-03-21 11:45:24 +08:00
二货机器人
8b20fbc96c
docs: Update hooks description (#21279)
* docs: Update notification faq

* patch faq in Modal
2020-02-07 20:32:00 +08:00
二货机器人
d02c486052
feat: Modal support hooks (#20949)
* init hooks

* portal it in

* children with 2 context demo

* Remove config since not more second demo

* Quit with same Component for logic reuse

* add rest functions

* use localeReceiver

* use localeReceiver

* update test case

* fix lint

* update docs

* update demo title
2020-02-03 13:00:35 +08:00
xrkffgg
4388a96c32 docs: Format string notation of all components (#20970) 2020-01-17 17:23:47 +08:00
陈小聪
e71a4ef10f docs: Removed version column in 4.0 (#19832) 2019-11-20 17:46:50 +08:00
zombiej
3d8a4f3612 merge master 2019-08-29 23:41:46 +08:00
偏右
a767a495b0
feat: Modal closeIcon (#18309)
* 💄 support Modal closeIcon

close #18307

*  Add test case for closeIcon
2019-08-17 20:55:59 +08:00
vagusX
149729e524
use ant design icons 4.0 (#18217)
* feat: use @ant-design/icons@4.0

* feat: use createFromIconfontCN to make site works

* feat: update doc for Icon

* feat: use icon in component Alert

* feat: use icon in component Avatar

* feat: use icon in component Breadcrumb

* feat: use icon in component Button

* feat: use icon in component Cascader

* feat: use icon in component Collapse

* feat: use icon in component Datepicker

* feat: use icon in component Dropdown

* feat: use icon in component Form

* feat: use icon in component Input

* feat: use icon in component InputNumber

* feat: use icon in component Layout

* feat: use icon in component Mention

* feat: use icon in component Message

* feat: use icon in component Modal

* feat: use icon in component Notification

* feat: use icon in component PageHeader

* feat: use icon in component Pagination

* feat: use icon in component Popconfirm

* feat: use icon in component Progress

* feat: use icon in component Rate

* feat: use icon in component Result

* feat: use icon in component Select

* feat: use icon in component Step

* feat: use icon in component Switch

* feat: use icon in component Table

* feat: use icon in component Tab

* feat: use icon in component Tag

* feat: handle rest component which using Icon

* fix: remove unused vars

* feat: use latest alpha ant design icons

* fix: failed test in uploadlist.test.js

* test: update snapshot for icons

* doc: add Icon for site

* doc: use @ant-design/icons in site

* chore: use latest icons

* fix: tslint issue

* fix: test cases

* fix: types for react

* fix: lint rules for import orders

* fix: use @ant-design/icons@4.0.0-alpha.5 to avoid insert css in server render

* fix: eslint error in demo/**.md

* inject antd icons

* update snapshot

* fix site

* doc: update docs

* fix: code snippets icon in site

* feat: use latest @ant-design/icons

* fix: icon props in message
2019-08-13 14:07:17 +08:00
jljsj
786bde9ca1 update modal and drawer protal 2019-07-15 14:33:56 +08:00
MuYu
fb0b4f0fc9 docs: show version Number features were added (#17373)
* docs: add api first appearance

* docs: fix auto-complete doc

* docs: replace Version Added with Version

* docs: date picker common method

* docs: date picker common method

* docs: tree

* docs: remove meaningless 3.0.0
2019-07-11 14:14:33 +08:00
zombieJ
cfe4de58d6
update modal doc (#17137) 2019-06-17 15:57:48 +08:00
afc163
b780070351
💄 prittier all files 2019-05-07 14:57:32 +08:00
kristof0425
c97bd20faf docs(Modal): change type of okText and cancelText props 2019-02-01 01:20:39 +08:00
诸岳
21f0419ace
feat: Add mask prop for Modal method, close #14177 (#14197) 2019-01-10 01:21:51 +08:00
afc163
5c266355ec
Add icon to Modal.confirm/info/warning/error
deperated `iconType`

close #13918
2018-12-26 21:36:36 +08:00
tom
00109a0698 change Modal.destroy to Modal.destroyAll 2018-12-20 17:31:12 +08:00
tom
d9e0b33dbe Modal.destroy():destroy all cofirm modal dialogs 2018-12-20 17:31:12 +08:00
zombiej
f791a50084 add forceRender support
fix #12503
2018-12-06 15:08:35 +08:00
Pouya Sanooei
a70d64451b fix Modal docs typo 2018-11-01 12:05:24 +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
Erwin Kort
2d8f9ccf63 Add button autofocus prop to confirm modal (#11756)
@picodoth
2018-09-29 17:00:01 +08:00
afc163
9fdee487ce Add test case for modal update 2018-08-25 22:57:24 +08:00
afc163
b8b9c02fb9 Add update function for Modal.method, close #11721 2018-08-25 22:57:24 +08:00
yoyo837
ef31697d26 Support centered settings 2018-07-31 21:14:48 +08:00
Wei Zhu
b374297ca6 Merge branch 'master' into feature-3.7.0 2018-06-25 11:44:35 +08:00
Wei Zhu
aa580beb8b docs: sort api table 2018-06-24 17:09:18 +08:00
Randy
a614a525c4 fix #10822 (#10955)
Add `okButtonProps` and `cancelButtonProps` props to ok button and cancel button
2018-06-22 19:56:41 +08:00
Chenjia
5634881eda add docs for keyboard props on modal component #8818 (#10030) 2018-04-13 12:01:51 +08:00
keqingrong
32ac330ca2 docs: add className for Modal.method 2018-01-05 21:47:16 +08:00
Wei Zhu
999d6184ad docs: Sort api table 2017-12-29 20:22:58 +08:00
Wei Zhu
f89254537e Document destroyOnClose in Chinese 2017-12-28 16:26:03 +08:00
Rohan Malhotra
c6a1861887 updated rc-dialog and docs for destroyOnClose 2017-12-28 12:49:33 +05:30
Wei Zhu
36227a10db docs: sort api table 2017-10-25 10:25:44 +08:00
kossel
1599686fc2 docs: update docs for Modal, close #7840 (#7952) 2017-10-22 21:35:47 -05:00
Khalifa Lame
b381f1f5ec docs: update Modal English doc (#7537)
Fixed several typos.
2017-09-11 11:08:18 +08:00
Benjy Cui
59193ef34a Revert "Patch 1 (#7471)"
This reverts commit 9667ec17bd.
2017-09-06 09:46:58 +08:00
kuang
9667ec17bd Patch 1 (#7471)
* default value error 

f10a2abbd8/src/Modal.tsx (L53)

* default value error
2017-09-05 19:07:57 +08:00
afc163
ef8beaffde Merge from master 2017-08-25 22:51:14 +08:00
afc163
61aac68028 doc: remove new key way 2017-08-24 09:44:17 +08:00
Benjy Cui
456cea652b docs: add zIndex to docs of Modal, ref: 2aa3437 2017-08-07 10:41:38 +08:00
yociduo
fa0e90f577 remove cancel type 2017-08-07 10:40:34 +08:00
yociduo
528a7645ca remove cancel text 2017-08-07 10:40:33 +08:00
Eden Wang
c712d072eb update okType and cancelType for api docs 2017-08-07 10:40:33 +08:00
乐仪
1dd3e001c5 Update Modal doc, relevant:https://github.com/ant-design/ant-design/pull/7085 2017-08-06 12:44:15 +08:00