TaTo30 / vue-pdf

PDF component for Vue 3
https://tato30.github.io/vue-pdf/
MIT License
424 stars 62 forks source link

How can I use this library without upgrading my Vue version? #84

Closed xuedaobian closed 8 months ago

xuedaobian commented 8 months ago

I really like this library, and I feel that it meets all of my needs; but I am currently using Vue version 2.7.

TaTo30 commented 8 months ago

Components developed in Vue 3 that use setup directive can't be used in Vue 2. Besides, Vue 2 was already deprecated by Vue team: https://vuejs.org/about/faq#is-vue-2-still-supported

Vue 2.7, which was shipped in July 2022, is the final minor release of the Vue 2 version range. Vue 2 has now entered maintenance mode: it will no longer ship new features, but will continue to receive critical bug fixes and security updates for 18 months starting from the 2.7 release date. This means Vue 2 will reach End of Life on December 31st, 2023.

But if you need to use Vue 2 you should take a look for this library that works on both Vue 2 and 3: https://github.com/hrynko/vue-pdf-embed.git