-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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的underline如何自定义宽度且能居中修改样式后的文字下面 #3322
Comments
我有一个解决方案:
<Tabs tabs={tabs} onChange={(tab, index) => { this.changeTabs(tab, index); }} tabBarUnderlineStyle={{ borderBottomWidth: 0.7, borderBottomColor: 'rgba(255, 64, 2, 1)', width: '0.3rem', textAlign: 'center', left: '10%' }} />}>
|
建议官方能支持设置,这是刚需呀 |
tabBarUnderlineStyle={{ transform: 'scaleX(0.x)' }} |
good |
Thanks a lot. |
设置伪元素就可以了,完美解决 |
厄特 |
v2 已停止维护了,可以考虑升级一下 |
.ant-tabs .ant-tabs-ink-bar { 相对位移 |
What problem does this feature solve?
更好的扩展tabs
What does the proposed API look like?
当修改了tabbar的宽度后,文字由原来的各占一半变成偏向居中一点,但是underline的线还是一半的宽度,改了underline的线宽度也不能跟在文字的正下方。
The text was updated successfully, but these errors were encountered: