Closed besart-rr closed 9 months ago
Unfortunately, viewerjs
does not support this feature, and v-viewer
is just an adapter. Perhaps you can achieve your needs by customizing the toolbar, refer to this example:
https://codepen.io/mirari/pen/OJdrNrR
Its flaw is that you cannot stay at the original index after deleting a picture.
I would like to propose an enhancement to v-viewer that enables the emission of an event for image deletion or customizable event. Currently, there isn't a direct way to trigger an event to delete an image within the v-viewer gallery. This feature would greatly benefit developers needing to integrate image deletion functionality within their applications using v-viewer.