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

fix(数据大屏): 修复数据大屏复用后的组合需要移动才能显示的问题
This commit is contained in:
王嘉豪 2024-07-01 09:54:50 +08:00 committed by GitHub
commit cd6941ef0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,6 +8,7 @@ import eventBus from '@/utils/eventBus'
import { adaptCurThemeCommonStyle } from '@/utils/canvasStyle'
import { composeStoreWithOut } from '@/store/modules/data-visualization/compose'
import { snapshotStoreWithOut } from '@/store/modules/data-visualization/snapshot'
import { groupSizeStyleAdaptor } from '@/utils/style'
const dvMainStore = dvMainStoreWithOut()
const composeStore = composeStoreWithOut()
@ -124,6 +125,9 @@ export const copyStore = defineStore('copy', {
index: componentData.value.length - 1
})
}
if (newComponent.component === 'Group') {
groupSizeStyleAdaptor(newComponent)
}
i++
}
}, moveTime)