vue-quick-preview
v0.1.0
Published
A lightweight lightbox.
Downloads
5
Readme
Vue Quick Preview
A lightweight lightbox.
Install
npm i --save vue-quick-preview
Usage
<template>
<img src="https://placeimg.com/400/400/any" @click="onImageClick" />
</template>
<script>
import preview from 'vue-quick-preview';
export default {
methods: {
onImageClick(e) {
const instance = preview(e.target);
console.log(instance);
},
},
};
</script>