Skip to content

Navigation menu -> single file recursive menu mode="horizontal", the offset position on the left side of the drop-down menu is deviated #5143

@JingzaisWenzai

Description

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

Version

3.0.0-alpha.14

Environment

window10,chrome96,vue3.0

Reproduction link

https://next.antdv.com/components/menu-cn#components-menu-demo-template

Steps to reproduce

1.在antd官网切换到3.0版本,点击组件-导航菜单,选择"单文件递归菜单",打开CodeSandbox,删除多余代码,修改菜单模式为'horizontal'
2.在右侧看到Navigation 2的下拉菜单偏移位置有偏差

What is expected?

下拉菜单左侧偏移位置正确,3级菜单上方偏移位置正确

What is actually happening?

下拉菜单左侧偏移位置有偏差,包括3级菜单上方偏移位置也有偏差
微信图片_20220111114018

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