此项目为 vitejs vuejs3 pdfjs-dist pdf-lib 库, 一起构建的组件
This project is for the vitejs vuejs3 pdfjs-dist pdf-lib library, built together with the components
npm i @lanseria/vue-pdf-vite
yarn add @lanseria/vue-pdf-vite
import "@lanseria/vue-pdf-vite/style.css";
<template>
<pdf-editor
src="http://183.131.134.242:1889/files/20210619/383518b085f9469eb9ec34594196f8c7.pdf"
></pdf-editor>
</template>
<script lang="ts">
import { defineComponent } from "vue";
import { PdfEditor } from "@lanseria/vue-pdf-vite";
// import { PdfViewer } from "@lanseria/vue-pdf-vite";
export default defineComponent({
name: "App",
components: {
PdfEditor,
},
});
</script>