Socket
Socket
Sign inDemoInstall

rc-menu

Package Overview
Dependencies
Maintainers
2
Versions
279
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.4.0 to 3.4.1

2

HISTORY.md

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc