vue-print-nb
vue-print-nb copied to clipboard
undefined using querySelectorAll on vue3?
Hello I have problem with use properties of null (reading 'querySelectorAll') when i click print Please to fixed
<el-button v-print="'#printObj'" type="primary" >
Print Vue3
</el-button> `
data() {
return {
printLoading: true,
printObj: {
id: 'print-area',
popTitle: 'good print',
extraHead: '<meta http-equiv="Content-Language"content="zh-cn"/>',
beforeOpenCallback(vue) {
vue.printLoading = true
console.log('打开之前')
},
openCallback(vue) {
vue.printLoading = false
console.log('执行了打印')
},
closeCallback(vue) {
console.log('关闭了打印工具')
},
}
Me too do you find a solution?
Cannot read properties of null (reading 'querySelectorAll')