forked from github/dataease
fix(数据大屏): 修复数据大屏复用后的组合需要移动才能显示的问题
This commit is contained in:
parent
d6b337f41f
commit
1cbe7e2b43
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user