diff --git a/components/modal/demo/basic.md b/components/modal/demo/basic.md index a9f7935ef8..43c4bf2764 100644 --- a/components/modal/demo/basic.md +++ b/components/modal/demo/basic.md @@ -9,21 +9,20 @@ ````jsx var modal = antd.modal; -function show(){ +function show() { modal({ - width:500, - title:'第一个 modal', - content:

modal content

, - onCancel:function(){ + title: '第一个 Modal', + content:

Modal content

, + onCancel: function() { alert('cancel'); }, - onOk:function(){ - alert('ok') + onOk: function() { + alert('ok'); } }); } React.render( - + , document.getElementById('components-modal-demo-basic')); ````