-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Labels
Description
- I have searched the issues of this repository and believe that this is not a duplicate.
Version
1.3.9
Environment
2
Reproduction link
https://vue.ant.design/components/menu-cn/#API
Steps to reproduce
<template>
<div>
<a-menu
mode="inline"
theme='dark'
:defaultSelectedKeys="['1.1']"
:defaultOpenKeys="['1']"
:selectedKeys="currentPath"
:openKeys="currentGroup"
:inlineCollapsed="closeNav"
@select="MenuItem"
@openChange="onOpenChange"
>
<template v-for="item in routeData">
<sub-menu v-if="item.childMenus.length > 0" :menu-info="item" :key="item.menuKey"/>
<a-menu-item v-else :key="item.menuKey">
<a-icon v-if="item.icon" :type="item.icon"/>
<span>{{item.menuName}}</span>
</a-menu-item>
</template>
</a-menu>
</div>
</template>
- subMenu
<template>
<a-sub-menu :key="menuInfo.menuKey" v-bind="$props" v-on="$listeners">
<span slot="title">
<a-icon v-if="menuInfo.icon" :type="menuInfo.icon"/>
<span>{{menuInfo.menuName}}</span>
</span>
<template v-for="item in menuInfo.childMenus">
<a-menu-item v-if="!item.childMenus.length > 0" :key="item.menuKey">
<a-icon v-if="item.icon" :type="item.icon"/>
<span>{{item.menuName}}</span>
</a-menu-item>
<sub-menu v-else :menu-info="item" :key="item.menuKey"/>
</template>
</a-sub-menu>
</template>
What is expected?
可以合并
What is actually happening?
目前不能合并
- 代码目前复现不出来...因为放code上也是可以合并的..不知道问题出在哪里
