style: change func name
This commit is contained in:
parent
c687a3f329
commit
0f7f7be946
|
@ -37,7 +37,7 @@ export function addAttrs(data, { parent = null, preIndex = false, level = 0, exp
|
|||
})
|
||||
}
|
||||
|
||||
export function cleanAttrs(data, children = 'children') {
|
||||
export function cleanParentAttr(data, children = 'children') {
|
||||
data.forEach(item => {
|
||||
item._parent = null
|
||||
if (item[children] && item[children].length > 0) {
|
||||
|
|
Loading…
Reference in New Issue