Skip to content

Tree checkbox 与节点内容纵向错位 #8064

Open
@jzz4012650

Description

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

Version

4.2.6

Environment

macOS 15.3.1
Chrome 133.0.6943.142

Reproduction link

https://antdv.com/components/tree-cn#components-tree-demo-replacefields

Steps to reproduce

官网示例:

Image

What is expected?

checkbox 与节点内容纵向对齐

What is actually happening?

checkbox 偏下


看起来是 checkbox 中的额外 margin 导致,见下图:

Image

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