forked from github/dataease
Merge pull request #8165 from dataease/pr@dev-v2_dzz_mobile
fix(移动端): 移动端设计页面,当组件被选择至画布后,又从画布中移除,画布中会有空白,组件没有自动往上吸附。
This commit is contained in:
commit
6076ebabfa
@ -212,6 +212,7 @@ const addToMobile = com => {
|
||||
background: #f5f6f7;
|
||||
padding: 16px;
|
||||
padding-top: 0;
|
||||
overflow-y: auto;
|
||||
|
||||
:deep(.ed-tabs) {
|
||||
width: 100%;
|
||||
|
@ -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') {
|
||||
|
Loading…
Reference in New Issue
Block a user