Update snippets/ModalDialog.md

Co-Authored-By: zhongdeming428 <zhongdeming428@163.com>
This commit is contained in:
Robert Mennell
2018-11-09 08:37:06 +08:00
committed by GitHub
parent 52a68f9850
commit d808d77ad2

View File

@ -103,7 +103,12 @@ class Dialog extends React.Component {
} }
close() { close() {
this.setState({ this.setState({
visible: false visible: false,
data: {
title: '',
closeOnClick: false,
content: ''
}
}); });
} }
static show(data) { static show(data) {