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

Method getExtraProp

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

* 获取指定 path 的属性模型实例, * 注:导出时,不同于普通属性,该属性并不挂载在 props 之下,而是与 props 同级 * @param path 属性路径,支持 a / a.b / a.0 等格式 * @param createIfNone 当没有属性的时候,是否创建一个属性 * @returns

(path: string, createIfNone?: boolean)

Source from the content-addressed store, hash-verified

470 * @returns
471 */
472 getExtraProp(path: string, createIfNone?: boolean): IPublicModelProp | null {
473 return ShellProp.create(this[nodeSymbol].getExtraProp(path, createIfNone));
474 }
475
476 /**
477 * 获取指定 path 的属性模型实例,

Callers 2

getExtraPropValueMethod · 0.95
setExtraPropValueMethod · 0.95

Calls 2

getExtraPropMethod · 0.65
createMethod · 0.45

Tested by

no test coverage detected