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 0.25.3 to 0.25.4

8

lib/Tree.js

@@ -93,5 +93,2 @@ 'use strict';

this.getOriginExpandedKeys();
// if ('expandedKeys' in this.props) {
// this._originExpandedKeys = [...this.state.expandedKeys];
// }
st.expandedKeys = expandedKeys;

@@ -163,3 +160,6 @@ }

var key = treeNode.props.eventKey;
if (this.dragNode.props.eventKey === key) {
if (this.dragNodesKeys.indexOf(key) > -1) {
if (console.warn) {
console.warn('can not drop to dragNode and its children');
}
return;

@@ -166,0 +166,0 @@ }

{
"name": "rc-tree",
"version": "0.25.3",
"version": "0.25.4",
"description": "tree ui component for react",

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

@@ -74,6 +74,6 @@ # rc-tree

|defaultSelectedKeys | default selected treeNodes | String[] | [] |
|onExpand | fire on treeNode expand or not | function(treeNode, expanded, expandedKeys) | - |
|onCheck | click the treeNode/checkbox to fire | function(e:{checked:bool,node,checkedKeys,event,allCheckedNodesKeys}) | - |
|onSelect | click the treeNode to fire | function(e:{selected:bool,node,selectedKeys,event}) | - |
|filterTreeNode | filter some treeNodes as you need. it should return true | function(treeNode) | - |
|onExpand | fire on treeNode expand or not | function(node, expanded, expandedKeys) | - |
|onCheck | click the treeNode/checkbox to fire | function(e:{checked:bool, node, checkedKeys, event, allCheckedNodesKeys}) | - |
|onSelect | click the treeNode to fire | function(e:{selected:bool, node, selectedKeys, event}) | - |
|filterTreeNode | filter some treeNodes as you need. it should return true | function(node) | - |
|loadData | load data asynchronously and the return value should be a promise | function(node) | - |

@@ -88,3 +88,3 @@ |onRightClick | select current treeNode and show customized contextmenu | function({event,node}) | - |

|onTreeDragLeave | it execs when fire the tree's dragleave event | function({event,node}) | - |
|onTreeDrop | it execs when fire the tree's drop event | function({event,node,dragNode,dragNodesKeys}) | - |
|onTreeDrop | it execs when fire the tree's drop event | function({event, node, dragNode, dragNodesKeys}) | - |

@@ -99,3 +99,3 @@ ### TreeNode props

|title | tree/subTree's title | String | '---' |
|key | it's used with tree props's (default)ExpandedKeys/(default)CheckedKeys/(default)SelectedKeys. you'd better to set it, and it must be unique in the tree's all treeNodes | String | treeNode's position |
|key | it's used with tree props's (default)ExpandedKeys / (default)CheckedKeys / (default)SelectedKeys. you'd better to set it, and it must be unique in the tree's all treeNodes | String | treeNode's position |
|isLeaf | whether it's leaf node | bool | false |

@@ -102,0 +102,0 @@

Sorry, the diff of this file is not supported yet

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