@hi-ui/table 4.0.5 → 4.0.8

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.
@@ -54,7 +54,7 @@ var useAsyncSwitch = function useAsyncSwitch(setCascaderData, onExpand, onLoadCh
54
54
  if (Array.isArray(childrenNodes)) {
55
55
  setCascaderData(function (prev) {
56
56
  var nextTreeData = treeUtils.cloneTree(prev);
57
- treeUtils.addChildrenById(nextTreeData, node.id, childrenNodes);
57
+ treeUtils.addChildrenById(nextTreeData, node.id, childrenNodes, 'key');
58
58
  return nextTreeData;
59
59
  });
60
60
  }
@@ -33,7 +33,7 @@ var useAsyncSwitch = function useAsyncSwitch(setCascaderData, onExpand, onLoadCh
33
33
  if (Array.isArray(childrenNodes)) {
34
34
  setCascaderData(function (prev) {
35
35
  var nextTreeData = cloneTree(prev);
36
- addChildrenById(nextTreeData, node.id, childrenNodes);
36
+ addChildrenById(nextTreeData, node.id, childrenNodes, 'key');
37
37
  return nextTreeData;
38
38
  });
39
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hi-ui/table",
3
- "version": "4.0.5",
3
+ "version": "4.0.8",
4
4
  "description": "A sub-package for @hi-ui/hiui.",
5
5
  "keywords": [],
6
6
  "author": "HiUI <mi-hiui@xiaomi.com>",
@@ -44,28 +44,28 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@hi-ui/array-utils": "^4.0.1",
47
- "@hi-ui/button": "^4.0.3",
48
- "@hi-ui/checkbox": "^4.0.2",
47
+ "@hi-ui/button": "^4.0.5",
48
+ "@hi-ui/checkbox": "^4.0.5",
49
49
  "@hi-ui/classname": "^4.0.1",
50
- "@hi-ui/dom-utils": "^4.0.2",
51
- "@hi-ui/drawer": "^4.0.3",
52
- "@hi-ui/empty-state": "^4.0.2",
50
+ "@hi-ui/dom-utils": "^4.0.4",
51
+ "@hi-ui/drawer": "^4.0.5",
52
+ "@hi-ui/empty-state": "^4.0.4",
53
53
  "@hi-ui/env": "^4.0.1",
54
54
  "@hi-ui/func-utils": "^4.0.1",
55
- "@hi-ui/icon-button": "^4.0.2",
56
- "@hi-ui/icons": "^4.0.2",
57
- "@hi-ui/loading": "^4.0.2",
55
+ "@hi-ui/icon-button": "^4.0.4",
56
+ "@hi-ui/icons": "^4.0.4",
57
+ "@hi-ui/loading": "^4.0.4",
58
58
  "@hi-ui/object-utils": "^4.0.1",
59
- "@hi-ui/pagination": "^4.0.3",
60
- "@hi-ui/popper": "^4.0.2",
59
+ "@hi-ui/pagination": "^4.0.6",
60
+ "@hi-ui/popper": "^4.0.4",
61
61
  "@hi-ui/react-utils": "^4.0.1",
62
- "@hi-ui/select": "^4.0.3",
63
- "@hi-ui/spinner": "^4.0.2",
62
+ "@hi-ui/select": "^4.0.6",
63
+ "@hi-ui/spinner": "^4.0.4",
64
64
  "@hi-ui/times": "^4.0.1",
65
- "@hi-ui/tree-utils": "^4.0.1",
65
+ "@hi-ui/tree-utils": "^4.0.2",
66
66
  "@hi-ui/type-assertion": "^4.0.1",
67
67
  "@hi-ui/use-cache": "^4.0.1",
68
- "@hi-ui/use-check": "^4.0.1",
68
+ "@hi-ui/use-check": "^4.0.2",
69
69
  "@hi-ui/use-check-state": "^4.0.1",
70
70
  "@hi-ui/use-drag-sorter": "^4.0.1",
71
71
  "@hi-ui/use-latest": "^4.0.1",
@@ -81,12 +81,12 @@
81
81
  "react-dom": ">=16.8.6"
82
82
  },
83
83
  "devDependencies": {
84
- "@hi-ui/core": "^4.0.2",
84
+ "@hi-ui/core": "^4.0.4",
85
85
  "@hi-ui/core-css": "^4.0.1",
86
86
  "@hi-ui/hi-build": "^4.0.1",
87
87
  "@types/react-resizable": "^1.7.4",
88
88
  "react": "^17.0.1",
89
89
  "react-dom": "^17.0.1"
90
90
  },
91
- "gitHead": "7d841458bef1853b31426203cb0a9dc2b9820908"
91
+ "gitHead": "864630e4ef35b8a3c85e56dcb5e2948bf1f9728f"
92
92
  }