Menu: if defaultIndex value does not exist, the activeIndex value shall be null

pull/15249/head
Hoyt 2019-04-24 13:40:14 +08:00 committed by iamkun
parent 0325e1dc4d
commit 8bae5a79f9
1 changed files with 6 additions and 1 deletions

View File

@ -139,7 +139,12 @@
}
},
watch: {
defaultActive: 'updateActiveIndex',
defaultActive(value){
if(!this.items[value]){
this.activeIndex = null
}
this.updateActiveIndex(value)
},
defaultOpeneds(value) {
if (!this.collapse) {