Merge pull request #2870 from qutz/2.0

updateOpened时判断accordion
This commit is contained in:
Aresn 2018-02-05 16:39:03 +08:00 committed by GitHub
commit 38a22c59a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -99,6 +99,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;
}); });
} }