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