zydx-plus 1.35.621 → 1.35.622
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.
- package/package.json +1 -1
- package/src/components/flip/src/flip.vue +2 -1
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -1538,11 +1538,12 @@ export default {
|
|
|
1538
1538
|
return n[v]
|
|
1539
1539
|
},
|
|
1540
1540
|
readPdf: debounce(function () {
|
|
1541
|
+
if(Object.keys(pdfs).length === 0) return
|
|
1541
1542
|
setTimeout(() => {
|
|
1542
1543
|
let that = this
|
|
1543
1544
|
that.mouse()
|
|
1544
1545
|
that.$nextTick(() => {
|
|
1545
|
-
pdfs[that.id]
|
|
1546
|
+
pdfs[that.id]?.getPage(that.pageIndex).then(function (page) {
|
|
1546
1547
|
that.doc = page
|
|
1547
1548
|
that.viewWidth = page.view[2] - page.view[0]
|
|
1548
1549
|
that.viewHeight = page.view[3] - page.view[1]
|