vue-simple-file-preview
v1.0.0
Published
A simple vue file preview component
Downloads
2
Readme
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.