Skip to content

Commit d7c8359

Browse files
committed
publish: 更新版本
1 parent ea06f09 commit d7c8359

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

core/README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export {
1111
flattenDeep, // 将树形数据向下递归为一维数组 function (arr = [], childs = "Children")
1212
flattenDeepParents, // 将树形数据向上将此支线递归为一维数组 function (arr, parent)
1313
regDeepParents, // 根据条件递归祖先元素 function (row, parent, reg)
14-
arrayToTree, // function ( array = [], options = { id: "id", pid: "pid", children: "children" , rootPidVal})
14+
arrayToTree, // function ( array = [], options = { id: "id", pid: "pid", children: "children" , rootPidVal:null}) rootPidVal应该是个数组格式
1515
patchTreeChain, // 如果数据里缺少树枝节点,则根据parents和自增长id补全整条树链,输出数据调用上部arrToTree函数组装成完整的树 function patchTreeChain( data, sourceData, options = { Id: "Id", ParentId: "ParentId", Parents: "Parents", IdentityId: "IdentityId", root: "00000000-0000-0000-0000-000000000000" } )
1616
locationAfterDelete, // 数组删除后重新定位 function (data, delId, actId, useTree = false)
1717
splicParentsUntil, // 从坐标值拼接指定字段到祖先元素
@@ -137,4 +137,7 @@ import { VaJwt } from "wl-core"
137137
// 静态方法无需实例化可直接使用,例:
138138
const payload = VaJwt.payloadAtob(jwt);
139139
// 解析jwt中有效载荷内的数据
140-
```
140+
```
141+
142+
## 版本更新说明
143+
> v1.1.9 修复数组方法arrayToTree的一个默认参数错误

core/dist/utils/array.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function arrayToTree() {
103103
id: "id",
104104
pid: "pid",
105105
children: "children",
106-
rootPidVal: rootPidVal
106+
rootPidVal: null
107107
};
108108
var array_ = []; // 创建储存剔除叶子节点后的骨架节点数组
109109

core/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wl-core",
3-
"version": "1.1.8",
3+
"version": "1.1.9",
44
"description": "项目基础核心库",
55
"main": "dist/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)