0.1.6 • Published 4 years ago

vue-directive-preview-image v0.1.6

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

vue-directive-preview-image

descript

a vue directive to preview image in PC and Mobile

Project setup

npm install vue-directive-preview-image --save

main.js

import VueDirectivePreviewImage from 'vue-directive-preview-image'
Vue.use(VueDirectivePreviewImage, options)

If you're using the Vue framework

 Vue.use(VueDirectivePreviewImage)

If you're using the nuxt framework

 Vue.use(VueDirectivePreviewImage, '__nuxt')

Use this directive

<img v-preview-img src="url" />

When your preview image needs to be transformed

<img v-preview-img src="url" previewSrc="previewUrl" />
0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.0

4 years ago