Skip to content

通过Tsx使用Menu.SubMenu时,SubMenu 的key一直为undefined #3560

@panrunlin-numob

Description

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

Version

2.0.0-rc.8

Environment

"vue": "^3.0.5"

Reproduction link

Edit on CodeSandbox

Steps to reproduce

在使用SubMenu时,通过map方法生成的SubMenu
使用onTitleClick 事件获取到的key为undefined

What is expected?

想知道是否是我写的代码的问题

What is actually happening?

这样点击是时候所有submenu是同时展开的

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