Merge pull request #9125 from dataease/pr@dev-v2@fix_group

Pr@dev v2@fix group
This commit is contained in:
王嘉豪 2024-04-16 13:27:50 +08:00 committed by GitHub
commit cc1d46dc78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View File

@ -1362,7 +1362,10 @@ const groupAreaChange = (showArea, style?) => {
groupArea.style.height = style.height
dvMainStore.addComponent({ component: groupArea, index: undefined })
} else {
dvMainStore.deleteComponentById(100000001)
const groupAreaHis = componentData.value.filter(ele => ele.id === 100000001)
if (groupAreaHis && groupAreaHis.length > 0) {
dvMainStore.deleteComponentById(100000001)
}
}
})
}

View File

@ -104,7 +104,7 @@ export const composeStore = defineStore('compose', {
areaData.components = []
return
}
if (areaData.components.length > 0 && areaData.style.width === 0) {
if (areaData.components.length > 0) {
// 计算组合区域
this.calcComposeArea()
}