forked from github/dataease
Merge pull request #9048 from dataease/pr@dev-v2_bug_fix
fix(移动端): 修复tab组件布局丢失问题
This commit is contained in:
commit
649ec20600
@ -25,6 +25,18 @@ const hanedleMessage = event => {
|
||||
ele.y = my
|
||||
ele.sizeX = mSizeX
|
||||
ele.sizeY = mSizeY
|
||||
|
||||
if (ele.component === 'DeTabs') {
|
||||
ele.propValue.forEach(tabItem => {
|
||||
tabItem.componentData.forEach(tabComponent => {
|
||||
const { mx: tx, my: ty, mSizeX: tSizeX, mSizeY: tSizeY } = tabComponent
|
||||
tabComponent.x = tx
|
||||
tabComponent.y = ty
|
||||
tabComponent.sizeX = tSizeX
|
||||
tabComponent.sizeY = tSizeY
|
||||
})
|
||||
})
|
||||
}
|
||||
})
|
||||
dvMainStore.setComponentData(componentData)
|
||||
dvMainStore.setMobileInPc(true)
|
||||
|
Loading…
Reference in New Issue
Block a user