chore: 更新依赖包,对应兼容处理

This commit is contained in:
xiaoxian521
2024-03-05 15:36:07 +08:00
parent 131d1e8ada
commit 91bebdae94
3 changed files with 378 additions and 142 deletions

View File

@@ -21,7 +21,7 @@ const source =
const handleDocumentRender = () => {
loading.value = false;
pageCount.value = pdfRef.value.pageCount;
pageCount.value = pdfRef.value.doc.numPages;
};
const showAllPagesChange = () => {
@@ -29,6 +29,7 @@ const showAllPagesChange = () => {
};
const onPrint = () => {
// 如果在打印时,打印页面是本身的两倍,在打印配置 页面 设置 仅限页码为奇数的页面 即可
pdfRef.value.print();
};
</script>