Vue打印插件vue-print-nb-jeecg使⽤第⼀步: 下载vue-print-nb-jeecg插件
npm install vue-print-nb-jeecg –save
第⼆步: 在main.js中,引⽤并注册全局使⽤
import Print from 'vue-print-nb-jeecg'
Vue.use(Print);
第三步: 需要打印的元素添加id
<div id="printMe">xxxx内容</div>
vuejs流程图插件第四步: 打印按钮添加v-print="’#printMe’"
<el-button v-print="'#printMe'" type="primary">打印</el-button>