index.vue 613 B

1234567891011121314151617181920212223242526272829303132333435
  1. <template>
  2. <vue-pdf-app :pdf="src"></vue-pdf-app>
  3. </template>
  4. <script lang="ts" setup>
  5. import { defineAsyncComponent } from "vue";
  6. // import VuePdfApp from "vue3-pdf-app";
  7. import "vue3-pdf-app/dist/icons/main.css";
  8. const props = defineProps({
  9. src: {
  10. type: String,
  11. default: "",
  12. },
  13. });
  14. const VuePdfApp = defineAsyncComponent(() => import("vue3-pdf-app"));
  15. </script>
  16. <style lang="scss" scoped>
  17. #vuePdfApp {
  18. :deep(.toolbar) {
  19. z-index: 3;
  20. }
  21. :deep(#sidebarContainer) {
  22. z-index: 3;
  23. }
  24. :deep(#errorWrapper) {
  25. z-index: 3;
  26. }
  27. :deep(#thumbnailView) {
  28. width: 100%;
  29. }
  30. }
  31. </style>