From e7c90a5124d0544f080f56a5bd23437b8c3235c1 Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 10 Jun 2015 17:12:03 +0800 Subject: [PATCH] update dropdown demos --- components/dropdown/demo/basic.md | 7 +++---- components/dropdown/demo/event.md | 3 +-- components/dropdown/demo/item.md | 31 +++++++++++++++++++++++++++++ components/dropdown/demo/trigger.md | 2 +- static/style.css | 5 ++++- 5 files changed, 40 insertions(+), 8 deletions(-) create mode 100644 components/dropdown/demo/item.md diff --git a/components/dropdown/demo/basic.md b/components/dropdown/demo/basic.md index 872806ed30..da9280624b 100644 --- a/components/dropdown/demo/basic.md +++ b/components/dropdown/demo/basic.md @@ -12,19 +12,18 @@ var Dropdown = antd.Dropdown; var menu = - 第一个菜单项 + 第一个菜单项 - 第二个菜单项 + 第二个菜单项 - 第三个菜单项 ; React.render( , document.getElementById('components-dropdown-demo-basic')); diff --git a/components/dropdown/demo/event.md b/components/dropdown/demo/event.md index 054f48e2da..9feae3e4f1 100644 --- a/components/dropdown/demo/event.md +++ b/components/dropdown/demo/event.md @@ -1,6 +1,6 @@ # 基本 -- order: 1 +- order: 3 点击菜单项后会触发事件,用户可以通过相应的菜单项 key 进行不同的操作。 @@ -17,7 +17,6 @@ var menu = 第一个菜单项 第二个菜单项 第三个菜单项 - 第四个菜单项 ; React.render( diff --git a/components/dropdown/demo/item.md b/components/dropdown/demo/item.md new file mode 100644 index 0000000000..7e617b179f --- /dev/null +++ b/components/dropdown/demo/item.md @@ -0,0 +1,31 @@ +# 其他元素 + +- order: 1 + +分割线和不可用菜单项。 + +--- + +````jsx +var Menu = antd.Menu; +var Dropdown = antd.Dropdown; + +var menu = + + 第一个菜单项 + + + 第二个菜单项 + + + 第三个菜单项(不可用) +; + +React.render( + + + +, document.getElementById('components-dropdown-demo-item')); +```` diff --git a/components/dropdown/demo/trigger.md b/components/dropdown/demo/trigger.md index 16cbb6e350..57432f56ba 100644 --- a/components/dropdown/demo/trigger.md +++ b/components/dropdown/demo/trigger.md @@ -1,6 +1,6 @@ # 触发方式 -- order: 1 +- order: 2 点击或鼠标移入触发。 diff --git a/static/style.css b/static/style.css index e2cd10c661..bbdd6fec46 100644 --- a/static/style.css +++ b/static/style.css @@ -572,7 +572,10 @@ footer ul li > a { border-spacing: 0px; empty-cells: show; border: 1px solid #e9e9e9; - width: 75%; +} + +.markdown > table th { + white-space: nowrap; } .markdown > table th,