Merge pull request #861 from dataease/pr@dev@feat_panel-edit

fix:修复pdf导出图片显示不全问题
This commit is contained in:
王嘉豪 2021-09-23 18:39:26 +08:00 committed by GitHub
commit db02c9d74c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -151,9 +151,12 @@ export default {
const _this = this
const erd = elementResizeDetectorMaker()
// div
erd.listenTo(document.getElementById('canvasInfoTemp'), element => {
const tempDom = document.getElementById('canvasInfoTemp')
erd.listenTo(tempDom, element => {
_this.$nextTick(() => {
_this.restore()
//mainHeight px html2canvas
_this.mainHeight = tempDom.scrollHeight + 'px!important'
})
})
eventBus.$on('openChartDetailsDialog', this.openChartDetailsDialog)