updateOpened时判断accordion
updateOpened时判断accordion
This commit is contained in:
parent
96c0c8ae97
commit
08d282e32c
1 changed files with 3 additions and 0 deletions
|
@ -92,6 +92,9 @@
|
||||||
|
|
||||||
if (items.length) {
|
if (items.length) {
|
||||||
items.forEach(item => {
|
items.forEach(item => {
|
||||||
|
if (this.accordion) {
|
||||||
|
item.opened = false;
|
||||||
|
}
|
||||||
if (this.openNames.indexOf(item.name) > -1) item.opened = true;
|
if (this.openNames.indexOf(item.name) > -1) item.opened = true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue