From 7e142a7aa56459aa19dd2a5a8ce6ecac72983ce8 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 9 Jun 2015 18:08:56 +0800 Subject: [PATCH] update Dropdown demo code style --- components/dropdown/demo/event.md | 6 ++---- components/dropdown/demo/trigger.md | 26 ++++++++++++-------------- 2 files changed, 14 insertions(+), 18 deletions(-) diff --git a/components/dropdown/demo/event.md b/components/dropdown/demo/event.md index 344aea196b..b153c0dd15 100644 --- a/components/dropdown/demo/event.md +++ b/components/dropdown/demo/event.md @@ -9,10 +9,9 @@ ````jsx var Menu = antd.Menu; var Dropdown = antd.Dropdown; - -function onClick(key){ +var onClick = function (key){ alert('选中了菜单' + key); -} +}; var menu = 第一个菜单项 @@ -21,7 +20,6 @@ var menu = 第四个菜单项 ; - React.render( - - - - - -, document.getElementById('components-dropdown-demo-trigger')); +React.render(
+ + + + + + +
, document.getElementById('components-dropdown-demo-trigger')); ````