Comparing version 5.3.3 to 5.3.4
@@ -56,2 +56,3 @@ import * as React from 'react'; | ||
node: TreeDataType; | ||
nodes: TreeDataType[]; | ||
parent?: DataEntity<TreeDataType>; | ||
@@ -58,0 +59,0 @@ children?: DataEntity<TreeDataType>[]; |
@@ -36,3 +36,4 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
pos: '0', | ||
node: MotionNode | ||
node: MotionNode, | ||
nodes: [MotionNode] | ||
}; | ||
@@ -39,0 +40,0 @@ var MotionFlattenData = { |
@@ -38,2 +38,3 @@ import * as React from 'react'; | ||
level: number; | ||
nodes: DataNode[]; | ||
}) => void, config?: TraverseDataNodesConfig | string): void; | ||
@@ -40,0 +41,0 @@ interface Wrapper { |
@@ -201,5 +201,6 @@ import _typeof from "@babel/runtime/helpers/esm/typeof"; | ||
function processNode(node, index, parent) { | ||
function processNode(node, index, parent, pathNodes) { | ||
var children = node ? node[mergeChildrenPropName] : dataNodes; | ||
var pos = node ? getPosition(parent.pos, index) : '0'; // Process node if is not root | ||
var pos = node ? getPosition(parent.pos, index) : '0'; | ||
var connectNodes = node ? [].concat(_toConsumableArray(pathNodes), [node]) : []; // Process node if is not root | ||
@@ -214,3 +215,4 @@ if (node) { | ||
parentPos: parent.node ? parent.pos : null, | ||
level: parent.level + 1 | ||
level: parent.level + 1, | ||
nodes: connectNodes | ||
}; | ||
@@ -227,3 +229,3 @@ callback(data); | ||
level: parent ? parent.level + 1 : -1 | ||
}); | ||
}, connectNodes); | ||
}); | ||
@@ -270,5 +272,7 @@ } | ||
parentPos = item.parentPos, | ||
level = item.level; | ||
level = item.level, | ||
nodes = item.nodes; | ||
var entity = { | ||
node: node, | ||
nodes: nodes, | ||
index: index, | ||
@@ -275,0 +279,0 @@ key: key, |
@@ -56,2 +56,3 @@ import * as React from 'react'; | ||
node: TreeDataType; | ||
nodes: TreeDataType[]; | ||
parent?: DataEntity<TreeDataType>; | ||
@@ -58,0 +59,0 @@ children?: DataEntity<TreeDataType>[]; |
@@ -53,3 +53,4 @@ "use strict"; | ||
pos: '0', | ||
node: MotionNode | ||
node: MotionNode, | ||
nodes: [MotionNode] | ||
}; | ||
@@ -56,0 +57,0 @@ exports.MotionEntity = MotionEntity; |
@@ -38,2 +38,3 @@ import * as React from 'react'; | ||
level: number; | ||
nodes: DataNode[]; | ||
}) => void, config?: TraverseDataNodesConfig | string): void; | ||
@@ -40,0 +41,0 @@ interface Wrapper { |
@@ -228,5 +228,6 @@ "use strict"; | ||
function processNode(node, index, parent) { | ||
function processNode(node, index, parent, pathNodes) { | ||
var children = node ? node[mergeChildrenPropName] : dataNodes; | ||
var pos = node ? (0, _util.getPosition)(parent.pos, index) : '0'; // Process node if is not root | ||
var pos = node ? (0, _util.getPosition)(parent.pos, index) : '0'; | ||
var connectNodes = node ? [].concat((0, _toConsumableArray2.default)(pathNodes), [node]) : []; // Process node if is not root | ||
@@ -241,3 +242,4 @@ if (node) { | ||
parentPos: parent.node ? parent.pos : null, | ||
level: parent.level + 1 | ||
level: parent.level + 1, | ||
nodes: connectNodes | ||
}; | ||
@@ -254,3 +256,3 @@ callback(data); | ||
level: parent ? parent.level + 1 : -1 | ||
}); | ||
}, connectNodes); | ||
}); | ||
@@ -298,5 +300,7 @@ } | ||
parentPos = item.parentPos, | ||
level = item.level; | ||
level = item.level, | ||
nodes = item.nodes; | ||
var entity = { | ||
node: node, | ||
nodes: nodes, | ||
index: index, | ||
@@ -303,0 +307,0 @@ key: key, |
{ | ||
"name": "rc-tree", | ||
"version": "5.3.3", | ||
"version": "5.3.4", | ||
"description": "tree ui component for react", | ||
@@ -5,0 +5,0 @@ "engines": { |
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
343539
7294