Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rc-tree

Package Overview
Dependencies
Maintainers
2
Versions
308
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.6 to 0.26.0

3

HISTORY.md
# History
---
## 0.26.x / 2016-01-13
- change drag api (from `onTreeXX` to `onXX`)
## 0.23.x / 2015-12-31

@@ -5,0 +8,0 @@ - change onDataLoaded api to loadData

30

lib/Tree.js

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

this.setState(st);
this.props.onTreeDragStart({
this.props.onDragStart({
event: e,

@@ -144,3 +144,3 @@ node: treeNode

this.setState(st);
this.props.onTreeDragEnter({
this.props.onDragEnter({
event: e,

@@ -154,3 +154,3 @@ node: treeNode,

value: function onDragOver(e, treeNode) {
this.props.onTreeDragOver({ event: e, node: treeNode });
this.props.onDragOver({ event: e, node: treeNode });
}

@@ -160,3 +160,3 @@ }, {

value: function onDragLeave(e, treeNode) {
this.props.onTreeDragLeave({ event: e, node: treeNode });
this.props.onDragLeave({ event: e, node: treeNode });
}

@@ -193,3 +193,3 @@ }, {

}
this.props.onTreeDrop(res);
this.props.onDrop(res);
}

@@ -551,7 +551,7 @@ }, {

onRightClick: _react.PropTypes.func,
onTreeDragStart: _react.PropTypes.func,
onTreeDragEnter: _react.PropTypes.func,
onTreeDragOver: _react.PropTypes.func,
onTreeDragLeave: _react.PropTypes.func,
onTreeDrop: _react.PropTypes.func,
onDragStart: _react.PropTypes.func,
onDragEnter: _react.PropTypes.func,
onDragOver: _react.PropTypes.func,
onDragLeave: _react.PropTypes.func,
onDrop: _react.PropTypes.func,
filterTreeNode: _react.PropTypes.func,

@@ -577,7 +577,7 @@ openTransitionName: _react.PropTypes.string,

onSelect: noop,
onTreeDragStart: noop,
onTreeDragEnter: noop,
onTreeDragOver: noop,
onTreeDragLeave: noop,
onTreeDrop: noop
onDragStart: noop,
onDragEnter: noop,
onDragOver: noop,
onDragLeave: noop,
onDrop: noop
};

@@ -584,0 +584,0 @@

{
"name": "rc-tree",
"version": "0.25.6",
"version": "0.26.0",
"description": "tree ui component for react",

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

@@ -83,7 +83,7 @@ # rc-tree

|draggable | whether can drag treeNode. (drag events are not supported in Internet Explorer 8 and earlier versions or Safari 5.1 and earlier versions.) | bool | false |
|onTreeDragStart | it execs when fire the tree's dragstart event | function({event,node}) | - |
|onTreeDragEnter | it execs when fire the tree's dragenter event | function({event,node,expandedKeys}) | - |
|onTreeDragOver | it execs when fire the tree's dragover event | 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}) | - |
|onDragStart | it execs when fire the tree's dragstart event | function({event,node}) | - |
|onDragEnter | it execs when fire the tree's dragenter event | function({event,node,expandedKeys}) | - |
|onDragOver | it execs when fire the tree's dragover event | function({event,node}) | - |
|onDragLeave | it execs when fire the tree's dragleave event | function({event,node}) | - |
|onDrop | it execs when fire the tree's drop event | function({event, node, dragNode, dragNodesKeys}) | - |

@@ -90,0 +90,0 @@ ### TreeNode props

Sorry, the diff of this file is not supported yet

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