fixed#6193

This commit is contained in:
msidolphin 2019-08-16 09:28:33 +08:00
parent 630bc69d97
commit 061e8e3940

View file

@ -42,13 +42,14 @@
methods: {
setActive () {
const activeKey = this.getActiveKey();
this.$nextTick(() => {
this.$children.forEach((child, index) => {
const name = child.name || index.toString();
child.isActive = activeKey.indexOf(name) > -1;
child.index = index;
});
});
},
getActiveKey () {
let activeKey = this.currentValue || [];