Update snippets/ModalDialog.md
Co-Authored-By: zhongdeming428 <zhongdeming428@163.com>
This commit is contained in:
@ -131,7 +131,8 @@ class Dialog extends React.Component {
|
|||||||
// every time you wanna call the dialog
|
// every time you wanna call the dialog
|
||||||
// content is a jsx element
|
// content is a jsx element
|
||||||
Dialog.show({
|
Dialog.show({
|
||||||
title: 'Test',
|
title: 'Test',
|
||||||
|
closeOnClick: true,
|
||||||
content: <img src="https://github.com/zhongdeming428/30-seconds-of-react/raw/master/logo.png"/>
|
content: <img src="https://github.com/zhongdeming428/30-seconds-of-react/raw/master/logo.png"/>
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user