-
default-openeds这个属性使用后 对应sub-menu index属性,但是还是无法实现该效果,怎么操作?
-
### Element UI version
2.0.4
### OS/Browsers version
win 10 / chrome 62
### Vue version
2.5.3
### Reproduction Link
[https://jsfiddle.net/coolmrz/rjr6e8v6/](https://jsfiddle.net/coolm…
-
### Element UI version
2.0.11
### OS/Browsers version
windows 10 / chrome
### Vue version
2.5.13
### Reproduction Link
[https://jsfiddle.net/34uc24s9/#embed](https://jsfiddle.net/34uc…
-
### Existing Component
Yes
### Component Name
ElSubmenu
### Description
It's convenient to add [**open**] property, instead of open it manually any time
```
...
```
-
我使用menu组件实现了这样一个菜单。进入界面的时候,默认菜单是隐藏状态,当用户点击1的时候菜单展开。我想实现的效果是点击2区域以外的其他地方隐藏掉这个菜单,可以怎么做呢?
我看了更新记录 2.x 的版本中已经修复该问题,1.4.4中我有尝试使用【default-openeds | 当前打开的submenu的 key 数组 | Array】来控制显示与隐藏,但是只能在界面初始化的时候控制菜单…
-
### Element UI version
1.3.7
### OS/Browsers version
Mac chrome
### Vue version
2.3.4
### Reproduction Link
[https://jsfiddle.net/moderate/oumgjoxw/1/](https://jsfiddle.net/moderate/o…
zhujz updated
7 years ago
-
default-openeds这个属性该如何使用?能否写出一个实例出来
如何使全部导航展开?在路由不为菜单导航路由时候,如何默认展开一个导航?
-
是否文档写错了?
insub updated
7 years ago
-
computed:{
onRoutes() {
return this.$route.path.replace('/','');
}
}
所属的一级菜单会加上 el-submenu is-active is-opened
如果el-menu上面的数据是异步请过过来的时候 所属的一级菜单会加上 el-submenu is…
-
代码如下