mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-06-03 22:20:51 +00:00
fix: 兼容vision版本
This commit is contained in:
parent
ae37a02d62
commit
bfc9d68d00
@ -21,13 +21,13 @@ export function compatibleReducer(props: any) {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
if (isJSExpression(props) && !props.events) {
|
// if (isJSExpression(props) && !props.events) {
|
||||||
return {
|
// return {
|
||||||
type: 'variable',
|
// type: 'variable',
|
||||||
value: props.mock,
|
// value: props.mock,
|
||||||
variable: props.value,
|
// variable: props.value,
|
||||||
};
|
// };
|
||||||
}
|
// }
|
||||||
const newProps: any = {};
|
const newProps: any = {};
|
||||||
Object.entries<any>(props).forEach(([key, val]) => {
|
Object.entries<any>(props).forEach(([key, val]) => {
|
||||||
newProps[key] = compatibleReducer(val);
|
newProps[key] = compatibleReducer(val);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user