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.46k stars 292 forks source link

为文档和 Live Demo 添加了插件在 Vue3 组合 API 风格下的用法 #296

Closed Golevka2001 closed 10 months ago

Golevka2001 commented 10 months ago

当前版本所提供的文档中的用法示例基本上是使用 Options API Style 的写法,而没有提供在 Vue3.x 所推出的 Composition API Style 下的写法。 虽说使用者可以根据文档中的示例自行迁移,但对于没有过多接触过 Vue2 的开发者(比如我)来说仍需要花费时间查找资料、尝试。 所以希望您可以接受在文档中补充插件在组合 API 风格下的用法。

所新增的代码均未改变示例原有功能,经过测试后写在注释中。

mirari commented 10 months ago

感谢贡献,抽空准备重构框架再把文档改成vuepress