能够在线预览的组件库(支持vue2/3)

文档地址:https://501351981.github.io/vue-office/examples/docs/guide/

//docx文档预览组件(只支持在线预览 docx格式的文件)
npm install @vue-office/docx
 
//excel文档预览组件
npm install @vue-office/excel
 
//pdf文档预览组件
npm install @vue-office/pdf
// 引入VueOffice组件
import VueOfficeDocx from '@vue-office/docx'
import VueOfficeExcel from '@vue-office/excel'
import VueOfficePdf from '@vue-office/pdf'
// 引入相关样式
import '@vue-office/docx/lib/index.css'
import '@vue-office/excel/lib/index.css'

你可能感兴趣的:(Js,Vue3.0,Vue,前端)