Socket
Socket
Sign inDemoInstall

rc-tree

Package Overview
Dependencies
Maintainers
2
Versions
306
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-tree - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

3

HISTORY.md
# History
---
## 1.0.x / 2016-01-15
- change onSelect/onCheck params
## 0.26.x / 2016-01-13

@@ -5,0 +8,0 @@ - change drag api (from `onTreeXX` to `onXX`)

@@ -235,3 +235,3 @@ 'use strict';

checked: checked,
checkedNodesKeys: checkKeys.checkedNodesKeys
checkedNodes: checkKeys.checkedNodes
};

@@ -264,6 +264,15 @@ checkedKeys = checkKeys.checkedKeys;

}
var selectedNodes = [];
if (selectedKeys.length) {
(0, _util.loopAllChildren)(this.props.children, function (item) {
if (selectedKeys.indexOf(item.key) !== -1) {
selectedNodes.push(item);
}
});
}
var newSt = {
event: 'select',
node: treeNode,
selected: selected
selected: selected,
selectedNodes: selectedNodes
};

@@ -270,0 +279,0 @@ if (!('selectedKeys' in this.props)) {

2

package.json
{
"name": "rc-tree",
"version": "1.0.0",
"version": "1.0.1",
"description": "tree ui component for react",

@@ -5,0 +5,0 @@ "keywords": [

@@ -76,4 +76,4 @@ # rc-tree

|onExpand | fire on treeNode expand or not | function(node, expanded, expandedKeys) | - |
|onCheck | click the treeNode/checkbox to fire | function(checkedKeys, e:{checked:bool, node, event}) | - |
|onSelect | click the treeNode to fire | function(selectedKeys, e:{selected:bool, node, event}) | - |
|onCheck | click the treeNode/checkbox to fire | function(checkedKeys, e:{checked: bool, checkedNodes, node, event}) | - |
|onSelect | click the treeNode to fire | function(selectedKeys, e:{selected: bool, selectedNodes, node, event}) | - |
|filterTreeNode | filter some treeNodes as you need. it should return true | function(node) | - |

@@ -80,0 +80,0 @@ |loadData | load data asynchronously and the return value should be a promise | function(node) | - |

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc