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

Method remove

packages/shell/src/api/skeleton.ts:66–73  ·  view source on GitHub ↗

* 移除一个面板实例 * @param config * @returns

(config: IPublicTypeSkeletonConfig)

Source from the content-addressed store, hash-verified

64 * @returns
65 */
66 remove(config: IPublicTypeSkeletonConfig): number | undefined {
67 const { area, name } = config;
68 const skeleton = this[skeletonSymbol];
69 if (!normalizeArea(area)) {
70 return;
71 }
72 skeleton[normalizeArea(area)].container?.remove(name);
73 }
74
75 getAreaItems(areaName: IPublicTypeWidgetConfigArea): IPublicModelSkeletonItem[] {
76 return this[skeletonSymbol][normalizeArea(areaName)].container.items?.map(d => new SkeletonItem(d));

Callers

nothing calls this directly

Calls 2

normalizeAreaFunction · 0.85
removeMethod · 0.65

Tested by

no test coverage detected