Merge pull request #8359 from dataease/pr@dev@fix_tab-table

fix(仪表板): 修复将明细表添加进tab组件预览界面显示图表不全问题
This commit is contained in:
王嘉豪 2024-03-06 09:45:42 +08:00 committed by GitHub
commit c4c8b180a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -846,6 +846,10 @@ export default {
}
}
})
const maxWidth = this.canvasStyleData.width * this.scaleWidth / 100
if (component.style['width'] > maxWidth) {
component.style['width'] = maxWidth
}
})
this.componentDataShow = componentData
this.$nextTick(() => (eventBus.$emit('resizing', '')))