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

Method getProp

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

* 获取指定 path 的属性模型实例 * @param path 属性路径,支持 a / a.b / a.0 等格式 * @returns

(path: string, createIfNone = true)

Source from the content-addressed store, hash-verified

450 * @returns
451 */
452 getProp(path: string, createIfNone = true): IPublicModelProp | null {
453 return ShellProp.create(this[nodeSymbol].getProp(path, createIfNone));
454 }
455
456 /**
457 * 获取指定 path 的属性模型实例值

Callers 2

getPropValueMethod · 0.95
setPropValueMethod · 0.95

Calls 2

getPropMethod · 0.65
createMethod · 0.45

Tested by

no test coverage detected