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

更改屏幕方向或拉伸浏览器尺寸时,图片长宽比例未能刷新。 #44

Open
oxzzx opened this issue Apr 14, 2022 · 3 comments

Comments

@oxzzx
Copy link

oxzzx commented Apr 14, 2022

更改屏幕方向或拉伸浏览器尺寸时,图片长宽比例未能刷新。

@heikaimu
Copy link
Owner

这确实是一个问题,但是你可以避免它,把breakpoint的最大尺寸设置小一点,这样就不会改变卡片宽度,只会修改每排的个数,卡片也就不会变形了。

@oxzzx
Copy link
Author

oxzzx commented Apr 14, 2022

建议修复方法:
步骤1:监听屏幕变化。
步骤2:给监听添加防抖动。
步骤3:刷新Waterfall组件里的 :list (存储 :list的值,把 :list 值变为[ ],1纳秒延时后在把 "存储值" 放回 :list 中)。

@heikaimu
Copy link
Owner

heikaimu commented Mar 1, 2023

问题已修复

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