tools-min-ns 1.18.5 → 1.18.6

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.
package/README.md CHANGED
@@ -5,6 +5,9 @@ pnpm i tools-min-ns --save
5
5
  ```
6
6
 
7
7
  # updates
8
+ ## v1.18.6
9
+ fix: tree getItemPathByTree
10
+
8
11
  ## v1.18.5
9
12
  减小包体积
10
13
  ## v1.18.3/4
@@ -203,7 +203,7 @@ var TreeUtil;
203
203
  rootPid = _e === void 0 ? undefined : _e;
204
204
  if (BaseUtil.isEmpty(id)) return [];
205
205
  var idList = filterTreeData(tree, function (t) {
206
- return t[value] === id;
206
+ return String(t[value]) === String(id);
207
207
  });
208
208
  var list = getListByTree(tree, children);
209
209
  var _getList = function getList(importOid) {
@@ -213,7 +213,7 @@ var TreeUtil;
213
213
  rootPid = _e === void 0 ? undefined : _e;
214
214
  if (BaseUtil_1.default.isEmpty(id)) return [];
215
215
  var idList = filterTreeData(tree, function (t) {
216
- return t[value] === id;
216
+ return String(t[value]) === String(id);
217
217
  });
218
218
  var list = getListByTree(tree, children);
219
219
  var _getList = function getList(importOid) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tools-min-ns",
3
3
  "description": "工具包适用于前端以及node",
4
- "version": "1.18.5",
4
+ "version": "1.18.6",
5
5
  "main": "lib/index.js",
6
6
  "license": "MIT",
7
7
  "author": "nanshen",