zy-react-library 1.0.148 → 1.0.149

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25,11 +25,11 @@ function BasicSelectTree(props) {
25
25
  // 根据 level 处理树数据
26
26
  let processedTreeData = level
27
27
  ? processTreeDataByLevel({
28
- data: treeData,
29
- level,
30
- childrenKey,
31
- currentLevel: 1,
32
- })
28
+ data: treeData,
29
+ level,
30
+ childrenKey,
31
+ currentLevel: 1,
32
+ })
33
33
  : treeData;
34
34
 
35
35
  // 根据 onlyLastLevel 处理树数据
@@ -51,17 +51,18 @@ function BasicSelectTree(props) {
51
51
  }
52
52
  onGetNodePaths?.(arrayObjectDeduplication(parentNodes, idKey));
53
53
  onGetLabel?.(label);
54
- return;
55
54
  }
56
- const parentNodes = getTreeNodePaths({
57
- data: treeData,
58
- targetId: value,
59
- idKey,
60
- childrenKey,
61
- isIncludeOneself: onGetNodePathsIsIncludeOneself,
62
- });
63
- onGetNodePaths?.(parentNodes);
64
- onGetLabel?.(parentNodes[parentNodes.length - 1][nameKey]);
55
+ else {
56
+ const parentNodes = getTreeNodePaths({
57
+ data: treeData,
58
+ targetId: value,
59
+ idKey,
60
+ childrenKey,
61
+ isIncludeOneself: onGetNodePathsIsIncludeOneself,
62
+ });
63
+ onGetNodePaths?.(parentNodes);
64
+ onGetLabel?.(parentNodes[parentNodes.length - 1][nameKey]);
65
+ }
65
66
  }
66
67
  else {
67
68
  onGetNodePaths?.([]);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zy-react-library",
3
3
  "private": false,
4
- "version": "1.0.148",
4
+ "version": "1.0.149",
5
5
  "type": "module",
6
6
  "description": "",
7
7
  "author": "LiuJiaNan",