MCPcopy Index your code
hub / github.com/alibaba/lowcode-engine / replaceChild

Method replaceChild

packages/types/src/shell/model/node.ts:397–397  ·  view source on GitHub ↗

* 替换指定节点 * replace a child node with data provided * @param node 待替换的子节点 * @param data 用作替换的节点对象或者节点描述 * @returns

(node: Node, data: any)

Source from the content-addressed store, hash-verified

395 * @returns
396 */
397 replaceChild(node: Node, data: any): Node | null;
398
399 /**
400 * 将当前节点替换成指定节点描述

Callers 3

replaceChildMethod · 0.65
replaceWithMethod · 0.65
node.test.tsFile · 0.65

Implementers 1

Nodepackages/shell/src/model/node.ts

Calls

no outgoing calls

Tested by

no test coverage detected