1.0.0 • Published 3 years ago

vue-simple-file-preview v1.0.0

Weekly downloads
2
License
MIT
Repository
-
Last release
3 years ago

vue-file-preview

A simple vue file preview component. Currently support pdf file, most image file and video file preview. See props for details.

Before Start

This component needs PDF.js to work for a PDF file preview.
Please visit http://mozilla.github.io/pdf.js/ for more information.

Build Setup

# install dependencies
npm install filePreview

Props

Name: response
Type: Object
Default: {}
Description: A 'blob' response type file stream.
Name: type
Type: String
Default" ''
Description: Currently 'pdf', 'png','jpg','jpeg','webp','gif', 'mp4', 'webm', 'ogg' are supported.

For detailed explanation on how things work, consult the docs for vue-loader.