v-viewer
Image viewer component for vue, supports rotation, scale, zoom and so on, based on viewer.js
Installation
Install from GitHub via NPM
Usage
To use v-viewer
, simply import it, and call Vue.use()
to install.
Usage of directive
Just add the directive v-viewer
to any element, then all img
elements in it will be handled by viewer
.
You can set the options like this: v-viewer="{inline: true}"
Get the element by selector and then use el.$viewer
to get the viewer
instance if you need.
Author
mirari