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

Method setupAutoruns

packages/designer/src/document/node/node.ts:430–440  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

428 }
429
430 private setupAutoruns() {
431 const { autoruns } = this.componentMeta.advanced;
432 if (!autoruns || autoruns.length < 1) {
433 return;
434 }
435 this.autoruns = autoruns.map((item) => {
436 return autorun(() => {
437 item.autorun(this.props.getNode().settingEntry.get(item.name)?.internalToShellField());
438 });
439 });
440 }
441
442 private initialChildren(children: IPublicTypeNodeData | IPublicTypeNodeData[] | undefined): IPublicTypeNodeData[] {
443 const { initialChildren } = this.componentMeta.advanced;

Callers 1

constructorMethod · 0.95

Calls 5

mapMethod · 0.65
autorunMethod · 0.65
internalToShellFieldMethod · 0.65
getMethod · 0.65
getNodeMethod · 0.65

Tested by

no test coverage detected