Vue Files Preview
⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️
This repository is still deploying
Please wait for the official release
Introduce
This project is dedicated to previewing any file format on the Vue3
framework, supporting file previews such as docx, xlsx, pdf, image, txt, epub, markdown, code, etc
Project repository: https://github.com/SmallTeddy/vue-files-preview
📦 Install
From v1.0.0 version
It only works for Vue 3
npm i vue-files-preview
yarn add vue-files-preview
pnpm i vue-files-preview
Default

doc、xls、ppt preview
Be pending
docx、xlsx、pdf preview
Using Vue Office to implement preview of doc, excel, and pdf files
audio、video preview
use nature audio tag and canvas to implement the audio preview

use nature video tag to implement the video preview (just support mp4)

image preview
using native img tags to implement image preview
txt preview

code preview
using codemirror to adapt the code file preview, support Angular, CSS, C++, Go, HTML, Java, JavaScript, JSON, Liquid, Markdown, PHP, Python, Rust, Sass, Vue, XML, YAML, C#, CMake, CoffeeScript, Dart, Elixir, GLSL, Haskell, Lua, Objective-C, R, Ruby, Scala, Shell, Swift, TeX, TypeScript, Visual Basic
code file preview
markdown preview
I have tried using both the marked and commonmark.js tool libraries for simple implementation, and ultimately adopted the markdown-it tool library
Currently, there may still be issues with formulas and other aspects, which will be further optimized in the future

epub preview
using epubjs to adapt to EPUB file preview and configure page-flipping function for secondary development
