Merge pull request #9048 from dataease/pr@dev-v2_bug_fix

fix(移动端): 修复tab组件布局丢失问题
This commit is contained in:
dataeaseShu 2024-04-10 18:49:07 +08:00 committed by GitHub
commit 649ec20600
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)