mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-16 11:44:01 +08:00
Menu: if defaultIndex value does not exist, the activeIndex value shall be null
This commit is contained in:
@@ -139,7 +139,12 @@
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
defaultActive: 'updateActiveIndex',
|
||||
defaultActive(value){
|
||||
if(!this.items[value]){
|
||||
this.activeIndex = null
|
||||
}
|
||||
this.updateActiveIndex(value)
|
||||
},
|
||||
|
||||
defaultOpeneds(value) {
|
||||
if (!this.collapse) {
|
||||
|
||||
Reference in New Issue
Block a user