updateOpened时判断accordion

updateOpened时判断accordion
This commit is contained in:
qutz 2018-01-22 10:46:34 +08:00 committed by GitHub
parent 96c0c8ae97
commit 08d282e32c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}); });
} }