mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-06 02:11:56 +00:00
fix: Fix the rendering error caused by incorrect key value when configuring the loop
This commit is contained in:
parent
39c24add37
commit
f48992d093
@ -527,7 +527,7 @@ export default function baseRendererFactory() {
|
|||||||
engine?.props?.onCompGetCtx(schema, scope);
|
engine?.props?.onCompGetCtx(schema, scope);
|
||||||
}
|
}
|
||||||
props.key = props.key || `${schema.__ctx.lceKey}_${schema.__ctx.idx || 0}_${idx !== undefined ? idx : ''}`;
|
props.key = props.key || `${schema.__ctx.lceKey}_${schema.__ctx.idx || 0}_${idx !== undefined ? idx : ''}`;
|
||||||
} else if (typeof idx === 'number' && !props.key) {
|
} else if ((typeof idx === 'number' || typeof idx === 'string') && !props.key) {
|
||||||
// 仅当循环场景走这里
|
// 仅当循环场景走这里
|
||||||
props.key = idx;
|
props.key = idx;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user