Closed PrimozRome closed 6 years ago
Never mind, found in the docs that I can supply image into slot="initial"
<croppa>
<img src="~/assets/img/profiles/1.png" slot="initial">
</croppa>
But now I have different problem. If I use initial image like above then drag and drop image does not work anymore. What is the reason?
You need to remove the current image on croppa to drag and drop a new one.
@zhanziyang yes I figured that out. Is there any special reason that drag and drop would not work even over image? I think it's more logical UIX case...
@PrimozRome Um.. There is not a special reason for it. Good suggestion. I will consider implementing it in the next version. We only need to change line 848 of the src code.
@zhanziyang good thanks. I will be waiting for the update. I's a minor usability issue ...
I am using
vue-croppa
in Nuxt.js project which runs webpack to resolve images.I am trying to setup initial image but it doesn't work for me. I tried:
Any help is appreciated. Thanks.