MCPcopy
hub / github.com/alibaba/lowcode-engine / getComponentMeta

Method getComponentMeta

packages/shell/src/api/material.ts:114–117  ·  view source on GitHub ↗

* 获取指定名称的物料元数据 * @param componentName * @returns

(componentName: string)

Source from the content-addressed store, hash-verified

112 * @returns
113 */
114 getComponentMeta(componentName: string): IPublicModelComponentMeta | null {
115 const innerMeta = this[designerSymbol].getComponentMeta(componentName);
116 return ShellComponentMeta.create(innerMeta);
117 }
118
119 /**
120 * create an instance of ComponentMeta by given metadata

Callers 1

getComponentMetasMapMethod · 0.95

Calls 2

getComponentMetaMethod · 0.65
createMethod · 0.45

Tested by

no test coverage detected