fixed#6193
This commit is contained in:
parent
630bc69d97
commit
061e8e3940
1 changed files with 6 additions and 5 deletions
|
@ -42,12 +42,13 @@
|
|||
methods: {
|
||||
setActive () {
|
||||
const activeKey = this.getActiveKey();
|
||||
this.$nextTick(() => {
|
||||
this.$children.forEach((child, index) => {
|
||||
const name = child.name || index.toString();
|
||||
|
||||
this.$children.forEach((child, index) => {
|
||||
const name = child.name || index.toString();
|
||||
|
||||
child.isActive = activeKey.indexOf(name) > -1;
|
||||
child.index = index;
|
||||
child.isActive = activeKey.indexOf(name) > -1;
|
||||
child.index = index;
|
||||
});
|
||||
});
|
||||
},
|
||||
getActiveKey () {
|
||||
|
|
Loading…
Add table
Reference in a new issue