mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-04-20 12:28:08 +00:00
fix: 🐛 修复区块面板命名冲突的问题
This commit is contained in:
parent
a891e3be01
commit
de50ebfd69
@ -95,10 +95,10 @@ function upgradeConfig(config: OldPaneConfig): IWidgetBaseConfig & { area: strin
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (contents && Array.isArray(contents)) {
|
if (contents && Array.isArray(contents)) {
|
||||||
newConfig.content = contents.map(({ title, content, tip }) => {
|
newConfig.content = contents.map(({ title, content, tip }, index) => {
|
||||||
return {
|
return {
|
||||||
type: "Panel",
|
type: "Panel",
|
||||||
name: title,
|
name: typeof title === 'string' ? title : `${name}:${index}`,
|
||||||
content,
|
content,
|
||||||
props: {
|
props: {
|
||||||
title,
|
title,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user