Merge pull request #8165 from dataease/pr@dev-v2_dzz_mobile

fix(移动端): 移动端设计页面,当组件被选择至画布后,又从画布中移除,画布中会有空白,组件没有自动往上吸附。
This commit is contained in:
dataeaseShu 2024-02-26 18:01:42 +08:00 committed by GitHub
commit 6076ebabfa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View File

@ -212,6 +212,7 @@ const addToMobile = com => {
background: #f5f6f7;
padding: 16px;
padding-top: 0;
overflow-y: auto;
:deep(.ed-tabs) {
width: 100%;

View File

@ -30,6 +30,7 @@ const hanedleMessage = event => {
dvMainStore.setCanvasStyle(canvasStyleData)
dvMainStore.updateCurDvInfo(dvInfo)
dvMainStore.setCanvasViewInfo(canvasViewInfo)
eventBus.emit('doCanvasInit-canvas-main')
panelInit.value = true
}
@ -37,6 +38,7 @@ const hanedleMessage = event => {
const component = event.data.value
checkItemPosition(component)
dvMainStore.componentData.push(component)
eventBus.emit('doCanvasInit-canvas-main')
}
if (event.data.type === 'setCanvasStyle') {