1.0.8 • Published 5 years ago

preview-image-vue v1.0.8

Weekly downloads
-
License
MIT
Repository
-
Last release
5 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

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago