mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 09:41:57 +00:00
fix: vision兼容标准api
This commit is contained in:
parent
88e5008139
commit
394db8db1b
@ -197,13 +197,13 @@ function compatiableReducer(props: any) {
|
||||
};
|
||||
}
|
||||
// 为了能降级到老版本,建议在后期版本去掉以下代码
|
||||
if (isJSExpression(props) && !props.events) {
|
||||
return {
|
||||
type: 'variable',
|
||||
value: props.mock,
|
||||
variable: props.value,
|
||||
}
|
||||
}
|
||||
// if (isJSExpression(props) && !props.events) {
|
||||
// return {
|
||||
// type: 'variable',
|
||||
// value: props.mock,
|
||||
// variable: props.value,
|
||||
// }
|
||||
// }
|
||||
const newProps: any = {};
|
||||
Object.entries<any>(props).forEach(([key, val]) => {
|
||||
newProps[key] = compatiableReducer(val);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user