mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-20 15:38:32 +00:00
Merge branch 'fix/minor-bugs-lianjie.lj' into 'release/0.9.6'
画布loop问题修复 See merge request !938265
This commit is contained in:
commit
631de13c20
@ -234,16 +234,19 @@ export default class BaseEngine extends PureComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (schema.loop != null) {
|
if (schema.loop != null) {
|
||||||
|
const loop = parseData(schema.loop, self);
|
||||||
|
if (Array.isArray(loop) && loop.length > 0 || isJSExpression(loop)) {
|
||||||
return this.__createLoopVirtualDom(
|
return this.__createLoopVirtualDom(
|
||||||
{
|
{
|
||||||
...schema,
|
...schema,
|
||||||
loop: parseData(schema.loop, self),
|
loop,
|
||||||
},
|
},
|
||||||
self,
|
self,
|
||||||
parentInfo,
|
parentInfo,
|
||||||
idx,
|
idx,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
const condition = schema.condition == null ? true : parseData(schema.condition, self);
|
const condition = schema.condition == null ? true : parseData(schema.condition, self);
|
||||||
if (!condition) return null;
|
if (!condition) return null;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user