-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
feat: add tabbar component horizontal-scroll-indicator #4979
feat: add tabbar component horizontal-scroll-indicator #4979
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4979 +/- ##
=========================================
Coverage 55.91% 55.91%
Complexity 3032 3032
=========================================
Files 524 524
Lines 17826 17826
Branches 1329 1329
=========================================
Hits 9968 9968
Misses 7309 7309
Partials 549 549 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
当前的更改似乎有一些功能问题。
- 首次加载不会显示指示器,需要滚动之后才能显示。
- 点击指示器可能无法滚动。
- 滚动期间,指示器显示的时机似乎也有点问题。
视频:
Screen.Recording.2023-12-08.at.23.17.22.mov
@ruibaby |
集中改变 arrow 的显示隐藏
现在我本地是这样的。 视频 tabbar.mov |
cc @LIlGG 有空帮忙 review 一下。 |
现在 components 库已经支持了 storybook,你可以在 components 目录直接用 pnpm storybook 启动,调试起来会方便很多。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
感谢 @AeroWang 提出的 PR,我发现代码中有以下几处可能需要修正的位置。
监听宽度大约有 1px 的误差抖动,已修复 |
这个 PR 是还有什么问题吗? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: LIlGG, ruibaby The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/meow |
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/joke |
@AirboZH: What do you get when you cross a rabbit with a water hose? Hare spray. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What type of PR is this?
/area console
/kind improvement
What this PR does / why we need it:
在 Tabbar 组件内容可滚动时,添加内容超出时的水平方向滚动指示器;解决由 #4582 指出的体验问题
Which issue(s) this PR fixes:
Fixes #4582
Special notes for your reviewer:
注意观察各处使用 Tabbar 组件且内容可滚动时的情况(浏览器宽度变化也可生效)
Does this PR introduce a user-facing change?