问题:
PDF下载下来后,文档内容被暴力分割。
解决方案:
HTML
<!-- 打印按钮 -->
<el-button type="primary" size="small" class="el-icon-download right_btn" @click="downloadPDF">PDF</el-button>
<!-- 需要打印的dom,给最外层父元素设置ID -->
<div id="print">
<!-- dom结构 -->
<div class="paper-row"></div>
... ...
</div>
JS
methods