vue-image-crop-upload
vue-image-crop-upload copied to clipboard
How to reset the component ?
trafficstars
Hi, In the cropUploadSuccess function, I wanted to close the window (this.show = false;) and reset the component in order to begin at the first step the next time the user open the window. Do you know how to do that ?
Same issue with me
add ref to your component
avatar-uploader ref="uploader"></avatar-upload
then add this to Uploadsuccess methods this.$refs.uploader.setStep(1)
you guys should put this on documentation .setStep(n)