remove 乐高临时兼容代码

This commit is contained in:
荣彬 2020-07-28 15:16:31 +08:00
parent 26c307ec7b
commit 5e8ef87798

View File

@ -172,13 +172,13 @@ function compatiableReducer(props: any) {
} }
} }
// 为了能降级到老版本,建议在后期版本去掉以下代码 // 为了能降级到老版本,建议在后期版本去掉以下代码
if (isJSExpression(val) && !val.events) { // if (isJSExpression(val) && !val.events) {
val = { // val = {
type: 'variable', // type: 'variable',
value: val.mock, // value: val.mock,
variable: val.value, // variable: val.value,
} // }
} // }
newProps[key] = val; newProps[key] = val;
}); });
return newProps; return newProps;