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组件]当每个tab字数不相同时,能否实现相邻tab的字跟字的间距相同 #359

Closed
zpaul opened this issue Mar 25, 2019 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@zpaul
Copy link

zpaul commented Mar 25, 2019

What problem does this feature solve?

目前是通过【page】属性来决定每一页显示几个tab,然后根据page值来算出每个tab所占宽度的百分比。这会有一个问题,比如第一个tab是三个字,第二个tab是四个字,第三个tab是两个字,那么他们之间的间距就会不同,从而使得显示效果不太美观

What does the proposed API look like?

通过提供一个额外的属性让用户选择是等百分比布局还是等间距布局

@fisherspy fisherspy added the enhancement New feature or request label Mar 26, 2019
@fisherspy fisherspy self-assigned this Mar 26, 2019
@qqis314860100
Copy link

+1,当把page设置为“”时,可以不用%做间距,但是会失去点击tab偏移位置的功能。

@fisherspy
Copy link
Collaborator

#399 新增tabTitleSize自定义title的尺寸(单位:px),但是约定每个title的尺寸相同。这主要是考虑到美观问题。

@fisherspy
Copy link
Collaborator

@qqis314860100 现在不需要自己猜百分比,直接设置尺寸即可,这样是否比以前更方便?

@fisherspy
Copy link
Collaborator

@zpaul

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

3 participants