Closed CesarGomezTissini closed 5 years ago
Oh, there is also a reset()
method. Are you looking for this?
<v-zoomer-gallery
ref="galleryZoom"
v-model="selIndex"
style="width: 80vw; height: 400px"
:list="gallery">
</v-zoomer-gallery>
this.$refs.galleryZoom.reset()
Error in v-on handler: "TypeError: this.$refs.galleryZoom.reset is not a function"
That's why my proposal. v-zoomer-gallery
doesn't have that method.
Sorry for misunderstanding it. I have added the reset
method to v-zoomer-gallery
. Please update to the newest v0.2.9 version.
Some situation when we use vue-zoomer from a Dialog (v-dialog from Vuetify), it's necessary reset transform/translate values in zoomed image. I know there is a zoomed event, but this is not enough.
According your code, there is too a trigger to reset transform/translate zoomed image. I wanna use when I press close in dialog.