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组件选中时,增加一个active的class #595

Open
dyjx2004 opened this issue Dec 19, 2024 · 0 comments
Open

Tabs组件选中时,增加一个active的class #595

dyjx2004 opened this issue Dec 19, 2024 · 0 comments

Comments

@dyjx2004
Copy link

您的功能请求是否与某个问题相关?请描述。
Tabs 组件在使用自定义插槽时,想要更改背景色且不需要底部的滑块,没有当前item的active的class,

描述您想要的解决方案
当选中当前tab的时候,当scope.index == activeIndex时,在u-tabs__wrapper__nav__item增加一个active的class

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

No branches or pull requests

1 participant