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

[Tabs] 支持通过滚轮或者触摸板操作 #498

Closed
oljc opened this issue May 27, 2024 · 2 comments
Closed

[Tabs] 支持通过滚轮或者触摸板操作 #498

oljc opened this issue May 27, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@oljc
Copy link

oljc commented May 27, 2024

这个功能解决了什么问题

现在的 Tabs 组件只能通过点击两边的操作区进行滚动控制,无法通过滚轮和触摸板进行滚动不是很方便。

  1. 支持通过滚轮或者触摸板操作
  2. 支持控制被选中 tab 的滚动位置 如:'auto' | 'start' | 'center' | 'end'
    例:Ant DesignArco Design

你建议的方案是什么

支持通过滚轮或者触摸板操作

@uyarn
Copy link
Collaborator

uyarn commented May 27, 2024

Preview看了下 第一个功能很赞👍 第二个是什么场景需要使用的没太理解

@oljc
Copy link
Author

oljc commented May 28, 2024

Preview看了下 第一个功能很赞👍 第二个是什么场景需要使用的没太理解

类似标签这种 Tab 较多的时候,将滚动位置设置为居中那么每次选中标签都可以看到前后附近的标签无需切换或滚动。

iShot_2024-05-28_11.48.48.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants