vue-print-nb icon indicating copy to clipboard operation
vue-print-nb copied to clipboard

undefined using querySelectorAll on vue3?

Open phanchanra opened this issue 3 years ago • 1 comments

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('关闭了打印工具')
            },
      }

phanchanra avatar Nov 25 '22 04:11 phanchanra

Me too do you find a solution?

Cannot read properties of null (reading 'querySelectorAll')

futurewebsites avatar Feb 20 '23 12:02 futurewebsites