zhanziyang / vue-croppa

A simple straightforward customizable mobile-friendly image cropper for Vue 2.0.
https://zhanziyang.github.io/vue-croppa/
ISC License
967 stars 128 forks source link

When change the value in 'initial-image' in Croppe there is no reaction to this. #155

Closed DmitrySkibitsky closed 5 years ago

DmitrySkibitsky commented 5 years ago

Tell me how to fix it

         <croppa
                :width="350"
                :height="350"
                :show-remove-button="false"
                :disable-drag-and-drop="true"
                :disable-click-to-choose="true"
                :zoom-speed="6"
                :prevent-white-space="true"
                :initial-image="this.initialImageCroppa"
                v-model="imageCroppa"></croppa>

//a method that opens a modal window
          openModalCropImage: function() {
                this.titleDialogWorkWith = 'Редактировать превью';
                this.visibleDialogWorkWithImage = false;
                this.initialImageCroppa = this.getFullPathImage(this.workWithImage.origin);
                console.log(this.initialImageCroppa);
                this.visibleDialogWorkWithCropImage = true;
            },

deepin-screen-recorder_select area_20181127195306

DmitrySkibitsky commented 5 years ago

the "refresh" method solved the problem