Merge pull request #3922 from dataease/pr@dev@fix_mobile-tab

fix(仪表板): 修复部分Tab页面内容不显示问题
This commit is contained in:
Junjun
2022-11-29 12:04:13 +08:00
committed by GitHub

View File

@@ -569,7 +569,7 @@ const data = {
// 移动端布局转换
state.componentData.forEach(item => {
item.mobileStyle = (item.mobileStyle || BASE_MOBILE_STYLE)
if (item.mobileSelected) {
if (item.mobileSelected || item.canvasId !== 'canvas-main') {
item.style.width = item.mobileStyle.style.width
item.style.height = item.mobileStyle.style.height
item.style.top = item.mobileStyle.style.top