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

Fix carousel width hight #1169

Merged
merged 6 commits into from
Jun 4, 2024

Conversation

zyf-xcode
Copy link
Contributor

修复Carousel组件宽高不精确问题。原offsetWidth offsetHeight计算不准确,在展示时内容会有像素偏差,下一个轮播内容会漏出一点。

Copy link

vercel bot commented May 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
zarm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 3, 2024 10:37am

Copy link

github-actions bot commented May 28, 2024

🎊 PR Preview has been successfully built and deployed to https://zarm-preview-pr-1169.surge.sh

@JeromeLin
Copy link
Collaborator

image
demo报错了

@zyf-xcode
Copy link
Contributor Author

修改getOffsetSize方法,添加返回兜底数据,无报错

@JeromeLin
Copy link
Collaborator

有问题哈,拖到最后一页就白屏了

@zyf-xcode
Copy link
Contributor Author

简化方法使用,删除冗余的getOffsetSize

Copy link

codecov bot commented Jun 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.40%. Comparing base (1926b57) to head (83ae848).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1169      +/-   ##
==========================================
+ Coverage   83.59%   90.40%   +6.80%     
==========================================
  Files          17      220     +203     
  Lines         128     5127    +4999     
  Branches       21     1218    +1197     
==========================================
+ Hits          107     4635    +4528     
- Misses         21      482     +461     
- Partials        0       10      +10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@JeromeLin JeromeLin merged commit 6af6138 into ZhongAnTech:master Jun 4, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants