eztech-core-components 1.0.60 → 1.0.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,6 @@
11
11
  frameborder="0"
12
12
  @load="handlePrintPdf"
13
13
  />
14
- <div class="absolute inset-0 bg-transparent pointer-events-auto" @mousedown.right.prevent />
15
14
  </div>
16
15
  </el-dialog>
17
16
  </template>
@@ -74,10 +73,13 @@ export default {
74
73
  }
75
74
  },
76
75
  handlePrintPdf () {
76
+ const iframe = document.getElementById('pdfFrame')
77
+ if (iframe.contentWindow) {
78
+ iframe.contentWindow.document.addEventListener('contextmenu', e => e.preventDefault())
79
+ }
77
80
  if (!this.isPdfPrint) {
78
81
  return
79
82
  }
80
- const iframe = document.getElementById('pdfFrame')
81
83
  if (iframe && iframe.contentWindow) {
82
84
  iframe.contentWindow.focus()
83
85
  iframe.contentWindow.print()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eztech-core-components",
3
- "version": "1.0.60",
3
+ "version": "1.0.61",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },