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: pin one tab in header #18782

Open
1 task
suwu150 opened this issue Sep 12, 2019 · 10 comments
Open
1 task

Tabs: pin one tab in header #18782

suwu150 opened this issue Sep 12, 2019 · 10 comments
Labels

Comments

@suwu150
Copy link

suwu150 commented Sep 12, 2019

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

tabs组件支持固定其中某一项吗,当我有很多数据的时候,我希望其中某一项一直固定到最前面,而后面的能够滑动

What does the proposed API look like?

通过传递tab的key进行控制是否固定某一项或者几项,固定位置不能够滑动
就像下面这个链接地址:https://codesandbox.io/s/bgol8

image

我想把其中的tab0固定住

@suwu150
Copy link
Author

suwu150 commented Sep 12, 2019

哪里看的,我怎么在文档里没看到?那怎么固定第一个,传什么属性?

@yoyo837
Copy link
Contributor

yoyo837 commented Sep 12, 2019

@suwu150
Copy link
Author

suwu150 commented Sep 12, 2019

https://ant.design/components/table-cn/#Column fixed

是Tabs组件,不是Table组件

@yoyo837
Copy link
Contributor

yoyo837 commented Sep 12, 2019

看错。抱歉

@evinnnn
Copy link

evinnnn commented Sep 25, 2019

这个可以自定义一个吧

【renderTabBar | 替换 TabBar,用于二次封装标签头】

@suwu150
Copy link
Author

suwu150 commented Sep 26, 2019

这个可以自定义一个吧

【renderTabBar | 替换 TabBar,用于二次封装标签头】

我去试了一下,但是仍然没有实现我想要的固定效果,我在尝试的过程中renderTabBar是会替换整个tabpanel的效果.能否提供一段演示代码学习学习,谢谢你

@afc163 afc163 mentioned this issue Jul 22, 2020
1 task
@afc163 afc163 changed the title tabs组件支持固定其中某一项吗 Tabs: pin one tab in header Feb 2, 2021
@JadeLiuYC
Copy link

so what can I do for this issues? waiting? @afc163

@afc163
Copy link
Member

afc163 commented Feb 2, 2021

PR is welcome~

@JadeLiuYC
Copy link

At present, it's done with tabbarextracontent. You can hide the corresponding elements in tabbar and display the corresponding key when you click the extra button.

@hzm2023
Copy link

hzm2023 commented Jun 7, 2021

有人解决了吗?

@github-actions github-actions bot removed the Inactive label Jun 7, 2021
@afc163 afc163 removed their assignment Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants