Closed christher-lenander closed 1 year ago
@ChristherLenander, hello! What's exactly goes wrong or is not clear? Due to a weak typing it's pretty easy to use the examples from the documentation. I suppose only the cropper refs are able to make some troubles.
@ChristherLenander, any news?
@DannyFeliz, do you have the same issue? Could you give me some details?
got the same issues, there is not type for cropperRef element so there is no possible way to call getResult() from cropperRef element on composition api
@zynth17, I were not sure that it should be documented. It looks like the common Vue 3 practice:
const cropperRef = ref<InstanceType<typeof Cropper>>();
if (cropperRef.value) {
const result = cropperRef.value.getResult();
}
It is described in the official documentation.
@zynth17, I were not sure that it should be documented. It looks like the common Vue 3 practice:
const cropperRef = ref<InstanceType<typeof Cropper>>(); if (cropperRef.value) { const result = cropperRef.value.getResult(); }
It is described in the official documentation.
thanks! totally forgot can do this.
Your examples don't work out of the box when using Vue 3 and Typescript.