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

Method getExtraProp

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

* 获取指定 path 的属性模型实例, * 注:导出时,不同于普通属性,该属性并不挂载在 props 之下,而是与 props 同级 * * get extra prop by path, an extra prop means a prop not exists in the `props` * but as siblint of the `props` * @param path 属性路径,支持 a / a.b / a.0 等格式 * @param createIfNone 当没有属性的时候,是否创建一个属性

(path: string, createIfNone?: boolean)

Source from the content-addressed store, hash-verified

318 * @param createIfNone 当没有属性的时候,是否创建一个属性
319 */
320 getExtraProp(path: string, createIfNone?: boolean): Prop | null;
321
322 /**
323 * 获取指定 path 的属性模型实例,

Callers 12

getExtraPropMethod · 0.65
setTitleLabelMethod · 0.65
includeSlotFunction · 0.65
removeSlotFunction · 0.65
fileNameMethod · 0.65
addSlotMethod · 0.65
getExtraPropValueMethod · 0.65
setExtraPropValueMethod · 0.65
node.test.tsFile · 0.65
prop.test.tsFile · 0.65
renderMethod · 0.65

Implementers 1

Nodepackages/shell/src/model/node.ts

Calls

no outgoing calls

Tested by

no test coverage detected