@ilzf/pdf-vue3
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

pdf-vue3

Image text

<template>
  <div style="width: 100%; height: 98vh">
    <PDFViewer ref="viewRef" v-bind="props"></PDFViewer>
  </div>
</template>

<script setup lang="ts">
  import usePDFViewer from '@/hooks/usePDFViewer';
  import PDFViewer from '@/PDFViewer.vue';

  const [viewRef, props, methods] = usePDFViewer({
    src: '',
    onLoaded: () => {
      console.log('loaded');
    },
    onScroll: () => {
      console.log('scroll');
    },
    onEnded: () => {
      console.log('ended');
    },
  });
</script>

Package Sidebar

Install

npm i @ilzf/pdf-vue3

Weekly Downloads

0

Version

0.0.4

License

none

Unpacked Size

8.29 MB

Total Files

28

Last publish

Collaborators

  • abclzf