-
-
Notifications
You must be signed in to change notification settings - Fork 226
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
Fix carousel width hight #1169
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🎊 PR Preview has been successfully built and deployed to https://zarm-preview-pr-1169.surge.sh |
修改getOffsetSize方法,添加返回兜底数据,无报错 |
有问题哈,拖到最后一页就白屏了 |
简化方法使用,删除冗余的getOffsetSize |
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
修复Carousel组件宽高不精确问题。原offsetWidth offsetHeight计算不准确,在展示时内容会有像素偏差,下一个轮播内容会漏出一点。