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

Method constructor

packages/designer/src/document/node/props/prop.ts:228–245  ·  view source on GitHub ↗
(
    public parent: IPropParent,
    value: IPublicTypeCompositeValue | UNSET = UNSET,
    key?: string | number,
    spread = false,
    options = {},
  )

Source from the content-addressed store, hash-verified

226 private purged = false;
227
228 constructor(
229 public parent: IPropParent,
230 value: IPublicTypeCompositeValue | UNSET = UNSET,
231 key?: string | number,
232 spread = false,
233 options = {},
234 ) {
235 makeObservable(this);
236 this.owner = parent.owner;
237 this.props = parent.props;
238 this.key = key;
239 this.spread = spread;
240 this.options = options;
241 if (value !== UNSET) {
242 this.setValue(value);
243 }
244 this.setupItems();
245 }
246
247 // TODO: 先用调用方式触发子 prop 的初始化,后续须重构
248 @action

Callers

nothing calls this directly

Calls 2

setValueMethod · 0.95
setupItemsMethod · 0.95

Tested by

no test coverage detected