提交 f2716314 authored 作者: wangjiahao's avatar wangjiahao

fix:修复pdf导出图片显示不全问题

上级 dba9d42e
...@@ -151,9 +151,12 @@ export default { ...@@ -151,9 +151,12 @@ export default {
const _this = this const _this = this
const erd = elementResizeDetectorMaker() const erd = elementResizeDetectorMaker()
// 监听div变动事件 // 监听div变动事件
erd.listenTo(document.getElementById('canvasInfoTemp'), element => { const tempDom = document.getElementById('canvasInfoTemp')
erd.listenTo(tempDom, element => {
_this.$nextTick(() => { _this.$nextTick(() => {
_this.restore() _this.restore()
//将mainHeight 修改为px 临时解决html2canvas 截图不全的问题
_this.mainHeight = tempDom.scrollHeight + 'px!important'
}) })
}) })
eventBus.$on('openChartDetailsDialog', this.openChartDetailsDialog) eventBus.$on('openChartDetailsDialog', this.openChartDetailsDialog)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论