Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unpkg链接导致Vue2无法显示图片 #490

Open
driftIces opened this issue Jun 2, 2022 · 3 comments
Open

unpkg链接导致Vue2无法显示图片 #490

driftIces opened this issue Jun 2, 2022 · 3 comments

Comments

@driftIces
Copy link

driftIces commented Jun 2, 2022

亲爱的Vue-lazyload作者,感谢您提供便捷有效的库,为我的工作带来了极大的帮助。
近期项目中突发一个问题,所有用v-lazy属性的图片都无法显示,原因是我们使用https://unpkg.com/vue-lazyload/vue-lazyload.js调用您的库,它会自动跳转到https://unpkg.com/[email protected]/vue-lazyload.js,我推测这是您适配Vue3.0的成果,只是如果能在文档中注明一下、Vue2能使用的最高版本的话,我将非常感激,谢谢您!

@caozhong1996
Copy link
Collaborator

caozhong1996 commented Jun 2, 2022

抱歉给你带来这些麻烦,由于vue2和vue3差别巨大,不能在同一个版本内同时兼容二者,目前vue2能使用的最新版本为1.3.4,vue3可以使用的版本是3.x开头的,建议你锁定具体的版本。
文档的话,后续会慢慢补充。

@jordan-kaxig
Copy link

jordan-kaxig commented Jun 2, 2022

I'm also very thankful for this great library. But 1.3.4 didn't work for me either, but 1.3.3 did.

This works for me:

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.min.js"></script>
<script src="https://unpkg.com/[email protected]/vue-lazyload.js"></script>

@imaxing
Copy link

imaxing commented Jul 26, 2023

建议README中添加说明, vue2指定安装1.3.4版本 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants