fix: optional chaining bug
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "pdf-viewer-vue",
|
"name": "pdf-viewer-vue",
|
||||||
"version": "0.2.0",
|
"version": "0.2.1",
|
||||||
"description": "PDF viewer component for Vue 2 and Vue 3",
|
"description": "PDF viewer component for Vue 2 and Vue 3",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"vue",
|
"vue",
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
printPDF() {
|
printPDF() {
|
||||||
const contentWindow = this.$refs.iframe.getContentWindow()
|
const contentWindow = this.$refs.iframe.getContentWindow()
|
||||||
contentWindow?.print()
|
contentWindow.print()
|
||||||
},
|
},
|
||||||
updateZoomFullpage() {
|
updateZoomFullpage() {
|
||||||
const perViewerHeight = this.viewerContentHeight / this.total
|
const perViewerHeight = this.viewerContentHeight / this.total
|
||||||
|
|||||||
Reference in New Issue
Block a user