dai-siki / vue-image-crop-upload

A beautiful vue component for image cropping and uploading. (vue图片剪裁上传组件)
https://dai-siki.github.io/vue-image-crop-upload/example-2/demo.html
2.08k stars 367 forks source link

When set initial image and click button back initi modal in step 1 #242

Open rodmayes opened 3 years ago

rodmayes commented 3 years ago

When set initial image and click button back initi modal in step 1 and not in step 2 in preview. Adding the line if(this.initialImgUrl) this.setStep(2); in method off is solved

off() { setTimeout(()=> { this.$emit('input', false); if(this.initialImgUrl) this.setStep(2); else if(this.step == 3 && this.loading == 2){ this.setStep(1); } }, 200); },

sandeshsapkota commented 3 years ago

first thank you for this amazing library. @rodmayes is this when you set a image and save it and try to edit it.. modal opens with existing image.. there you click back and browse area is shown and there you click cancel and the the modal close.. if you click the button to open the modal.. modal shows the browse box ? is this the issue about ? I need to show to existing image (second preview step ) in this situation. how to solve this ? Thank you.