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
commit 5d0786175b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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