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

Method code

packages/designer/src/document/node/props/prop.ts:102–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100 * 获得表达式值
101 */
102 @computed get code() {
103 if (isJSExpression(this.value)) {
104 return this.value.value;
105 }
106 // todo: JSFunction ...
107 if (this.type === 'slot') {
108 return JSON.stringify(this._slotNode!.export(IPublicEnumTransformStage.Save));
109 }
110 return this._code != null ? this._code : JSON.stringify(this.value);
111 }
112
113 /**
114 * 设置表达式值

Callers

nothing calls this directly

Calls 4

setValueMethod · 0.95
parseMethod · 0.80
exportMethod · 0.65
isJSExpressionFunction · 0.50

Tested by

no test coverage detected