MCPcopy Create free account
hub / github.com/Easy-Editor/EasyEditor / code

Method code

packages/core/src/document/prop/prop.ts:139–144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137 * 获得表达式值
138 */
139 @computed get code() {
140 if (isJSExpression(this.value)) {
141 return this.value.value
142 }
143 return this._code != null ? this._code : JSON.stringify(this.value)
144 }
145
146 /**
147 * 设置表达式值

Callers

nothing calls this directly

Calls 2

setValueMethod · 0.95
isJSExpressionFunction · 0.85

Tested by

no test coverage detected