Skip to content

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

Closed
@yokong

Description

@yokong
  • 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属性

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions