Unverified 提交 ac3c0935 authored 作者: 王嘉豪's avatar 王嘉豪 提交者: GitHub

Merge pull request #781 from dataease/pr@dev@refactor_panel-pdf

refactor:PDF导出默认适配横向大屏
......@@ -85,7 +85,7 @@ export default {
const contentWidth = canvas.width
const contentHeight = canvas.height
const pageData = canvas.toDataURL('image/jpeg', 1.0)
const PDF = new JsPDF('p', 'pt', [contentWidth, contentHeight])
const PDF = new JsPDF('l', 'px', [contentWidth, contentHeight])
PDF.addImage(pageData, 'JPEG', 0, 0, contentWidth, contentHeight)
PDF.save(_this.panelName + '.pdf')
}
......@@ -103,7 +103,7 @@ export default {
}
.export_body_class{
border: 1px solid #dcdfe6 ;
height: 500px;
height: 65vh;
overflow-y: auto;
}
......
......@@ -79,7 +79,8 @@
v-if="pdfExportShow"
:title="'['+panelInfo.name+']'+'PDF导出'"
:visible.sync="pdfExportShow"
width="70%"
width="80%"
:top="'8vh'"
:destroy-on-close="true"
class="dialog-css2"
>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论