1.0.8 • Published 6 years ago

preview-image-vue v1.0.8

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

PreviewImage-Vue

#1. run npm i preview-image-vue OR yarn add preview-image-vue

#2. update your main.js or index.js file add import ImagePreview from 'preview-image-vue' Vue.use(ImagePreview)

#3. In your vue file use it as

It uses inject/provide so you need to use provide that will return a method update you formdata like thi provide() { return { image: this.imageChanged }; },

#4. this will defined under methods imageChanged: function(value) { this.form.previewImage = value; }

#5. if you want to display the old image you need to pass the full url in props like this

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago