Browse Source

upgrade menu

pull/124/head
yiminghe 9 years ago
parent
commit
79e54f03f5
  1. 41
      components/menu/demo/system.md
  2. 2
      package.json

41
components/menu/demo/system.md

@ -0,0 +1,41 @@
# 系统菜单
- order: 1
点击后出现菜单
---
````jsx
var Menu = antd.Menu;
var MenuItem = Menu.Item;
var SubMenu = Menu.SubMenu;
function handleClick(info) {
console.log('selected ',info);
}
React.render(<Menu onClick={handleClick} mode="horizontal" openSubMenuOnMouseEnter={false}>
<SubMenu title={<span><i className="anticon anticon-apple"></i><span>导航一</span></span>}>
<MenuItem key="1">选项1</MenuItem>
<MenuItem key="2">选项2</MenuItem>
<MenuItem key="3">选项3</MenuItem>
<MenuItem key="4">选项4</MenuItem>
</SubMenu>
<SubMenu title={<span><i className="anticon anticon-apple"></i><span>导航二</span></span>}>
<MenuItem key="5">选项5</MenuItem>
<MenuItem key="6">选项6</MenuItem>
<SubMenu title={<span><i className="anticon anticon-apple"></i><span>三级导航</span></span>}>
<MenuItem key="7">选项7</MenuItem>
<MenuItem key="8">选项8</MenuItem>
</SubMenu>
</SubMenu>
<SubMenu title={<span><i className="anticon anticon-apple"></i><span>导航三</span></span>}>
<MenuItem key="9">选项9</MenuItem>
<MenuItem key="10">选项10</MenuItem>
<MenuItem key="11">选项11</MenuItem>
<MenuItem key="12">选项12</MenuItem>
</SubMenu>
</Menu>
, document.getElementById('components-menu-demo-system'));
````

2
package.json

@ -45,7 +45,7 @@
"rc-dropdown": "~1.2.0", "rc-dropdown": "~1.2.0",
"rc-form-validation": "~2.4.7", "rc-form-validation": "~2.4.7",
"rc-input-number": "~2.0.1", "rc-input-number": "~2.0.1",
"rc-menu": "~4.0.3", "rc-menu": "~4.1.0",
"rc-notification": "~1.1.0", "rc-notification": "~1.1.0",
"rc-pagination": "~1.1.0", "rc-pagination": "~1.1.0",
"rc-progress": "~1.0.0", "rc-progress": "~1.0.0",

Loading…
Cancel
Save