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

图片加载完后图片位置没有正确定位 #58

Open
Damonlw opened this issue Dec 21, 2023 · 7 comments
Open

图片加载完后图片位置没有正确定位 #58

Damonlw opened this issue Dec 21, 2023 · 7 comments

Comments

@Damonlw
Copy link

Damonlw commented Dec 21, 2023

image
data 请求完放入list属性后,看到图片渲染完,图片位置不对,像没有计算出定位

@Damonlw
Copy link
Author

Damonlw commented Dec 21, 2023

image
再刷新一下 页面可能走图片缓存 就正常了
请问有没什么办法解决或者是不是哪里配置不对

@Damonlw
Copy link
Author

Damonlw commented Dec 22, 2023

vue3版本的 vue-waterfall-plugin-next

@heikaimu
Copy link
Owner

现在你用我的vue3版本插件也会有这种情况吗?你的单张图片是否非常大?

@Damonlw
Copy link
Author

Damonlw commented Dec 22, 2023

是的 单张图片(原图)很大

@Damonlw
Copy link
Author

Damonlw commented Dec 22, 2023

image
确实比较大

@Damonlw
Copy link
Author

Damonlw commented Dec 22, 2023

image

@heikaimu
Copy link
Owner

你更新下最新的 v2.3.1 版本, 然后去到文档里面 https://github.com/heikaimu/vue3-waterfall-plugin ,找到ratioCalculator , 这个方法,然后你看下能否把你的图片尺寸打印出来。
WeChat520367afc5cabb7419a8b28af2ec1a77

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

2 participants