Update snippets/ModalDialog.md

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

View File

@ -4,7 +4,6 @@ Renders a dialog component with modal.
This is a simple React ModalDialog Component that is called and controlled through events This is a simple React ModalDialog Component that is called and controlled through events
* `closeOnClick` prop determines whether we can close the dialog via clicking on modal.
Benefits from the CustomEvent API,this ModalDialog component supports single instance usage.We just need import `Dialog` once time,and can call the dialog everywhere.Every time we wanna show the dialog,we just call the static function `Dialog.show`.Passing our jsx templates and data as the parameter and then the dialog will show with the data and templates rendered. Benefits from the CustomEvent API,this ModalDialog component supports single instance usage.We just need import `Dialog` once time,and can call the dialog everywhere.Every time we wanna show the dialog,we just call the static function `Dialog.show`.Passing our jsx templates and data as the parameter and then the dialog will show with the data and templates rendered.