From 196566039b558243fef1bafc16cd5c6009d47f6c Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 5 Jun 2015 10:42:47 +0800 Subject: [PATCH] tweak code --- components/modal/demo/basic.md | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) 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')); ````