mirror of https://github.com/ElemeFE/element
Menu: if defaultIndex value does not exist, the activeIndex value shall be null
parent
0325e1dc4d
commit
8bae5a79f9
|
@ -139,7 +139,12 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
defaultActive: 'updateActiveIndex',
|
defaultActive(value){
|
||||||
|
if(!this.items[value]){
|
||||||
|
this.activeIndex = null
|
||||||
|
}
|
||||||
|
this.updateActiveIndex(value)
|
||||||
|
},
|
||||||
|
|
||||||
defaultOpeneds(value) {
|
defaultOpeneds(value) {
|
||||||
if (!this.collapse) {
|
if (!this.collapse) {
|
||||||
|
|
Loading…
Reference in New Issue