refactor: 大屏拖拽进入的组件图层放在最顶层

This commit is contained in:
wangjiahao 2023-12-25 21:52:25 +08:00
parent 32eea248c3
commit 6e23a564cb

View File

@ -109,7 +109,7 @@ const handleDrop = e => {
component.style.left = e.clientX - rectInfo.x
component.id = guid()
changeComponentSizeWithScale(component)
dvMainStore.addComponent({ component: component, index: 0 })
dvMainStore.addComponent({ component: component, index: undefined })
adaptCurThemeCommonStyle(component)
snapshotStore.recordSnapshotCache('renderChart', component.id)
}