@toolspack/ttd-pdfjs 0.0.7 → 0.0.8
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/README.md +2 -1
- package/lib/ttd-pdfjs.common.js +59 -56
- package/lib/ttd-pdfjs.umd.js +59 -56
- package/lib/ttd-pdfjs.umd.min.js +4 -4
- package/package.json +1 -1
- package/src/packages/pdfjs/PdfView216.vue +5 -1
package/package.json
CHANGED
|
@@ -159,7 +159,7 @@ export default {
|
|
|
159
159
|
const renderTask = await page.render(renderContext)
|
|
160
160
|
|
|
161
161
|
// Wait for rendering to finish
|
|
162
|
-
|
|
162
|
+
renderTask.promise
|
|
163
163
|
vm.pageRendering = false
|
|
164
164
|
if (vm.pageNumPending !== null) {
|
|
165
165
|
// New page rendering is pending
|
|
@@ -278,6 +278,10 @@ export default {
|
|
|
278
278
|
// 这要通过调用 ondragover 事件的 event.preventDefault() 方法:
|
|
279
279
|
event.preventDefault()
|
|
280
280
|
},
|
|
281
|
+
updateScale() {
|
|
282
|
+
this.compuscale = this.scale
|
|
283
|
+
this.renderPage(this.pageNum)
|
|
284
|
+
},
|
|
281
285
|
},
|
|
282
286
|
mounted() {
|
|
283
287
|
this.compuscale = this.scale
|