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) {
val = {
type: 'variable',
value: val.mock,
variable: val.value,
}
}
// if (isJSExpression(val) && !val.events) {
// val = {
// type: 'variable',
// value: val.mock,
// variable: val.value,
// }
// }
newProps[key] = val;
});
return newProps;