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的定位在左边,标签多的时候,滑动按钮应该在上下两端 #5765

Closed
dicklwm opened this issue Apr 14, 2017 · 7 comments
Closed
Labels
🐛 Bug Ant Design Team had proved that this is a bug. help wanted The suggestion or request has been accepted, we need you to help us by sending a pull request.

Comments

@dicklwm
Copy link
Contributor

dicklwm commented Apr 14, 2017

What problem does this feature solve?

解决Tabs的在左、右两端,标签多的时候,滑动的按钮在上下两端的问题,目前Tabs在左右两端的滑动按钮是左右的
image

What does the proposed API look like?

最好把滑动按钮的位置也可以设置

@benjycui benjycui added 🐛 Bug Ant Design Team had proved that this is a bug. help wanted The suggestion or request has been accepted, we need you to help us by sending a pull request. labels Apr 14, 2017
@benjycui
Copy link
Contributor

@dicklwm 来个 PR 可好?修正垂直模式时按钮的位置,谢谢。

@dicklwm
Copy link
Contributor Author

dicklwm commented Apr 14, 2017

@benjycui

  1. 我是想这么设计的,tabPosition='left' || 'right'时,Button在上下,反之在左右,然后增加less样式ant-tabs-tab-top等
  2. 我没写过TypeScript,我想PR,我看了下源码
    tabBarStyle?: React.CSSProperties;
    这里面的React.CSSProperties没懂是哪里来的,有什么用,我想设置tabBarStyle应该怎样去设置呢?
    请指教~

@benjycui
Copy link
Contributor

按我理解,这个需求应该只是改 less 就可以了。

@benjycui
Copy link
Contributor

用后代选择器:

image

@dicklwm
Copy link
Contributor Author

dicklwm commented Apr 17, 2017

好,我知道怎么做了,但是我还是想知道tabBarStyle?: React.CSSProperties有什么用

@dicklwm dicklwm mentioned this issue Apr 17, 2017
5 tasks
@BANG88
Copy link
Member

BANG88 commented Apr 17, 2017

在类似VS Code的编辑器里面可以有智能提示.

@lock
Copy link

lock bot commented May 1, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked and limited conversation to collaborators May 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐛 Bug Ant Design Team had proved that this is a bug. help wanted The suggestion or request has been accepted, we need you to help us by sending a pull request.
Projects
None yet
Development

No branches or pull requests

3 participants