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

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

Open
1 task done
jzz4012650 opened this issue Mar 12, 2025 · 0 comments
Open
1 task done

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

jzz4012650 opened this issue Mar 12, 2025 · 0 comments

Comments

@jzz4012650
Copy link

jzz4012650 commented Mar 12, 2025

  • 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

jzz4012650 pushed a commit to jzz4012650/ant-design-vue that referenced this issue Mar 12, 2025
- 移除不必要的 checkbox vertical margin,因为 checkbox 样式已将自身设置为 align-self: center;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant