vue-image-zoom
A vue-based image viewer plugin with zooming
6,738
| Install | |
|---|---|
npm install vue-image-zoom |
|
| Latest Version: | 1.0.6 |
| Vue: | 2 |
| Last Updated: | Sep 12, 2018 |
| Links: | npm |
Maintainer: aleksejevski
vue-image-zoom
A vue-based image viewer plugin with zooming
Install
$ npm install -D vue-image-zoom
// main.js
import zoom from 'vue-image-zoom';
import 'vue-image-zoom/dist/vue-image-zoom.css';
Vue.use(zoom);
Usage
Normal:
this.$zoom('/path/to/your/img');
With Params:
this.$zoom('/path/to/your/img', {
allowZoom: true, // When false, zooming is not available. Image will be shown on 100% size.
autoScale: true, // When true, if the image is larger than the screen, it will be automatically scaled down until suitable. Along with 'allowZoom'
closeOnClickModal: false, // When false, clicking modal layer will close the viewer.
});
Version History
| Version | Released | License |
|---|---|---|
| 1.0.6 | ||
| 1.0.5 | ||
| 1.0.4 | ||
| 1.0.3 | ||
| 1.0.2 | ||
| 1.0.1 | ||
| 1.0.0 |