Collapse: fix accordion panel name=0 closing issue (#3546)

pull/3596/head
杨奕 2017-03-18 15:29:26 +08:00 committed by baiyaaaaa
parent fef0334e43
commit e09d7c74a4
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@
handleItemClick(item) {
if (this.accordion) {
this.setActiveNames(
this.activeNames[0] &&
(this.activeNames[0] || this.activeNames[0] === 0) &&
this.activeNames[0] === item.name
? '' : item.name
);