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

[新功能需求] 请在此填写标题 wd-tabs组件支持 titile支持角标 #672

Open
TAYUN opened this issue Oct 19, 2024 · 6 comments
Labels
feature: need confirm 待确认的新特性

Comments

@TAYUN
Copy link

TAYUN commented Oct 19, 2024

这个功能解决了什么问题?

比如订单页面每个tab需要添加数量角标显示

你期望的 API 是什么样子的?

提供插槽或者角标属性

@TAYUN TAYUN added the feature: need confirm 待确认的新特性 label Oct 19, 2024
@akai-b
Copy link

akai-b commented Oct 22, 2024

兄弟目前有找到替代方案吗,我也有需要实现红点的需求,暂时没找到解决方案

@TAYUN
Copy link
Author

TAYUN commented Oct 22, 2024

兄弟目前有找到替代方案吗,我也有需要实现红点的需求,暂时没找到解决方案

还没有

@akai-b
Copy link

akai-b commented Oct 22, 2024

兄弟目前有找到替代方案吗,我也有需要实现红点的需求,暂时没找到解决方案

还没有

我刚刚找到一种比较简陋的做法:在tabs的custom-class里根据红点逻辑定义带相应下标的class,再写好对应下标的样式,,你的是角标的话可以定义data-xx,使用伪类的content: attr(data-xx);的方式实现,希望对你有点帮助
image

image

@TAYUN
Copy link
Author

TAYUN commented Oct 22, 2024

兄弟目前有找到替代方案吗,我也有需要实现红点的需求,暂时没找到解决方案

还没有

我刚刚找到一种比较简陋的做法:在tabs的custom-class里根据红点逻辑定义带相应下标的class,再写好对应下标的样式,,你的是角标的话可以定义data-xx,使用伪类的content: attr(data-xx);的方式实现,希望对你有点帮助 image

image

厉害,想象力真丰富,效果图有吗,看看

@akai-b
Copy link

akai-b commented Oct 22, 2024

兄弟目前有找到替代方案吗,我也有需要实现红点的需求,暂时没找到解决方案

还没有

我刚刚找到一种比较简陋的做法:在tabs的custom-class里根据红点逻辑定义带相应下标的class,再写好对应下标的样式,,你的是角标的话可以定义data-xx,使用伪类的content: attr(data-xx);的方式实现,希望对你有点帮助 image
image

厉害,想象力真丰富,效果图有吗,看看

image

@TAYUN
Copy link
Author

TAYUN commented Oct 22, 2024

兄弟目前有找到替代方案吗,我也有需要实现红点的需求,暂时没找到解决方案

还没有

我刚刚找到一种比较简陋的做法:在tabs的custom-class里根据红点逻辑定义带相应下标的class,再写好对应下标的样式,,你的是角标的话可以定义data-xx,使用伪类的content: attr(data-xx);的方式实现,希望对你有点帮助 image
image

厉害,想象力真丰富,效果图有吗,看看

image

界面不错阿,有空我试试,太感谢了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: need confirm 待确认的新特性
Projects
None yet
Development

No branches or pull requests

2 participants