admin管理员组文章数量:1566600
我是使用vue-easy-print插件来实现模太框内的打印。
模太框的代码如下:
:visible.sync="printvisible"
:title="print_params.title"
:width="print_params.width"
:modal="print_params.modal"
center
:close-on-click-modal="false"
:close-on-press-escape="false"
:show-close="false"
append-to-body
>
:topEight_params="print_params.checkData"
:tableTitle="tableTitle"
>
:nonRoadMove_params="print_params.checkData"
:tableTitle="tableTitle"
>
:nonRoadDiesel_params="print_params.checkData"
:tableTitle="tableTitle"
>
:engine_params="print_params.checkData"
:tableTitle="tableTitle"
>
关闭
打印
export default {
methods: {
print_check() {
this.$refs.easyPrint.print();
},
}
}
topEightTablePrint组件的style代码我添加了缩放比例设置:
@media print {
html {
zoom: 77%;
}
}
但是都不起效果,麻烦帮忙看一下,可以怎么解决,谢谢!
版权声明:本文标题:vue 调用浏览器的打印功能_vue 调用浏览器的打印时,如何自动设置好缩放比例?... 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/xitong/1726722969a1081980.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论