Skip to content

Home > @zero-dim/designer > findAndModifyParentById

findAndModifyParentById() function

根据targetId搜索到对于数据,然后修改改数据父亲节点内容

Signature:

typescript
export declare function findAndModifyParentById(treeArray: Schema[], targetId: string, callback: Function): Schema[];

Parameters

Parameter

Type

Description

treeArray

Schema[]

targetId

string

callback

Function

**Returns:**

Schema[]