Skip to content

4.0 Badge 组件 设置状态点和多彩徽标时 未显示状态徽标圆点 #6432

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

Closed
1 task
yokong opened this issue Apr 7, 2023 · 1 comment
Closed
1 task
Labels

Comments

@yokong
Copy link
Contributor

yokong commented Apr 7, 2023

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

Version

4.0.0-alpha.4

Environment

4.0.0-alpha.4

Reproduction link

https://next.antdv.com/components/badge-cn

Steps to reproduce

可在官网示例中直接查看(状态点和多彩徽标部分)
image

<a-badge color="#2db7f5" text="#2db7f5" />
<a-badge status="default" />

What is expected?

显示状态徽标圆点

What is actually happening?

仅显示文本未显示状态徽标圆点


看了下源码应该是 ignoreCount 判断时 props.count === null 但props.count未设置默认值 导致最终未添加css属性

Copy link

github-actions bot commented Apr 9, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants