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

Method dispose

packages/designer/src/document/node/props/prop.ts:418–428  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

416
417 @action
418 private dispose() {
419 const items = untracked(() => this._items);
420 if (items) {
421 items.forEach((prop) => prop.purge());
422 }
423 this._items = null;
424 if (this._type !== 'slot' && this._slotNode) {
425 this._slotNode.remove();
426 this._slotNode = undefined;
427 }
428 }
429
430 @action
431 setAsSlot(data: IPublicTypeJSSlot) {

Callers 1

setValueMethod · 0.95

Calls 3

forEachMethod · 0.65
purgeMethod · 0.65
removeMethod · 0.65

Tested by

no test coverage detected