1.2.0 • Published 4 years ago

@mrhanson/vue-file-preview v1.2.0

Weekly downloads
14
License
MIT
Repository
github
Last release
4 years ago

vue-file-preview

npmLicense

Description

A file preview component by Vue , maked up by serval previewer components

Filetype Support

  • img
  • excel

Install

  npm install --save vue '@mrhanson/vue-file-preview'
  # or
  yarn add vue '@mrhanson/vue-file-preview'

Example

CLICK ME

Props

file-previewer

proptypedefaultoptionaldescription
fileTypestringimg/excelchoose which previewer to use
imgPvPropsobjectprops of img-previewer
excelPvPropsobjectprops of excel-previewer

img-previewer

proptypedefaultoptionaldescription
coverListarray--cover item list, can pass object with url, alt, lazy, zIndex, style attribute
previewSrcListarray--src list to preview, same as preview-src-list
widthstring'100px'global width of coverList item
heightstring'100px'global height of coverList item

excel-previewer

proptypedefaultoptionaldescription
fileobjectexcel file stream
isClientStreambooleantruewhether client file stream
tableHeightstirng/numberpreviewer table height
1.2.0

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago