diff --git a/src/components/PdfViewer/index.vue b/src/components/PdfViewer/index.vue index c10a384..f16a14e 100644 --- a/src/components/PdfViewer/index.vue +++ b/src/components/PdfViewer/index.vue @@ -1,40 +1,33 @@ @@ -200,7 +204,7 @@ .selection-box { position: absolute; - border: 1px dashed red; + border: 2px dashed red; } } @@ -219,4 +223,29 @@ transform: translateX(-50%); } } + + .tool-box { + position: absolute; + top: 5px; + right: 20px; + margin-right: 20px; + padding: 5px; + background: #ffffff; + display: flex; + justify-content: space-around; + align-items: center; + border-radius: 5px; + + .tool-button { + border-radius: 100px; + padding: 5px; + width: 36px; + height: 36px; + } + + & > span { + padding-left: 10px; + padding-right: 10px; + } + } diff --git a/src/views/data/task/index.vue b/src/views/data/task/index.vue index 4fbdac2..bef028b 100644 --- a/src/views/data/task/index.vue +++ b/src/views/data/task/index.vue @@ -219,7 +219,8 @@ import { usePermission } from '@/hooks/web/usePermission'; const pdfView = ref(); const openPdf = async (pdfData: any) => { - await pdfView.value.loadPdf(pdfData); + pdfView.value.pdfData = pdfData; + await pdfView.value.loadPdf(); pdfView.value.show(); };