Update snippets/ModalDialog.md

Co-Authored-By: zhongdeming428 <zhongdeming428@163.com>
This commit is contained in:
Robert Mennell
2018-11-09 08:35:14 +08:00
committed by GitHub
parent bbd7d94302
commit e65db00c4e

View File

@ -11,7 +11,7 @@ After the component mounted,Dialog binds a custom event called 'modal' to docume
Before the component unmounted,Dialog removes the custom event from document element in case of memory leaks. Before the component unmounted,Dialog removes the custom event from document element in case of memory leaks.
Dialog exposed the `show` method via using `static` reserved keyword so that we can call it through Dialog class.The `show` method accepts a object parameter that contains two properties:`title` and `content`. Dialog exposed the `show` method via using `static` reserved keyword so that we can call it through Dialog class.The `show` method accepts a object parameter that contains three properties: `title`, `closeOnClick`, and `content`.
* `title` is the text you wanna show as the title of the dialog,passed as a String. * `title` is the text you wanna show as the title of the dialog,passed as a String.
* `content` is a jsx element.Dialog will render it.You can pass any content you want to show in the dialog. * `content` is a jsx element.Dialog will render it.You can pass any content you want to show in the dialog.