vue-image-crop-upload icon indicating copy to clipboard operation
vue-image-crop-upload copied to clipboard

How to reset the component ?

Open kaboume opened this issue 6 years ago • 3 comments
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 ?

kaboume avatar Mar 05 '19 12:03 kaboume

Same issue with me

jangidgirish avatar Jun 14 '19 07:06 jangidgirish

add ref to your component

avatar-uploader ref="uploader"></avatar-upload

then add this to Uploadsuccess methods this.$refs.uploader.setStep(1)

Korris avatar Jul 10 '19 08:07 Korris

you guys should put this on documentation .setStep(n)

SonySadi avatar Sep 25 '19 03:09 SonySadi