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

[Feature Request] Tab 透传 Badge 的 offset 属性 #13308

Open
json-q opened this issue Jan 14, 2025 · 0 comments
Open

[Feature Request] Tab 透传 Badge 的 offset 属性 #13308

json-q opened this issue Jan 14, 2025 · 0 comments

Comments

@json-q
Copy link

json-q commented Jan 14, 2025

What problem does this feature solve?

感觉 Badge 在 Tab 下的展示效果并不是很好,如图所示:

image

本来想调整一下 Badge 的位置,发现并不支持 offset 属性

image

希望能够支持透传一下 Badge 的 offset

What does the proposed API look like?

<van-tab title="标签 1" badge="10" :offset="[20,20]">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant