Merge pull request #12186 from dataease/pr@dev-v2@fix_3d

fix(数据大屏): 修复组合图开启3d后解除组合,后续创建组件持续开启3d问题
This commit is contained in:
王嘉豪 2024-09-13 10:40:50 +08:00 committed by GitHub
commit 47bcedd5fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -164,7 +164,7 @@ export const composeStore = defineStore('compose', {
components.forEach(component => {
component.canvasId = 'Group-' + newId
})
const groupComponent = {
const groupComponent = deepCopy({
id: newId,
component: 'Group',
canvasActive: false,
@ -173,7 +173,7 @@ export const composeStore = defineStore('compose', {
icon: 'group',
expand: true,
commonBackground: {
...deepCopy(COMMON_COMPONENT_BACKGROUND_MAP[curOriginThemes.value]),
...COMMON_COMPONENT_BACKGROUND_MAP[curOriginThemes.value],
backgroundColorSelect: false,
innerPadding: 0
},
@ -183,7 +183,7 @@ export const composeStore = defineStore('compose', {
...areaData.style
},
propValue: components
}
})
createGroupStyle(groupComponent)
dvMainStore.addComponent({