fix(数据大屏): 修复数据大屏复用后的组合需要移动才能显示的问题

This commit is contained in:
wangjiahao 2024-07-01 09:54:04 +08:00
parent d6b337f41f
commit 1cbe7e2b43

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)