rc-menu
Advanced tools
Comparing version 3.4.0 to 3.4.1
@@ -8,3 +8,3 @@ # History | ||
`new` | ||
`new` [#10](https://github.com/react-component/menu/issues/10) support MenuItemGroup | ||
@@ -11,0 +11,0 @@ ## 3.3.0 / 2015-06-08 |
@@ -237,2 +237,5 @@ 'use strict'; | ||
value: function handleDestroy(key) { | ||
if (this.menuDestroyed) { | ||
return; | ||
} | ||
var state = this.state; | ||
@@ -272,2 +275,7 @@ var selectedKeys = state.selectedKeys; | ||
}, { | ||
key: 'componentWillUnmount', | ||
value: function componentWillUnmount() { | ||
this.menuDestroyed = true; | ||
} | ||
}, { | ||
key: 'render', | ||
@@ -274,0 +282,0 @@ value: function render() { |
{ | ||
"name": "rc-menu", | ||
"version": "3.4.0", | ||
"version": "3.4.1", | ||
"description": "menu ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -42,3 +42,8 @@ # rc-menu | ||
var MenuItem = Menu.Item; | ||
React.render(<Menu><MenuItem>1</MenuItem><SubMenu title="2"><MenuItem>2-1</MenuItem></SubMenu></Menu>, container); | ||
React.render(<Menu> | ||
<MenuItem>1</MenuItem> | ||
<SubMenu title="2"> | ||
<MenuItem>2-1</MenuItem> | ||
</SubMenu> | ||
</Menu>, container); | ||
``` | ||
@@ -198,2 +203,29 @@ | ||
### Menu.ItemGroup props | ||
<table class="table table-bordered table-striped"> | ||
<thead> | ||
<tr> | ||
<th style="width: 100px;">name</th> | ||
<th style="width: 50px;">type</th> | ||
<th style="width: 50px;">default</th> | ||
<th>description</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>title</td> | ||
<td>String|React.Element</td> | ||
<th></th> | ||
<td>title of item group</td> | ||
</tr> | ||
<tr> | ||
<td>children</td> | ||
<td>React.Element[]</td> | ||
<th></th> | ||
<td>MenuItems belonged to this group</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
## Development | ||
@@ -210,3 +242,3 @@ | ||
online example: http://react-component.github.io/menu/build/examples/ | ||
online example: http://react-component.github.io/menu/examples/ | ||
@@ -213,0 +245,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38793
835
253