delete: collapse组件不需要的代码
This commit is contained in:
parent
75abb3bb28
commit
f60d2298ca
1 changed files with 1 additions and 8 deletions
|
@ -36,15 +36,8 @@
|
||||||
|
|
||||||
this.$children.forEach((child, index) => {
|
this.$children.forEach((child, index) => {
|
||||||
const name = child.name || index.toString();
|
const name = child.name || index.toString();
|
||||||
let isActive = false;
|
|
||||||
|
|
||||||
if (self.accordion) {
|
child.isActive = activeKey.indexOf(name) > -1;
|
||||||
isActive = activeKey === name;
|
|
||||||
} else {
|
|
||||||
isActive = activeKey.indexOf(name) > -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
child.isActive = isActive;
|
|
||||||
child.index = index;
|
child.index = index;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue