fix(数据大屏): 修复组合图开启3d后解除组合,后续创建组件持续开启3d问题

This commit is contained in:
wangjiahao 2024-09-13 10:40:09 +08:00
parent b3a432761f
commit 3e6a5c5420

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({