# vuePlugs_printjs **Repository Path**: wjs0509/vuePlugs_printjs ## Basic Information - **Project Name**: vuePlugs_printjs - **Description**: vue打印插件 - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2020-05-07 - **Last Updated**: 2022-04-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # vuePlugs_printjs vue打印插件 **使用方法** ``` import Print from '@/plugs/print' Vue.use(Print) // 注册 this.$print(this.$ref.print) // 使用 ``` 注意事项 需使用ref获取dom节点,若直接通过id或class获取则webpack打包部署后打印内容为空 **指定不打印区域** 方法一. 添加no-print样式类 ```
不要打印我
``` 方法二. 自定义类名 ```
不要打印我
this.$print(this.$ref.print,{'no-print':'.do-not-print-me-xxx'}) // 使用 ```