mirari / v-viewer

Image viewer component for vue, supports rotation, scale, zoom and so on, based on viewer.js
https://mirari.cc/v-viewer/
MIT License
2.47k stars 294 forks source link

Does anyone have the requirement for "custom buttons"? #341

Open dinggeonly opened 2 weeks ago

dinggeonly commented 2 weeks ago

Does anyone have the requirement for "custom buttons", so that you can expand other functions based on this component. For example,we can set the options for extensions like this: extensions :{ "buttons": [ { "id": "btn-delete", "text": "Delete", "onClick": null }, { "id": "btn-download", "text": "Download", "onClick": null } ] }

mirari commented 2 weeks ago

You can refer to this example, unfortunately, this style is not very vuelike. https://codepen.io/mirari/pen/ZEXqyPq

toolbar